Follow two weather reports through one training update.
- Which position predicts the next word? After
rain, the target isstops, not another copy ofrain. Training has the rest of the report to check against; generation doesn't. - How many predictions fit in a pack? The same ten tokens give nine targets as a continuous stream, but only eight if the reports are independent. Which prediction disappears?
- How can one batch have two mean losses? The short report contributes two targets and the long one six. The mean is 1.25 per token, but 1.5 if each report gets an equal vote.
Writing your own loop? Follow the gradients through one parameter update. If you're choosing between more parameters and more training data, go straight to the compute budget.
7 core notes, about 49 min. 6 deep dives fold under the notes they extend.
Pretraining3 core · 2 deep
Follow two weather reports from next-token targets through document boundaries to the loss for one update.
- Language-model objectives, training, and generationAveraged per token, a 200-token answer weighs 10× a 20-token one; PPL and tokenizers6 min
- Pretraining: how does a pile of text become a model?A 50/30/20 mix reads code six times; packing needs both an attention and a loss mask6 min
- Multi-token prediction: what do the extra targets teach?How labels shift, training gains versus speedups, and one draft acceptance by hand5 min
- Pretraining: from data to a reliable updateTargets, loss masks and denominators on one GPU, then precision, memory and multi-GPU4 min
- Precision and memory: why can BF16 training still run out of memory?Weights are one of five items: 1B parameters need 16 GB of state before activations14 min
Scaling laws3 core · 2 deep
Splitting compute between size and data, training past Chinchilla, scaling LR and batch
- Scaling: work out the model, data and learning rate before a runA 64-H100, 4.6-day budget, three steps: model and data, inference, then LR and batch7 min
- Scaling: for a given compute budget, how big a model and how much dataAbout 9B parameters, 180B tokens for 10²² FLOPs: fitting small runs and extrapolating13 min
- Scaling: why today's models train far longer than ChinchillaWith 10¹² inference tokens the best model halves; about 4 repeats of data lose little11 min
- Scaling: how learning rate, batch size and schedule scale upA 4M-to-16M batch jump saves only 25% of steps; µP moves LR from width 512 to 409616 min
- Scaling: review questionsReview: where 6ND comes from, why Llama 3 8B saw 15T tokens, and µP across widths9 min
Data & feedback1 core · 2 deep
What a model learns from: data as supervision, and user feedback turned into targets
- Data and Feedback: What Is the Model Actually Learning From?Unshown jazz isn't disliked jazz: behavior versus intent, then feedback as targets4 min
- Why post-training keeps coming back to dataSame method, new lesson: dropping short answers cuts missing-evidence demos to 2.4%13 min
- From feedback to objectives: no click is not a dislikeTriple the clicks, yet 20% vs 60% once shown: when inverse propensity weighting helps8 min
No notes match.