Choosing BF16 or FP8 for Training on Instinct Accelerators
Last updated: November 29, 2026
Quick Overview
A team wants to move transformer training on MI300-class accelerators from FP32 to lower precision. Explain how BF16 and FP8 differ, what can break, and how you would make FP8 training stable.
AMD
November 29, 20260
0
0 solved
A team wants to move transformer training on MI300-class accelerators from FP32 to lower precision. Explain how BF16 and FP8 differ, what can break, and how you would make FP8 training stable.
An ML depth round in the style of AMD's AI framework and performance teams, which tune PyTorch and JAX on ROCm and hipBLASLt for low-precision matrix cores. The interviewer checks number format fluency, understanding of where precision loss hurts training, and practical techniques like loss scaling and per-tensor scaling.
What the Interviewer Expects
- Compare exponent and mantissa bits for FP32, FP16, BF16 and the two FP8 formats
- Explain dynamic range versus precision
- Identify sensitive ops: softmax, layer norm, reductions, optimizer state
- Describe master weights in FP32 and FP32 accumulation in matrix cores
- Explain per-tensor or block scaling for FP8 with amax history
- Propose how to validate convergence against a baseline
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why does BF16 rarely need loss scaling while FP16 does?
- Which FP8 format would you use for activations versus gradients, and why?
- How would you find which layer causes divergence after switching to FP8?
- How does lower precision change memory and communication cost in data parallel training?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
What model size and current baseline are we using, is the goal throughput, memory, or both, and what loss gap versus FP32 is acceptable? I would also ask whether the stack uses Transformer Engine styl...
Approach
Start with the formats. FP32 has 8 exponent and 23 mantissa bits. BF16 keeps 8 exponent bits but only 7 mantissa bits, so it has FP32's range with about 2 to 3 decimal digits. FP16 has 5 exponent and ...