# BF16

- **Canonical URL:** https://getaimath.com/dictionary/bf16/
- **Topics:** [Parameters, Weights & Model Size](https://getaimath.com/dictionary/category/parameters-weights-and-model-size/)
- **Last updated:** 2026-11-25

## What is BF16?

**In one sentence:** BF16, or bfloat16, is a 16-bit number format that keeps the wide range of FP32 but with less precision.

Google designed BF16 for AI. It uses the same number of exponent bits as FP32, so it rarely overflows, but fewer mantissa bits, so it is a little less precise. For neural networks, range turns out to matter more, so BF16 trains very stably.

![What "7B" or "70B Parameters" Means: Brain Size vs. Bag Size — Simple cartoon comparing 3 AI model sizes: Small (3B–8B parameters, fits on a phone or laptop), Medium (30B–70B, needs a strong desktop GPU), and Giant (400B+, lives in a massive data center).](https://getaimath.com/diagrams/parameters-weights-and-model-size.png)
*Napkin Diagram (Parameters, Weights & Model Size): Parameters are the brain cells of an AI model—more parameters mean more knowledge, but need a bigger computer to hold them.*

### Quick Math / Rule of Thumb

16 bits = 2 bytes per parameter (1 sign + 8 exponent + 7 mantissa bits) — same numeric range as FP32, half the memory.

## What is an example of BF16?

Most modern LLMs are trained and released in BF16.

## Why does BF16 matter?

BF16 is the standard format for training and running large models today.

## BF16 vs. FP16

Both use 16 bits (2 bytes) per number, but BF16 trades fractional precision bits for the wide exponent range of 32-bit floats—preventing overflow crashes during large-scale AI training.

| Dimension | BF16 | [FP16](https://getaimath.com/dictionary/fp16/) |
| --- | --- | --- |
| Bit layout | 1 sign + 8 exponent + 7 mantissa | 1 sign + 5 exponent + 10 mantissa |
| Max numeric range | Huge (~3.4 × 10³⁸, same range as FP32) | Narrow (~65,504 max—needs loss scaling) |
| Primary sweet spot | Default format for modern LLM training | Inference on older GPUs |

## Related Concepts

- [FP16](https://getaimath.com/dictionary/fp16/): FP16 is a 16-bit floating point format that uses half the memory of FP32.
- [FP8](https://getaimath.com/dictionary/fp8/): FP8 is an 8-bit floating point format that uses a quarter of the memory of FP32, used to speed up training and inference.
- [FP32](https://getaimath.com/dictionary/fp32/): FP32 is a 32-bit floating point number format that stores numbers with high precision.
- [INT8](https://getaimath.com/dictionary/int8/): INT8 is an 8-bit whole-number format often used to store quantized model weights.
- [Raw Model Weights](https://getaimath.com/dictionary/raw-model-weights/): Raw model weights are the original trained numbers of a model, usually stored at full or half precision, before any compression.
- [INT4](https://getaimath.com/dictionary/int4/): INT4 is a 4-bit whole-number format used to shrink models to about a quarter of their 16-bit size.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/bf16/)
