Verba/Rapida

Experiments #93

The router spread across the GPU instead of row 61's single 1,024-thread threadgroup (row 84k: 22.4 us per...

screen

What was tested

The router spread across the instead of row 61's single 1,024-thread threadgroup (row 84k: 22.4 us per layer dependent, 2.7 us overlapped, 16 GB/s): its 128 rows as extra rows of the dense gate-up qmv (same seam1 output), top-8 and softmax in the gate-up prologue, MLX's per-row order kept so it stays bit-exact; a of the router's cost in the engine first

Model and setup

the best

Expected gain

+3 to +6% (inferred: up to 0.69 ms per step)

Where the idea came from

rows 61, 84k

Outcome

screen done 2026-10-31 (93s): bit-exact, -1.6% at 1k, level at 8k; row 84k's 23 us came from a stand-in MoE, the engine's router overlaps the dense gate-up; not adopted

Adopted

no (lossless but slower at 1k, level at 8k).

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