AI From Scratch/Phase 10/Lesson 08/~90 minutes

DPO: Direct Preference Optimization

BuildPython (with numpy)

RLHF works. It also requires training three models (SFT, reward model, policy), managing PPO's instability, and tuning a KL penalty. DPO asks: what if you could skip all of that? DPO directly optimizes the language model on preference pair...

Loading lesson page...