# NanoRL – RL training for LLMs in ~1,800 lines

The smallest async RL trainer I could write: one loop that runs REINFORCE on CartPole on a laptop and async GRPO on a cluster (e.g. 8xH100 trainer, 8 vLLM workers, ran as a [SkyPilot job group](https://docs.skypilot.ai/en/latest/examples/job-groups.html) on k8s ). All without Ray or TRL or DeepSpee…

- **Page:** https://magpie.gallery/i/nanorl-rl-training-for-llms-in-1-800-lines-3wyx
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** linux
- **Tags:** reinforcement-learni, llm, training, grpo

## Source

Web · alex000kim: NanoRL – RL training for LLMs in ~1,800 lines

- **Original:** https://news.ycombinator.com/item?id=49286216

> The smallest async RL trainer I could write: one loop that runs REINFORCE on CartPole on a laptop and async GRPO on a cluster (e.g. 8xH100 trainer, 8 vLLM workers, ran as a [SkyPilot job group](https://docs.skypilot.ai/en/latest/examples/job-groups.html) on k8s ). All without Ray or TRL or DeepSpeed etc., workers talk to the trainer over stdlib HTTP. https://github.com/alex000kim/nanoRL

## GitHub projects

- https://github.com/alex000kim/nanoRL

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
