Glossary

What is Bfloat16?

In Turkish: BF16 (bfloat16) · Topic: Hardware and infrastructure

A 16-bit number format developed at Google that keeps the same range of values as 32-bit FP32 but with lower precision. It is widely used in AI training.

How does it work?

A floating-point number has three parts: a sign, an exponent and the significant digits. BF16 has the same number of exponent bits as 32-bit FP32, which is eight, but gives only seven bits to the significant digits. It can therefore represent very large or very small values without overflowing, while giving up fine detail. Converting from FP32 to BF16 is roughly as simple as keeping the first 16 bits of the number. Neural networks tolerate small rounding errors well, so the trade-off often works.

Why does it matter?

It saves memory and speeds up computation while avoiding most of the overflow problems of FP16 during training, and it often needs no extra scaling. That is why it has become one of the common standards for training large models and is supported by many current GPUs and TPUs.

Example

A research team trains a language model in BF16 while often keeping a master copy of the weights in FP32 so that small errors do not pile up.

FAQ

What is the difference between BF16 and FP16?

Both use 16 bits. FP16 has more bits for significant digits, so it is more precise but has a narrow range. BF16 uses the same wide range as FP32 and is less precise.

Which chips support BF16?

Many current GPUs and TPUs support the format in hardware. For a specific chip, check the manufacturer's documentation.

All terms