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

Gradient Clipping and Mixed Precision

BuildPythonNo prerequisites

The optimizer and schedule from the previous lesson assume gradients are sane. They usually are not. A single bad batch can spike the gradient norm by three orders of magnitude. Mixed-precision training amplifies this by introducing FP16 o...

Loading lesson page...