Halvprecision
Halvprecision, or half-precision, is a 16-bit floating-point format used in computer arithmetic. In the IEEE 754 standard, binary16 consists of 1 sign bit, 5 exponent bits, and 10 fraction bits. The exponent has a bias of 15, giving ranges for normal numbers, subnormals, infinities, and NaNs. The machine epsilon, the distance between 1.0 and the next representable number, is 2^-10 ≈ 0.0009766.
The smallest positive normal number is 2^-14, and the smallest positive subnormal is 2^-24. Normal numbers cover
Halvprecision is often abbreviated FP16 or half-precision and is used to reduce memory usage and bandwidth,
Limitations include a reduced dynamic range and precision compared with FP32, which can cause numerical errors
See also: IEEE 754, FP32, bfloat16, mixed precision training.