Verba/Rapida

Experiments #155r

The fused MoE prefill route against MLX's gather kernels by chunk width (row 155et: unscaled split expert...

done

What was tested

The fused route against MLX's gather kernels by chunk width (row 155et: unscaled split expert work +54 to +67 ms on the fused route at 609 to 698 , beyond a 12.7 ms same-route spread; an after-the-fact reading). Step 1, no new build (row 155eg's, the tile switch unset): one-chunk prefills of 520, 768, 1,024, 1,536 and 2,000 content tokens timed at the client on eight servers A B B A A B B A, fused on (A) and `MLX_SERVE_MOE_PREFILL_FUSED_OFF=1` (B) in one sitting, each A paired with the B on its text set, first tokens equal; line: fused minus stock at 520 and 768 tokens at least 20 ms queues step 2; the per-width give the crossover; then a lossless threshold change (`MIN_ROWS_PER_EXPERT`, `src/moe_prefill_fused.zig:24`, bit-identical by the fused path's construction) raced on reply_total, checked on general text

Model and setup

cold and long warm prefill chunks

Expected gain

unsized: about -15% of the expert work on 512 to 700-token chunks if it holds (inferred)

Where the idea came from

row 155et, after R155EG_DONE

Outcome

done 2026-11-23: superseded by row 155r2 (now row 155r3); both launches stopped before any request, each behind a failed row 155eg build (`2026-11-23-mac-r155eg-gather-tile/README.md` ยง Launches); runs as row 155r2

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