A visual introduction to reinforcement learning for LLMs

Rollouts, explained.

From a generated answer to a learning signal. Six short chapters, one running example, and a lab you can reason through.

Start reading →

Start with prompts, tokens, and an average. No prior reinforcement learning needed. The lab uses an explicitly simplified toy—not a real model or trainer.