FLOATING POINT
Sign, exponent, mantissa
A floating-point number is stored in three parts: a sign bit, an exponent that sets its size, and a mantissa that holds its digits. More exponent bits give more range; more mantissa bits give more precision.
WHY FEWER BITS
Halve the bits, double the work
Less memory
A 70-billion-weight model needs 280 GB at 32 bits but 35 GB at 4 bits
Less traffic
Fewer bytes per weight eases the memory wall
Smaller multipliers
A multiplier's area and energy shrink much faster than its bit width
THE FORMATS
A ladder of number formats
INTEGERS TOO
INT8 and quantization
Quantization converts a trained model's weights to small integers such as INT8 or INT4, with a scale factor per group of weights. Done carefully, accuracy barely changes, and the model runs on far cheaper hardware, even phones.
THE CATCH
How low can you go?
Too few bits and numbers overflow, underflow or round away small but important differences. Chips fight this with mixed precision: multiply in a small format but add up results in a bigger one, and keep a scale factor for each small block of numbers.
UNIT 4 STUDY COMPLETE
Ready for the Fab Challenge?
You've seen how a floating-point number is split into sign, exponent and mantissa, and why halving the bits roughly doubles the math per watt.