Skip to content

Commit

Permalink
Update slurm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhilong committed Mar 1, 2024
1 parent eb535a5 commit 964ef0b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
20 changes: 12 additions & 8 deletions slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

#SBATCH --job-name=epymarl
#SBATCH --partition=long
#SBATCH --cpus-per-task=2
#SBATCH --gres=gpu:a100:1
#SBATCH --mem=65G
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=6
#SBATCH --gpus=1
#SBATCH --mem=80G
#SBATCH --time=120:00:00

config=$1
env_name=${2:-"pressureplate:pressureplate-linear-4p-v0"}
env_time=${3:-25}
env_config=${4:-gymma}
message_shape=${2:-32}
trajectory_length=${3:-3}
env_name=${4:-MMM}
env_config=${5:-sc2}

python3 src/main.py --config=$config --env-config=$env_config with env_args.time_limit=$env_time env_args.key=$env_name
cd /home/y/yzhilong/epymarl
source ../python_envs/epymarl38/bin/activate
echo "message_shape: "$message_shape
python3 src/main.py --config=$config --env-config=$env_config with env_args.map_name=$env_name message_shape=$message_shape trajectory_length=$trajectory_length
2 changes: 1 addition & 1 deletion slurm_a100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH --job-name=epymarl
#SBATCH --partition=long
#SBATCH --cpus-per-task=6
#SBATCH --gres=gpu:a100:1
#SBATCH --gres=gpu:a100mig:1
#SBATCH --mem=65G
#SBATCH --time=120:00:00

Expand Down
17 changes: 17 additions & 0 deletions slurm_no_comms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

#SBATCH --job-name=epymarl
#SBATCH --partition=long
#SBATCH --cpus-per-task=6
#SBATCH --gpus=1
#SBATCH --mem=80G
#SBATCH --time=120:00:00

config=$1
env_name=${2:-MMM}
env_config=${3:-sc2}

cd /home/y/yzhilong/epymarl
source ../python_envs/epymarl38/bin/activate
echo "message_shape: "$message_shape
python3 src/main.py --config=$config --env-config=$env_config with env_args.map_name=$env_name allow_communications=false

0 comments on commit 964ef0b

Please sign in to comment.