#7474th of 75 in ML frameworks and libraries

cleanrl

Single-file PyTorch and JAX implementations of deep RL algorithms

Stars
10.6k
License
custom license
Last commit
Apr 2026
Last release
Nov 2022
Language
Python
Stars, last 29 weeks+1,216
31 Mar 2026: 9,368 stars7 Apr 2026: 9,428 stars14 Apr 2026: 9,493 stars21 Apr 2026: 9,545 stars28 Apr 2026: 9,579 stars5 May 2026: 9,617 stars12 May 2026: 9,673 stars19 May 2026: 9,730 stars26 May 2026: 9,795 stars2 Jun 2026: 9,826 stars9 Jun 2026: 9,879 stars16 Jun 2026: 9,917 stars23 Jun 2026: 9,956 stars30 Jun 2026: 9,999 stars7 Jul 2026: 10,039 stars14 Jul 2026: 10,067 stars21 Jul 2026: 10,098 stars28 Jul 2026: 10,136 stars4 Aug 2026: 10,177 stars11 Aug 2026: 10,216 stars18 Aug 2026: 10,260 stars25 Aug 2026: 10,300 stars1 Sept 2026: 10,330 stars8 Sept 2026: 10,360 stars15 Sept 2026: 10,392 stars22 Sept 2026: 10,431 stars29 Sept 2026: 10,463 stars6 Oct 2026: 10,493 stars13 Oct 2026: 10,546 stars20 Oct 2026: 10,584 stars

9,368 on 31 Mar 202610,584 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

CleanRL provides standalone training scripts for PPO, DQN, C51, SAC, DDPG, TD3, PPG, RND and Qdagger, each holding all implementation details in one file (ppo_atari.py is about 340 lines). Scripts log to TensorBoard and optionally Weights and Biases, support seeding and gameplay video capture, and can run on AWS Batch. The README states it is not a modular library and is not meant to be imported.

Who it is for: RL researchers and students who want readable reference implementations

Strengths

  • Each algorithm variant is one self-contained file, easy to read and modify
  • Benchmarked on 7+ algorithms and 34+ games with public W&B reports
  • TensorBoard, W&B tracking, seeding and video capture built into the scripts
  • Includes JAX variants and envpool-based Atari scripts for faster training

Weaknesses

  • Not importable as a library; code is duplicated across files by design
  • README states Python >=3.7.1,<3.11
  • Last release is 2022-11-14; gymnasium migration noted as in progress
  • License detected as NOASSERTION while README badge says MIT

What it needs

  • GPU optional
  • Docker
  • Needs PyTorch, JAX, Gymnasium, TensorBoard, Weights and Biases, uv, envpool, AWS Batch
  • Models: PPO, DQN, C51, SAC, DDPG

Also in ML frameworks and libraries

See all 75
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks167.9k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.9k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.7k starsAGPL-3.092 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.091 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.3k starsMIT90 out of 100