IT lexicon › AI & ML › BF16 (bfloat16)

BF16 (bfloat16)

AI & ML På svenska → Updated: 2026-05-23

16-bit floating-point format with 8 exponent bits (the same range as FP32) but only 7 mantissa bits — the sweet spot for ML training.

Google Brain, 2018 (hence "brain float"). The difference from IEEE FP16: BF16 has the same dynamic range as FP32, so loss scaling and NaN hunts disappear. The mantissa is shorter → more precision loss per op, but negligible in practice for deep learning.

Default tensor format on TPU since v2, Nvidia Ampere (A100) onward, AMD MI200+, ARM Neoverse. Default in mixed-precision training since ~2021. FP8 is the Hopper-era successor, but BF16 remains the base for weights and gradients in most open models.

← Back to the lexicon