LLM Library
TrainingAnimated walkthrough
Post-Training: SFT, RLHF and DPO
Turning a base model into an assistant.
The idea
Supervised fine-tuning teaches the model to follow instructions from example conversations. Preference methods such as RLHF and DPO then push it toward answers people prefer.
Watch it work
The steps light up one at a time. Use the controls to pause or step through.
- 1Fine-tune on instruction and answer pairs
- 2Collect human or AI preference rankings
- 3Train with RLHF or DPO
- 4Evaluate for helpfulness and safety
1/4
Step by step
- 1Fine-tune on instruction and answer pairs
- 2Collect human or AI preference rankings
- 3Train with RLHF or DPO
- 4Evaluate for helpfulness and safety
Where it is used
All chat assistants.
Watch out for
Optimising for preferences can make models flattering or overly cautious.