Verba/Rapida

Experiments #176bd

Row 176m3d's lever as a general one (coordinator, 2026-11-22): add the [NR]-array down body (row 176a's...

done

What was tested

Row 176m3d's lever as a general one (coordinator, 2026-11-22): add the [NR]-array down body (row 176a's DOWN_VARIANT_SOURCE shape at NR 1: per-tile wbase, gbase, sjv, bj and accumulator arrays) to the code as a second down body, bit-identical to the first; make the body a field of an R176S_TABLE entry and a dimension `lesto tune` searches (a plan-space version bump), so the M3's entry picks it, the M4 keeps the current body and an unknown chip finds its own best. Also read the two bodies' pipeline figures (registers, threadgroup limits) or compiled code for the mechanism. Then identity on both sets (150 of 150, 210 of 210) and a timed pair on the M3 (Federico's go covers row 176m3d's runs)

Model and setup

the best, any device

Expected gain

about 22 to 32 us a down call at 3 rows on the M3 (measured in row 176m3d), share not measured

Where the idea came from

row 176m3d

Outcome

done 2026-11-22 (shipped in Lesto 0.27.0 and 0.27.1; written up 2026-11-23 by read-rows): the array body is a second served down body, a field of R176S_TABLE and a `lesto tune` dimension; M4 identity 150 of 150 and 210 of 210 in four arms, the M4 tune kept the scalar body (a tie within 0.3 us a call), the M3's G15 entry down sps=6 tpt=4 ax=0 with the array body; M3 decode +1.40 and +1.70 paired, A/A +0.00, not pre-registered (`2026-11-22-mac-r176bd-down-body-choice/README.md` ยง Result)

Lesson

a kernel body is a per-device choice like a layout: the array body is bit-identical everywhere (432 of 432 checks on the M3, 150 of 150 and 210 of 210 in four arms on the M4), ties the scalar body on the M4 (within 0.3 us a call in the tune's final round, which kept scalar) and serves the M3's entry, which reads about +2% decode there (+1.4 and +1.7 tok/s paired against an A/A of +0.0, not pre-registered).

Adopted

no (not a new best: the M4 keeps its scalar-body entry and the selection set is unchanged; the lever shipped in Lesto 0.27.0 and 0.27.1 as the M3's G15 entry and a `lesto tune` dimension)

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