LESSON 30.09 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
FP8 inference
Watch one layer run in 8-bit floats and see what each bit costs.
Needs30.08 SmoothQuant
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 30.09 · LOW-BIT BAYFP8 E4M3 · 126 VALUES · MAX 448
01
Stage 1 of 5 · The value grid
FP8 E4M3 has 4 exponent bits and 3 mantissa bits. Its 126 positive values run from 0.00195 to 448.
Explain it simply
Each tick is one value the format can store. The line doubles at each equal width. Inside each doubling there are 8 evenly spaced values, so the gap grows with the value. Every value keeps about the same share of precision, about 1 part in 8.
A powers-of-two number line has 126 ticks, one per positive FP8 E4M3 value. They run from 0.00195 to 448. A bit box shows the layout.
activations xweights W, formatrounding erroroutput yexact value
Toy: one layer, 8 activations × a 4 × 8 weight matrix; seeded, not trained
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A float is a sign, a power of two and a fraction.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.