LeanRL
github.com · Open source · Archived
Faster PyTorch reinforcement learning with compiled recipes
- AI & agents
- Open source
- Python
- Day-7 check
- Day-30 check
- pytorch
- reinforcement learning
- performance
- pytorch reinforcement learni
- torch compile rl
- cleanrl fork
- cuda graphs
- fast rl training
- Stars
- 703
- Forks
- 33
- Open issues
- 6
- Last commit
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
LeanRL is a lightweight PyTorch reinforcement learning library with recipes that use torch.compile and CUDA graphs. It is a fork of CleanRL with selected scripts tuned for speed, and the maker reports speed-ups of up to 6x, which suits researchers training RL agents on GPUs.
Positioned as an alternative to CleanRL.
Repository description on GitHub: “LeanRL is a fork of CleanRL, where selected PyTorch scripts optimized for performance using compile and cudagraphs.”
What it does
- Single-file PyTorch RL implementations tuned with torch.compile
- Uses CUDA graphs to reduce CPU overhead in training
- Forked from CleanRL with reported speed-ups up to 6x
Good for
- Train reinforcement learning agents faster on a GPU
- Learn which PyTorch 2 techniques speed up RL training
Suits: Researchers training reinforcement learning agents on GPUs.
Worth knowing: The speed-ups are the maker's reported figures, and only selected scripts are tuned.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw LeanRL on , when vmoens posted it to Show HN. GitHub listed no published releases for pytorch-labs/LeanRL when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 archived
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 53 points, 5 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 archived
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 53 points, 5 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: pytorch-labs/LeanRL
- Found: vmoens posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was LeanRL released?
- No dated release record is available. Kip found it on Show HN on 20 Sep 2024.
- Is LeanRL open source?
- Its source is public on GitHub at pytorch-labs/LeanRL; check the repository for licence terms.
- What does LeanRL run on?
- Library.
- Is LeanRL free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is LeanRL still maintained?
- No. The repository is archived (read-only).
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | pytorch-labs/LeanRL REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-41597676. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.