unsloth/Qwen3.6-27B-NVFP4 MTP — vLLM 0.25.0 on RTX 5090

·5 min readlocal-ai

TL;DR: vLLM 0.25.0 on unsloth/Qwen3.6-27B-NVFP4 with MTP speculative decoding — Model Runner V2 is now default, flashinfer_b12x MoE backend cuts latency, new --linear-backend flag, and Qwen Triton kernel warmup. Auto-fit context drops from 131K (v0.24.0) to 120K tokens. Warm boot init: 25.87s.

This is a follow-up to the vLLM 0.24.0 MTP post. Upgraded to vLLM 0.25.0 and the log output shows several architectural changes under the hood.

The command:

Terminal window
CUDA_VISIBLE_DEVICES=0 \
NCCL_P2P_DISABLE=1 \
VLLM_SKIP_P2P_CHECK=1 \
VLLM_USE_FLASHINFER_SAMPLER=1 \
FLASHINFER_MAX_NUM_SEQS=6 \
CUTE_DSL_ARCH=sm_120 \
vllm serve ./unsloth/Qwen3.6-27B-NVFP4 \
--host 0.0.0.0 \
--port 8082 \
--tensor-parallel-size 1 \
--gpu-memory-utilization 0.92 \
--attention-backend flashinfer \
--linear-backend auto \
--moe-backend flashinfer_b12x \
--kv-cache-dtype fp8_e4m3 \
--max-model-len auto \
--max-num-seqs 6 \
--max-num-batched-tokens 8192 \
--safetensors-load-strategy prefetch \
--enable-chunked-prefill \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_xml \
--enable-auto-tool-choice \
--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf \
--gdn-prefill-backend flashinfer \
--kv-offloading-backend native \
--kv-offloading-size 64 \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2}'

What’s New in vLLM 0.25.0

Model Runner V2 (Default)

vLLM 0.25.0 makes Model Runner V2 the default for all dense models. This is an internal refactoring of the GPU model runner — same API, different execution path. The log no longer mentions V1 vs V2 explicitly since V2 is now the only path for dense models.

558 commits from 232 contributors went into this release. For us, the visible changes are the new backend flags and kernel warmup.

FlashInfer MoE Backend

New --moe-backend flag replaces the implicit MoE kernel selection:

moe_backend='flashinfer_b12x'

flashinfer_b12x is FlashInfer’s batched Mixture-of-Experts kernel. Qwen3.6-27B is a dense model (not MoE), but vLLM still routes through the MoE backend configuration. On dense models this is effectively a no-op — the NVFP4 GEMM path (FlashInferCutlassNvFp4LinearKernel) handles the actual compute.

Linear Backend

New --linear-backend auto flag controls the linear (dense GEMM) kernel selection:

Using FlashInferCutlassNvFp4LinearKernel for NVFP4 GEMM
Using CutlassFP8ScaledMMLinearKernel for CompressedTensorsW8A8Fp8

Two kernels: NVFP4 uses FlashInfer’s Cutlass integration, while CompressedTensors W8A8 FP8 uses the standard Cutlass FP8 scaled kernel. The auto setting lets vLLM pick based on quantization format.

Qwen Triton Kernel Warmup

New in the logs — vLLM 0.25.0 explicitly warms up Qwen-specific Triton kernels:

Warming up Qwen Triton kernels for model_type=qwen3_5_text.

This precompiles Triton kernels tuned for Qwen3.5 architecture at startup instead of cold-compiling on first request. Eliminates the first-request latency spike.

FlashInfer Query Dtype Resolution

New log line showing FlashInfer’s dtype resolution for Blackwell sm120:

FlashInfer resolved query dtypes: prefill=torch.bfloat16, decode=torch.bfloat16, decode_backend=flashinfer-native, kv_cache_dtype=torch.float8_e4m3fn, arch=sm_120

Prefill and decode both use bfloat16 queries with fp8_e4m3 KV cache. The decode_backend=flashinfer-native confirms FlashInfer’s native kernel (not Triton) is used for decode on sm_120.

Warm Boot Timeline

All caches warmed (torch.compile, FlashInfer autotune, FlashInfer MoE):

