#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.

Stars
14.1k
License
MIT
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 35 weeks+1,230
25 Mar 2026: 12,843 stars1 Apr 2026: 12,897 stars8 Apr 2026: 12,940 stars15 Apr 2026: 12,989 stars22 Apr 2026: 13,043 stars29 Apr 2026: 13,085 stars6 May 2026: 13,118 stars13 May 2026: 13,163 stars20 May 2026: 13,207 stars27 May 2026: 13,248 stars3 Jun 2026: 13,294 stars10 Jun 2026: 13,335 stars17 Jun 2026: 13,372 stars24 Jun 2026: 13,409 stars1 Jul 2026: 13,448 stars8 Jul 2026: 13,476 stars15 Jul 2026: 13,507 stars22 Jul 2026: 13,541 stars29 Jul 2026: 13,574 stars5 Aug 2026: 13,611 stars12 Aug 2026: 13,636 stars19 Aug 2026: 13,664 stars26 Aug 2026: 13,689 stars2 Sept 2026: 13,721 stars9 Sept 2026: 13,745 stars16 Sept 2026: 13,788 stars23 Sept 2026: 13,826 stars30 Sept 2026: 13,848 stars7 Oct 2026: 13,865 stars14 Oct 2026: 13,892 stars21 Oct 2026: 13,918 stars28 Oct 2026: 13,950 stars4 Nov 2026: 13,973 stars11 Nov 2026: 14,019 stars18 Nov 2026: 14,048 stars25 Nov 2026: 14,073 stars

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

  1. v2.9.0 ↗ (opens in a new tab)BreakingSecurity fix

    “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”

  2. “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
Also in ML frameworks and libraries
RankProjectScore
#113category_encodersscikit-learn transformers that encode categorical columns as numeric features2.5k starsBSD-3-Clause71 out of 100
#114qlibPython platform for ML-based quantitative investment research and backtesting Live demo ↗ (opens in a new tab)50.7k stars+955 (+1.9%) in 30 daysMIT70 out of 100
#116tsfreshPython library that extracts and filters features from time series Live demo ↗ (opens in a new tab)9.5k starsMIT70 out of 100
#117djlEngine-agnostic Java framework for training and running deep learning models4.9k starsApache-2.070 out of 100
#118physicsnemoPyTorch framework for training physics and scientific ML models3.5k stars+88 (+2.6%) in 30 daysApache-2.070 out of 100