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
Machine Learning
Machine Learning Engineer
AMD
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

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
numeric formats
mixed precision
FP8 scaling
training stability
matrix cores
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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 ...


Submit Your Answer
Markdown supported

Related Questions