Stable Qwen3.6-27B NVFP4 on RTX 5090 — vLLM 0.24, FlashInfer, ModelOpt

·5 min readlocal-ai

TL;DR: NVIDIA’s NVFP4-quantized Qwen3.6-27B runs stably on a single RTX 5090 via vLLM 0.24 with FlashInfer CUTLASS GEMM backend — 4× FP8 throughput from Blackwell FP4 Tensor Cores at half the memory. Nightly vLLM has an active regression; stick with 0.24.

This is the command that works:

Terminal window
CUDA_VISIBLE_DEVICES=0 NCCL_P2P_DISABLE=1 \
VLLM_SKIP_P2P_CHECK=1 \
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlass \
VLLM_USE_FLASHINFER_SAMPLER=1 \
vllm serve ./nvidia/Qwen3.6-27B-NVFP4 \
--host 0.0.0.0 \
--port 8082 \
--tensor-parallel-size 1 \
--attention-backend flashinfer \
--quantization modelopt \
--kv-cache-dtype fp8_e4m3 \
--max-model-len 204800 \
--max-num-seqs 1 \
--max-num-batched-tokens 4096 \
--gpu-memory-utilization 0.92 \
--safetensors-load-strategy prefetch \
--enable-chunked-prefill \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder \
--enable-auto-tool-choice

Tuned for one RTX 5090 (SM120) squeezing the heaviest 4-bit quantized model onto 32 GB of GDDR7. No speculative decoding — just stable serving.

The Model

Qwen3.6-27B is a 27B parameter multimodal VLM. Key changes over Qwen3.5:

  • Hybrid Attention — 64 layers in a 3
    pattern: three layers of Gated DeltaNet (linear attention), then one layer of full Gated Attention. Cuts most compute from O(n²) to O(n).
  • MTP — mtp_num_hidden_layers: 1, trained with multi-step prediction. Native speculative decoding support.
  • GQA — 24 query heads, 4 KV heads (6
    compression).
  • 262K native context — extensible to ~1M via YaRN.
  • Vision encoder — 1152-hidden-size tower with video token support.

The base model: Qwen/Qwen3.6-27B. NVIDIA’s quantized variant: nvidia/Qwen3.6-27B-NVFP4 — weights and activations quantized to NVFP4 via Model Optimizer v0.45.0.

NVFP4

A 4-bit floating-point format for Blackwell. E2M1 layout (1 sign + 2 exponent + 1 mantissa) with two-level micro-block scaling:

  1. Level 1: FP8 (E4M3) scale per block of 16 values — supports fractional, non-power-of-two scales
  2. Level 2: FP32 scalar per-tensor

Improves on MXFP4 (E8M0 power-of-two scales per 32 values). Finer granularity = lower quantization error. NVIDIA reports nearly identical benchmarks vs FP8:

MetricFP8NVFP4
MMLU Pro86.186.3
GPQA Diamond86.085.5
AIME93.192.7

Effective storage is ~4.5 bits per value — 3.5× smaller than FP16, 1.8× smaller than FP8. A 27B model drops from ~54 GB (FP16) to ~15 GB (NVFP4).

RTX 5090 (SM120)

First consumer GPU with hardware FP4 Tensor Core acceleration. GB202 silicon:

SpecValue
VRAM32 GB GDDR7
Memory Bandwidth1,792 GB/s
FP4 TFLOPS (dense)1,676
FP8 TFLOPS (dense)838
5th Gen Tensor Cores680
TGP575 W

FP4 GEMM runs natively in the fifth-gen Tensor Cores — dequantize and multiply-add in one pipeline. FP4 delivers 4× the TOPs of FP8 at theoretical peak.

FlashInfer + CUTLASS

--attention-backend flashinfer swaps vLLM’s default for the FlashInfer kernel library — inference-first, wraps FlashAttention-2/3, cuDNN, CUTLASS, and TRT-LLM with auto-selection per GPU and workload.

