Skip to content

Commit 6f8728e

Browse files
committed
init
1 parent 17f4f87 commit 6f8728e

15 files changed

+82
-716
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ Prerequisites:
227227
- CPU: `pip3 install --upgrade --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu`
228228
- `pip install -r requirements/requirements.txt` for basic requirements, or another `.txt` file for specific applications.
229229

230+
231+
230232
Once the dependencies have been installed, run the scripts as follows
231233

232234
```bash

leanrl/ppo_atari_envpool_torchcompile.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# docs and experiment results can be found at https://docs.cleanrl.dev/rl-algorithms/ppo/#ppo_atari_envpoolpy
2+
import os
3+
4+
os.environ["TORCHDYNAMO_INLINE_INBUILT_NN_MODULES"] = "1"
5+
26
import os
37
import random
48
import time

leanrl/ppo_continuous_action_torchcompile.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# docs and experiment results can be found at https://docs.cleanrl.dev/rl-algorithms/ppo/#ppo_continuous_actionpy
2+
import os
3+
4+
os.environ["TORCHDYNAMO_INLINE_INBUILT_NN_MODULES"] = "1"
5+
26
import math
37
import os
48
import random

leanrl/sac_continuous_action_torchcompile.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# docs and experiment results can be found at https://docs.cleanrl.dev/rl-algorithms/sac/#sac_continuous_actionpy
2+
import os
3+
4+
os.environ["TORCHDYNAMO_INLINE_INBUILT_NN_MODULES"] = "1"
5+
26
import math
37
import os
48
import random

leanrl/td3_continuous_action_torchcompile.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# docs and experiment results can be found at https://docs.cleanrl.dev/rl-algorithms/td3/#td3_continuous_actionpy
2+
import os
3+
4+
os.environ["TORCHDYNAMO_INLINE_INBUILT_NN_MODULES"] = "1"
5+
26
import math
37
import os
48
import random

requirements/requirements-atari.txt

+11-65
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,15 @@
1-
absl-py==1.4.0 ; python_version >= "3.8" and python_version < "3.11"
2-
ale-py==0.8.1 ; python_version >= "3.8" and python_version < "3.11"
3-
appdirs==1.4.4 ; python_version >= "3.8" and python_version < "3.11"
4-
autorom-accept-rom-license==0.6.1 ; python_version >= "3.8" and python_version < "3.11"
5-
autorom[accept-rom-license]==0.4.2 ; python_version >= "3.8" and python_version < "3.11"
6-
cachetools==5.3.0 ; python_version >= "3.8" and python_version < "3.11"
7-
charset-normalizer==3.1.0 ; python_version >= "3.8" and python_version < "3.11"
8-
click==8.1.3 ; python_version >= "3.8" and python_version < "3.11"
9-
cloudpickle==2.2.1 ; python_version >= "3.8" and python_version < "3.11"
10-
colorama==0.4.4 ; python_version >= "3.8" and python_version < "3.11"
11-
commonmark==0.9.1 ; python_version >= "3.8" and python_version < "3.11"
12-
cycler==0.11.0 ; python_version >= "3.8" and python_version < "3.11"
13-
decorator==4.4.2 ; python_version >= "3.8" and python_version < "3.11"
14-
docker-pycreds==0.4.0 ; python_version >= "3.8" and python_version < "3.11"
15-
docstring-parser==0.15 ; python_version >= "3.8" and python_version < "3.11"
16-
farama-notifications==0.0.4 ; python_version >= "3.8" and python_version < "3.11"
17-
filelock==3.12.0 ; python_version >= "3.8" and python_version < "3.11"
18-
gitdb==4.0.10 ; python_version >= "3.8" and python_version < "3.11"
19-
google-auth-oauthlib==0.4.6 ; python_version >= "3.8" and python_version < "3.11"
20-
google-auth==2.18.0 ; python_version >= "3.8" and python_version < "3.11"
21-
gym-notices==0.0.8 ; python_version >= "3.8" and python_version < "3.11"
22-
gym==0.23.1 ; python_version >= "3.8" and python_version < "3.11"
23-
gymnasium==0.28.1 ; python_version >= "3.8" and python_version < "3.11"
24-
huggingface-hub==0.11.1 ; python_version >= "3.8" and python_version < "3.11"
25-
imageio-ffmpeg==0.3.0 ; python_version >= "3.8" and python_version < "3.11"
26-
imageio==2.28.1 ; python_version >= "3.8" and python_version < "3.11"
27-
importlib-metadata==5.2.0 ; python_version >= "3.8" and python_version < "3.10"
28-
importlib-resources==5.12.0 ; python_version >= "3.8" and python_version < "3.11"
1+
gym
2+
gymnasium[atari,accept-rom-license]
293
jax-jumpy==1.0.0 ; python_version >= "3.8" and python_version < "3.11"
30-
kiwisolver==1.4.4 ; python_version >= "3.8" and python_version < "3.11"
31-
markdown==3.3.7 ; python_version >= "3.8" and python_version < "3.11"
32-
markupsafe==2.1.2 ; python_version >= "3.8" and python_version < "3.11"
33-
matplotlib==3.5.3 ; python_version >= "3.8" and python_version < "3.11"
34-
moviepy==1.0.3 ; python_version >= "3.8" and python_version < "3.11"
35-
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.11"
36-
oauthlib==3.2.2 ; python_version >= "3.8" and python_version < "3.11"
37-
packaging==23.1 ; python_version >= "3.8" and python_version < "3.11"
38-
pandas==1.3.5 ; python_version >= "3.8" and python_version < "3.11"
39-
pathtools==0.1.2 ; python_version >= "3.8" and python_version < "3.11"
40-
proglog==0.1.10 ; python_version >= "3.8" and python_version < "3.11"
41-
protobuf==3.20.3 ; python_version < "3.11" and python_version >= "3.8"
42-
psutil==5.9.5 ; python_version >= "3.8" and python_version < "3.11"
43-
pyasn1-modules==0.3.0 ; python_version >= "3.8" and python_version < "3.11"
44-
pyasn1==0.5.0 ; python_version >= "3.8" and python_version < "3.11"
45-
pygame==2.1.0 ; python_version >= "3.8" and python_version < "3.11"
46-
pygments==2.15.1 ; python_version >= "3.8" and python_version < "3.11"
47-
pyparsing==3.0.9 ; python_version >= "3.8" and python_version < "3.11"
48-
python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "3.11"
49-
pytz==2023.3 ; python_version >= "3.8" and python_version < "3.11"
50-
pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "3.11"
51-
rich==11.2.0 ; python_version >= "3.8" and python_version < "3.11"
52-
rsa==4.7.2 ; python_version >= "3.8" and python_version < "3.11"
53-
setproctitle==1.3.2 ; python_version >= "3.8" and python_version < "3.11"
54-
shimmy==1.1.0 ; python_version >= "3.8" and python_version < "3.11"
55-
shtab==1.6.4 ; python_version >= "3.8" and python_version < "3.11"
56-
six==1.16.0 ; python_version >= "3.8" and python_version < "3.11"
57-
smmap==5.0.0 ; python_version >= "3.8" and python_version < "3.11"
58-
stable-baselines3==2.0.0 ; python_version >= "3.8" and python_version < "3.11"
59-
tenacity==8.2.3 ; python_version >= "3.8" and python_version < "3.11"
60-
tensorboard-data-server==0.6.1 ; python_version >= "3.8" and python_version < "3.11"
61-
tensorboard-plugin-wit==1.8.1 ; python_version >= "3.8" and python_version < "3.11"
62-
tensorboard==2.11.2 ; python_version >= "3.8" and python_version < "3.11"
4+
matplotlib
5+
moviepy
6+
numpy
7+
pandas
8+
protobuf
9+
pygame
10+
stable-baselines3
6311
tqdm
64-
typing-extensions==4.5.0 ; python_version >= "3.8" and python_version < "3.11"
65-
tyro==0.5.10 ; python_version >= "3.8" and python_version < "3.11"
66-
wandb==0.13.11 ; python_version >= "3.8" and python_version < "3.11"
67-
wheel==0.40.0 ; python_version >= "3.8" and python_version < "3.11"
12+
wandb
6813
torchrl-nightly
6914
tensordict-nightly
15+
tyro

requirements/requirements-dm_control.txt

-75
This file was deleted.

requirements/requirements-docs.txt

-82
This file was deleted.

0 commit comments

Comments
 (0)