Module 2 · How models are trained · Lesson 4
Pretraining and scaling laws
How one objective, predicting the next token over trillions of tokens of text, produces a base model, and how scaling laws decide model size, data and compute.
By the end of this lesson you can
- Compute the cross-entropy loss for a next-token prediction and explain why one sequence yields many training examples
- Describe the main stages of a pretraining data pipeline and how they shape what a model knows
- Estimate training compute with C ≈ 6ND and convert it into GPU-hours
- Explain the Kaplan and Chinchilla scaling results and why modern small models are deliberately "over-trained"
- Predict how a base model responds to a prompt, and why it is not yet an assistant