Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPO to CleanRL #331

Merged
merged 43 commits into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
321f19c
adding rpo implementation
masud99r Dec 16, 2022
f86407c
Add installation warning
vwxyzjn Dec 19, 2022
a1a49fe
add perturbed gaussian for action distribution
masud99r Dec 19, 2022
6bccef4
Merge branch 'master' of https://github.com/masud99r/cleanrl
masud99r Dec 19, 2022
c264fe1
update for running with Slurm and manual pr tag.
masud99r Dec 19, 2022
c8f16c9
generate results with RPO and PPO for 8M timesteps
masud99r Dec 26, 2022
c3f1566
remove temporary files created for experiments
masud99r Dec 26, 2022
974fa92
add rpo docs
masud99r Dec 27, 2022
90fc50a
remove temporary file created for experiments
masud99r Dec 27, 2022
1efd6fe
update with gym results
masud99r Dec 27, 2022
6e85042
preview docs change
vwxyzjn Dec 27, 2022
8677a54
remove unncessary code difference
vwxyzjn Dec 27, 2022
860fcab
update to fix dm_control table
masud99r Dec 27, 2022
939ea06
minimize code difference
masud99r Dec 29, 2022
d4799f3
address comments in pr-331
masud99r Dec 29, 2022
d48a810
fix table format
masud99r Dec 29, 2022
918be1f
fix table format
masud99r Dec 29, 2022
7445997
add hyperparameter alpha
masud99r Dec 29, 2022
ad145f4
add code difference highlight
masud99r Dec 29, 2022
fe437c0
add benchmark snippets
masud99r Dec 29, 2022
5c10e5d
fix some text and update mujoco v2 results
masud99r Dec 29, 2022
62bf6d3
incorporate rpo alpha
masud99r Jan 3, 2023
d14b5ff
update docs for rpo
masud99r Jan 3, 2023
43a0292
update docs for rpo
masud99r Jan 3, 2023
82df53e
update docs for rpo
masud99r Jan 3, 2023
b0fbf5e
update docs for rpo
masud99r Jan 3, 2023
2b67f0a
update docs for rpo
masud99r Jan 3, 2023
9c7c4d3
update docs for rpo
masud99r Jan 3, 2023
f4a9f78
update docs for rpo
masud99r Jan 3, 2023
65fcd69
update for rpo
masud99r Jan 3, 2023
501e7e4
update docs for rpo
masud99r Jan 3, 2023
368f58a
update docs for rpo
masud99r Jan 3, 2023
e099ae2
update docs for rpo
masud99r Jan 3, 2023
553069a
update docs for rpo
masud99r Jan 3, 2023
7a45ab1
update with tracked exp
masud99r Jan 3, 2023
e13ff9d
update removing iframe
masud99r Jan 3, 2023
17a2406
Fix docs preview
vwxyzjn Jan 3, 2023
faf5ed3
add deprecation warning
masud99r Jan 4, 2023
d7fb931
update recommendation
vwxyzjn Jan 4, 2023
51f7971
Merge branch 'master' into master
vwxyzjn Jan 4, 2023
e09f691
quick change
vwxyzjn Jan 4, 2023
a0af2fc
small fix
vwxyzjn Jan 4, 2023
a953a26
fix typos
masud99r Jan 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion benchmark/ppo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,10 @@ OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--command "poetry run python cleanrl/gymnasium_support/ppo_continuous_action.py --cuda False --track" \
--num-seeds 3 \
--workers 9


