Glossary · Memory, precision and compute
BF16 (bfloat16)
Also: bfloat16FP16half precisiontorch_dtype
Read it at the depth you need: one sentence · a paragraph · the math · in the models here
1In one sentence
A 16-bit floating-point format with FP32's range and less precision: the format most models are trained and released in, at 2 bytes per parameter.
2In a paragraph
BF16 keeps the 8 exponent bits of a 32-bit float and cuts the fraction to 7 bits. It can hold numbers as large and as small as FP32 can, just less exactly, which suits neural networks: they tolerate rounding but not overflow. FP16, the other half-precision format, has more precision but a much smaller range, and needs loss scaling to train. Nearly every checkpoint on Hugging Face is BF16 (torch_dtype in the config), so "weights in BF16" means parameters × 2 bytes.
3The math, shapes and parameters
BF16: 1 sign + 8 exponent + 7 fraction bits FP16: 1 + 5 + 10 FP32: 1 + 8 + 23
BF16's largest value is about 3.4 × 1038 (like FP32) and its precision about 3 significant digits; FP16 tops out at 65,504. Converting FP32 to BF16 is just dropping the low 16 bits (with rounding).
4In the 96 models on this site
As released, by torch_dtype or quantization method: bfloat16 65, – 16, fp8 (quantized release) 7, float32 4, mxfp4 (quantized release) 2, float16 1, bitsandbytes (quantized release) 1.