Loading lesson…
Level 1 · Apprentice0 XP
AdamW, learning-rate warmup and decay, gradient clipping, evaluation and checkpoints.
Step 1 / 6
ProblemA first training run often shows loss falling, then a sudden spike to NaN. Usually the learning rate is too high at the start, or one batch produced a huge gradient.
← → step
Before this: The full GPT model
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Train tinygpt on Shakespeare. Record train and validation loss every 500 steps, try two learning rates (3e-4 and 1e-3) and two dropout values (0.0 and 0.2), and write down which combination gives the lowest validation loss.