poetry install --with mujoco,dm_control
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids dm_control/acrobot-swingup-v0 dm_control/acrobot-swingup_sparse-v0 dm_control/ball_in_cup-catch-v0 dm_control/cartpole-balance-v0 dm_control/cartpole-balance_sparse-v0 dm_control/cartpole-swingup-v0 dm_control/cartpole-swingup_sparse-v0 dm_control/cartpole-two_poles-v0 dm_control/cartpole-three_poles-v0 dm_control/cheetah-run-v0 dm_control/dog-stand-v0 dm_control/dog-walk-v0 dm_control/dog-trot-v0 dm_control/dog-run-v0 dm_control/dog-fetch-v0 dm_control/finger-spin-v0 dm_control/finger-turn_easy-v0 dm_control/finger-turn_hard-v0 dm_control/fish-upright-v0 dm_control/fish-swim-v0 dm_control/hopper-stand-v0 dm_control/hopper-hop-v0 dm_control/humanoid-stand-v0 dm_control/humanoid-walk-v0 dm_control/humanoid-run-v0 dm_control/humanoid-run_pure_state-v0 dm_control/humanoid_CMU-stand-v0 dm_control/humanoid_CMU-run-v0 dm_control/lqr-lqr_2_1-v0 dm_control/lqr-lqr_6_2-v0 dm_control/manipulator-bring_ball-v0 dm_control/manipulator-bring_peg-v0 dm_control/manipulator-insert_ball-v0 dm_control/manipulator-insert_peg-v0 dm_control/pendulum-swingup-v0 dm_control/point_mass-easy-v0 dm_control/point_mass-hard-v0 dm_control/quadruped-walk-v0 dm_control/quadruped-run-v0 dm_control/quadruped-escape-v0 dm_control/quadruped-fetch-v0 dm_control/reacher-easy-v0 dm_control/reacher-hard-v0 dm_control/stacker-stack_2-v0 dm_control/stacker-stack_4-v0 dm_control/swimmer-swimmer6-v0 dm_control/swimmer-swimmer15-v0 dm_control/walker-stand-v0 dm_control/walker-walk-v0 dm_control/walker-run-v0 \
--command "poetry run python cleanrl/ppo_continuous_action.py --exp-name ppo_continuous_action_8M --total-timesteps 8000000 --cuda False --track" \
--num-seeds 10 \
--workers 1
43 changes: 43 additions & 0 deletions benchmark/rpo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
poetry install --with mujoco,dm_control
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids dm_control/acrobot-swingup-v0 dm_control/acrobot-swingup_sparse-v0 dm_control/ball_in_cup-catch-v0 dm_control/cartpole-balance-v0 dm_control/cartpole-balance_sparse-v0 dm_control/cartpole-swingup-v0 dm_control/cartpole-swingup_sparse-v0 dm_control/cartpole-two_poles-v0 dm_control/cartpole-three_poles-v0 dm_control/cheetah-run-v0 dm_control/dog-stand-v0 dm_control/dog-walk-v0 dm_control/dog-trot-v0 dm_control/dog-run-v0 dm_control/dog-fetch-v0 dm_control/finger-spin-v0 dm_control/finger-turn_easy-v0 dm_control/finger-turn_hard-v0 dm_control/fish-upright-v0 dm_control/fish-swim-v0 dm_control/hopper-stand-v0 dm_control/hopper-hop-v0 dm_control/humanoid-stand-v0 dm_control/humanoid-walk-v0 dm_control/humanoid-run-v0 dm_control/humanoid-run_pure_state-v0 dm_control/humanoid_CMU-stand-v0 dm_control/humanoid_CMU-run-v0 dm_control/lqr-lqr_2_1-v0 dm_control/lqr-lqr_6_2-v0 dm_control/manipulator-bring_ball-v0 dm_control/manipulator-bring_peg-v0 dm_control/manipulator-insert_ball-v0 dm_control/manipulator-insert_peg-v0 dm_control/pendulum-swingup-v0 dm_control/point_mass-easy-v0 dm_control/point_mass-hard-v0 dm_control/quadruped-walk-v0 dm_control/quadruped-run-v0 dm_control/quadruped-escape-v0 dm_control/quadruped-fetch-v0 dm_control/reacher-easy-v0 dm_control/reacher-hard-v0 dm_control/stacker-stack_2-v0 dm_control/stacker-stack_4-v0 dm_control/swimmer-swimmer6-v0 dm_control/swimmer-swimmer15-v0 dm_control/walker-stand-v0 dm_control/walker-walk-v0 dm_control/walker-run-v0 \
--command "poetry run python cleanrl/rpo_continuous_action.py --cuda False --track" \
--num-seeds 10 \
--workers 1

poetry run pip install box2d-py==2.3.5
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids Pendulum-v1 BipedalWalker-v3 \
--command "poetry run python cleanrl/rpo_continuous_action.py --cuda False --track --capture-video" \
--num-seeds 1 \
--workers 1

poetry install --with mujoco
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids HumanoidStandup-v4 Humanoid-v4 InvertedPendulum-v4 Walker2d-v4 \
--command "poetry run python cleanrl/rpo_continuous_action.py --cuda False --track --capture-video" \
--num-seeds 10 \
--workers 1

poetry install --with mujoco
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids HumanoidStandup-v2 Humanoid-v2 InvertedPendulum-v2 Walker2d-v2 \
--command "poetry run python cleanrl/rpo_continuous_action.py --cuda False --track --capture-video" \
--num-seeds 10 \
--workers 1

poetry install --with mujoco
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids Ant-v4 InvertedDoublePendulum-v4 Reacher-v4 Pusher-v4 Hopper-v4 HalfCheetah-v4 Swimmer-v4 \
--command "poetry run python cleanrl/rpo_continuous_action.py --rpo-alpha 0.01 --cuda False --track --capture-video" \
--num-seeds 10 \
--workers 1

poetry install --with mujoco
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \
--env-ids Ant-v2 InvertedDoublePendulum-v2 Reacher-v2 Pusher-v2 Hopper-v2 HalfCheetah-v2 Swimmer-v2 \
--command "poetry run python cleanrl/rpo_continuous_action.py --rpo-alpha 0.01 --cuda False --track --capture-video" \
--num-seeds 10 \
--workers 1


Loading