nowfound

Life & fun · September 20, 2024

LeanRL: Fast PyTorch RL with Torch.compile and CUDA Graphs

We're excited to announce that we've open-sourced LeanRL, a lightweight PyTorch reinforcement learning library that provides recipes for fast RL training using torch.compile and CUDA graphs. By leveraging these tools, we've achieved significant speed-ups compared to the original CleanRL implementations - up to 6x faster! Reinforcement learning is notoriously CPU-bound due to the high frequency of small CPU operations. PyTorch's powerful compiler can help alleviate these issues, but comes with its own costs. LeanRL addresses this challenge by providing simple recipes to accelerate your…

LeanRL: Fast PyTorch RL with Torch.compile and CUDA Graphs launched on September 20, 2024 with 53 votes, #597 of 5,281 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 11% of September 2024

In plain words

LeanRL is a lightweight PyTorch reinforcement learning library offering recipes for accelerated RL training using torch.compile and CUDA graphs. It addresses the CPU bottleneck common in reinforcement learning by providing simple optimization techniques that achieve significant speedups—up to 6.8x for PPO on Atari, 5.7x for SAC, and 3.4x for TD3. Designed for researchers and practitioners, LeanRL provides single-file algorithm implementations with minimal dependencies, enabling faster experimentation and training loop optimization.

written from the facts on this page · September 2026

From the sources

LeanRL is a fork of CleanRL, where selected PyTorch scripts optimized for performance using compile and cudagraphs. - meta-pytorch/LeanRL

In the maker’s words, at launch

We're excited to announce that we've open-sourced LeanRL, a lightweight PyTorch reinforcement learning library that provides recipes for fast RL training using torch.compile and CUDA graphs. By leveraging these tools, we've achieved significant speed-ups compared to the original CleanRL implementations - up to 6x…

Does a similar job

all alternatives →
  • Forge AgentJan 2026 · rightnowai.co · ▲113

    Swarm Agents That Turn Slow PyTorch Into Fast GPU Kernels

  • Terminal-Bench-RL: Training long-horizon terminal agents with RL2025 · github.com · ▲125

    After training calculator agent via RL, I really wanted to go bigger! So I built RL infrastructure for training long-horizon terminal/coding agents that scales from 2x A100s to 32x H100s (~$1M worth of compute!) Without any training, my 32B agent hit #19 on Terminal-Bench leaderboard, beating Stanford's Terminus-Qwen3-235B-A22! With training... well, too expensive, but I bet the results would be good! *What I did*: - Created a Claude Code-inspired agent (system msg + tools) - Built Docker-isolated GRPO training where each rollout gets its own container - Developed a multi-agent…

  • Rlpyt – Modular, Optimized Deep Reinforcement Learning in PyTorch2019 · github.com · ▲7

    Reinforcement Learning in PyTorch. Contribute to astooke/rlpyt development by creating an account on GitHub.

  • Supercharging RL with Hyper-Efficient Online Opt, +165% in 2h, $102025 · arc.computer · ▲32

    Arc enables continual learning for agents to adapt, learn, and transfer knowledge in live environments. Open-source SDK for building agents that learn from experience and improve over time.

  • I RL-trained an agent that trains models with RL (for ~$1.3k)Jul 2026 · github.com · ▲107

    RL-training an AI agent to RL-train AI agents. Contribute to Danau5tin/ai-trains-ai development by creating an account on GitHub.

  • Zipslicer, a library for loading LLM checkpoints on consumer hardware2023 · github.com · ▲38

    This is a low-level opensource library I developed for my own use and decided to share, as it makes it possible to process large checkpoints of neural networks without renting high-RAM instances, on a regular PC. It replaces torch.load() with a custom function that produces a dictionary that materializes tensors on the fly. Compared to other solutions it doesn't require sharding or re-encoding checkpoints and uses them completely as-is. It is a foundation to make it possible to run inference and compress language models and other large models one layer at a time - in principle, even one…

More life & fun this month

the category →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, September 2024

the whole month →
  • Wispr Flow▲2,732

    Speak naturally, write perfectly & 3x faster in every app

    AI · 2024 · wisprflow.ai

  • Pathway▲1,335

    Get user insights 10x faster

    Work · 2024 · wynde.io

  • Personalized AI daily planning that suits your life

    AI · 2024 · beforesunset.ai

  • Osmos▲1,194

    Match with like-minded professionals for 1:1 conversations

    Growth · 2024

  • Carrot Care▲1,168

    Understand & optimise your bloodwork

    Life & fun · 2024 · carrotcare.health

  • Polar▲1,167

    An open source monetization platform for developers

    Dev tools · 2024 · polar.sh