Git Product home page Git Product logo

Comments (3)

hammoudhasan avatar hammoudhasan commented on May 31, 2024

Are you running your code on a Slurm based cluster? If so are you running an array of jobs? The way we currently run this code is by bashing an array of Slurm jobs and use the array_idx to chunk the jobs (so we can benefit from running on multiple CPUs). I could share bash script for that if you want. Let me know

from camel.

phober avatar phober commented on May 31, 2024

There are probably plenty of us that gets excited about this, and despite us having no right to expect such a contribution, it would be fantastic to get the bash script and maybe even a small instruction set regarding setting up/using a Slurm cluster as well.
Are there any simpler, standalone, versions of the script for the code example that you just haven't released yet?

from camel.

hammoudhasan avatar hammoudhasan commented on May 31, 2024

Sorry for the late reply @phober ! This is a sample slurm script to run the generation of AI Society. In this example we chunk the 50 roles into 5 jobs each containing 10 assistant roles. Even though this used to be very helpful before, it seems that with the rate limit we are not really benefiting from this much anymore as we exceed rate limit when we do that. Setting up a slurm cluster is a way bigger thing (we ourselves never set one but rather use the one we have at the university).

#!/bin/bash --login
#SBATCH --job-name=ChatGPT
#SBATCH --output=Output/%A_%a.out
#SBATCH --error=Error/%A_%a.err
#SBATCH --array=0-4
#SBATCH --time=1:59:00
#SBATCH --mem=50G
#SBATCH --cpus-per-task=20


export OPENAI_API_KEY="..."

conda activate camel
python examples/ai_society/role_playing_multiprocess.py

from camel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.