LESSON 30.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Activation quantization
Watch a layer turn its live inputs into INT8 codes and multiply integers.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 30.05 · QUANT BAYX 4×8 · W 8×4 · OUTLIER ON
01
Stage 1 of 6 · The layer
The layer multiplies the activations X by the weights W. Channel 3 is an outlier channel: large in every token.
Explain it simply
Each row of X is one token, and each column is one channel, one input to the layer. The weights W are fixed after training, but X is new for every request. Look at channel 3: it is large in every token, like one loud voice in a quiet room.
X has 4 tokens by 8 channels. W has 8 inputs by 4 outputs. Y is 4 by 4. Channel 3 holds large values in every token.
activations Xweights W, scalesoutlier, erroroutput Y
Toy: 4 tokens × 8 channels, seeded random weights
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each output adds 8 activations times 8 weights.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 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.