Verba/Rapida

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 matmuls at Gemma 4's real 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); 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.

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built