Verba/Rapida

Experiments #175dr3vrt

Multi-row router top-k for the row-exact verify: one dispatch computes the 2 to 8 rows' router logits and...

done

What was tested

Multi-row router top-k for the row-exact verify: one dispatch computes the 2 to 8 rows' router logits and top-k, each row with the same sum order as the one-row `router_qmv8_softmax` (LESTO 59250c9b `transformer.zig:14521`, called per row from `moeRowsBatched` at `:11003` through `routerQmv8Routing` `:12188`), so it is lossless by construction; target the router's 26% of the verify delta in [mac diag175dr3vt]. First timing-free step: identity on the verify (every row bit for bit equal to the one-row kernel's top-k and weights over the served rounds, Bf16Tally above a million elements, then served replies identical by hash against the row-exact ). Cost sheet due (`/cost-check`) before any build or timed run. Open question: the per-kernel split shares of [mac diag175dr3vt] (MOE 41%, QMM 20%) disagree with the served one-switch-removed prices (QMM 10.5, MOE 3.1% of ), cause not established; MOE runs only with QMM on (`transformer.zig:10927`), so the prices are not additive (they sum to 23.5% against 19%)

Model and setup

the row-exact recipe (lesto_r175dr3v_rowl)

Expected gain

about +3% decode (guess: the router's whole share is about 6%)

Where the idea came from

[mac diag175dr3vt] § Result

Outcome

done 2026-11-29 23:46 M4: exact (0 of 1,277,580 elements differ) but +0.5% decode by the branch ubench, under the 1.5% budget; three rows in one dispatch cost 2.54 times one call; dropped, agreed (`docs/experiments/2026-11-28-mac-r175dr3v-row-exact-verify/README.md` § Result, row [mac 175dr3vrt])

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