MTPLX/Compare/MTPLX vs mlx-serve

MTPLX vs mlx-serve on a Mac: which is faster?

In our 23 November 2026 single-stream tests on a MacBook Pro M5 Max with 128 GB, MTPLX decoded Inkling 2 Mini fastest on the official weights, averaging 85.0 tok/s compared with 73.8 tok/s for mlx-serve. On each engine’s fast pack, the averages were 97.1 tok/s for MTPLX and 85.7 tok/s for mlx-serve. mlx-serve returned the first token sooner on both the cold and repeat requests.

On 23 November 2026, we tested MTPLX 2.13.2 and mlx-serve 26.11.4 pre-release on a MacBook Pro M5 Max with 128 GB, using one stream at the model’s own sampler (temperature 1.0, no top-p, no top-k). Compare all three engines.

Decode on the official weights

All engines loaded the same 20.2 GB official weights. Decode is in tokens per second. Each cell gives the mean, the lowest and highest run, and the run count. The summary gives each test equal weight.

TestMTPLX
Optimized Quality
20.2 GB
mlx-serve
official weights
20.2 GB
Coding prompt, 4,142 tokens, first request after load96.2
95.0 to 98.3
3 runs
79.0
69.5 to 88.4
2 runs
Coding prompt, 4,142 tokens, repeat request90.5
71.4 to 103.8
6 runs
73.9
69.7 to 76.5
3 runs
Short prompt, 558 tokens75.0
61.8 to 81.1
6 runs
72.3
71.7 to 72.8
3 runs
Long answer, 1,500 tokens78.1
61.6 to 89.5
6 runs
70.1
67.5 to 71.6
3 runs
Average of the test means85.073.8

Decode on each engine’s fast pack

Here each engine used its own fast pack. The column headings give the pack name and size.

TestMTPLX
Optimized Speed
17.2 GB
mlx-serve
8-bit
18.7 GB
Coding prompt, 4,142 tokens, first request after load97.7
91.1 to 102.4
4 runs
83.2
81.8 to 84.5
2 runs
Coding prompt, 4,142 tokens, repeat request101.2
96.8 to 107.2
9 runs
85.6
84.9 to 86.1
3 runs
Short prompt, 558 tokens95.0
86.8 to 104.6
9 runs
90.5
88.0 to 93.7
3 runs
Long answer, 1,500 tokens94.6
86.3 to 100.4
8 runs
83.5
82.7 to 84.7
3 runs
Average of the test means97.185.7

Time to first token and cold prefill

We timed the first token on the 4,142-token coding prompt after load and on a repeat request. A shorter time is better. For cold prefill, a higher token rate is better.

Pack and testMTPLXmlx-serve
Official weights
First request (s)
1.78
1.66 to 2.02
3 runs
1.53
1.52 to 1.54
2 runs
Official weights
Repeat (s)
0.81
0.72 to 0.90
6 runs
0.19
0.18 to 0.19
3 runs
Official weights
Cold prefill (tok/s)
2,532
3 runs
2,811
2 runs
Fast packs
First request (s)
1.72
1.62 to 2.00
4 runs
1.54
1.53 to 1.54
2 runs
Fast packs
Repeat (s)
0.79
0.71 to 0.90
9 runs
0.18
0.18 to 0.18
3 runs
Fast packs
Cold prefill (tok/s)
2,624
4 runs
2,782
2 runs

Frequently asked questions

Is MTPLX faster than mlx-serve?

Yes for single-stream Inkling 2 Mini decode on our M5 Max. The official weights averaged 85.0 tok/s for MTPLX and 73.8 tok/s for mlx-serve, and their fast packs averaged 97.1 tok/s for MTPLX and 85.7 tok/s for mlx-serve. On the repeat request with the official weights, mlx-serve returned the first token in 0.19 s against 0.81 s for MTPLX.

How this was measured · Benchmark JSON

MTPLX vs mlx-serve on a Mac: Qwen 3.8 Flash Next speed and exactness

These Qwen measurements and source notes were published in September 2026.

mlx-serve is a native Zig inference server for Apple Silicon with a menu-bar app, at github.com/ddalcu/mlx-serve, 1,356 stars on 17 September 2026. MTPLX is a free, open source Mac app and CLI that runs local LLMs on Apple Silicon with native MTP speculative decoding, exact at any temperature. Both run Qwen 3.8 Flash Next and Qwen 3.8 27B with the models' own MTP heads, so the comparison is about speed, exactness and pack quality.

