# FP16

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

## What is FP16?

**In one sentence:** FP16 is a 16-bit floating point format that uses half the memory of FP32.

It stores each number in 2 bytes, so models are half the size and run faster on GPUs. But FP16 has a smaller range, so very big or very small numbers can overflow or vanish, which can make training unstable.

![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 + 5 exponent + 10 mantissa bits) — cuts weight memory in half vs. FP32.

## What is an example of FP16?

A 7B model in FP16 needs about 14 GB of memory.

## Why does FP16 matter?

FP16 helped make big models practical on GPUs.

## FP16 vs. BF16

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

## Related Concepts

- [FP32](https://getaimath.com/dictionary/fp32/): FP32 is a 32-bit floating point number format that stores numbers with high precision.
- [BF16](https://getaimath.com/dictionary/bf16/): BF16, or bfloat16, is a 16-bit number format that keeps the wide range of FP32 but with less precision.
- [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.
- [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.
- [Checkpoint](https://getaimath.com/dictionary/checkpoint/): A checkpoint is a saved copy of a model's weights, and often its training state, at a particular moment.
- [INT8](https://getaimath.com/dictionary/int8/): INT8 is an 8-bit whole-number format often used to store quantized model weights.

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