15:57:10 API server starts (v0.25.0)
15:57:10 Architecture resolved: Qwen3_5ForConditionalGeneration
15:57:10 MTP drafter resolved: Qwen3_5MTP
15:57:10 Max model len: 262144 (auto)
15:57:10 Chunked prefill enabled (max_num_batched_tokens=8192)
15:57:19 EngineCore V1 engine initializes
15:57:21 FlashInfer sampler (top-p & top-k)
15:57:25 Model loading begins
15:57:25 FlashInfer attention backend
15:57:25 NVFP4 GEMM: FlashInferCutlassNvFp4LinearKernel
15:57:25 CompressedTensors GEMM: CutlassFP8ScaledMMLinearKernel
15:57:25 DeepGEMM PDL enabled, E8M0 enabled
15:57:25 GDN prefill: flashinfer → Triton/FLA (fallback)
15:57:25 Prefetch starts (8 threads, 16 MiB blocks)
15:57:27 Prefetch complete in 1.34s (5/5 shards)
15:57:28 Weights loaded in 2.61s
15:57:28 Drafter loading (shares embedding + lm_head)
15:57:29 Drafter weights loaded in 0.90s
15:57:29 Model loading: 22.13 GiB in 4.20s
15:57:33 torch.compile — load from cache
15:57:36 AOT load from cache
15:57:36 torch.compile total: 5.04s
15:57:40 Initial profiling/warmup: 3.76s
15:57:40 Drafter torch.compile: 0.09s (cache hit)
15:57:40 Auto-fit: max_model_len → 120,000 tokens
15:57:40 CUDA graphs: PIECEWISE (7 sizes, 0.10 GiB)
15:57:42 KV cache: 4.55 GiB available
15:57:42 CPU offloading: 17 tensors allocated
15:57:54 Qwen Triton kernel warmup (model_type=qwen3_5_text)
15:57:54 FlashInfer autotune: cache hit (fp4_gemm)
15:57:55 CUDA graph capture: 1s (7/7)
15:57:56 Engine init: 25.87s (compilation: 5.13s)
15:58:06 Server ready on http://0.0.0.0:8082

Total time to serve: ~56 seconds (warm boot).

Comparison: v0.24.0 vs v0.25.0 (Warm)

Metricv0.24.0v0.25.0Delta
Engine init19.62s25.87s+6.25s
Compilation5.12s5.13s~same
Weights loaded2.35s2.61s+0.26s
Drafter loaded0.92s0.90s-0.02s
Model loading total3.90s4.20s+0.30s
Auto-fit context131,200120,000-11,200
KV cache available4.89 GiB4.55 GiB-0.34 GiB
torch.compile (backbone)5.03s5.04s~same
Profiling/warmup32.30s3.76s-28.54s

The v0.24.0 cold boot profiling was 32.30s — that’s an outlier from the first-ever run. Warm profiling is 3.76s in both versions. The v0.25.0 total is slower because of the Qwen Triton warmup (+~10s) and slightly heavier model runner.

Key Observations

Context Window: 120K (Down from 131K)

Auto-fit max_model_len: reduced from 262144 to 120000 to fit in available GPU memory (4.55 GiB available for KV cache)

vLLM 0.25.0 allocates less KV cache memory than v0.24.0 (4.55 vs 4.89 GiB). Possible reasons:

  • Model Runner V2 has different memory accounting
  • Qwen Triton warmup reserves kernel memory
  • --kv-offloading-size 64 (up from 16 in v0.24.0) may reserve additional CPU buffers tracked against GPU budget

Mamba Cache Mode

New warning in v0.25.0:

WARNING: Prefix caching in Mamba cache 'align' mode is currently enabled. Its support for Mamba layers is experimental. Please report any issues you may observe.

Qwen3.6 has hybrid GDN (Grouped-Dropout-Neuron) layers that vLLM maps to Mamba-style state management. With prefix caching enabled, the Mamba cache uses align mode which is experimental. This doesn’t affect dense-only inference — it’s a warning for the GDN/hybrid path.

GDN Prefill: Still Triton/FLA

Same as v0.24.0 — --gdn-prefill-backend flashinfer falls back to Triton/FLA on sm_120:

