Skip to main content

03. Training & Adaptation

Pre-training, fine-tuning, LoRA/QLoRA/PEFT, RLHF/DPO, distillation, synthetic data, quantization, and RLVR.

📄️Training Reasoning Models: RLVR and GRPO

The frontier reasoning models (OpenAI's o-series, DeepSeek-R1, Qwen's thinking models) are trained with a recipe distinct from the RLHF and DPO covered in RLHF and DPO: reinforcement learning with verifiable rewards (RLVR). Take a capable base model, have it generate long chains of thought on problems with checkable answers (math, code, logic), and reward correctness directly with a programmatic verifier instead of a learned reward model. This chapter covers RLVR, the GRPO algorithm DeepSeek made popular, the reward-design failure modes, the live debate over what RL actually adds, and the cheaper distillation path most teams should take first.