From a training corpus to a checkpoint
hard 6 minLanguage-model pretraining repeatedly predicts held-out target tokens from their prefixes.
Where it shows up
The same pattern appears across everyday software.
Learn from a missed next token
Two real target tokens remain after padding positions are excluded. The dataset manifest fixes the sampling mix. Compute target loss and differentiate through the model. Inspect the mask before interpreting a strangely low loss. Update weights and the schedule once per effective batch. Persist the step and optimizer state. Evaluate on untouched data under the same masking rule. Record both training and validation loss against tokens processed.