Verba/Rapida

Experiments #56

mlx-serve's forward meter and decode graph dump at 8k

done

What was tested

mlx-serve's forward meter and graph dump at 8k

Model and setup

the best

Expected gain

op count per step (**measured**)

Where the idea came from

row 55

Outcome

done 2026-10-30: 15.84 ms per forward, 2,126 ops, about 590 kernels (205 custom, 173 matmuls, 60 KV writes, 46 norms); dispatch count is the lever

Lesson

on the M4 Pro a dependent tiny kernel costs 4 to 7 us whatever its size, and the patched best launches about 590 per decode step with the 97% busy: per-step overhead is dispatch count, so fusing ops (the KV writes, norms, gathers) is the remaining Mac lever below the weight bytes.

Adopted

no (diagnostics)

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