Multi-Token Prediction (MTP) Heads Explained: Why 1.8x Faster Can Become 1.05x

Cover image for Multi-Token Prediction (MTP) Heads Explained: Why 1.8x Faster Can Become 1.05x: JetBrains (official image)

Key facts

Sources checked Nov 25, 2026

  • A multi-token prediction (MTP) head is a small extra layer, trained with the model, that guesses the next token after the one being generated. Inference engines use that guess as a free “draft” for speculative decoding.
  • The full model checks every drafted token, so in principle the output does not change. Only the speed does, and only when guesses are accepted. (In our own test the wording drifted slightly anyway; see below.)
  • Real speedups vary a lot: JetBrains quotes 1.4–1.8x for Mellum2.1’s MTP head, while llama.cpp’s own test of the same head shape on a Mac measured about 1.05x.
  • Bigger models now ship deeper drafters: Baidu’s ERNIE 5.5 Flash Preview bundles a DSpark draft that proposes up to 7 tokens per step.

Two releases this week, JetBrains’ Mellum2.1 Instruct and Baidu’s ERNIE 5.5 Flash Preview, came with “MTP heads” or “draft heads” in the box. Model cards now list them next to the quantizations, and engines like vLLM and llama.cpp have flags to turn them on. This explainer covers what an MTP head is, how it differs from a separate draft model, and why the speedup on your machine may be much smaller than the number in the announcement. It assumes you know the basics of speculative decoding.

The problem MTP solves

Language models write one token at a time. For each token, the GPU has to read all the active weights from memory, and on most home hardware that memory read, not the math, is the bottleneck. Speculative decoding helps: something cheap guesses a few tokens ahead, and the big model checks all of them in one pass. If the guesses are right, you get several tokens for roughly the price of one.

The classic way is a separate draft model, a small model from the same family. It works, but you have to find a matching small model, load it, and hope it predicts the way the big model does.

Image from the official model card for JetBrains/Mellum2.1-12B-A2.5B-Instruct-MTP on Hugging Face
Image from the official model card: JetBrains/Mellum2.1-12B-A2.5B-Instruct-MTP on Hugging Face.

What an MTP head actually is

An MTP head builds the drafter into the model. In Mellum2.1, the head is one extra transformer block with the same attention and Mixture-of-Experts shape as a regular layer. It is trained together with the main model to predict the token after the one just sampled, according to the Mellum2.1 Instruct MTP model card.

Because it is trained alongside the model and reads the model’s own internal state, it tends to guess the way the model would. JetBrains reports that about 90% of drafted tokens are accepted.

The idea comes from research on training with several future-token targets at once. Meta’s multi-token prediction paper explored it as a training objective, and the DeepSeek-V3 technical report popularized shipping MTP modules that can double as drafters.

Is the output really unchanged?

In principle, yes. The full model still decides every token, and a drafted token is only kept if the full model agrees with it, so the head can’t add its own mistakes. The Mellum GGUF card also notes that if you don’t pass the speculative flag, the head is simply ignored.

In practice, don’t expect byte-for-byte identical text. We ran Mellum2.1 Instruct (Q4_K_M) in llama.cpp on a CPU-only Linux box, with greedy decoding (temperature 0), once with the MTP head and once without. In all three prompt pairs, the answers started the same and then drifted into slightly different wording. Checking two tokens in one batch changes the floating-point rounding a little, and in greedy decoding a near-tie can then tip to a different word. The answers were equally good. But if you depend on exactly reproducible output, for example in tests, keep speculative decoding off.

Why your speedup may be far below 1.8x

