Inference Engines for RTX 5090 and Qwen3.6-27B NVFP4: A Research Report

·5 min readaihardware

TL;DR: Consumer Blackwell (SM120) lacks the tcgen05 tensor opcodes that datacenter Blackwell has, so mainstream engines don’t run NVFP4 out-of-the-box. FlashRT leads at ~175 tok/s with MTP speculative decode, imp hits ~338 tok/s on MoE models with native NVFP4, and bw24 (Rust+CUDA) beats llama.cpp across all Qwen models. The community has produced 12 patches to make vLLM work, and vLLM v0.17+ now supports NVFP4 on 5090 without patches.

The RTX 5090 ships with native FP4 tensor cores and 32 GB of GDDR7 at 1.79 TB/s bandwidth. On paper, a 27B-parameter model should fly. In practice, the architecture story is more nuanced: consumer Blackwell (sm_120) is not a subset of datacenter Blackwell (sm_100). It lacks tcgen05, TMEM, wgmma, and warp-specialized grouped GEMM. This means engines designed for datacenter Blackwell — vLLM, TensorRT-LLM, SGLang — either fail outright or fall back to slower paths on the 5090.

This report covers the engines I found that actually run well on SM120 with Qwen3.6-27B in NVFP4 quantization.

The SM120 Gap

Consumer Blackwell has different silicon than datacenter Blackwell:

FeatureDatacenter (SM100)Consumer (SM120)
tcgen05YesNo
TMEMYesNo
wgmmaYesNo
TMA warp-specialized GEMMYesNo
Shared memory per SM256 KB128 KB (99 KB safe limit)
L2 cache24 MB96 MB

The practical upshot: FlashInfer MoE kernels that gate on tcgen05 fail on 5090. vLLM’s NVFP4 path falls back to Marlin. llama.cpp has no native NVFP4. The gap is real and measurable.

Engine Benchmarks

1. FlashRT — Best Speculative Decode Throughput

FlashRT (flashrt-project/FlashRT) is a CUDA/CUTLASS inference runtime with dedicated Qwen3.6-27B NVFP4 support and MTP (Multi-Token Prediction) speculative decoding.

Key characteristics:

  • Two-checkpoint NVFP4 path: main model in W4A16 (compressed-tensors), MTP head loaded separately from paired FP8 checkpoint
  • Adaptive K selection based on context length and accept statistics
  • FP8-KV compressed cache for long contexts (128 token exception avoids slow BF16/spec prefill)
  • True SSE streaming at speculative-decode accept boundaries

Measured throughput (RTX 5090, decode tok/s):

Prompt contextRouteKDecode tok/sTTFT
128FP8-KV6144.931.4 ms
512FP8-KV4120.772.6 ms
1 KFP8-KV5106.0131.9 ms
2 KFP8-KV6164.9253.8 ms
4 KFP8-KV3129.6350.9 ms
8 KFP8-KV5132.7774.2 ms
16 KFP8-KV7175.41.57 s
32 KFP8-KV6150.43.55 s
64 KFP8-KV7150.99.13 s
128 KFP8-KV7158.026.7 s
256 KFP8-KV6144.688.0 s

Without MTP, plain decode runs at ~36 tok/s. Speculative decode provides a 4-5× speedup, with peak throughput at 16 K context (175.4 tok/s). The K-curve peaks at K=6 for short outputs (≤ 256 tokens) and shifts to K=5 for sustained generation.

2. imp — Fastest Single-Stream Decode

imp (kekzl/imp) is a from-scratch C++23/CUDA engine that targets only sm_120a. No portability layer, no wrappers around llama.cpp or vLLM. Approximately 97k lines, built with CUTLASS v4.5.2.

