Qwen4-35B-A3B on vLLM: Day-0 Support
vLLM Team and Inferact · 2026-12-04
Fitting a million-token context on one device
Qwen4-35B-A3B activates around three billion parameters per token, yet a deployment must also hold sparse experts, an N-gram table, a multi-token prediction module and long-context state. vLLM places these differently. The 40 layers form ten blocks, each with three Gated DeltaNet layers and one sparse attention layer. DeltaNet updates a fixed-size state, while sparse attention retains historical KV. An indexer scores groups of four tokens. Each query attends to the top 512 groups plus the current partial group. Sparse access reduces the entries read per step. Cache format and the number of caching layers determine the storage bill.
The NVIDIA recipe stores KV in the model’s trained NVFP4 format. The team reports around 8 GiB of KV for one million tokens, against 80 GiB if all 40 layers used BF16 full attention. Those figures cover KV alone. In the FP8 checkpoint the N-gram table takes 20.5 GB, yet each token accesses just a few rows. vLLM places the table in pinned host memory and gathers those rows on a side stream during the preceding layer. Sparse transfers free the device from holding the entire table. The main model and fixed state still require their own budgets.
Four-millisecond steps expose launch overhead
For one request on a B300, the main model verifies four positions and MTP drafts three tokens in about four milliseconds. Sampling masks, CPU submission and gaps between small kernels become measurable parts of a step. vLLM captures later MTP draft steps together for CUDA graph replay and distributes top-k/top-p masking across SMs. A dependent kernel must wait for its predecessor’s result, but can sometimes load its own weights and prepare metadata earlier.
The gated residual path illustrates the distinction. The up-projection can load weights before waiting for the down-projection, and the downstream router matrix multiplication can prefetch its weights as well. Programmatic dependent launch moves the wait to the point where the result is consumed. On one B300 with FP8 weights and SPEED-Bench prompts at temperature 1.0, top-p 0.95 and top-k 20, per-request output rate went from 514 tokens/s at concurrency one to 336 at concurrency four. Median time to first token rose from 46 to 62 ms. The four-request measurement shows how the headline single-stream rate changes under load.
Can the trainer reproduce rollout probabilities?
Reinforcement learning adds another requirement. Log probabilities recorded during generation should be reproducible in training. On GB200 the team retained NVFP4 KV, an FP8 indexer, three-step MTP, prefix caching and CUDA graphs while enabling batch invariance and aligning vLLM with the Megatron-LM mLite path. With invariance disabled, 4,005 of 4,096 generated tokens had bit-level log-probability differences. With it enabled, ten DAPO training steps on eight GB200s recorded zero bit mismatches across 682,536 comparisons. The counts come from separate runs with different denominators.
The paired single-device throughput test used BF16 weights and toggled only batch invariance. At 512 input tokens, 2,048 output tokens and concurrency 32, rollout throughput changed from 6,821 to 6,322 tokens/s, retaining 92.7%. At concurrency 64 it retained 89.2%. An uncached 8K-input, 1K-output workload at concurrency 32 retained 79.4%. The cost of parity depends on the request shape. Long-context capacity, interactive decoding speed and training parity each have their own hardware, precision and workload conditions.