Verba/Rapida

Experiments #149q

The best's 121 dense quantized matvecs a decode step (`affine_qmv` x91, `affine_qmv_fast` x30: 5.2 ms, half...

done

What was tested

The best's 121 dense matvecs a step (`affine_qmv` x91, `affine_qmv_fast` x30: 5.2 ms, half the step, row 149v): bytes per dispatch from the weight shapes and the dispatch log's grids against the bandwidth ceiling, then the lever on the ones furthest under it (MLX's qmv tiling at these shapes, or fusing the matvecs that share an input)

Model and setup

the best

Expected gain

sized 2026-11-12 from the headers: 1,183 MB in 5.17 ms split (229 GB/s, about 90% in normal mode), so 0.2 to 0.45 ms a step, +2% to +4%

Where the idea came from

row 149v

Outcome

done 2026-11-12: the 121 dense matvecs run at about 250 GB/s in normal mode (230 split), 90% of the ceiling; the 0.44 ms left is spread over every dispatch (head 67 us, MLP down the weakest at K = 2112); no lever (`2026-11-12-mac-decode-profile-r147`)

Lesson

the best's 121 dense quantized matvecs read their 1,183 MB a step at about 250 GB/s in normal mode (90% of the ceiling); the 0.44 ms left is spread over every dispatch (the largest share is the head's 67 us, the weakest ratio the MLP down at K = 2112), so the dense matvecs hold no lever on the scale of the gap.

Adopted

no (a diagnostic)

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