LLM Library
TrainingAnimated walkthrough
Reasoning Models and RL with Verifiable Rewards
Models trained to think before answering.
The idea
Reasoning models produce a long chain of thought before the final answer. They are improved with reinforcement learning on problems that have checkable answers, such as maths and code, rewarding correct results.
Watch it work
The steps light up one at a time. Use the controls to pause or step through.
- 1Give the model problems with verifiable answers
- 2Let it write a long reasoning trace
- 3Reward correct final answers
- 4Update the model so successful reasoning becomes more likely
1/4
Step by step
- 1Give the model problems with verifiable answers
- 2Let it write a long reasoning trace
- 3Reward correct final answers
- 4Update the model so successful reasoning becomes more likely
Where it is used
OpenAI o-series, DeepSeek-R1, Qwen3 thinking mode and others.
Watch out for
Long reasoning costs more tokens and time, so it is used only when needed.