TL;DR: A Docker-based deployment of Qwopus3.6-27B NVFP4 on RTX 5090 using the
voipmonitor/vllmcustom 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:
| Feature | Detail |
|---|---|
| vLLM base | 0.11.2.dev280 (development build) |
| SparkInfer | SM120-based kernel integration for Blackwell GPUs |
| FlashInfer | 801d57a — attention backend + autotune |
| CUDA | 13.2 (cu132) |
| Quantization | ModelOpt NVFP4 with FlashInfer-CuTeDSL GEMM backend |
Docker Run Command
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.jinjaEnvironment Variables
| Variable | Purpose |
|---|---|
CUTE_DSL_ARCH=sm_120a | Targets CuTeDSL compilation for RTX 5090’s SM120a architecture |
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | Prevents fragmentation under large allocation patterns |
SI_ENABLE_FUSED_MOE=1 | Enables SparkInfer fused MoE kernel path |
CUDA_VISIBLE_DEVICES=0 | Isolates to single GPU |
NCCL_P2P_DISABLE=1 | Disables P2P — unnecessary for TP=1, avoids warnings |
VLLM_SKIP_P2P_CHECK=1 | Skips P2P capability check during startup |
SI_GEMM_BACKEND=cutlass | Selects CUTLASS as SparkInfer GEMM backend |
VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlass | Uses FlashInfer’s CUTLASS-backed NVFP4 GEMM kernel |
VLLM_USE_FLASHINFER_SAMPLER=1 | Enables FlashInfer top-p/top-k sampler |
Volume Mounts
All mounts point to existing directories on the host:
| Mount | Host Path | Container Path | Purpose |
|---|---|---|---|
| JIT cache | /home/spidey/.cache/vllm | /cache/jit/.../vllm | Persists torch.compile and FlashInfer autotune artifacts across runs |
| Model | ./nvidia/Qwen3.6-27B-NVFP4 | /model | 20.42 GiB checkpoint (3 safetensors shards) |
| Chat template | ./chat_template-fixes | /chat_template | Custom 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 secondsModel loading took 19.78 GiB memory and 3.35 secondsThe 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:
| Phase | Duration |
|---|---|
| Dynamo bytecode transform | 8.45 s |
| Graph compilation (range 1–8192) | 36.14 s |
| Total torch.compile | 50.39 s |
| Initial profiling/warmup | 35.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 CacheAuto-fit max_model_len: reduced from 262144 to 158368GPU KV cache size: 158,368 tokensMaximum concurrency for 158,368 tokens per request: 1.00xWith 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:
--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:
| Component | Selected Backend | Source |
|---|---|---|
| Attention | FLASHINFER | Using FLASHINFER attention backend out of ['FLASHINFER', 'TRITON_ATTN'] |
| NVFP4 Linear | FlashInferFP8ScaledMMLinearKernel | ModelOpt FP8 linear method |
| DeepGEMM | PDL + E8M0 enabled | deep_gemm.py |
| GDN Attention | Triton/FLA prefill kernel | qwen_gdn_linear_attn.py (head_k_dim=128) |
| Vit Attention | FLASH_ATTN | Vision encoder backend |
| Sampler | FlashInfer top-p & top-k | topk_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:
| Parameter | Value |
|---|---|
max_model_len | Auto-fit → 158,368 |
quantization | modelopt (NVFP4 mixed) |
kv_cache_dtype | fp8_e4m3 |
kv_cache_memory_bytes | 5,500,000,000 (~5.12 GiB) |
max_num_batched_tokens | 8,192 |
max_num_seqs | 16 |
enable_prefix_caching | True (Mamba cache align mode) |
enable_chunked_prefill | True |
reasoning_parser | qwen3 |
tool_call_parser | qwen3_coder |
safetensors_load_strategy | prefetch |
enable_auto_tool_choice | True |
compilation.mode | vllm_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_ADDWARNING: Unknown vLLM environment variable: VLLM_CACHE_DIRWARNING: Unknown vLLM environment variable: VLLM_NVFP4_GEMM_BACKENDWARNING: Unknown vLLM environment variable: VLLM_CPP_AR_IGNORE_CUTOFF_MAX_ROWSWARNING: Unknown vLLM environment variable: VLLM_RTX6K_FUSED_ALLREDUCE_ADD_END_BARRIERWARNING: Unknown vLLM environment variable: VLLM_CPP_AR_1STAGE_NCCL_CUTOFFThese 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
- vLLM — A high-throughput and memory-efficient LLM serving engine — vllm-project/vllm — https://github.com/vllm-project/vllm
- FlashInfer — Kernel library for LLM serving — flashinfer-ai/flashinfer — https://github.com/flashinfer-ai/flashinfer
- voipmonitor/vllm fork — https://github.com/voipmonitor/vllm
- Qwen3 Model Series — Qwen — https://qwenlm.github.io/blog/qwen3/
- FlashInfer Autotune Documentation — https://docs.flashinfer.ai/api/autotuner.html
- ModelOpt NVFP4 Quantization — NVIDIA Model-Optimizer — https://github.com/NVIDIA/Model-Optimizer
- Marlin — FP16xINT4 LLM inference kernel — IST-DASLab/marlin — https://github.com/IST-DASLab/marlin
- 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).



