Skip to content
inference.academy

glossary/precision/bf16

BF16

also bfloat16, brain floating point

A 16-bit float with the same 8-bit exponent as FP32 and only 7 bits of mantissa. It keeps FP32's range, so nothing overflows, and gives up precision, which transformers tolerate. It is the baseline precision for weights and the KV cache on this site: two bytes per parameter, two bytes per cached value. Every lower precision is measured as a fraction of it.


140 GB

For Llama 3 70B's weights at two bytes each, and 320 KiB of cache per token.


See it happen


Related