Verba/Rapida

Experiments #61

The router matmul computed inside the router top-k kernel on mlx-serve (PATCHED, bit for bit MLX's 8-bit...

done

What was tested

The router matmul computed inside the router top-k kernel on mlx-serve (PATCHED, bit for bit MLX's 8-bit `qmv_fast`): 30 fewer serialized weight reads per step

Model and setup

the best (row 57b)

Expected gain

+0.85% (**measured** step 1: -1.0% per forward)

Where the idea came from

rows 59, 57b

Outcome

done 2026-10-30: +1.2% [+1.2, +1.3], lossless 20/20 and bit-exact; replication 61r running (`docs/experiments/2026-10-30-mac-dispatch-fusion/`)

Lesson

one fused kernel that removes 30 serialized 0.36 MB weight reads gave +1.2% decode, as much as 110 removed small dispatches (row 57b): on the Mac, count serialized weight reads, not dispatches.

Adopted

no (a win; adopted after its replication, row 61r)

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