F2
Pre-training & Optimization
The language-modelling objective, pre-training data, AdamW and learning-rate schedules, scaling laws, numerical precision and training stability.
Guides
The pre-training objective and data
Next-token prediction as maximum likelihood, cross-entropy, perplexity and bits per byte, sequence packing, and how web-scale data is filtered, deduplicated, decontaminated and mixed.
14 min 02Optimizers, learning rates and batch size
Adam and AdamW with equations, why decoupled weight decay, typical LLM hyperparameters, warmup, cosine and WSD schedules, batch size and the gradient noise scale, clipping and initialization.
15 min 03Scaling laws and compute-optimal training
Power-law scaling of loss, the parametric form L(N, D), the compute-optimal allocation (about 20 tokens per parameter), why Kaplan and Chinchilla disagreed, over-training for inference, and limits of scaling laws.
13 min 04Numerical precision and training stability
fp32, fp16, bf16 and fp8 formats, mixed-precision training with master weights and loss scaling, and how to detect and fix loss spikes and divergence at scale.
13 minInterview questions
30-second answer plus a full 40-minute walkthrough for each.