Reinforcement learning for LLMs, agents, robots, and games: GRPO, durable agentic RL, harness evals and trace audits, LoRA ablation screens, humanoid locomotion, model-written rewards, and self-play.
Reinforcement learning
Reinforcement learning trains a policy from rewards instead of labels: the policy acts, a reward scores what it did, and an update moves the policy toward what scored well. The loop is the same everywhere, but where the time and the risk go is not. These tutorials cover very different shapes of it.
| Tutorial | Policy | What makes it hard | What Union contributes |
|---|---|---|---|
| RL for LLMs with GRPO and LoRA | An LLM, fine-tuned with a LoRA adapter | Generation, scoring, and training need different hardware in a tight loop | A warm pool of vLLM generators, a GPU trainer, and CPU reward workers, with checkpoints |
| Teach a humanoid to run | A Unitree G1 humanoid in MuJoCo | Hundreds of millions of simulation steps | 8,192 simulated robots on one GPU, a live video report, and a published policy |
| Reward design with Claude and sandboxes | PPO on MountainCar, with rewards written by Claude | Every candidate reward is untrusted code and a training run | A sandbox per training run, a warm CPU pool for the fan-out, and traced LLM calls |
| Self-play league for Connect Four | A Connect Four agent trained against its past selves | Measuring progress when the opponent keeps changing | A warm GPU learner, match fan-out on CPUs, Elo, and an app to play the champion |
| Durable agentic RL with SkyRL and Harbor | An LLM agent acting in a sandboxed world over many turns | Long, failure-prone trials and LLM judges that are expensive to re-run | Durable trials, a memoized judge, exactly-once training steps, and re-scoring by caching |
| Harness evals and trace audits for agentic RL | A tool-using agent before training, and published trajectories after it | Harness bugs move reward like training does, and traces are too many to read by hand | A versioned harness, a cached cell per (task, harness, model, pass), and re-labeling without re-downloading |
| Can a LoRA screen pick the right RL ablation? | Qwen3-0.6B trained with GRPO, as LoRA adapters and at full weight | Full-weight ablations are expensive, and a cheap screen is only useful if it ranks arms the same way | One durable action per arm on its own GPU, and a cached screen that runs only new arms |
RL for LLMs with GRPO and LoRA
Train a reasoning-style RL loop for an LLM with GRPO and LoRA, orchestrated by plain Flyte async tasks on a warm vLLM pool.
Teach a humanoid to run
Train a running gait for the Unitree G1 humanoid with Brax PPO over MuJoCo MJX, 8,192 simulated robots on one GPU, with a live video report and a published policy.
Reward design with Claude and sandboxes
An Eureka-style loop where Claude writes reward functions, every candidate trains a policy inside a sandbox, and the best one’s training statistics guide the next generation.
Self-play league for Connect Four
Train a Connect Four agent by self-play against a league of its past selves, rate every snapshot with Elo, and serve the champion as an app you can play against.
Durable agentic RL with SkyRL and Harbor
Make SkyRL/Harbor-style agentic RL rollouts durable — trials that survive driver crashes, judges that are never re-billed, and training steps that apply exactly once.
Harness evals and trace audits for agentic RL
Treat the agent harness as a versioned input, cache every eval cell, and mine published RL traces for failure modes before you train.
Can a LoRA screen pick the right RL ablation?
Train the same GRPO loss-aggregation arms as LoRA adapters and at full weight, one durable action per arm, and check whether the two rankings agree.
Related
- Reinforcement learning in the user guide: environments, rewards, rollouts, the training loop, and evaluation.