Mellum2.1's MTP head on vLLM: 87% of guesses accepted, 1.11x faster. What to tune and measure
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…
Mellum2.1's MTP head, built into JetBrains' open coding model, improved token generation speed by 1.11x when enabled in vLLM 0.33, an open-source inference server. However, the checking process reduced the gains, resulting in a final throughput increase of 1.11x below JetBrains' promised 1.4 to 1.8x. The guesser worked, but checking cost nearly as much as it saved.
The number of tokens guessed per step, known as draft depth, must be tuned for optimal performance. Starting at 1, increasing to 2 produced faster results, while depth 3 saw fewer successful guesses. Concurrency also affected performance; with eight requests at once, depth 1 reached 1.45x, within JetBrains' range. The MTP head adds under a gigabyte of weights (0.80 GiB in BF16) to the server's KV cache, which stores conversation state, reducing the available GPU memory.
On an A6000 GPU, the head reduced the available cache by 8.5%, while on a 16 GB RTX 5080, it dropped to 29,019 tokens, limiting the space for three full 16K conversations. The RTX 5080 still outperformed the A6000, generating 217.2 tokens per second with no drafts and 288.7 with one draft token. However, this does not account for exact text differences or tool call variations, so your client may need a real agent loop to handle flaky tests.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to