#115115th of 433 in ML frameworks and libraries
stable-baselines3
PyTorch implementations of reinforcement learning algorithms with a scikit-learn-like API
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts stable-baselines3 on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.stable-baselines3 is on your watch list. Its new releases and problems show there.
- Stars
- 14.1k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
12,843 on 25 Mar 202614,073 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Stable Baselines3 provides tested PyTorch implementations of RL algorithms including PPO, A2C, DQN, DDPG, SAC, TD3 and HER, driven through a sklearn-style `learn()` and `predict()` interface. It works with Gymnasium environments, supports Dict observation spaces, custom policies and callbacks, and logs to TensorBoard. Development is limited to maintenance; newer algorithms live in SB3 Contrib and a Jax port, SBX.
Who it is for: RL researchers and engineers needing reliable baseline algorithm implementations
Strengths
- Consistent sklearn-like API across algorithms; a PPO run is a one-line call
- Supports Gymnasium envs, Dict observations, custom policies, callbacks and TensorBoard
- Type hints, high test coverage, and benchmark results documented per algorithm
- Companion RL Zoo provides training scripts and tuned hyperparameters
Weaknesses
- Assumes prior RL knowledge; README says not to use it without practice
- Maintenance mode only; no major new features planned for the core
- TRPO, QR-DQN, TQC, RecurrentPPO live in the separate SB3 Contrib repo
- No technical support or consulting offered by maintainers
What it needs
- GPU optional
- Docker
- Needs PyTorch >= 2.8, Gymnasium, Python 3.10+
- Models: PPO, A2C, DQN, DDPG, SAC
What changed
“Relaxed Gymnasium version range (from "gymnasium>=0.29.1,=0.29.1,<2.0")”
GHSA-887C-MR87-CXWP. “Raised torch minimum version from 2.3 to 2.8 to mitigate https://github.com/advisories/GHSA-887c-mr87-cxwp”
- v2.8.0 ↗ (opens in a new tab)Breaking
“Removed support for Python 3.9, please upgrade to Python >= 3.10”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #113 | category_encodersscikit-learn transformers that encode categorical columns as numeric features | 71 out of 100 |
| #114 | qlibPython platform for ML-based quantitative investment research and backtesting | 70 out of 100 |
| #116 | tsfreshPython library that extracts and filters features from time series | 70 out of 100 |
| #117 | djlEngine-agnostic Java framework for training and running deep learning models | 70 out of 100 |
| #118 | physicsnemoPyTorch framework for training physics and scientific ML models | 70 out of 100 |