Verba/Rapida

Experiments #106

First-token time on the best (Federico 2026-10-31: attack total completion time): on the 50 sessions a...

done

What was tested

First-token time on the best (Federico 2026-10-31: attack total completion time): on the 50 sessions a first turn waits about 7.5 s for its first (6 to 10k-token at about 830 ) against about 1.8 s of ; account for time by section (expert gather matmuls, , chunking at 2048, host work between chunks) with probes and a trace as rows 82 and 88p did for decode, then the fixes

Model and setup

the best

Expected gain

first-turn (diagnostic)

Where the idea came from

row 104

Outcome

done 2026-10-31 (`2026-10-31-mac-engine-audit/README.md` ยง , row 106, PATCHED): 8k first token 10.35 s = 4.70 s (45%), attention projections 2.60 s (25%), dense MLP 1.22 s (12%), full hd-512 SDPA 1.11 s (11%, all of the 842 to 702 tok/s fall across the prompt), sliding SDPA 0.82 s (8%), rest 0.18 s; MoE runs at about 4.8 TFLOP/s against 7.0 for the dense matmuls; prices rows 109 to 111

Lesson

an 8k first token of the best (10.35 s) is 45% MoE experts, 25% attention projections, 12% dense MLP, 11% full hd-512 SDPA and 8% sliding SDPA, with 2% left for everything else; the MoE path is the only large part running well below the M4's sustained dense matmul rate (4.8 against 7.0 TFLOP/s), so row 109 (up to 1.45 s) is worth about seven times rows 110 or 111 (about 0.2 s each).

Adopted

no (diagnostic).

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