voipmonitor/vLLM: Qwen3.6-27B NVFP4 with SparkInfer SM120 Kernels on RTX 5090

·5 min readlocal-ai

TL;DR: A Docker-based deployment of Qwopus3.6-27B NVFP4 on RTX 5090 using the voipmonitor/vllm custom image (Gilded Gnosis v20) with SparkInfer SM120 kernels, FlashInfer attention, FP8 KV caching, and CUDA 13.2 — model loads in 2.14 seconds, engine initializes in ~136 seconds, and auto-fits to 158,368-token context.

Container Image

This deployment uses the voipmonitor/vllm fork of vLLM, specifically the Gilded Gnosis v20 build tagged vllm966d57c-sibbbdccc-fi801d57a-cu132-20260803-r27. Key differentiators from upstream vLLM:

FeatureDetail
vLLM base0.11.2.dev280 (development build)
SparkInferSM120-based kernel integration for Blackwell GPUs
FlashInfer801d57a — attention backend + autotune
CUDA13.2 (cu132)
QuantizationModelOpt NVFP4 with FlashInfer-CuTeDSL GEMM backend

Docker Run Command

Terminal window
docker run --gpus all --ipc=host --shm-size=8g --rm \
-e CUTE_DSL_ARCH="sm_120a" \
-e PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True" \
-e SI_ENABLE_FUSED_MOE=1 \
-e CUDA_VISIBLE_DEVICES=0 \
-e NCCL_P2P_DISABLE=1 \
-e VLLM_SKIP_P2P_CHECK=1 \
-e SI_GEMM_BACKEND="cutlass" \
-e VLLM_NVFP4_GEMM_BACKEND="flashinfer-cutlass" \
-e VLLM_USE_FLASHINFER_SAMPLER=1 \
-v /home/spidey/.cache/vllm:/cache/jit/vllm30038602b7-b12x272a84bd97-e5473b6f382c3026/vllm \
-v $(pwd)/nvidia/Qwen3.6-27B-NVFP4:/model \
-v $(pwd)/chat_template-fixes:/chat_template \
-p 8082:8082 \
voipmonitor/vllm:gilded-gnosis-v20-vllm966d57c-sibbbdccc-fi801d57a-cu132-20260803-r27 \
vllm serve /model \
--host 0.0.0.0 --port 8082 \
--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf \
--tensor-parallel-size 1 \
--quantization modelopt \
--trust-remote-code \
--chat-template /chat_template/chat_template.jinja

Environment Variables

VariablePurpose
CUTE_DSL_ARCH=sm_120aTargets CuTeDSL compilation for RTX 5090’s SM120a architecture
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:TruePrevents fragmentation under large allocation patterns
SI_ENABLE_FUSED_MOE=1Enables SparkInfer fused MoE kernel path
CUDA_VISIBLE_DEVICES=0Isolates to single GPU
NCCL_P2P_DISABLE=1Disables P2P — unnecessary for TP=1, avoids warnings
VLLM_SKIP_P2P_CHECK=1Skips P2P capability check during startup
SI_GEMM_BACKEND=cutlassSelects CUTLASS as SparkInfer GEMM backend
VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlassUses FlashInfer’s CUTLASS-backed NVFP4 GEMM kernel
VLLM_USE_FLASHINFER_SAMPLER=1Enables FlashInfer top-p/top-k sampler

Volume Mounts

All mounts point to existing directories on the host:

MountHost PathContainer PathPurpose
JIT cache/home/spidey/.cache/vllm/cache/jit/.../vllmPersists torch.compile and FlashInfer autotune artifacts across runs
Model./nvidia/Qwen3.6-27B-NVFP4/model20.42 GiB checkpoint (3 safetensors shards)
Chat template./chat_template-fixes/chat_templateCustom chat_template.jinja for Qwen3 format

Startup Performance

Model Loading

Loading safetensors checkpoint shards: 100% | 3/3 [00:02<00:00, 1.41it/s]
Loading weights took 2.14 seconds
Model loading took 19.78 GiB memory and 3.35 seconds

The 27B parameter model in NVFP4 quantization occupies 19.78 GiB of the RTX 5090’s 32 GB VRAM. Page-cache prefetching of the 20.42 GiB checkpoint completes in 1.23 seconds using 8 threads.

Engine Initialization

init engine (profile, create kv cache, warmup model) took 135.89 s (compilation: 50.39 s)

Breakdown of the ~136-second initialization:

PhaseDuration
Dynamo bytecode transform8.45 s
Graph compilation (range 1–8192)36.14 s
Total torch.compile50.39 s
Initial profiling/warmup35.03 s
FlashInfer autotune (63 configs)~32 s
Graph capturing (10 graphs)~4 s

KV Cache Sizing

Initial free memory 30.9 GiB, reserved 5.12 GiB memory for KV Cache
Auto-fit max_model_len: reduced from 262144 to 158368
GPU KV cache size: 158,368 tokens
Maximum concurrency for 158,368 tokens per request: 1.00x

