Skip to content

Commit

Permalink
Update SB3 and PyTorch versions (#464)
Browse files Browse the repository at this point in the history
* Update SB3 and PyTorch versions

* Add upper bound for numpy

* Use patched version of rliable

* Update version
  • Loading branch information
araffin committed Jun 29, 2024
1 parent 27e081e commit e1a40be
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
AutoROM --accept-license --source-file Roms.tar.gz
# cpu version of pytorch - faster to download
pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
# Use headless version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trained_agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
AutoROM --accept-license --source-file Roms.tar.gz
# cpu version of pytorch - faster to download
pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
# Use headless version
pip install opencv-python-headless
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## Release 2.4.0a0 (WIP)
## Release 2.4.0a4 (WIP)

### Breaking Changes
- Updated defaults hyperparameters for TQC/SAC for Swimmer-v4 (decrease gamma for more consistent results) (@JacobHA) [W&B report](https://wandb.ai/openrlbenchmark/sbx/reports/SAC-MuJoCo-Swimmer-v4--Vmlldzo3NzM5OTk2)
- Upgraded to SB3 >= 2.4.0

### New Features

Expand All @@ -10,7 +11,7 @@
### Documentation

### Other

- Updated PyTorch version to 2.3.1 in the CI

## Release 2.3.0 (2024-03-31)

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lint:
# see https://www.flake8rules.com/
ruff check ${LINT_PATHS} --select=E9,F63,F7,F82 --output-format=full
# exit-zero treats all errors as warnings.
ruff check ${LINT_PATHS} --exit-zero
ruff check ${LINT_PATHS} --exit-zero --output-format=concise

format:
# Sort imports
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gym==0.26.2
stable-baselines3[extra_no_roms,tests,docs]>=2.3.0,<3.0
stable-baselines3[extra_no_roms,tests,docs]>=2.4.0a0,<3.0
box2d-py==2.3.8
pybullet_envs_gymnasium>=0.4.0
# minigrid
Expand Down
2 changes: 1 addition & 1 deletion rl_zoo3/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.0a0
2.4.0a4
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
See https://github.com/DLR-RM/rl-baselines3-zoo
"""
install_requires = [
"sb3_contrib>=2.3.0,<3.0",
"sb3_contrib>=2.4.0a4,<3.0",
"gymnasium~=0.29.1",
"huggingface_sb3>=3.0,<4.0",
"tqdm",
Expand All @@ -24,7 +24,8 @@
"pyyaml>=5.1",
"pytablewriter~=1.2",
]
plots_requires = ["seaborn", "rliable>=1.0.5", "scipy~=1.10"]
# TODO(antonin): update to rliable>=1.1.0 once PR is merged and released
plots_requires = ["seaborn", "rliable @ git+https://github.com/araffin/rliable@patch-1", "scipy~=1.10"]
test_requires = [
# for MuJoCo envs v4:
"mujoco~=2.3",
Expand Down

0 comments on commit e1a40be

Please sign in to comment.