# Qwen4-35B-A3B Open-Sourced, vLLM Delivers Day-0 Support and Optimizes Single-GPU 1M-Context Deployment

> vLLM details the multimodal MoE architecture and deployment specifics, covering NVIDIA, AMD, and Alibaba T-Head's Zhongwu PPU.

- **Canonical URL**: https://aipress.im/en/article/qwen4-35b-a3b-vllm-day-0-support-811f59687f02
- **Markdown URL**: https://aipress.im/en/article/qwen4-35b-a3b-vllm-day-0-support-811f59687f02.md
- **Language**: English (en)
- **Published**: 2026-12-04T00:00:00.000Z
- **Updated**: 2026-12-04T10:15:39.299Z
- **Category**: AI Products
- **Editorial Score**: 76/100
- **Primary Source**: vLLM 官方博客（RSS） (https://vllm.ai/blog/2026-12-04-qwen4-35b-a3b)
- **Topics**: Chips & Compute, Model Releases, Inference & Serving, Open Weights
- **Entities**: Nvidia / Nemotron, Alibaba / Qwen

## Executive Summary

Qwen has released Qwen4-35B-A3B, the first open-source model in the Qwen4 series, with vLLM achieving Day-0 support on the same day. The model uses a multimodal MoE architecture with 35B total parameters and 3B activated parameters, natively supporting a 1M context. vLLM stores the N-gram table in host memory and uses NVFP4 KV cache, enabling a single GPU to hold the full context.

## Key Takeaways (TL;DR)

- Qwen4-35B-A3B is the first open-source model in the Qwen4 series, featuring a multimodal MoE architecture with 35B total parameters, 3B activated parameters, and native 1M-token context support.
- vLLM provides Day-0 support on NVIDIA Blackwell/Hopper, AMD MI350X/MI355X, and Alibaba T-Head's Zhongwu PPU, with Docker images and deployment commands.
- By placing the 20B N-gram table in host memory and retaining NVFP4 KV cache only for the 10 QSA layers, a 1M context requires just 8 GiB of VRAM, making single-GPU deployment feasible.

## Qwen4-35B-A3B Architecture: A Combination of Sparse Attention and N-gram Embeddings

Qwen4-35B-A3B is the first open-source model in the Qwen4 series. It adopts the same architecture as Qwen3.8-Flash-Next, which vLLM has supported since August. The model is a multimodal MoE with 35B total parameters and 3B activated parameters, plus a 20B N-gram embedding table and a 2B MTP module, and it natively supports a context length of 1M tokens. Its 40-layer network consists of 10 blocks, each containing three Gated DeltaNet layers and one QSA layer, with each sublayer followed by an MoE containing 256 routed experts (top-8) and 1 shared expert.

Qwen Sparse Attention (QSA) scores the context in blocks of 4 tokens. Each query attends only to the top-scoring 512 blocks (i.e., 2,048 tokens) plus the current incomplete block. There are 16 query heads and 2 KV heads, each with dimension 256. The model is trained for NVFP4 KV cache; together with Gated DeltaNet, which compresses the context into a fixed-size state, only the QSA layers need to retain KV cache. In addition, at layer 2, the model queries the 20B-parameter N-gram table using hashed bigrams and trigrams, and incorporates the result into the residual via a gated projection and short convolution.

- The 40-layer network is divided into 10 blocks, each containing 3 Gated DeltaNet layers and 1 QSA layer, followed by an MoE (256 routed experts + 1 shared expert).
- QSA attends to the top-512 blocks (2,048 tokens) per query plus the current incomplete block; the model is trained for NVFP4 KV cache.
- The N-gram table contains 20B parameters, and each token reads only a small number of rows.

> Only the 10 QSA layers retain KV cache; combined with the fixed state of Gated DeltaNet, a 1M-token context requires just 8 GiB of VRAM. If all 40 layers used BF16 full attention, the same context would require 80 GiB.

### MTP and Gated Residuals

The model includes one MTP layer, which after multi-step training can propose 3 draft tokens per decoding step for the main model to verify. The residual is 4 streams wide; before and after each attention and MoE sublayer, rank-256 gating mixes the streams into the input and writes back the output. Together, these designs support the model's expressiveness under sparse activation.

## vLLM Deployment Optimizations: Host-Memory N-gram Table and NVFP4 Sparse Attention

vLLM achieves Day-0 support on NVIDIA Blackwell and Hopper, AMD MI350X and MI355X, and Alibaba T-Head's Zhongwu PPU, and provides Docker images vllm/vllm-openai:qwen4 (NVIDIA) and vllm/vllm-openai-rocm:qwen4 (AMD). In the FP8 checkpoint, the 20.5 GB N-gram table would consume a large amount of VRAM if placed on the GPU; vLLM stores it in pinned host memory, reads only a small number of rows per token, and on NVIDIA uses a side stream to complete the gather while the layer preceding the N-gram layer is running.

For NVFP4 sparse attention, vLLM serves the KV cache in NVFP4 on SM89, SM90, SM10x, and SM12x, with kernels from FlashInfer: SM10x (data center Blackwell) uses the CAKE tcgen05 kernel for small-batch decoding, while the rest use PrimTS; SM89 and SM90 (Ada and Hopper) use FlashInfer sparse paged attention; SM12x (RTX Pro Blackwell) uses CAKE. On AMD MI350X and MI355X, QSA and prefill run on AITER and FlyDSL kernels, and --monokernel launches small-batch decoding as a persistent kernel.

- The FP8 checkpoint model is 39.7 GB with a 20.5 GB N-gram table; the BF16 checkpoint is 72.7 GB and 41 GB, respectively.
- The N-gram table is stored in pinned host memory to avoid consuming VRAM.
- On AMD platforms, --quantization mxfp4 quantizes routed experts to MXFP4 at load time.

> On a single B300, the FP8 checkpoint achieves a single-request generation speed of 514 tokens/s with SPEED-Bench prompts and recommended sampling settings.

### Alibaba T-Head Zhongwu PPU Support

The T-Head team supports Qwen4-35B-A3B on the Zhongwu PPU via the vllm-sail plugin: it can run on a single M890 (TP1) or two 810E (TP2 with expert parallelism). See the official recipe for specific commands. This gives the model a deployable path on domestic accelerator hardware.

## Small Models Expose Overhead: vLLM's Latency Optimizations

With 3B activated parameters, decoding steps are extremely short: on a single B300 with a single request, verifying 4 positions in the main model and drafting 3 tokens in the MTP layer takes only about 4 milliseconds. At this point, overhead outside the model math—CPU work, kernel launch gaps, and sampling—accounts for a significant share of latency, and most of vLLM's work focuses on reducing this overhead.

Specifically, vLLM merges the subsequent MTP draft steps into a single CUDA graph: the first step runs the MTP layer indexer and drafts token 1, while steps 2 and 3 reuse that token selection but require new indexer metadata. Previously, the metadata was rebuilt on the CPU, leaving the GPU idle and launching a separate graph for each step; now the metadata is updated in place on the GPU (#58449), allowing steps 2 and 3 to be replayed as a single CUDA graph. In addition, vLLM distributes the top-k/top-p mask across SMs and overlaps dependent kernels using PDL.

- MTP steps 2 and 3 are merged into a single CUDA graph replay by updating metadata in place on the GPU.
- The top-k/top-p mask is distributed across SMs.
- Dependent kernels are overlapped using PDL.

> With VLLM_BATCH_INVARIANT=1 on NVIDIA GB200, vLLM rollout and Megatron-LM (mLite) training produce bitwise-identical logprobs across 10 DAPO RL steps (0 mismatched bits out of 682,536), while keeping NVFP4 KV, FP8 indexer, MTP-3, prefix caching, and CUDA graphs enabled, at 92.7% of standard RL rollout throughput (6,322 tokens/s on a single GB200).

### Zero-Mismatch Reinforcement Learning

vLLM also demonstrates Day-0 zero-mismatch RL capability: after enabling VLLM_BATCH_INVARIANT=1 on GB200, rollout and training produce bitwise-identical logprobs. The code and recipe are available at Inferact/zero-mismatch-rl. This provides a reproducible deployment option for RL workflows that require precise alignment.

## Industry Impact & Outlook

Qwen4-35B-A3B runs on a single GPU with 3B activated parameters and a 1M context, lowering the barrier to deploying long-context multimodal models. vLLM's Day-0 support covers NVIDIA, AMD, and Alibaba T-Head's Zhongwu PPU, showing that inference frameworks are building cross-hardware adaptation capabilities around sparse attention and low-precision KV cache—a practical reference for AI teams in the Asia-Pacific region seeking diversified compute options.

## Frequently Asked Questions

#### How does Qwen4-35B-A3B achieve a 1M context on a single GPU?

vLLM stores the 20B N-gram table in host memory and retains NVFP4 KV cache only for the 10 QSA layers, while the 30 Gated DeltaNet layers use a fixed-size state. This makes a 1M-token context require just 8 GiB of VRAM, allowing the model and full context to fit on a single GPU.

#### Which hardware does vLLM's Day-0 support for Qwen4-35B-A3B cover?

It covers NVIDIA Blackwell and Hopper, AMD MI350X and MI355X, and Alibaba T-Head's Zhongwu PPU (via the vllm-sail plugin, on a single M890 or two 810E). Official Docker images and deployment commands are provided.

#### What is the model's generation speed on a single B300?

With SPEED-Bench prompts and recommended sampling settings, the FP8 checkpoint achieves a single-request generation speed of 514 tokens/s.
