F5
Post-training & Alignment
Supervised fine-tuning, reward models, RLHF and DPO, reinforcement learning with verifiable rewards, LoRA and QLoRA, and when to fine-tune at all.
Guides
Supervised fine-tuning
How a base model becomes an assistant: chat templates, loss masking, data quality over quantity, packing, hyperparameters, forgetting, and where SFT sits in the post-training pipeline.
12 min 02Reward models, RLHF and DPO
The Bradley–Terry reward model, the KL-regularized RLHF objective and PPO, deriving DPO from the optimal policy, its variants, and online versus offline preference learning.
15 min 03Reinforcement learning for reasoning
Reinforcement learning with verifiable rewards, GRPO's group-relative advantages, reward hacking and length effects, test-time compute, and distilling reasoning into smaller models.
13 min 04LoRA, QLoRA and parameter-efficient fine-tuning
The low-rank update and its initialization and scaling, parameter and memory arithmetic, which modules to adapt, QLoRA's 4-bit base, and serving many adapters.
11 minInterview questions
30-second answer plus a full 40-minute walkthrough for each.