Experiments #94
Bandwidth study of the one-token quantized matmuls at Gemma 4's real decode shapes on the best (peak read...
done
What was tested
Bandwidth study of the one-token Storing the model's numbers with fewer bits to make it smaller and faster, at some risk to quality. Read more matmuls at Gemma 4's real The writing phase: the model produces the reply one token at a time. Read more shapes on the best (peak read bandwidth, GB/s per projection alone and chained, why each falls short, file:line)
Model and setup
the best
Expected gain
ranks the kernel levers (diagnostic)
Where the idea came from
row 87ar
Outcome
done 2026-10-31: qmv at 95-98% of peak overlapped, 64-88% chained (about 3.5 us ramp per dependent read); Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Read more down 63%/74% (lane waste); router 6.5%; rows 99 and 100 queued
Lesson
on the M4 Pro MLX's one-token 4-bit qmv already reads at 95 to 98% of peak when overlapped and the qmv_fast alignment miss costs nothing; the remaining weight-read losses are the dependent-read ramp (about 3.5 us per level, a chip cost) and lane waste in the engine's own MoE kernels.