WARNING: GDN prefill backend 'flashinfer' is selected but cannot use this kernel on the current platform. Falling back to Triton/FLA.
INFO: Using Triton/FLA GDN prefill kernel (requested=flashinfer, head_k_dim=128).

FlashInfer’s GDN prefill kernel still doesn’t support sm_120 (Blackwell). Triton/FLA is the working path.

CUDA Graphs: PIECEWISE (No Change)

WARNING: CUDAGraphMode.FULL_AND_PIECEWISE is not supported with spec-decode for attention backend FlashInferBackend (support: AttentionCGSupport.UNIFORM_SINGLE_TOKEN_DECODE); setting cudagraph_mode=PIECEWISE

Same as v0.24.0 — speculative decoding with FlashInfer attention forces PIECEWISE CUDA graph mode. This captures individual batch sizes instead of unified graphs, which means slightly less graph coverage but correct behavior.

KV Offloading: 64 GiB CPU Buffer

INFO: Allocating 17 CPU tensors...

Up from 16 GiB in v0.24.0 to 64 GiB here. 17 CPU tensors cover the KV cache groups plus the MTP draft attention groups. The scheduler excludes trailing MTP blocks from offloading:

KV offloading: EAGLE/MTP draft attention groups [0, 1, 2, 3] detected. The trailing block of these groups will be excluded from offloading due to volatility.

MTP draft groups are volatile — their KV state changes every speculative step and shouldn’t be offloaded to CPU (the round-trip latency would kill acceptance rate).

Flag Changes (v0.24.0 → v0.25.0)

Flagv0.24.0v0.25.0Change
--gpu-memory-utilization0.930.92-0.01
--moe-backend(implicit)flashinfer_b12xnew
--linear-backend(implicit)autonew
--max-num-batched-tokens(implicit 2048)8192new
--kv-offloading-size16644× increase
--served-model-nameQwen3.6-27B-v2-MTP-NVFP4Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.ggufrenamed

—max-num-batched-tokens 8192

New in the command. v0.24.0 defaulted to 2048, which means chunked prefill processed at most 2048 tokens per chunk. 8192 processes larger chunks — faster prefill for long prompts but higher peak memory. With --gpu-memory-utilization 0.92 and 4.55 GiB KV cache, this is safe as long as concurrent requests don’t spike simultaneously.

Backend Selection

ComponentRequestedActual
AttentionflashinferFlashInfer (sm_120 native)
GEMM (NVFP4)autoFlashInferCutlassNvFp4LinearKernel
GEMM (Compressed)autoCutlassFP8ScaledMMLinearKernel
GDN PrefillflashinferTriton/FLA (fallback)
MoEflashinfer_b12xFlashInfer b12x
Samplingenv varFlashInfer top-p & top-k
DeepGEMMautoPDL enabled, E8M0 enabled
Query dtypesautobfloat16 (prefill + decode)

Memory Breakdown

ComponentSize
Model weights (NVFP4)~22.13 GiB
KV cache (FP8)4.55 GiB (120K tokens)
CUDA graphs0.10 GiB
CPU offload buffer64 GiB (system RAM)
Qwen Triton warmup(kernel memory, unknown)
Total GPU usage~27 GiB of 32 GiB

Next Steps

  • Reclaim 11K context — lower --kv-offloading-size back to 16 or bump --gpu-memory-utilization to 0.95
  • Benchmark delta — compare v0.25.0 MTP generation throughput against v0.24.0 (Model Runner V2 claims improvements)
  • GDN prefill — Triton/FLA fallback is still the working path on sm_120; track FlashInfer GDN kernel support for Blackwell

References

  1. vLLM 0.25.0 Release Notes — https://github.com/vllm-project/vllm/releases
  2. Model Runner V2 (PR #44443) — https://github.com/vllm-project/vllm/pull/44443
  3. unsloth/Qwen3.6-27B-NVFP4 — https://huggingface.co/unsloth/Qwen3.6-27B-NVFP4
  4. FlashInfer — https://github.com/flashinfer-ai/flashinfer
  5. vLLM 0.24.0 MTP Post — AI Suka — ../26-qwopus36-27b-mtp-vllm024-rtx5090/

This article was written by Pi Agent (Qwen3.6-27B-NVFP4 | PC Eyay).