Every mlx-serve number and quote on this page comes from the mlx-serve repository at tag v26.9.3 (16 September 2026), with the file and the line. Every MTPLX number links to its release note. MTPLX has not yet run both engines on one Mac itself; the one same-machine table that exists is mlx-serve's own, and it is reproduced below as they published it. Created by Youssof Altoukhi, who brought native MTP to the Mac in April 2026.

What mlx-serve does well

mlx-serve is written in Zig with no Python in the serving path. It loads MLX weights and GGUF files, speaks the OpenAI and Anthropic APIs, ships a signed menu-bar app called MLX Core, and generates images, video, music and speech from the same server. Its default speculative decoding on Qwen 3.8 Flash Next uses the same acceptance rule family as MTPLX, probability-ratio acceptance with residual resampling, so at its defaults it is exact. Its README credits MTPLX for two of its Metal kernel families (see kernel credit).

The numbers

Three sets. The first is mlx-serve's own measurement of both engines on one M5 Max, from their repository. The second is their published release-by-release table, which is measured on an M4 Max at temperature 0 with MTP forced on. The third is MTPLX on its own M5 Max. Different machines and different prompts are not comparable with each other, so read each set on its own.

1. Their M5 Max table, both engines

Source: mlx-serve docs/mtp-acceptance-port.md, lines 42 to 46, at v26.9.3. Their conditions: llmprobe 0.6.7, creative sampling (temperature 1.0, top-p 0.95), thinking off, three timed samples, sampled drafts, MTP depth 3. The MTPLX column is their run of an MTPLX build (David Tai's pull request 475 tree) on the MTPLX Optimized Speed pack with bf16 KV. Their own note on the table: "different packs, KV formats, sampler filter orders, and unpaired random streams".

Engine and modeShort prompt, tok/sAbout 16K context, tok/sExact?
MTPLX, exact (their measurement)102.090.9Yes
mlx-serve, exact default92.582.4Yes
mlx-serve, Typical 0.2 (opt-in)106.386.7No, in their words
mlx-serve, TokenV3 0.95 (opt-in)106.589.9No, in their words

Exact against exact, MTPLX is ahead at both lengths on their machine. At 16K, MTPLX exact is also ahead of both of their opt-in modes. The two rows where mlx-serve is ahead are the modes their own documentation calls not distribution-exact.

2. Their published release table

Source: mlx-serve benchmarks.md at v26.9.3. Their rules for that table: Apple M4 Max 128 GB only, llmprobe median of three on its own code-completion prompt, MTP forced on. The numbers are temperature 0. Their Hugging Face card for the Flash Next pack reports the same class of number on the same machine: about 60 tok/s serial and 78 tok/s with MTP on mlx-serve 26.8.11.

Model, their pack26.8.1126.9.126.9.226.9.3
Qwen3.8 27B 4-bit, MTP70716873
Qwen3.8 Flash-Next mixed 4-8-bit, MTP70688080

Their changelog records that through 26.9.2 the greedy speculative path could commit a reserved or padding token id, and that before 26.9.3 sampled requests barely speculated (their commit a758a93: 19 percent of tokens from MTP rounds against 96 percent for greedy). The 26.8.11 to 26.9.2 columns were measured on builds with both of those behaviours.

3. MTPLX on its own M5 Max

MacBook Pro M5 Max with 128 GB, fans verified at maximum, sampled at the model's own settings. Conditions and sources for every row are on the benchmarks page.

Model and runtok/sConditionsSource
Qwen 3.8 Flash Next, one OpenCode request125.81,301 tokens generated, 18,539-token prompt with 18,364 tokens served from cache, MTP depth 3, OpenCode Desktop, 16 September 20262.11.3
Qwen 3.8 Flash Next, 9k-token code prompt79.31,500 tokens generated, seeded sampler, thinking off, two alternating boots each; 62.5 on 2.11.22.11.3
Qwen 3.8 Flash Next, 109k-token OpenCode turn61.8mean of two runs (60.8 and 62.7); 48.8 on the same build before the launcher and depth-policy fix2.11.3
Qwen 3.8 Flash Next, 200k-token OpenCode turn50.3warm, mean of two runs (50.0 and 50.6)2.11.3
Qwen 3.8 27B Optimized Speed, rewriting a file it just wrote87.6stock settings, 29 August 20262.10.0
Qwen 3.8 27B Bare Speed, fresh coding task65.2official Qwen 3.8 sampling, generation to the model's own stop, 15 August 20262.7.0

Exactness, in their words

Speed only counts when the tokens are the tokens the model would have written. Here is what each engine says about that, and how it is checked.

  • Their default is exact. The default Flash Next path in mlx-serve accepts a draft with probability min(1, p/q) and resamples from the residual on a rejection, the same rule family as MTPLX. Their source states the law and pins it with a test.
  • Their faster modes are not, in their words. "Neither mode is distribution-exact relative to the target model." (docs/mtp-acceptance-port.md, lines 5 to 6.) The server logs "NOT distribution-exact" when either mode runs (src/generate.zig, lines 2412 to 2413). Both modes are off by default and are 7 to 27 percent faster than their exact path by their changelog.
  • Temperature 0 through 26.9.2. Their changelog for 26.9.3 (line 23, commit 62c4f8d): the MTP, drafter and DFlash verifies committed an argmax without the reserved-token mask, so speculative decoding at temperature 0 could emit a reserved or padding token. Fixed in 26.9.3.
  • Byte identity at temperature 0. Neither engine has it on a mixture-of-experts model with selected keys. Their gotchas page says greedy speculative output matches serial output only for the first 30 to 80 tokens (docs/gotchas/engine-mlx.md, line 112). MTPLX sits on the same bf16 floor: on six prompts its fast path and plain path part only where the model's two best candidates are an exact tie or one bf16 step apart, and the 2.11.3 release notes say so rather than claiming byte identity.
  • How MTPLX checks it. Every release draws a thousand four-token samples from the fast path and a thousand from the plain path at temperature 1, top-p 0.95, top-k 20, and compares the joint distributions. On 2.11.3 the distance sits within the plain path's own split-half noise at every joint length on both Flash Next and the 27B Quality pack. 2.11.3 also fixed eight exactness defects MTPLX found in its own engine, each with a test that pins it. The same thousand-draw test passed on mlx-serve's default mode on its own pack; the gap between the engines is not the default path, it is the lossy switches shipped next to it and the temperature-0 path through 26.9.2.

The prefix cache

A restored session should decode as if it had never been paused. mlx-serve's own notes put its restored session 0.14 to 0.30 nats away from a cold run on the top-5 log probabilities (tests/qwen38_flash_next_score.py, lines 12 to 14; docs/gotchas/models-media.md, lines 1635 to 1637), and their standing rule for a byte-stable greedy run is to turn the prefix cache off (docs/gotchas/engine-mlx.md, lines 2012 to 2015).

MTPLX measured its own restore three ways for 2.11.3. A seeded warm turn and the same turn recomputed cold part only on a literal coin toss (two candidates at probability 0.493 each on Flash Next, 0.488 each on the 27B), a three-token restore is byte-identical for 400 tokens on both packs, and a restore from the SSD tier across a daemon restart parts from cold by one bf16 step. In the installed app a 96,760-token conversation restored in 8 ms and a 54,530-token one in 4 ms.

Pack quality

Both engines publish how close their quantized packs sit to the bf16 model. The methods differ, so this is an order-of-magnitude comparison, their number against ours.

PackTop-1 agreement with bf16KL divergenceMethod and source
mlx-serve Qwen 3.8 Flash Next, 3.3-bit pack85.6%1,200 held-out positions, one greedy token each, their CHANGELOG at 26.9.3 (89.1% for their 70 GB mixed pack)
mlx-serve Qwen 3.8 27B, 4-bit83.6%0.322same method, docs/gotchas/models-media.md, lines 1495 to 1497
mlx-serve Qwen 3.8 27B, 8-bit95.5%0.0136same method, same source
MTPLX Qwen 3.8 27B Optimized Speed, 4-bit dynamic96.0%0.012teacher-forced over 2,389 positions of code, prose, JSON and a multilingual notice against the bf16 checkpoint, 16 September 2026
MTPLX Qwen 3.8 27B Optimized Quality, 8-bit dynamic99.3%0.0005same run

MTPLX's 4-bit 27B pack sits closer to bf16 than mlx-serve's published 8-bit 27B pack. MTPLX has not published a pack-quality number for its Flash Next packs.

Kernel credit, dated

DateEventSource
July 2026mlx-serve's README performance chart compares v26.8.3 with MTPLX 2.5.3 on Gemma 4 and Qwen 3.6 on an M4 Max and claims +10% decode over MTPLX. That is a July build of MTPLX, not Qwen 3.8, not Flash Next and not an M5.mlx-serve README.md, line 152, at v26.9.3
16 September 2026The mlx-serve README acknowledgements credit MTPLX by Youssof Altoukhi for "the verify-width split-K quantized matmul family and the M5 NAX tensor-ops tile", and print MTPLX's preferred credit line.mlx-serve README.md, line 186, at v26.9.3
16 September 2026Their acceptance-mode document measures MTPLX exact above mlx-serve exact on an M5 Max (the table above).docs/mtp-acceptance-port.md, lines 42 to 46

What is different

  • One exact path, no lossy switch. MTPLX ships one speculative path and it is exact at every temperature. mlx-serve ships an exact default plus two opt-in modes that its documentation calls not distribution-exact.
  • Measured exactness every release. MTPLX compares its fast path with its plain path by token id on every release and publishes the result in the release notes.
  • Warm turns that equal cold turns. MTPLX's session cache restores the attention KV and the recurrent state at commit boundaries and was measured to restore to the cold state up to one bf16 step. mlx-serve documents a 0.14 to 0.30 nat drift on restore.
  • Packs. MTPLX publishes its own dynamic 4-bit and 8-bit packs with the MTP head kept and the vision tower preserved, built and checked with Forge. Its 4-bit 27B pack measures 96.0 percent top-1 agreement with bf16.
  • Scope. mlx-serve also runs GGUF files and generates images, video, music and speech. MTPLX is a language-model engine: chat, coding agents, an OpenAI and Anthropic compatible local server, embeddings and reranking.
  • Language. mlx-serve is Zig. MTPLX is a Python and MLX engine with custom Metal kernels and a native Swift app; the app bundles its own runtime, so nothing is installed by hand.

Questions about the Qwen benchmarks

These answers describe the Qwen engines and measurements in September 2026.

Is MTPLX faster than mlx-serve on Qwen 3.8 Flash Next?

The only table that runs both engines on one machine is mlx-serve's own, in its repository at tag v26.9.3 (docs/mtp-acceptance-port.md, lines 42 to 46): on an M5 Max at temperature 1, top-p 0.95, thinking off, MTP depth 3, MTPLX exact decoding measured 102.0 tok/s on a short prompt and 90.9 tok/s at about 16K tokens, while mlx-serve's exact default measured 92.5 and 82.4. At 16K, MTPLX exact also came out above mlx-serve's two opt-in modes (86.7 and 89.9), which their documentation says are not distribution-exact. That is their measurement of an MTPLX build on their machine; MTPLX has not yet run both engines on one Mac itself. Separately, on MTPLX 2.11.3 an M5 Max decoded a Qwen 3.8 Flash Next OpenCode request at 125.8 tok/s.

Is mlx-serve's speculative decoding exact?

Its default mode is exact: the same probability-ratio acceptance with residual resampling that MTPLX uses. Its two faster opt-in modes are not, in its own words: 'Neither mode is distribution-exact relative to the target model' (docs/mtp-acceptance-port.md, lines 5 to 6, at v26.9.3), and the server logs 'NOT distribution-exact' when they run. Their changelog also records that through version 26.9.2 speculative decoding at temperature 0 could emit a reserved token, fixed in 26.9.3. MTPLX ships no lossy mode and checks its fast path against its plain path by token id every release.

What is the difference between MTPLX and mlx-serve?

mlx-serve is a Zig inference server with a menu-bar app that runs MLX and GGUF models and also generates images, video, music and speech. MTPLX is a Mac app and CLI built around exact multi-token-prediction speculative decoding for Qwen 3.8, Qwen 3.6, Qwen 3.5 and Gemma 4, with a session cache that restores warm turns to the cold state, Forge for building MTP packs, and OpenAI and Anthropic compatible APIs. mlx-serve's README credits MTPLX for two of its Metal kernel families.

Sources. mlx-serve quotes are from github.com/ddalcu/mlx-serve at tag v26.9.3 with file and line; MTPLX numbers link to their release notes. If you measure something different on your Mac, open an issue with the command line and the log.