Skip to content

Commit ee8a77d

Browse files
authored
Release v2.5.0 (#2074)
* Update Dockerfile * Release v2.5.0 * Fix docker GPU parent * Fix changelog
1 parent f8ea299 commit ee8a77d

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
ARG PARENT_IMAGE
22
FROM $PARENT_IMAGE
33
ARG PYTORCH_DEPS=cpuonly
4-
ARG PYTHON_VERSION=3.10
4+
ARG PYTHON_VERSION=3.12
55
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found)
66

77
# Install micromamba env and dependencies
88
RUN micromamba install -n base -y python=$PYTHON_VERSION \
99
pytorch $PYTORCH_DEPS -c conda-forge -c pytorch -c nvidia && \
1010
micromamba clean --all --yes
1111

12-
ENV CODE_DIR /home/$MAMBA_USER
12+
ENV CODE_DIR=/home/$MAMBA_USER
1313

1414
# Copy setup file only to install dependencies
1515
COPY --chown=$MAMBA_USER:$MAMBA_USER ./setup.py ${CODE_DIR}/stable-baselines3/setup.py
1616
COPY --chown=$MAMBA_USER:$MAMBA_USER ./stable_baselines3/version.txt ${CODE_DIR}/stable-baselines3/stable_baselines3/version.txt
1717

1818
RUN cd ${CODE_DIR}/stable-baselines3 && \
19-
pip install -e .[extra,tests,docs] && \
19+
pip install uv && \
20+
uv pip install --system -e .[extra,tests,docs] && \
2021
# Use headless version for docker
21-
pip uninstall -y opencv-python && \
22-
pip install opencv-python-headless && \
23-
pip cache purge
22+
uv pip uninstall opencv-python && \
23+
uv pip install --system opencv-python-headless && \
24+
pip cache purge && \
25+
uv cache clean
2426

2527
CMD /bin/bash

docs/misc/changelog.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
Changelog
44
==========
55

6-
Release 2.5.0a1 (WIP)
6+
Release 2.5.0 (2025-01-27)
77
--------------------------
88

9+
**New algorithm: SimBa in SBX, NumPy 2.0 support**
10+
11+
912
Breaking Changes:
1013
^^^^^^^^^^^^^^^^^
1114
- Increased minimum required version of PyTorch to 2.3.0
@@ -27,12 +30,15 @@ Bug Fixes:
2730

2831
`SBX`_ (SB3 + Jax)
2932
^^^^^^^^^^^^^^^^^^
33+
- Added SimBa Policy: Simplicity Bias for Scaling Up Parameters in DRL
34+
- Added support for parameter resets
3035

3136
Deprecations:
3237
^^^^^^^^^^^^^
3338

3439
Others:
3540
^^^^^^^
41+
- Updated Dockerfile
3642

3743
Documentation:
3844
^^^^^^^^^^^^^^

scripts/build_docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
22

3-
CPU_PARENT=mambaorg/micromamba:1.5-jammy
4-
GPU_PARENT=mambaorg/micromamba:1.5-jammy-cuda-11.7.1
3+
CPU_PARENT=mambaorg/micromamba:2.0-ubuntu24.04
4+
GPU_PARENT=mambaorg/micromamba:2.0-cuda12.5.1-ubuntu24.04
55

66
TAG=stablebaselines/stable-baselines3
77
VERSION=$(cat ./stable_baselines3/version.txt)
88

99
if [[ ${USE_GPU} == "True" ]]; then
1010
PARENT=${GPU_PARENT}
11-
PYTORCH_DEPS="pytorch-cuda=11.7"
11+
PYTORCH_DEPS="pytorch-cuda=12.4"
1212
else
1313
PARENT=${CPU_PARENT}
1414
PYTORCH_DEPS="cpuonly"

stable_baselines3/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.0a1
1+
2.5.0

0 commit comments

Comments
 (0)