-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor to use tyro * push * psuh * refactor * fix pre-commit * fix pre-commit * fix commend * refactor * update poetry * fix test case * quick fix * fix * update optuna * quick change * fix ppg * quick fix * fix optuna * quick change * fix * quick change * quick change * fix bug in multi-gpu * refactor benchmark, support slurm * remove mujoco_py stuff * add slurm template * pre-commit * update ddpg docs * update td3 docs * update sac * bug fix * update docs * update ppo docs * bump version * bump version * bump test cases * add benchmark utility docs * bump test * fix #418 * update requirements.txt * test * add numpy --------- Co-authored-by: Adam Yanxiao Zhao <[email protected]>
- Loading branch information
Showing
121 changed files
with
4,641 additions
and
5,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
slurm | ||
.aim | ||
runs | ||
balance_bot.xml | ||
cleanrl/ppo_continuous_action_isaacgym/isaacgym/examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
poetry install | ||
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--command "poetry run python cleanrl/c51.py --cuda False --track --capture-video" \ | ||
--command "poetry run python cleanrl/c51.py --no_cuda --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 9 | ||
|
||
poetry install -E atari | ||
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \ | ||
--command "poetry run python cleanrl/c51_atari.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/c51_atari.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
|
||
poetry install -E "jax" | ||
poetry run pip install --upgrade "jax[cuda]==0.3.17" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run pip install --upgrade "jax[cuda11_cudnn82]==0.4.8" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
CUDA_VISIBLE_DEVICES=-1 xvfb-run -a python -m cleanrl_utils.benchmark \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--command "poetry run python cleanrl/c51_jax.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/c51_jax.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
|
||
poetry install -E "atari jax" | ||
poetry run pip install --upgrade "jax[cuda]==0.3.17" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run pip install --upgrade "jax[cuda11_cudnn82]==0.4.8" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
xvfb-run -a python -m cleanrl_utils.benchmark \ | ||
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \ | ||
--command "poetry run python cleanrl/c51_atari_jax.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/c51_atari_jax.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=low-priority | ||
#SBATCH --partition=production-cluster | ||
#SBATCH --gpus-per-task={{gpus_per_task}} | ||
#SBATCH --cpus-per-gpu={{cpus_per_gpu}} | ||
#SBATCH --ntasks={{ntasks}} | ||
#SBATCH --output=slurm/logs/%x_%j.out | ||
#SBATCH --array={{array}} | ||
#SBATCH --mem-per-cpu=12G | ||
#SBATCH --exclude=ip-26-0-146-[33,100,122-123,149,183,212,249],ip-26-0-147-[6,94,120,141],ip-26-0-152-[71,101,119,178,186,207,211],ip-26-0-153-[6,62,112,132,166,251],ip-26-0-154-[38,65],ip-26-0-155-[164,174,187,217],ip-26-0-156-[13,40],ip-26-0-157-27 | ||
##SBATCH --nodelist=ip-26-0-147-204 | ||
{{nodes}} | ||
|
||
env_ids={{env_ids}} | ||
seeds={{seeds}} | ||
env_id=${env_ids[$SLURM_ARRAY_TASK_ID / {{len_seeds}}]} | ||
seed=${seeds[$SLURM_ARRAY_TASK_ID % {{len_seeds}}]} | ||
|
||
echo "Running task $SLURM_ARRAY_TASK_ID with env_id: $env_id and seed: $seed" | ||
|
||
srun {{command}} --env-id $env_id --seed $seed # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
poetry install -E "mujoco_py" | ||
python -c "import mujoco_py" | ||
xvfb-run -a python -m cleanrl_utils.benchmark \ | ||
--env-ids HalfCheetah-v2 Walker2d-v2 Hopper-v2 InvertedPendulum-v2 Humanoid-v2 Pusher-v2 \ | ||
--command "poetry run python cleanrl/ddpg_continuous_action.py --track --capture-video" \ | ||
poetry install -E "mujoco" | ||
python -m cleanrl_utils.benchmark \ | ||
--env-ids HalfCheetah-v4 Walker2d-v4 Hopper-v4 InvertedPendulum-v4 Humanoid-v4 Pusher-v4 \ | ||
--command "poetry run python cleanrl/ddpg_continuous_action.py --track" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
--workers 18 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 10 \ | ||
--slurm-template-path benchmark/cleanrl_1gpu.slurm_template | ||
|
||
poetry install -E "mujoco_py jax" | ||
poetry run pip install --upgrade "jax[cuda]==0.3.17" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run python -c "import mujoco_py" | ||
xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids HalfCheetah-v2 Walker2d-v2 Hopper-v2 \ | ||
--command "poetry run python cleanrl/ddpg_continuous_action_jax.py --track --capture-video" \ | ||
poetry install -E "mujoco jax" | ||
poetry run pip install --upgrade "jax[cuda11_cudnn82]==0.4.8" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids HalfCheetah-v4 Walker2d-v4 Hopper-v4 InvertedPendulum-v4 Humanoid-v4 Pusher-v4 \ | ||
--command "poetry run python cleanrl/ddpg_continuous_action_jax.py --track" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
--workers 18 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 10 \ | ||
--slurm-template-path benchmark/cleanrl_1gpu.slurm_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
python -m openrlbenchmark.rlops \ | ||
--filters '?we=openrlbenchmark&wpn=cleanrl&ceik=env_id&cen=exp_name&metric=charts/episodic_return' \ | ||
'ddpg_continuous_action?tag=pr-424' \ | ||
--env-ids HalfCheetah-v4 Walker2d-v4 Hopper-v4 InvertedPendulum-v4 Humanoid-v4 Pusher-v4 \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 3 \ | ||
--pc.ncols-legend 2 \ | ||
--output-filename benchmark/cleanrl/ddpg \ | ||
--scan-history | ||
|
||
python -m openrlbenchmark.rlops \ | ||
--filters '?we=openrlbenchmark&wpn=cleanrl&ceik=env_id&cen=exp_name&metric=charts/episodic_return' \ | ||
'ddpg_continuous_action?tag=pr-424' \ | ||
'ddpg_continuous_action_jax?tag=pr-424' \ | ||
--env-ids HalfCheetah-v4 Walker2d-v4 Hopper-v4 InvertedPendulum-v4 Humanoid-v4 Pusher-v4 \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 3 \ | ||
--pc.ncols-legend 2 \ | ||
--output-filename benchmark/cleanrl/ddpg_jax \ | ||
--scan-history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
poetry install | ||
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--command "poetry run python cleanrl/dqn.py --cuda False --track --capture-video" \ | ||
--command "poetry run python cleanrl/dqn.py --no_cuda --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 9 | ||
|
||
poetry install -E atari | ||
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \ | ||
--command "poetry run python cleanrl/dqn_atari.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/dqn_atari.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
|
||
poetry install -E jax | ||
poetry run pip install --upgrade "jax[cuda]==0.3.17" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run pip install --upgrade "jax[cuda11_cudnn82]==0.4.8" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
xvfb-run -a python -m cleanrl_utils.benchmark \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--command "poetry run python cleanrl/dqn_jax.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/dqn_jax.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 | ||
|
||
poetry install -E "atari jax" | ||
poetry run pip install --upgrade "jax[cuda]==0.3.17" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
poetry run pip install --upgrade "jax[cuda11_cudnn82]==0.4.8" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
xvfb-run -a python -m cleanrl_utils.benchmark \ | ||
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \ | ||
--command "poetry run python cleanrl/dqn_atari_jax.py --track --capture-video" \ | ||
--command "poetry run python cleanrl/dqn_atari_jax.py --track --capture_video" \ | ||
--num-seeds 3 \ | ||
--workers 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
35896b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cleanrl – ./
cleanrl-vwxyzjn.vercel.app
cleanrl-git-master-vwxyzjn.vercel.app
docs.cleanrl.dev
cleanrl.vercel.app