This is the part announcements skip. JetBrains says the head makes decoding 1.4–1.8x faster. But the llama.cpp pull request that added Mellum2.1 MTP support (PR #30612) measured much less. On an Apple M2 Max with greedy decoding and 512 generated tokens:

Setup (Mellum2.1 Thinking) Draft 1 token Draft 2 tokens Draft 3 tokens
Combined BF16 file 1.05x 0.81x 0.66x
Separate BF16 model + BF16 head 1.05x 0.91x 0.75x

Code prompts did a little better (1.04–1.10x with one drafted token), and summarizing was slightly slower (0.94x). For a Q4_K_M model with a Q8_0 head, the Mellum card says the average was 1.00x, so no gain at all. Every setting that drafted two or more tokens was slower than plain decoding.

Why the gap? A few reasons, all general:

  1. The head costs something. It is a full transformer block. On a small model with only 2.5B active parameters, one extra block is a noticeable share of each step.
  2. One-step heads guess one token. Mellum’s head predicts one token ahead. Asking it for two or three means feeding its own guesses back in, and accuracy drops fast.
  3. Quantized models are already fast. At 4 bits the main model reads less memory per token, so there is less waiting for a drafter to hide.
  4. Batching changes the math. On a busy server, the GPU is already doing useful work while it waits on memory, so drafting buys less. Baidu makes this point for ERNIE, as you’ll see below.

Our own CPU-only test pointed the other way. On a shared 8-vCPU Xeon VM with llama.cpp build 12328, one drafted token gave 12.1 vs 16.6 tokens per second (about 1.37x) on a coding prompt, with 98% of drafts accepted. Acceptance was 94% on a refactoring prompt but only 75% on a plain-English explanation. Our other runs were too noisy to use, because other jobs on the VM slowed the runs without the head. So treat this as one data point, not a benchmark. It does show that the result depends heavily on your hardware and your prompts. Measure on your own machine. llama.cpp reports draft_n and draft_n_accepted in each server response’s timings object, so you can see the acceptance rate directly.

Deeper drafters: ECHO and DSpark in ERNIE 5.5

Baidu goes further with the 280B ERNIE 5.5 Flash. According to its model card:

  • The model is pre-trained with ECHO, an MTP approach described in this paper. ECHO drafts tokens one after another. With seven draft steps, Baidu reports an average acceptance length above 5.5 tokens on real multi-turn conversations.
  • The Preview ships a different drafter, DSpark: a three-layer draft head that proposes a whole block of up to 7 tokens in parallel instead of one at a time. vLLM’s launch post reports a mean acceptance length above 4.0 on coding and agent workloads.
  • Baidu says each style wins on different tasks, depending on how predictable the output is, and later releases will offer both.

Baidu’s guidance matches the general rule: use larger draft blocks (up to 7) at low concurrency and smaller ones (2–3) at high concurrency. A lone user with idle GPU time benefits from long guesses. A busy server doesn’t.

How to turn it on

Engine Flag Notes
vLLM 0.33+ (Mellum) --speculative-config '{"method": "mtp", "num_speculative_tokens": 1}' Use the -MTP repository
transformers 5.20+ use_mtp=True in generate Older versions skip the head with a warning
llama.cpp --spec-type draft-mtp --spec-draft-n-max 1 Combined files need build b11747 or newer
vLLM + vLLM-ERNIE --speculative-config '{"method":"dspark","num_speculative_tokens":7,...}' Drop the flag to serve without a draft

Our Mellum2.1 Instruct install guide shows the llama.cpp version end to end, including a quick way to compare speed with and without the head.

Bottom line

An MTP head is a drafter that ships inside the model, trained to think like it. It shouldn’t change the quality of the answer, and it can make decoding faster. But “up to 1.8x” is a best case. On small, quantized models on a single machine, we have seen results from no gain at all (llama.cpp’s Mac test) to about a third faster (our CPU test). Drafting more than one token from a one-step head made things slower in every published run. Turn it on, read the acceptance numbers, and keep it only if your own timings improve.

Sources: Mellum2.1 Instruct MTP model card, Mellum2.1 Instruct GGUF card, llama.cpp PR #30612, JetBrains blog, ERNIE 5.5 Flash Preview model card, vLLM blog, Gloeckle et al., 2024, DeepSeek-V3 technical report. Facts checked November 25, 2026.

Cover image: JetBrains (official image)