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:
| Step | What you do and say | Minutes |
|---|---|---|
| 1 | Read the whole file out loud: each part, every shape, every constant and its reason. Note what looks off, and change nothing. | 5 |
| 2 | Run it as given: a training run, then a generation past block_size. Write down every symptom. | 3 |
| 3 | The step-0 loss through their own get_batch, against . Say what the gap means. | 4 |
| 4 | The 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 |
| 5 | The random-token floor and one overfit batch. Then the end-to-end test and the generation check, past block_size. | 7 |
| 6 | Say which check caught each bug, and where each one would have shown. | 3 |
| 7 | The 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
A bug in how generate crops its window. Would a training curve have shown it?
Pick an answer above to see the rest