t27.aiРусский

T27: a number format of our own

You will learn

How three trits give more levels than a 4-bit float, and what that costs in plain bits.

A 4-bit float such as E2M1, the element of NVFP4 and MXFP4, has 16 codes, and two of them are zero. Three balanced trits have 3 x 3 x 3 = 27 states. T27 is our format that uses all of them: 27 levels placed where a trained network's weights actually fall, and one shared scale per block of weights. On ternary storage that is more levels in the same room. Packed into plain binary bits it is larger, not smaller, and the widget shows both counts.

Try it

Move the weight across the range and find where E2M1 rounds worse than T27; then read the storage table in bits.

Open the interactive lesson →

T27 cell: 27 seats in 3 trits against FP4's 16 codes in 4 bits
T27 cell: 27 seats in 3 trits against FP4's 16 codes in 4 bits ↗

All lessons