24/30
Part 5 of 6 · Generation, and the whole roundLearn and do

A worked example: the round in 45 minutes

The round, minute by minute

Here is the whole round on the practice file, with what to do and say at each step, and how long each one takes:

StepWhat you do and sayMinutes
1Read the whole file out loud: each part, every shape, every constant and its reason. Note what looks off, and change nothing.5
2Run it as given: a training run, then a generation past block_size. Write down every symptom.3
3The step-0 loss through their own get_batch, against ln⁡V\ln V. Say what the gap means.4
4The checks that need no training: causality, positions, targets, shapes and the twin. For each failure, say the hypothesis, change one line and rerun them all.13
5The random-token floor and one overfit batch. Then the end-to-end test and the generation check, past block_size.7
6Say which check caught each bug, and where each one would have shown.3
7The KV cache: one forward path, positions from the cache, a restart when the window fills, and the two comparisons.10

Close by saying where each bug would have shown

Predict

A bug in how generate crops its window. Would a training curve have shown it?

Pick an answer above to see the rest