How models are trained and optimized: pre-training, fine-tuning, RLHF and its successors, plus the efficiency techniques — LoRA, quantization, distillation — that make models practical.