Qwen4-35B-A3B vLLM Day-0 Support

Overview

vLLM now provides day-0 support for the Qwen4-35B-A3B model, a multimodal Mixture-of-Experts (MoE) architecture. This release enables native 1M-token context handling on single GPUs, optimized inference via NVFP4 sparse attention, and zero-mismatch reinforcement learning (RL) rollouts compatible with Megatron-LM.

Model Architecture

Qwen4-35B-A3B utilizes the Qwen3.8-Flash-Next architecture, characterized by a 35B total parameter count with 3B active parameters. The model structure consists of 10 blocks, each containing three Gated DeltaNet layers and one Qwen Sparse Attention (QSA) layer, followed by an MoE with 256 routed experts and one shared expert.

Key architectural features include:

  • Gated DeltaNet: Compresses context into a fixed-size state, reducing KV cache requirements.
  • QSA: Uses an indexer to score context in 4-token blocks, allowing queries to attend to the top 512 blocks (2,048 tokens).
  • N-gram Embeddings: A 20B-parameter table of hashed bigrams and trigrams integrated via gated projections and short convolutions.
  • MTP: A Multi-Token Prediction layer that proposes 3 draft tokens per decode step to accelerate verification.

Serving Optimizations

vLLM implements several optimizations to manage the overhead of the 3B active parameter model:

  • Memory Efficiency: By utilizing NVFP4 for the KV cache and keeping the 20B N-gram table in pinned host memory, a 1M-token context requires only 8 GiB of GPU memory.
  • CUDA Graph Integration: MTP draft steps are now replayed as a single CUDA graph, eliminating CPU-side metadata rebuilding between steps.
  • Parallel Sampling: Sampling masks are distributed across Streaming Multiprocessors (SMs) to ensure exact results during rejection sampling.
  • Programmatic Dependent Launch (PDL): vLLM overlaps dependent kernels, such as gated residual chains and Gated DeltaNet projections, to minimize latency in short decode steps.

Zero-Mismatch RL

To support consistent training, vLLM introduces VLLM_BATCH_INVARIANT=1. This mode ensures bitwise-identical logprobs between vLLM rollouts and Megatron-LM (mLite) training. On an NVIDIA GB200, this configuration achieved 0 mismatches across 682,536 tokens during 10 DAPO RL steps, while maintaining 92.7% of standard rollout throughput. The implementation supports NVFP4 KV caching, FP8 indexers, and prefix caching simultaneously.

Hardware Support

vLLM provides optimized paths for several hardware backends:

  • NVIDIA: Support for Blackwell and Hopper architectures using FlashInfer kernels (CAKE and PrimTS).
  • AMD: Support for MI350X and MI355X using AITER and FlyDSL kernels, with --monokernel support for persistent small decode steps.
  • Alibaba T-Head: Support for the Zhenwu PPU via the vllm-sail plugin.

Sources