Experiments #107
Cross-engine code study (no Mac time): how llama.cpp's Metal backend, oMLX's fused kernels, vllm-mlx and...
done
What was tested
Cross-engine code study (no Mac time): how llama.cpp's Metal backend, oMLX's fused kernels, vllm-mlx and mlx-lm do The writing phase: the model produces the reply one token at a time. Read more and Prefill: the model reading the whole prompt before it can write the first token. Read more (expert grouping, The step where each token looks back at the earlier tokens to decide what matters. Read more kernels, chunking and scheduling, prefix reuse, command encoding), with file:line, against mlx-serve; each technique mlx-serve lacks becomes a row
Model and setup
the best
Expected gain
ranks larger engine rewrites (diagnostic)
Where the idea came from
sweep 2026-10-31
Outcome
done 2026-10-31 (`engine-study-107.md`): decode has every technique the others use (no rewrite indicated); prefill falls back to stock MLX on the M4 where mlx-serve's fast paths need an M5; rows 108 to 111 queued