Correction of December 5th: the numbers of the confirm run further down were measured wrong, my measuring tool added one second to every request. I measured everything again, the table is replaced, and how it was measured is in the appendix.
Qwen4 came out this morning, and a few hours later it ran here on four workstation cards with 24 GB each, the whole 1M context in VRAM. I ended my post about it on LinkedIn saying that vLLM itself is next, for more speed out of these cards. During the night the SGLang team had already posted 435 tokens per second for Qwen4 with a small helper model that proposes tokens, on a single RTX PRO 6000. In the morning code ran here at about 280 with the built-in MTP (re-measured on December 5th, see the appendix). My first question: can we get that on vLLM too?
For code yes, in the A/B run just as much at 435, on other hardware and with other prompts. For German prose no. Whether it is yes or no hangs on a single line in the pull request, and both versions of that line are right.
What a draft model does
If you can explain speculative decoding in your sleep, jump to the next section.
A large language model writes token by token, and every step reads all active weights from memory once. Qwen4-35B-A3B is a mixture of experts, per token about three billion of its 35 billion parameters are active. The card spends almost all of that time waiting for memory, the compute units have little to do.
Speculative decoding uses that gap. A small, fast model guesses the next few tokens, and the large one checks all of them in one step. If the first three are right, you get three tokens for the price of one step. If the first one is already wrong, you get just one. The large model checks every token, so the quality of the answers does not depend on the draft. How much faster it gets depends mostly on how often the guess fits.
Qwen4 already ships such a mechanism: MTP, multi-token prediction, a few extra layers inside the model itself. We run it with three proposals per step. DFlash2 is a separate draft model that proposes a whole block at once, seven tokens per step in our setup. As input it gets the hidden states from five chosen layers of the large model.
Qwen4 adds one thing. The model splits the residual stream into four parallel streams (hyper-connections) and mixes them again in every layer. Which mix reaches the draft decides whether it gets the input it was trained on.
The first run: the draft loses
vLLM’s main branch does not have DFlash2 for Qwen4 yet, the support sits in the open pull request #66787. I built a test image from it, plus #54912, without which the draft with seven proposals does not even start: the attention block size did not fit the cache manager. In main, #71242 now replaces it.
I measured on the four RTX PRO 4000, tensor parallel over all four, the model in NVFP4, the KV cache in FP8, 1M context. Every run with the same flags, only the proposal mechanism changes. Four kinds of text, one request at a time: code, tool calls, German chat, German prose. On top of that one run with four users at the same time, where the sum counts.
The first run went clearly against the draft. With MTP code ran at 291 tokens per second, with DFlash2 at 236. With four requests at once DFlash2 dropped to 374, even below the run without any speculation at 460. The first proposed token was right on code in 71 percent of the cases, MTP hit 93 percent at the same position.
My first thought was: the draft is simply weaker than what the model brings itself. That would have closed it fast. But it does not fit the model card, which promises much higher acceptance, and it does not fit SGLang’s 435 either.
The line
So I put the SGLang code next to the pull request and looked at what exactly reaches the draft in both.
SGLang captures the mixed input of the layer for the draft, what goes into the layer’s actual computation after the four streams are combined. The pull request gives it the mean of the four streams. Both make sense, but the draft was trained on one of them.
In my test image that line can be switched with an environment variable. I switched exactly that, nothing else, and ran the same benchmark again. On code the first token was now right in 85 instead of 71 percent of the cases, every step produced 4.8 tokens on average instead of 2.8, MTP gets 2.9. Code went from 236 to 464 tokens per second, MTP is at 291. Tool calls went from 162 to 291, MTP gets 227. These are single runs; with five runs per side code stands at 435 against 250 (table below).
MTP against DFlash2, once with the line from the pull request, once with the line from SGLang. Single runs of December 4th; the table below is re-measured with five runs.
| tok/s, one request, median | MTP | DFlash2 |
|---|---|---|
| Code | 250 245–250 | 435 428–465 |
| Tool calls | 195 192–200 | 285 283–303 |
| German chat | 191 183–197 | 227 222–230 |
| German prose | 161 160–163 | 166 160–167 |
| Four users, sum | 464 445–475 | 460 445–487 |
| Tokens per step, code | 2.80 | 4.51 |
DFlash2 with the SGLang line. Four RTX PRO 4000, FP8 KV cache, same flags in every run. Median of five runs, the range in small type below, measured streamed, with the model card’s sampling for answers without thinking. Re-measured on December 5th; the numbers in the text above are the single runs of December 4th.
Both are right
Before reporting that as a bug in the pull request, I read the whole thread. Until December 2nd the pull request used the same capture as SGLang. It was switched for a different DFlash2 draft, the one for Qwen3.8, which hits much better with the mean. That is measured in the thread. Their numbers are right, and so are mine, it is just another draft.
So there is no one right line. Which capture fits depends on what the draft was trained on, and that is written nowhere in the configuration yet. I posted both runs in the pull request and proposed a field in the draft’s configuration that names the capture. Without the field it stays at the mean: the Qwen3.8 draft runs as it does today, the Qwen4 draft sets the field.
Where DFlash2 does not win
On German prose DFlash2 gains nothing even with the SGLang capture: 166 tokens per second against 161 with MTP, the ranges overlap. The first proposed token fits there in only 39 percent of the cases, from the third on almost never. German chat: DFlash2 227, MTP 191. With four users both are even, 460 to 464. In the single run of December 4th prose still looked like a clear loss (166 to 191); with five runs it is a draw.
DFlash2 with the SGLang line, one bar per position in the proposal block. Orange bars: code. Grey line: German prose. On code even the seventh proposal still fits in a third of the steps, on prose almost nothing from the third on.
Prose does not win for the same reason code wins. Seven proposals per step cost compute time, even when they get thrown away. On code the next tokens are often nearly fixed, so it pays off. Free German text has many equally good continuations, and the draft burns the time. With four users the proposals share cards that are already busy.
At noon I ran the confirm run on our final configuration with the NVFP4 KV cache. The numbers that stood here first (code 390 against 247, prose 4 to 8 percent slower, four users 6.6 percent) were measured wrong. My old measuring tool asked without streaming and waited for the connection to close, and through the port-forward that close came exactly one second late, every time. Both sides carried the second, so the comparison looked fair. On short answers it ate most of the time, though, and it was one run per side, with a sampling the model card does not recommend.
So on December 5th I measured again: streamed, five runs per side, with the sampling the model card recommends for answers without thinking, both sides on identical flags.
| tok/s, median | MTP | DFlash2 |
|---|---|---|
| Code | 278 274–280 | 459 446–486 |
| Tool calls | 212 203–216 | 288 268–290 |
| German chat | 216 213–218 | 225 219–229 |
| German prose | 182 182–186 | 166 164–168 |
| Four users, sum | 517 486–531 | 467 457–488 |
NVFP4 KV cache, DFlash2 with the SGLang line, tokens per second for the whole answer, median of five runs, the range in small type below. Code is 65 % faster, tool calls 36 %, German chat 4 %. German prose is 9 % slower, four users at once 10 %.
Beforehand we had allowed up to 15 percent on prose and 8 percent with four users. Prose stays inside, four users misses the limit narrowly. The server stays on DFlash2 anyway: it mostly serves agents with code and tool calls, and in the last 24 hours four requests at once came up in only 8 percent of the time it was busy at all.
SGLang’s 435 stand as well. They were measured on a card with almost three times the memory bandwidth, with other prompts. A speed figure for speculative decoding holds for one pair of large model and draft, for one kind of text and for the one line that sets what the draft gets to see.
Hardware One server with four RTX PRO 4000 Blackwell (24 GB each, 672 GB/s, sm_120), over PCIe without NVLink, tensor parallel 4. The cards ran in P1 at 2,047 MHz without throttling (nvidia-smi during the runs), nothing else ran on the server.
Software vLLM 0.1.dev26393+gf247de72b (image vllm/vllm-openai:qwen4@sha256:63a160da), with PR #66787 at 1f302c195e and #54912 at 83eb5568c0 on top, built as vllm-qwen4-dflash2:20261204.105401-b3d5330a (sha256 1184d50c). Target model Qwen4-35B-A3B in NVFP4 (experts W4A4, group 16), draft RadixArk/Qwen4-35B-A3B-Dflash2 rev cb9d9b21.
Configuration --kv-cache-dtype nvfp4, --attention-config.indexer_kv_dtype fp8, --max-model-len 1048576, --max-num-seqs 4, --max-num-batched-tokens 8192, prefix caching and chunked prefill on, FlashInfer autotune off, N-gram table in VRAM (four cards have room for it). MTP: method mtp, num_speculative_tokens 3, index_share_for_mtp_iteration true, the recipe from the vLLM post on Qwen4. DFlash2: seven proposals, draft KV in BF16, capture block_input. Both sides run on the same image and the same flags, only the speculative config and the capture differ. The NVFP4 table below uses the weights of our live server (stien95, NVFP4) with NVFP4 KV. The FP8 table further up uses RadixArk/Qwen4-35B-A3B-NVFP4 with --kv-cache-dtype fp8, otherwise the same flags. The MTP side is diffed against the live configuration.
Workload Four kinds of text with two fixed prompts each: code (an ISO 8601 parser in Rust, an LRU cache), a tool call with a terminal tool, German chat (two short everyday questions), German prose (about 400 words of explanation, a short story). One request at a time, up to 2,500 output tokens, thinking off (reasoning_effort: none). On top, four concurrent streams with 512 forced tokens each, the sum counts.
Sampling The model card’s recommendation for answers without thinking: temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5. As a cross-check, one run each with the old profile (without presence penalty) and the thinking profile (1.0 / 0.95 / 20). The direction is the same in all three profiles, code at 386 to 403 for DFlash2 and 269 to 288 for MTP. These single DFlash2 runs came from an earlier start of the same server, and that start was about 16 percent slower on code than the start of the five runs, at almost the same acceptance (4.60 against 4.77 tokens per step). I did not find the cause. The MTP side was the same on both starts (278).
Runs Five independent runs per side, each with two prompts times two repeats per kind of text and two runs with four streams. The table shows the median of the five, the range in brackets. DFlash2 ran on December 5th from 06:29 to 06:34, MTP from 06:41 to 06:46, on the same cards. The FP8 table further up: MTP from 14:39 to 14:44, DFlash2 from 14:52 to 14:56, each after one warm-up run, weights warm from the models share (13 seconds to load). A first DFlash2 try at 14:46 gave no data: my script passed the wrong draft length to the benchmark, and the benchmark refused every row. That try is in the raw data too.
Measuring tool My own benchmark in Rust (dfl2bench, commit e35ad23). It asks streamed and measures to [DONE]; tok/s is output tokens over the time of the whole answer including the first token. Tokens per step come from the server’s counters (vllm:spec_decode_num_accepted_tokens_total over vllm:spec_decode_num_drafts_total, plus one).
Controls The old tool behind the first version of this post asked without streaming and waited for the connection to close. Through kubectl port-forward the close came 1.000 seconds after the last byte, four of four measured. Directly in the pod it came at once. Both tools then ran against the same server: same tokens per step, a gap of 0.9 to 1.35 seconds per request. A single 1M request right before the measurement slows only the first run after it on code (375 instead of 446 to 486); the two following runs and all other kinds of text are back inside the range of the five runs before. The stop after the first of two tool calls in one request, reported in the pull request for SM80, does not happen here (18 of 18 complete).
Raw data Every run as TSV with a column description: /data/qwen4-dflash2-remeasure-2026-12-05/ (five runs per side, the three sampling profiles, the controls) and /data/qwen4-dflash2-fp8-2026-12-05/ (the FP8 table). The first version of the table is in the git history of this blog.