Verba/Rapida

Experiments #175dm

Row 175d step 2, the MoE experts: the 3-row verify's experts take 7,952 us a round at 8k against 6,225 us...

done

What was tested

Row 175d step 2, the experts: the 3-row verify's experts take 7,952 us a round at 8k against 6,225 us for one row's split time scaled to the 3-row union's bytes (+1,727 us). Microbench, in normal mode on the shapes (6 experts a row, the r79-head weights), MLX's `gather_qmm` path at 3 rows against the one-row fused MoE kernel at 1 row and against the bytes the 3-row union reads; a kernel row only where the 3-row call costs more than its bytes at the one-row kernel's rate

Model and setup

the best

Expected gain

+2% to +7% (inferred: up to the 1.7 ms excess of a 23.8 ms round)

Where the idea came from

`2026-11-20-mac-r175d-verify-anatomy/README.md` § Row 175d step 1 result

Outcome

done 2026-11-21 (engine-rows): a repeated expert stream costs 11.499 us a layer [11.485, 11.523] and a new expert in its place adds 1.499 [1.465, 1.588]: reading work, dedup_row true (1,728 us a round projected), rate_row false (rows kernels 7.25 us a layer faster than the one-row kernel); the shared-dequant body goes to row 175dw (`2026-11-21-mac-r175dm-verify-experts-excess/README.md` § Result)

Lesson

in the 3-row verify's MoE experts a repeated expert stream costs 11.5 us a layer whether or not its bytes are new (a new expert adds 1.5), so the repeats are per-stream work, not bytes: a read-once dedup kernel would save little, and the lever is sharing one stream's loads and dequantized values across rows, which row 176a's DD body did at a cost above the saving.

Adopted

no (a diagnostic; the dedup lever goes to row 175dw, a shared-dequant body tested per row against a stream's 11.5 us)

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