Menu

Mellum2.1's MTP head on vLLM: 87% of guesses accepted, 1.11x faster. What to tune and measure
📰

Mellum2.1's MTP head on vLLM: 87% of guesses accepted, 1.11x faster. What to tune and measure

#devcommunity#dev#vllm#model#tokens
Long article (923 words) — no AI summary yet.
Reading 0:00
15s threshold

If you watch only one number when you turn on speculative decoding, you will probably watch the wrong one.

A 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.

JetBrains 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.

The guesser worked. The checking took the gain back.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.