Pretraining → SFT → RLHF
Mapping the three stage lifecycle of building production Large Language Models from raw pretraining to alignment.
Building modern production Large Language Models involves three sequential training stages: Pretraining, Supervised Fine Tuning (SFT), and Reinforcement Learning from Human Feedback (RLHF / DPO). Pretraining consumes trillions of web text tokens via next token prediction to build raw world knowledge. SFT fine-tunes base models on high quality instruction prompt-response pairs to learn conversational formatting. RLHF / DPO aligns models with human preferences for helpfulness, honesty, and safety.