179 questions
No questions match those filters.
← All questions
Training & Fine-tuningMedium· Numerical Precision· Training Stability
Why does production LLM training use BF16 instead of FP16?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansFP16 uses a 5-bit exponent, which restricts the maximum representable value to 65,504. In large-scale LLM training, gradient norms frequently exceed this limit, leading to overflow and training instability unless complex loss scaling techniques are applied. BF16 uses an 8-bit exponent, matching the dynamic range of FP32. This eliminates the risk of overflow without requiring loss scaling, while the reduced mantissa precision is empirically sufficient for weights, activations, and gradients in LLM training.