With 19.78 GiB for model weights and 5.12 GiB for KV cache, the engine auto-reduces max_model_len from the default 262,144 to 158,368 tokens. At max_num_seqs=16, this supports one full-length request or multiple shorter ones.

Critical Flags for RTX 5090

Two flags are essential to prevent CUDA graph compilation from crashing on the RTX 5090:

Terminal window
--max-cudagraph-capture-size 16 \
--max-num-seqs 16

--max-cudagraph-capture-size 16 limits the largest sequence length captured into CUDA graphs. The default captures a wider range of sizes, which can exceed SM120 resource limits during graph compilation on this architecture. Pairing with --max-num-seqs 16 keeps the batch budget aligned with the reduced graph capture range.

Kernel Backend Selection

The engine resolves these backends during initialization:

ComponentSelected BackendSource
AttentionFLASHINFERUsing FLASHINFER attention backend out of ['FLASHINFER', 'TRITON_ATTN']
NVFP4 LinearFlashInferFP8ScaledMMLinearKernelModelOpt FP8 linear method
DeepGEMMPDL + E8M0 enableddeep_gemm.py
GDN AttentionTriton/FLA prefill kernelqwen_gdn_linear_attn.py (head_k_dim=128)
Vit AttentionFLASH_ATTNVision encoder backend
SamplerFlashInfer top-p & top-ktopk_topp_sampler.py:55

The RTX 5090’s SM120 architecture does not have native FP4 compute support. The engine falls back to weight-only FP4 compression via the Marlin kernel:

WARNING: Your GPU does not have native support for FP4 computation but FP4 quantization is being used.
Weight-only FP4 compression will be used leveraging the Marlin kernel.

KV cache uses fp8_e4m3 dtype with scaling factor 1.0 (inherited from k-scale, since the checkpoint does not provide a q scaling factor).

Server Configuration

Non-default arguments active in this deployment:

ParameterValue
max_model_lenAuto-fit → 158,368
quantizationmodelopt (NVFP4 mixed)
kv_cache_dtypefp8_e4m3
kv_cache_memory_bytes5,500,000,000 (~5.12 GiB)
max_num_batched_tokens8,192
max_num_seqs16
enable_prefix_cachingTrue (Mamba cache align mode)
enable_chunked_prefillTrue
reasoning_parserqwen3
tool_call_parserqwen3_coder
safetensors_load_strategyprefetch
enable_auto_tool_choiceTrue
compilation.modevllm_compile
cudagraph_capture_sizes[1, 2, 4, 8, 16]

Server starts on http://0.0.0.0:8082 with full OpenAI-compatible API routes plus vLLM-specific endpoints (/v1/responses, /inference/v1/generate).

Unknown Environment Variables

Five environment variables were flagged as unrecognized by vLLM:

WARNING: Unknown vLLM environment variable: VLLM_RTX6K_FUSED_ALLREDUCE_ADD
WARNING: Unknown vLLM environment variable: VLLM_CACHE_DIR
WARNING: Unknown vLLM environment variable: VLLM_NVFP4_GEMM_BACKEND
WARNING: Unknown vLLM environment variable: VLLM_CPP_AR_IGNORE_CUTOFF_MAX_ROWS
WARNING: Unknown vLLM environment variable: VLLM_RTX6K_FUSED_ALLREDUCE_ADD_END_BARRIER
WARNING: Unknown vLLM environment variable: VLLM_CPP_AR_1STAGE_NCCL_CUTOFF

These are custom variables specific to the voipmonitor/vllm fork’s SparkInfer integration and are not recognized by the upstream vLLM environment variable registry. They are consumed directly by the fork’s kernel selection logic rather than the standard envs module.


References

  1. vLLM — A high-throughput and memory-efficient LLM serving engine — vllm-project/vllm — https://github.com/vllm-project/vllm
  2. FlashInfer — Kernel library for LLM serving — flashinfer-ai/flashinfer — https://github.com/flashinfer-ai/flashinfer
  3. voipmonitor/vllm fork — https://github.com/voipmonitor/vllm
  4. Qwen3 Model Series — Qwen — https://qwenlm.github.io/blog/qwen3/
  5. FlashInfer Autotune Documentation — https://docs.flashinfer.ai/api/autotuner.html
  6. ModelOpt NVFP4 Quantization — NVIDIA Model-Optimizer — https://github.com/NVIDIA/Model-Optimizer
  7. Marlin — FP16xINT4 LLM inference kernel — IST-DASLab/marlin — https://github.com/IST-DASLab/marlin
  8. Native vLLM + LMCache: ThinkingCap-Qwen3.6-27B-NVFP4 MTP Inference on RTX 5090 — Previous post — 04-thinkingcap-27b-mtp-lmcache-native

This article was written by Qwen Code (nvidia/Qwen3.6-27B-NVFP4 | PC Eyay).