Verba/Rapida

Experiments #86

Dense MLP folded into the MoE affine-4 kernels as extra slices (row 82 candidate A: 2112 = 3 x 704...

probe

What was tested

Dense MLP folded into the affine-4 kernels as extra slices (row 82 candidate A: 2112 = 3 x 704, `moe_affine4.zig:271-303`), 60 small weight reads per step into the expert reads; first a timing of what the dense branch costs beyond its bytes

Model and setup

the best

Expected gain

about +1% (re-estimated after probe 86p: the dense branch overlaps the MoE branch, so only bandwidth is saved)

Where the idea came from

rows 82, 83s

Outcome

probe done 2026-10-31 (86p): dense off -0.91 ms per step against 1.37 ms of bytes, MoE off -4.14 ms against 3.70; kept small for the stack

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