Why it matters
Mixed precision is baseline modern training. Understanding shapes design.
Advertisement
The architecture
fp16 or bf16 forward + backward.
fp32 master copy of weights.
Loss scaling (fp16 only).
Advertisement
How it works end to end
PyTorch: torch.cuda.amp autocast.
GradScaler for fp16 loss scaling.
bf16: no loss scaling.
Speed: 2-3x over fp32.