File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
.github/unittest/linux_sota/scripts Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 15
15
), "Composite LP must be set to False. Run this test with COMPOSITE_LP_AGGREGATE=0"
16
16
17
17
commands = {
18
+ "a3c_atari" : """python sota-implementations/a3c/a3c_atari.py \
19
+ collector.total_frames=80 \
20
+ collector.frames_per_batch=20 \
21
+ loss.mini_batch_size=20 \
22
+ logger.backend= \
23
+ env.backend=gym \
24
+ multiprocessing.num_workers=4
25
+ """ ,
18
26
"dt" : """python sota-implementations/decision_transformer/dt.py \
19
27
optim.pretrain_gradient_steps=55 \
20
28
optim.updates_per_episode=3 \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # SBATCH --job-name=a2c_atari
4
+ # SBATCH --ntasks=32
5
+ # SBATCH --cpus-per-task=1
6
+ # SBATCH --gres=gpu:1
7
+ # SBATCH --output=slurm_logs/a2c_atari_%j.txt
8
+ # SBATCH --error=slurm_errors/a2c_atari_%j.txt
9
+
10
+ current_commit=$( git rev-parse --short HEAD)
11
+ project_name=" torchrl-example-check-$current_commit "
12
+ group_name=" a3c_atari"
13
+
14
+ export PYTHONPATH=$( dirname $( dirname $PWD ) )
15
+ python $PYTHONPATH /sota-implementations/a3c/a3c_atari.py \
16
+ logger.backend=wandb \
17
+ logger.project_name=" $project_name " \
18
+ logger.group_name=" $group_name "
19
+
20
+ # Capture the exit status of the Python command
21
+ exit_status=$?
22
+ # Write the exit status to a file
23
+ if [ $exit_status -eq 0 ]; then
24
+ echo " ${group_name} _${SLURM_JOB_ID} =success" >>> report.log
25
+ else
26
+ echo " ${group_name} _${SLURM_JOB_ID} =error" >>> report.log
27
+ fi
You can’t perform that action at this time.
0 commit comments