I Benchmarked Every MTP Depth on Qwen3.8–27B-UD-Q4. Here You Are.
From the publisher’s feed, collected in the ZeroLabs newsroom.
I Benchmarked Every MTP Depth on Qwen3.8–27B-UD-Q4_K_M/XL. Here You Are.Normal decoding is one forward pass per-token. That is the entire bottleneck of local inference.TL;DRMTP on Qwen3.8–27B-UD-Q4 gives a genuine ~2× on a 4090: 48.5 → 96.2 t/s on K_M, 46.3 → 84.2 t/s on K_XL. The useful band for draft_num_predict is 2 to 5, and 5 is the pick: best on K_M, best on K_XL, best average, best worst case.Above 5 both builds lose ground. Drafting more tokens does not raise how many get accepted per verification pass, so the extra drafts are pure cost.Above 8 on K_XL, or 11 on K_M, you are actively destroying performance (up to 5.3× slower than not using MTP at all). Those two numbers are three apart, on the same model and the same card, and that is the whole reason “use a low value” was never a sufficient answer. The heavier quant breaks earlier. Your card will break somewhere else.Seventeen Gigabytes of Weights Moved to Produce a Single Token (By Author, Powered by Gemini)At 27B parameters and 4-bit weights on my RTX 4090, one decode step costs roughly 20.6 ms and produces exactly one token. That is where my ~48 tokens/s comes from, and no amount of clever prompting changes it.The trick behind speculative decoding is that the forward pass is bound by memory bandwidth, not by compute. You are dragging seventeen gigabytes of weights across the memory bus to produce a single token. If you happened to have several candidate tokens sitting there, you could verify all of them in that same pass for nearly no extra cost, because the weights are already in flight.Multi-Token Prediction (MTP) is where those candidates come from. unsloth/Qwen3.8–27B-GGUF ships with a small head trained to guess the next few tokens. The head drafts, the full model verifies. Every draft that matches what the model would have produced anyway is a free token. Every draft that doesn’t is thrown away, and you fall back to the one token you were going to get regardless.Two things follow, and both matter for the rest of this article.First, MTP is not a quality tradeoff. The verification step is what makes it safe: a drafted token only survives if the main model agrees with it. NVIDIA’s primer on the technique puts it plainly: when the draft is wrong, the target model just decodes normally, so the output is not degraded. This is not quantization. You are not trading precision for speed. You are trading VRAM for speed.Second, it is not free. The draft head has to live in memory, the drafted tokens have to be generated, and the verification pass has to chew through all of them whether they are accepted or not. On the Unsloth model card, the MTP module for Qwen3.8–27B ships as a single Q4_0 file of about 1.37 GB (no separate MTP build per quantization). You download the same module whether you run UD-Q4_K_M, UD-Q4_K_XL or anything else, and it costs the same gigabyte and change either way.On a 24 GB card, 1.37 GB is not pocket money. That is the whole tension.1. The problem: everybody says “low,” nobody says how lowdraft_num_predict N is the knob. It tells the runtime how many tokens to draft per verification pass. N=0 turns MTP off.When I went looking for a starting value, every source agreed on the shape of the advice (keep it small, more is not better) and disagreed on the number.Recommended Draft Depth by Source, and the Range They Span (By Author)One, two, three, five, six. All of them are “low.” All of them come from people who know exactly what they are doing. The spread between smallest and largest is a factor of six, and every one of those pages tells you, correctly, that the right answer depends on your hardware.Unsloth is the most explicit: try 1 through 6, keep whichever is fastest, and do not assume their starting number is optimal because performance is hardware-dependent.Honest advice, and completely unsatisfying, because it hands the problem straight back to you. And there was a second axis nobody was testing: does the answer change between quantizations of the same model? K_M and K_XL are the same weights with different bit allocations, about a gigabyte apart on disk. On a card where a gigabyte is 4% of the total budget, that is not obviously a rounding error.So: two open questions, no answers, and a 4090 doing nothing at night.2. How many values? YesI could not sleep with this open. If I could not sleep, my computer wasn’t going to either.I built both quants at the same context size, wrote a harness that walks draft_num_predict from 0 to 15, three runs at each value, same prompt set every time, and left it running. Sixteen depths × two quants × three runs = 96 runs.Sixteen is more than anybody recommends testing. That is the point. Every guide says sweep 1 through 6; but if the useful range really ends around 6, I wanted to see what the other side of the wall looks like, because “don’t go past 6” and “past 6 your machine turns into a potato” are very different warnings, and only one of them makes you double-check your Modelfile before you walk away for the night.3. The setup3.1. The machineIntel Core i7–14700KF with 128 GB RAM and an NVIDIA GeForce RTX 4090 (24 GB VRAM) running on Ubuntu 24.04 with Ollama. Flash attention on, q8_0 KV cache, OLLAMA_NUM_PARALLEL=1. That is the whole daemon-level story. Everything else that could move a number lives in the Modelfile below.3.2. The sixteen buildsIn Ollama the MTP head is a DRAFT instruction in the Modelfile, not a second FROM. One line, pointing at the Q4_0 module you downloaded alongside the weights:FROM ./Qwen3.8-27B-UD-Q4_K_M.ggufDRAFT ./mtp-Qwen3.8-27B-Q4_0.ggufPARAMETER num_ctx 98304PARAMETER num_batch 512PARAMETER temperature 1.0PARAMETER top_p 0.95PARAMETER top_k 20PARAMETER min_p 0.0PARAMETER presence_penalty 0.0PARAMETER repeat_penalty 1.0PARAMETER draft_num_predict 5Sixteen depths meant sixteen builds: same two .gguf files, one PARAMETER draft_num_predict apart, each tagged with its own depth so the harness could walk them by name.Thirty-two builds for the MTP benchmark (By Author)Thirty-two builds, actually (sixteen depths per quant). And there is the gigabyte the rest of this article turns on, sitting in the SIZE column: 17 GB against 18 GB.3.3. What I held constantSampling. Exactly as Qwen recommends for this family: the values in the Modelfile above, identical across all sixteen builds.96K of context. Just because I can load either quant, with the MTP module resident, and stay fully on the GPU. MTP eats VRAM like everything else. In my experience, the moment any part of this model spills to CPU the measurement stops being about MTP and starts being about round-trip latency, and a benchmark that silently changes what it is measuring halfway through a sweep is worse than no benchmark.No vision projector. I left the mmproj out to keep this to one variable.3.4. The benchmarkAll sixteen model configurations received the same instruction:You are a technical writing benchmark generator. Write a long, continuous,detailed explanation of how transformer-based LLMs decode text, includingattention, KV cache, sampling, batching, and token prediction. Do not usemarkdown. Do not stop early. Continue with as much concrete detail as possible.Prose, not code, and markdown explicitly disabled (one text distribution across the whole sweep), so nothing downstream is a formatting artifact.The measurement. Completion tokens divided by the streaming window, where the window starts at the first token, not at the request. Prefill and model load are excluded by construction, so what you are looking at is decode throughput and nothing else. Time to first token is recorded separately, from request start to first streamed character.Four details that make the numbers worth arguing about:A 16-token warmup runs before every measured call and is thrown away. No cold-load contamination anywhere in the sweep.Model order is shuffled every epoch. If the room warms up, or the card throttles, or something drifts over eight hours of running, it does not land systematically on whichever model happened to be last in the list.Stopping is adaptive, not fixed. The harness keeps running epochs until every model has the same number of successful runs, there are no errors, and the cumulative generated volume across models agrees within 5% of the median (tolerating at most one outlier beyond 2σ). Minimum three epochs, maximum ten. It converged at three, which is why every point here is n=3.Failures abort, they do not get papered over. Two retries per call; if a model still fails, the run stops rather than write a partial epoch and quietly break the equal-run-count invariant. Every configuration in this article has three successes and zero errors.3.5. What the numbers are notThree limits worth stating up front:Not long-context measurements. Time to first token sits around 316 ms across the sweep, which tells you the prompt is short relative to the window. The models are configured for 96K; the prompt did not fill it. Everything here is decode-bound behavior.Not your numbers. Absolute throughput on your machine will differ with card, driver, thermals and whatever else you have open. The community sweep linked above says it better than I can: the deltas are the durable part, not the absolutes.Not instrumented for VRAM. I confirmed the GPU/CPU split was 100% GPU for every configuration before each run, but I did not record it per configuration alongside the throughput numbers. Nothing here spilled to CPU; I just can’t hand you the table.The harness is standard library only (no dependencies, no framework), one file. If you want to reproduce this on your own card, here you are.4. The whole curveDecode Throughput as a Function of Speculative Draft Depth for Two 4-Bit Quantizations (By Author)Both quants climb hard, peak around N=5, and then fall off a cliff into a region where enabling MTP is worse than never having touched it. Not slightly worse. At N=15 the K_XL build runs at 8.7 t/s against a 46.3 t/s baseline (a 5.3× slowdown), with the model 100% resident on the GPU throughout (verified, not assumed). This is not spilling. It is the drafting itself.The good half first:Peak Throughput and Speedup at N=5, Both Quants (By Author)Roughly double, on both quants. That sits squarely inside the range Unsloth publishes for MTP on this family, so no surprise there. The surprise is everything to the right of the peak.5. Where MTP stops payingSpeedup Relative to Disabled Speculation Across Draft Depths (By Author)Here is the answer to the question I actually started with, and it is not a single number.K_XL goes underwater at N=8. K_M holds out until N=11.Same model. Same machine. Same prompt. Same night. The only difference is about a gigabyte of weights, and it is worth three steps of draft_num_predict.That is the part I had not seen written down anywhere, and it changes how you should read every recommendation in that table. “Use a low value” is not a property of the model. It is a property of the model and the quantization and the card and how much room is left after your context. A depth that is comfortable on K_M can already be past break-even on K_XL, on the identical machine, on the same afternoon.If you take one thing from this article: the safe depth is not a constant you can copy from a docs page. It moves with your build.6. What the measurements actually sayForget the fit for a moment. Here is every candidate depth, as speedup over MTP off, on both builds (plus the average of the two) and, more usefully, the worse of the two, because on an unknown machine the floor matters more than the ceiling.Speedup at Every Candidate Depth, With Mean and Worst Case Across Builds (By Author)N=5 wins outright, four times over. Best on K_M. Best on K_XL. Best average. Best worst case. There is no criterion in this dataset under which something else is preferable.The two curves do not agree equally well, and that is worth being precise about. K_XL rises monotonically (1.43, 1.59, 1.65, 1.74, 1.82) and tops out cleanly at 5. K_M is jagged: it swings 0.3× or more between adjacent depths across the whole healthy band, which is more movement than the 5% separating its own peak from N=2. So the clean read on N=5 comes from K_XL, and K_M agrees with it without being able to resolve it on its own. Two builds landing in the same place is worth something. It is not two independent measurements.One caveat on reading the ordering too closely: K_M dips to 1.50× at N=4, but K_XL’s N=4 is 1.74×, its second-best value in the sweep. The builds disagree there, which is the signature of run-to-run noise rather than a property of the depth. Anywhere from 2 to 5 is a defensible setting. Below 2 you are leaving speed on the table; above 5 you are paying for drafts nobody accepts.So: the useful band is 2 to 5, the pick is 5.7. The bill you pay on first-token latencyTime to First Token as a Function of Speculative Draft Depth (By Author)Time to first token is flat at around 316 ms from N=0 through N=7 on both builds. In the healthy region, drafting costs you nothing on latency. You get the throughput and pay no entry fee.Then it climbs: 526 ms on K_M at N=15 (+66%), 624 ms on K_XL (+97%). And look at where it starts climbing: K_XL departs at N=8, K_M at N=11. The same two numbers as the throughput cliff. Two independent metrics pointing at the same boundary is the closest thing to corroboration this dataset has.The practical use: first-token latency is a free early-warning signal. If it starts rising as you raise N, you have already gone too far. You do not need to wait for a throughput measurement to tell you.8. When to use MTP at allThis is the part the throughput numbers cannot answer, because on a 24 GB card MTP and context length draw from the same account. The draft module and its buffers are gigabytes you are not spending on KV cache. So “should I enable MTP” is really “what am I selling to pay for it,” and the answer depends on how you work.I split my own AI-assisted development into two modes, and they want opposite things.8.1. Unattended: the agent is working, I am notUnattended: the agent is working, I am not (By Author, Powered by Gemini)I hand over a plan, a checklist, a set of specs, and I go do something else. The agent decomposes the work, spawns subagents, moves through tasks, updates state, and I read the result later.Here the scarce resource is context, not speed. The agent needs room for the plan, the checklist, its own reasoning, the files it is touching, and the output it is about to write on top of all that. When it runs out it compacts, and if the window is too small it compacts so often that it never gets a clear run at the actual feature: you end up in a loop where nothing finishes. Meanwhile nobody is watching the tokens stream. The difference between 48 t/s and 96 t/s costs me nothing, because I am not in the room. Trading a gigabyte and a half of context for speed I will never observe is a bad deal.Unattended work: keep the context. Skip MTP.8.2. Attended: I am in the loop, and I am the one waitingAttended: I am in the loop, and I am the one waiting (By Author, Powered by ChatGPT)This is babysitting mode. I am prompting in Claude Code or OpenCode, referencing the specific files that matter, defining the boundaries of the task myself: clearly and comprehensively, because in this mode that is my job.Here the context requirement is genuinely smaller, and not as a compromise. When I review code I would rather read ten to twenty files properly than have something skim two hundred and hand me a summary. Or worse: watch a test suite I did not write go green over coverage I never checked, and push to main with a sense of safety I have not earned. Ten files I actually understand beats two hundred I have merely been near.So the window is small on purpose, and the bottleneck moves somewhere completely different: to me, watching tokens appear. Every second of decode is a second of my attention burning. Doubling throughput here does not save the machine any work, it saves mine, and it is the difference between a tight iteration loop and one where I alt-tab away and lose the thread entirely.Attended work: take the speed. Enable MTP.The general principle, if you want one: MTP converts VRAM into decode speed. That is a good trade exactly when a human is waiting on the tokens, and a bad one when a machine is.I Benchmarked Every MTP Depth on Qwen3.8–27B-UD-Q4. Here You Are. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.