I tested the fastest engines for Inkling 2 Mini on a Mac. MTPLX vs MLX serve vs oMLX

Reddit r/LocalLLaMA Tools

Summary

The author benchmarks three Mac inference engines — MTPLX 2.13.2, mlx-serve 26.11.4 pre-release, and oMLX 0.8.3 — running unquantised Inkling 2 Mini weights on an M5 Max MacBook Pro, reporting MTPLX leading on average decode speed (85.0 tok/s vs 73.8 and 57.6) but lagging mlx-serve on time-to-first-token, while acknowledging they created MTPLX.

Hi Everyone. Setup - MacBook Pro M5 Max, 128 GB - Inkling 2 Mini, the official unquantised weights (20.2 GB), loaded by all three engines - One stream, the model's own sampler: temperature 1.0, no top-p, no top-k - Same prompts and seeds for all three, each engine through its own server at its defaults - MTPLX 2.13.2, mlx-serve 26.11.4 pre-release, oMLX 0.8.3 Decode speed in tokens per second (MTPLX / mlx-serve / oMLX) - 4K coding prompt, first request after load: 96.2 / 79.0 / 62.9 - 4K coding prompt, repeat request: 90.5 / 73.9 / 57.6 - Short prompt: 75.0 / 72.3 / 56.8 - 1,500-token answer: 78.1 / 70.1 / 53.0 - Average of the four: 85.0 / 73.8 / 57.6 I also ran each engine on the pack it ships for speed (MTPLX Optimized Speed 17.2 GB, mlx-serve 8-bit 18.7 GB, oMLX oQ4e 16.9 GB). Average of the same four tests: 97.1 / 85.7 / 68.9. Where MTPLX is not the best Time to first token. On a cold 4K prompt mlx-serve starts answering in about 1.5 seconds, MTPLX in about 1.8 and oMLX in about 2.5. With the prompt already cached, mlx-serve and oMLX start in about 0.2 seconds and MTPLX takes about 0.8. I am working on that. Caveats I created MTPLX, so take this with the usual grain of salt, but I tried to make it a fair test and I am sharing the details so you can poke holes in it. And I’m very proud of my work. One Mac, one model, 2 to 9 runs per number, and I only measured one request at a time. If you have an M1 to M4 or less memory your numbers will be different, and I would love to see them. Happy to share the raw rows or rerun anything you think is unfair.
Original Article

Similar Articles