AI From Scratch/Phase 19/Lesson 44/~90 minutes

Cosine LR with Linear Warmup

BuildPythonNo prerequisites

The learning-rate schedule is the second most important decision after the loss function. AdamW with a cosine decay and a linear warmup is the modern default for language-model training because it lets the model see a small effective step...

Loading lesson page...