Qwen3.6-27B NVFP4 on RTX 5090 — Official NVIDIA Checkpoint, 6 Concurrent Sessions

·5 min readlocal-ai

TL;DR: The official NVIDIA Qwen3.6-27B-NVFP4 checkpoint serves on a single RTX 5090 with 6 concurrent sessions, 8192 batch tokens, and 16 GB CPU KV offload — using --gdn-prefill-backend flashinfer and --safetensors-load-strategy prefetch for faster startup and prefill.

This is the command that works:

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 \
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 auto \
--max-num-seqs 6 \
--max-num-batched-tokens 8192 \
--gpu-memory-utilization 0.92 \
--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 Qwen3.6-27B-NVFP4 \
--chat-template ./chat_template-fixes/chat_template.jinja \
--gdn-prefill-backend flashinfer \
--kv-offloading-backend native \
--kv-offloading-size 16

The Model

nvidia/Qwen3.6-27B-NVFP4 is the official NVIDIA-hosted NVFP4 quantized checkpoint of Qwen3.6-27B. Unlike community fine-tunes (Qwopus, Ornith), this is the base model produced by NVIDIA’s ModelOpt pipeline — calibrated scale factors, E2M1 4-bit weights, two-level micro-block scaling.

The model is 27B dense parameters, NVFP4-quantized to roughly 14 GB on disk. On a 32 GB RTX 5090 with --gpu-memory-utilization 0.92, that leaves ~15 GB for KV cache and runtime overhead — enough for single-session workloads, or multi-session with CPU offload.

The Key Flags

--max-num-seqs 6 + FLASHINFER_MAX_NUM_SEQS=6

Most RTX 5090 vLLM configs cap at 2 concurrent sequences. This runs 6 — useful for agentic workflows with parallel tool calls, batch completions, or multi-client serving. The FLASHINFER_MAX_NUM_SEQS=6 env var ensures FlashInfer’s sampler arena is sized accordingly.

--max-num-batched-tokens 8192

This took real benchmarking to find. The obvious defaults were wrong:

Batch TokensTTFT P99Verdict
4096 (default)~18 sToo small — prefill starvation under 6 concurrent sessions
8192bestSweet spot — enough parallelism without OOM
16384~38 sAutotune overhead kills latency
32764—FlashInfer Autotune OOM on 32 GB

The pattern: too small and prefill queues starve. Too large and the FlashInfer kernel autotuning phase itself becomes the bottleneck — or worse, exhausts VRAM during dispatch table generation. 8192 gives enough batch headroom for 6 concurrent sessions without tripping autotune memory limits.

--gdn-prefill-backend flashinfer

FlashInfer’s GDN (Grouped Dense) prefill backend handles the attention computation for the prefill phase. GDN is optimized for variable-length sequences with grouped attention — ideal for multi-session serving where each session has a different context length. Without this flag, vLLM may fall back to a slower prefill path.

--safetensors-load-strategy prefetch

Prefetches safetensors shards during startup instead of loading them lazily on first access. This eliminates the “cold start” stall where the first request triggers file I/O mid-inference. On NVMe storage, the model loads noticeably faster.

--kv-offloading-backend native + --kv-offloading-size 16

vLLM’s native KV offloading spills completed KV blocks to 16 GB of host RAM. This is smaller than the 32 GB configs used for long-context workloads — tuned for a balance between keeping prefixes warm and leaving RAM available for the host system.

Combined with --enable-prefix-caching, this means repeated prompts (system prompts, file contents in agentic loops) stay cached across tool-call turns instead of recomputing.

--max-model-len auto

Lets vLLM calculate the maximum context length based on available VRAM and KV offload capacity, instead of hardcoding 262144. This is safer — vLLM won’t start with an impossible config and crash on first long prompt.

--chat-template ./chat_template-fixes/chat_template.jinja

The Qwen3.6 checkpoint ships with a chat template that has known tokenization bugs — tool-call outputs get split across unexpected token boundaries, which breaks downstream parsers. The fix from froggeric/Qwen-Fixed-Chat-Templates corrects the Jinja template so tool calls render as clean, parseable blocks.

This is not optional for agentic workflows. Without it, tool-call parsing failures cascade into retry loops and hallucinated outputs.

--tool-call-parser qwen3_xml

The Qwen3.6 model card suggests qwen3_coder as the tool call parser. qwen3_xml is the better choice — it offers stability when using long context. With qwen3_coder, tool-call parsing becomes unreliable as context grows; qwen3_xml holds up consistently across long agentic sessions with repeated tool calls and large file reads.

Memory Budget Breakdown

ComponentSize
Model weights (NVFP4)~14 GB
GPU memory utilization29.4 GB (0.92 × 32 GB)
GPU KV cache (remaining)~15 GB
CPU KV offload16 GB
Effective context budgetGPU KV + CPU offload

With 6 concurrent sessions at moderate context lengths (~32K each), the GPU KV holds active decode states while completed blocks spill to CPU. Long prefixes benefit from prefix caching.

Comparison: This Config vs Qwopus3.6-27B-v2

SettingThis ConfigQwopus3.6-27B-v2 Post
Modelnvidia/Qwen3.6-27B-NVFP4crushleorey/Qwopus3.6-27B-v2-NVFP4
Max seqs62
Batch tokens81924096
KV offload16 GB32 GB
Max model lenauto262144 (hardcoded)
Prefill backendflashinfer GDNdefault
Load strategyprefetchdefault
Cumem allocatorNoYes

This config trades KV offload size for higher concurrency. 16 GB is enough for prefix caching without eating all host RAM. 8192 batch tokens is the sweet spot — 4096 starved prefill under load (18 s TTFT P99), 16384+ triggered FlashInfer autotune overhead or OOM.

Setup

Before serving, download the model and chat template fix:

Terminal window
# Download model
hf download nvidia/Qwen3.6-27B-NVFP4 --local-dir ./nvidia/Qwen3.6-27B-NVFP4
# Download fixed chat template
mkdir -p chat_template-fixes
hf download hf://froggeric/Qwen-Fixed-Chat-Templates/chat_template.jinja \
--local-dir ./chat_template-fixes

Use Cases

  • Multi-client serving — 6 concurrent sessions for team API access
  • Agentic workflows — parallel tool calls, prefix caching keeps system prompts warm
  • Dev/test environments — --max-model-len auto prevents OOM on misconfigured hosts

References

  1. nvidia/Qwen3.6-27B-NVFP4 — NVIDIA, Hugging Face — https://huggingface.co/nvidia/Qwen3.6-27B-NVFP4
  2. froggeric/Qwen-Fixed-Chat-Templates — https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates
  3. vLLM FlashInfer Backend — https://docs.vllm.ai/en/latest/serving/distributed-serving/flashinfer.html
  4. Qwopus3.6-27B-v2 NVFP4 — crushleorey/Qwopus3.6-27B-v2-NVFP4 — https://huggingface.co/crushleorey/Qwopus3.6-27B-v2-NVFP4

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