Experiments #13
Mac decode profile of the two baselines (mlx-serve `--no-pld`, vllm-mlx PATCHED): where a decode step's...
run
What was tested
Mac The writing phase: the model produces the reply one token at a time. Read more profile of the two The unmodified setup's score, the line every experiment must beat. (mlx-serve `--no-pld`, vllm-mlx PATCHED): where a decode step's time goes on the M4 Pro (4-bit expert and 8-bit The step where each token looks back at the earlier tokens to decide what matters. Read more reads against small ops, Metal capture or MLX timing), and whether Gemma 4's decode path uses MLX's fused ops (`mx.fast.rms_norm`, `mx.fast.rope`) and `mx.compile`; the Mac counterpart of A graphics card, used here as the chip that does the heavy arithmetic for a model. rows 35 and 51 (fused kernels), it decides whether custom fusion, a Four Over Six-style 4-bit scale choice or a 4-bit head is the next Mac lever
Model and setup
gemma-4-26b-a4b OptiQ-4bit
Expected gain
ranks the Mac code levers
Where the idea came from
GPU rows 35, 51
Outcome
run 1 done 2026-10-28: 20.8 ms per step at 1k (48.1 How many tokens the model writes each second once it has started.), 3.44 GB of weights per step, ceiling about 79 tok/s at 273 GB/s; component split invalid (stacked wrappers), run 2 chained after row 17 | no