Key characteristics:

  • Loads NVFP4 SafeTensors directly into decode cache — no re-quantization
  • GGUF models converted to NVFP4 at init time (FP16 prefill, NVFP4 decode)
  • FP16-QK FA2 attention as primary hd=128 prefill (PR #687)
  • CUDA Graphs on by default; 10 repetitions, clock-warmed
  • OpenAI/Anthropic-compatible HTTP server with tool calling, json_schema constrained decoding, and concurrent sub-agents

Measured throughput (RTX 5090, decode tg256, NVFP4):

ModelActive paramstok/s
Qwen3-8B8.2B270
Qwen3-14B14B159
Qwen3-30B-A3B30B (3B)305
Qwen3-Coder-30B-A3B30B (3B)338
Qwen3.6-35B-A3B35B (3B)257
Gemma-4-26B-A4B26B (4B)266
gpt-oss-20b21B (3.6B)325

On dense GGUF, imp leads llama.cpp by +37–72% on decode. On NVFP4 MoE, it’s uncontested on sm_120 — vLLM can’t run the path, and llama.cpp has no native NVFP4. The prefill gap vs vLLM narrowed significantly after PR #687: MoE pp4096 now leads vLLM (+4%), and MoE pp2048 leads by +27%.

With continuous batching (16 concurrent requests), imp-server auto-sizes max_batch_size and achieved 767 aggregate tok/s on Qwen3-14B NVFP4 — a +62% improvement from sampler and LM head kernel fixes.

3. bw24 — Rust+CUDA, Beats llama.cpp on Qwen

bw24 (avifenesh/bw24) is a from-scratch Rust+CUDA engine built for one machine: RTX 5090 Laptop (sm_120a, 24 GB). Every kernel tuned against measured hardware limits, with llama.cpp as the benchmark to beat.

Key characteristics:

  • Bit-exact by construction — speed never buys different outputs
  • MTP speculative decoding with FR-Spec vocabulary trims, confidence gating, and per-content-class draft depth
  • Expert-major CSR batching for MoE on 24 GB (SLRU residency, VRAM→host→disk spill)
  • Split-plane repacked matvecs, warp-level dp4a, per-shape auto-dispatch

Measured throughput (RTX 5090 Laptop, plain decode tg128, d512):

Modelbw24 tok/sllama.cpp tok/sRatio
Qwen3.5-9B NVFP4135.7126.71.07×
Qwen3.6-27B NVFP448.444.91.08×
Qwen3.6-35B-A3B IQ4_XS178.2167.81.06×

With speculative decoding, the gap widens:

Modelbw24 specllama.cpp specRatio
Qwen3.5-9B238.9123.61.93×
Qwen3.6-27B107.386.31.24×
Qwen3.6-35B-A3B292.2251.91.16×

4. lna-lab/blackwell-geforce-nvfp4-gemm — 12 Patches for vLLM

The lna-lab/blackwell-geforce-nvfp4-gemm repository provides 12 patches to make vLLM + FlashInfer + CUTLASS run NVFP4 inference correctly on SM120. Achieved 175 tok/s on Qwen3.6-35B MoE.

Patch summary:

#TargetWhat it fixes
1FlashInferSM120 grouped GEMM tile sizes (99 KB SMEM limit)
2vLLMSM120-optimized MXFP4 dense matmul
3vLLMFP4 MoE support check for sm_120
4vLLMFlashInfer CUTLASS MoE dispatch for sm_120
5vLLMSM120 Flash Attention subclass
6FlashInferTMA FMHA kernels for SM120 (64×128, 64×64 tiles)
7FlashInferMLA XQA backend (not trtllm-gen)
8FlashInferJIT NVCC flags (sm120a and sm120f)
9FlashInferFP4 quantization JIT for SM120
10vLLM7 PyTorch Inductor bug fixes
11quackCustom warp-level GEMM
12vLLMMarlin W4A8-FP8 on SM120

5. vLLM v0.17+ — Out-of-the-Box NVFP4 on 5090

The li-yifei/vllm-qwen3.6-nvfp4-5090 recipe runs Qwen3.6-27B NVFP4 on a single RTX 5090 using vllm/vllm-openai:cu130-nightly with 256K context and FP8 KV cache. Works with vLLM v0.17+ without patches.

Key configuration:

  • VLLM_NVFP4_GEMM_BACKEND=marlin or flashinfer-cutlass
  • Uses apply_vllm_mapper to correctly translate checkpoint exclusion lists
  • BF16 layers (Mamba linear_attn, MoE router, MTP) excluded from NVFP4 quantization
  • MTP speculative decoding with --speculative-config '{"method":"mtp","num_speculative_tokens":2}'

The CobraPhil/qwen36-27b-single-5090 recipe provides a validated setup achieving 160+ TPS with Lorbus INT4 AutoRound and MTP speculative decoding.

6. llama.cpp + NVFP4 GGUF + MTP

The LibertAIDAI/Qwen3.6-27B-NVFP4-MTP-GGUF project preserves NVIDIA NVFP4 tensors in GGUF format with MTP head for speculative decoding.

Measured throughput (RTX 5090, llama.cpp):

Configtok/sDraft accept ratevs baseline
NVFP4-Q4_K_M, no MTP74.4—baseline
NVFP4-Q4_K_M + MTP90.869.5%+22%

The MTP head is small enough that its forward pass is near-free relative to the trunk, and ~70% accept rate means most drafts land.

The utautako/Qwen3.6-27B-NVIDIA-NVFP4-MTP-GGUF variant measured 112.69 tok/s (pp512/tg512, MTP depth d=3) on RTX 5090 — roughly +59% vs the 70.75 tok/s no-spec baseline.

Performance Comparison Summary

EngineBest tok/s (Qwen3.6-27B)QuantizationSpec decodeNotes
FlashRT175NVFP4MTP (K=6)Best with MTP; ~36 plain
imp270*NVFP4MTP*Qwen3-8B; MoE up to 338 tok/s
bw24107NVFP4MTP (K=3)+24% over llama.cpp with spec
vLLM v0.17+~70NVFP4MTP (n=2)No patches needed
llama.cpp91NVFP4 GGUFMTP (n=3)+22% with MTP
q36unbenchmarkedMXFP4 GGUF—Specialized for Qwen3.6-35B

Sources


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