The env var VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlass is the critical one. It forces the CUTLASS backend for NVFP4 GEMM operations — this is what actually unlocks FP4 Tensor Core acceleration for fully-connected layers on Blackwell. Without it, vLLM may fall back to suboptimal runners.

FlashInfer also brings:

  • Paged KV-Cache wrappers — batched decode + prefill with vLLM memory management
  • Multi-Level Cascade Attention — up to 31× speedup for shared-prefix workloads
  • Sorting-free sampling (VLLM_USE_FLASHINFER_SAMPLER=1) — 50% faster top-k/top-p
  • Broader GPU coverage — Turing (SM75) through Blackwell (SM120)

Flag Breakdown

FlagValuePurpose
--attention-backendflashinferFlashInfer kernel library with auto-backend selection
--quantizationmodeloptNVIDIA ModelOpt NVFP4 format
--kv-cache-dtypefp8_e4m3FP8 KV cache — halves memory vs FP16
--max-model-len204800200K context — trimmed from 262K for VRAM headroom
--max-num-seqs1Single sequence
--max-num-batched-tokens4096Chunked prefill batch limit
--gpu-memory-utilization0.9292% — leaves headroom for KV cache
--safetensors-load-strategyprefetchPre-read into OS page cache
--enable-chunked-prefillonSplit long prompts into chunks
--enable-prefix-cachingonReuse KV cache for shared prefixes
--reasoning-parserqwen3Parse Qwen3 reasoning blocks
--tool-call-parserqwen3_coderParse Qwen3 tool call format
--enable-auto-tool-choiceonAutomatic tool selection

Environment Variables

VariablePurpose
NCCL_P2P_DISABLE=1Disable NVLink P2P — single GPU, avoids NCCL warnings
VLLM_SKIP_P2P_CHECK=1Skip P2P check — clean startup on single-GPU
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:TrueExpandable GPU segments — reduces fragmentation
VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlassCUTLASS for NVFP4 GEMM — required for FP4 matmul on SM120
VLLM_USE_FLASHINFER_SAMPLER=1Sorting-free sampling — 50% faster top-k/top-p

Outputs

--reasoning-parser qwen3 tells vLLM to parse Qwen3.6’s “Thinking Preservation” output — the model emits a reasoning block that vLLM extracts as structured output. With --tool-call-parser qwen3_coder and --enable-auto-tool-choice, the instance doubles as a reasoning agent with automatic tool selection.


References

  1. Introducing NVFP4 for Efficient and Accurate Low-Precision Inference — NVIDIA Developer Blog — https://developer.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-inference/
  2. NVIDIA TensorRT Unlocks FP4 Image Generation for Blackwell RTX 50 Series — NVIDIA Developer Blog — https://developer.nvidia.com/blog/nvidia-tensorrt-unlocks-fp4-image-generation-for-nvidia-blackwell-geforce-rtx-50-series-gpus/
  3. nvidia/Qwen3.6-27B-NVFP4 — Hugging Face — https://huggingface.co/nvidia/Qwen3.6-27B-NVFP4
  4. Qwen3.6-27B Blog Post — qwen.ai — https://qwen.ai/blog?id=qwen3.6-27b
  5. FlashInfer — https://github.com/flashinfer-ai/flashinfer
  6. NVIDIA Model Optimizer — https://github.com/NVIDIA/Model-Optimizer
  7. GeForce RTX 50 Series (Wikipedia) — https://en.wikipedia.org/wiki/GeForce_RTX_50_series
  8. vLLM Engine Args — https://docs.vllm.ai/en/latest/serving/engine_args.html
  9. Nightly vLLM NVFP4 regression on SM120 — richgua, HF Discussions #4 — https://huggingface.co/nvidia/Qwen3.6-27B-NVFP4/discussions/4

This article was written by Pi Coding Agent (Qwopus 27B v2 MTP | PC Eyay).