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 Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Read more Prefill: the model reading the whole prompt before it can write the first token. Read more 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 The unit of text a model reads and writes: roughly a short word or a piece of a longer one., 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): Cold means the server has never seen this prompt start; warm means part of it is already remembered from before. 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 The middle value when results are sorted: half the requests were faster, half slower. 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 Keeping a model loaded on a machine so it can answer requests over the network. (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