# Mixed Precision

- **Canonical URL:** https://getaimath.com/dictionary/mixed-precision/
- **Topics:** [Quantization & Model Compression](https://getaimath.com/dictionary/category/quantization-and-model-compression/)
- **Last updated:** 2026-11-25

## What is Mixed Precision?

**In one sentence:** Mixed precision uses different number formats for different parts of a model or task, to balance speed and accuracy.

Some calculations need high precision and others do not. In training, most math might use BF16 while sensitive parts use FP32. In quantized models, important layers might keep more bits than others.

![Quantization: Vacuum-Packing a Giant AI into a Carry-On Bag — Simple cartoon showing a huge 16 GB AI model with long fussy decimals (3.14159265) squeezed by a vacuum-seal press into a compact 4 GB model with rounded numbers (3.1) that fits on a laptop.](https://getaimath.com/diagrams/quantization-and-model-compression.png)
*Napkin Diagram (Quantization & Model Compression): By rounding long fussy decimals to neat short numbers, quantization shrinks a model about 4× with only a small loss in smarts.*

## What is an example of Mixed Precision?

Training a model with BF16 math but keeping a master copy of weights in FP32 is mixed precision.

## Why does Mixed Precision matter?

Mixed precision gets most of the speed of low precision with the safety of high precision.

## Related Concepts

- [Static Quantization](https://getaimath.com/dictionary/static-quantization/): Static quantization picks all the scaling settings ahead of time, using a sample of example data.
- [Full Precision](https://getaimath.com/dictionary/full-precision/): Full precision usually means storing model numbers in 32-bit floating point, FP32.
- [Dynamic Quantization](https://getaimath.com/dictionary/dynamic-quantization/): Dynamic quantization decides how to scale activations on the fly, for each input, while the model runs.
- [Half Precision](https://getaimath.com/dictionary/half-precision/): Half precision means storing numbers in 16 bits, like FP16 or BF16, half the size of FP32.
- [Activation Quantization](https://getaimath.com/dictionary/activation-quantization/): Activation quantization stores the temporary numbers that flow through a model while it runs in fewer bits.
- [Integer Quantization](https://getaimath.com/dictionary/integer-quantization/): Integer quantization converts model numbers into whole numbers, like INT8 or INT4, plus scale factors.

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