After SFT a model follows instructions, but its answers are not always the ones people prefer. Preference optimization aligns it using comparisons: RLHF trains a reward model and optimizes with PPO, while DPO reduces the pipeline to a classification-style loss on preference pairs.
Meta's Llama 3 paper (2024) gives the full recipe for three dense Transformers (8B, 70B, 405B): 15T tokens of pre-training, 128K context, 4D parallelism on 16K H100s, and six rounds of SFT, rejection sampling and DPO. This post recomputes its tables and flags numbers that do not add up.
DPO replaces 'reward model plus PPO' with one classification-style loss: given only preference pairs and a frozen reference model, it optimizes the same KL-constrained objective as RLHF. This post checks the derivation, runs a toy world for the frontier and training dynamics, and covers limits.