Verba/Rapida

Experiments #151k

Why the flat down-reduce gave +0.39% where 2% was sized: the MoE decode call timed alone at Gemma 4's...

done

What was tested

Why the flat down-reduce gave +0.39% where 2% was sized: the call timed alone at Gemma 4's geometry (128 experts, H 2816, I 704, 6 a , experts rotated so weights come from DRAM) with the flat kernel on and off (LESTO `/151k` 92f902e8, test `probe 151k`)

Model and setup

the best

Expected gain

diagnostic; tells whether the down-reduce kernel itself holds a gain the step hides

Where the idea came from

row 151

Outcome

done 2026-11-13: , one MoE decode call 94.8 us with the best's down-reduce and 92.8 with the flat one (-2.2%), about 216 GB/s either way, so the call is read-bound and the lanes cost 0.6% of a step at most (`2026-11-12-mac-moe-downred-flat/README.md`)

Lesson

the MoE decode call at Gemma 4's geometry runs at about 216 GB/s whatever the down-reduce's lane use; spreading its lanes saves 2 us a call, 0.6% of a step at most, so the MoE kernel's remaining lever is bytes, not lanes.

Adopted

no (diagnostic; row 151 stays a rounding-class stack candidate at +0.39%)

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