{"slug": "mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune", "title": "Mellum2.1's MTP head on vLLM: 87% of guesses accepted, 1.11x faster. What to tune and measure", "summary": "A developer benchmarked JetBrains' Mellum2.1 coding model with its built-in MTP speculative-decoding head on vLLM 0.33, finding 87.2% of draft guesses accepted but only a 1.11x single-request speedup (106.8 to 118.9 tokens/sec) on a 48 GB RTX A6000, well below JetBrains' promised 1.4-1.8x. With eight concurrent requests, depth-1 drafting reached 1.45x, and on a 16 GB RTX 5080 with FP8 weights the head delivered 1.33x (217.2 to 288.7 tokens/sec) while shrinking KV cache from 52,400 to 29,019 tokens. The developer attributes the modest single-request gain to the MoE model's already-fast plain decoding and vLLM's generic Transformers backend, and recommends benchmarking tokens per second on real prompts rather than trusting the acceptance counter.", "body_md": "If you watch only one number when you turn on speculative decoding, you will probably watch the wrong one.\n\nA model writes text one token (a piece of a word) at a time, and each token costs one full pass through the network. Speculative decoding adds a cheap guesser that proposes the next token, and the full model then checks the guess. When the guess is right, you get two tokens for roughly the price of one pass.\n\nJetBrains ships Mellum2.1, its open coding model, with a guesser of this kind built in, which it calls the MTP head. We enabled it in vLLM 0.33, an open-source inference server, on a 48 GB RTX A6000 on our cloud. vLLM counted 87.2% of guesses accepted, near JetBrains' roughly 90%. A single request moved from 106.8 to 118.9 tokens per second. That is 1.11x, below the 1.4 to 1.8x JetBrains' model page promises.\n\nThe guesser worked. The checking took the gain back. The [full Mellum2.1 MTP benchmark with every table and command](https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding) has the rest.\n\nMellum2.1 is a mixture of experts (MoE): only 2.5B of its 12B parameters work on each token. Plain decoding is already quick, so a verify pass can cost nearly what it saves. Another likely factor, not measured: vLLM 0.33 runs Mellum through the generic Transformers modeling backend, not code written for this model, and logs that it uses a default MoE config.\n\nBenchmark tokens per second with the head off and on, on your own prompts. The acceptance counter says the guesser works, not that you got faster.\n\nOne flag enables the head, and the number of tokens it guesses per step sits inside it:\n\n```\n--speculative-config '{\"method\": \"mtp\", \"num_speculative_tokens\": 1}'\n```\n\nJetBrains and the vLLM docs both say start at 1. For a single request, 2 was faster:\n\n| Draft tokens | Accepted | 1 request (tok/s) | 8 at once (tok/s) | \n|---|---|---|---|\n| none |  | 106.8 | 418.4 | \n| 1 | 87.2% | 118.9 (1.11x) | 607.3 (1.45x) | \n| 2 | 66.6% | 140.2 (1.31x) | 581.8 (1.39x) | \n| 3 | 48.6% | 124.8 (1.17x) | 663.5 (1.59x) | \n\nAt depth 2 fewer guesses survived, but each success skipped two passes. At depth 3 the misses outweighed the hits. Each setting ran once on short answers, so small differences are noise. Benchmark depths 1 and 2 against your real requests.\n\nWith eight requests at once, measured straight against vLLM, depth 1 reached 1.45x, which is inside JetBrains' range. Over depths 1 to 3 the gain ranged from 1.39x to 1.66x, with no consistent winner between 2 and 3. Speculative decoding normally helps less as load grows. This is one run, the article has no explanation for it, and nothing above eight was tested.\n\nA caveat from our side: the InferenceKey platform currently hands each model one request at a time, so our endpoint today gives the single-request 1.11x. Still open.\n\nThe KV cache is where the server keeps the state of each conversation in progress, so it does not reread the text at every token. The head adds under a gigabyte of weights (0.80 GiB in BF16, the published full size). vLLM holds total GPU memory at a fixed share set by `--gpu-memory-utilization`, so the head shrinks the KV cache instead of raising peak memory.\n\nOn the A6000 that barely matters: the cache dropped from 1,122,580 tokens to 1,027,634, about 8.5%. On a real 16 GB RTX 5080, running vLLM's online FP8 (weights converted to 8 bits at load, half the size) with a 16,384-token context, it dropped from 52,400 to 29,019 tokens. Space for three full 16K conversations became space for one. The [VRAM ladder for Mellum2.1 from 48 GB down to 16 GB](https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding) has the full memory accounting.\n\nThe RTX 5080 still beat the A6000: 217.2 tokens per second plain and 288.7 with one draft token (1.33x), peaking at 97% of its memory, with correct answers. A 24 GB cap at full size never started: the weights alone are 23.47 GiB. The 24 GB and 32 GB rows are caps on the A6000, not real cards. FP8 on a real 16 GB Ampere card is untested and may fail at load.\n\nJetBrains' card says the output is unchanged. In quality it was: the bug was found on every run, the interval-merging function passed its checks in all 13 outputs, the math answer was 400 each time. In exact text it was not. With greedy decoding (always taking the most likely token), two runs of one prompt produced 369 and 810 tokens with the head, and 380 and 829 without it. The vLLM docs say hardware numerics and batch size can shift the exact words. Tests that assert on raw model text will be flaky either way. Assert on what the answer does.\n\nTool calls varied too (one city per turn with MTP on the A6000, two parallel calls without), so your client needs a real agent loop.\n\nJetBrains built the model and its head and released them under Apache-2.0 on the [Mellum2.1 MTP model card](https://huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Thinking-MTP). The vLLM project provides the MTP speculative decoding, the spec-decode metrics and online FP8, and Hugging Face Transformers provides the modeling code vLLM runs. We found the release through a [post by pmttyji on r/LocalLLaMA](https://www.reddit.com/r/LocalLLaMA/comments/1xln8f2/jetbrainsmellum2112ba25bthinkingmtp_hugging_face/). Our part was the deployment, the sweeps and the memory accounting.\n\nBefore you pick your draft depth, read the [Mellum2.1 MTP speculative decoding research post](https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding).", "url": "https://wpnews.pro/news/mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune", "canonical_source": "https://dev.to/inferencekey/mellum21s-mtp-head-on-vllm-87-of-guesses-accepted-111x-faster-what-to-tune-and-measure-5hbh", "published_at": "2026-11-23 06:39:47+00:00", "updated_at": "2026-11-23 06:41:41.636500+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "ai-tools", "mlops", "ai-chips"], "entities": ["JetBrains", "Mellum2.1", "vLLM", "RTX A6000", "RTX 5080", "InferenceKey"], "also_reported_by": [], "takeaway": "On Mellum2.1 with vLLM's MTP head, depth-1 drafting gave 1.11x single-request and 1.45x at eight concurrent requests, while depth 2 was faster for one request (1.31x) but depth 3 regressed — so benchmark depths 1 and 2 on your own prompts rather than trusting the 87.2% acceptance rate.", "recommendation": {"advice": "Benchmark speculative-decoding depths 1 and 2 on your own prompts and concurrency, and account for the MTP head's ~0.8 GiB weights shrinking KV cache under a fixed --gpu-memory-utilization.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune", "markdown": "https://wpnews.pro/news/mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune.md", "text": "https://wpnews.pro/news/mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune.txt", "jsonld": "https://wpnews.pro/news/mellum2-1-s-mtp-head-on-vllm-87-of-guesses-accepted-1-11x-faster-what-to-tune.jsonld"}}