TL;DR: SGLang can serve ThinkingCap-Qwen3.6-27B-NVFP4 on a single RTX 5090, but it takes navigating modelopt support gaps, choosing efficient thinking over token-heavy variants, and switching from EAGLE3 to NGRAM speculative decoding for stable 50+ t/s.
Nvidia Modelopt Failure
My first attempt used the nvidia/Qwen3.6-27B-NVFP4 model with --quantization modelopt_mixed:
SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=1 sglang serve \ --model-path ./nvidia/Qwen3.6-27B-NVFP4/ \ --quantization modelopt_mixed \ --served-model-name sakamakismile-ThinkingCap-Qwen3.6-27B-NVFP4SGLang doesn’t support modelopt_mixed quantization. A PR just landed (sgl-project/sglang#27906) three days ago adding Modelopt support, but it’s still early days out. I dropped the Nvidia model and switched to sakamakismile.
Why ThinkingCap?
I switched to the ThinkingCap-Qwen3.6-27B variant (by BottleCap.ai for this deploy. The reasoning:
- Ornith-1.0 burned too many tokens on chain-of-thought reasoning. Fast to generate but expensive on context budget.
- OG Qwen3.6-27B also has a reputation for over-thinking — more tokens than needed for useful output.
- ThinkingCap is a variant that slashes thinking tokens without sacrificing quality. The opposite of token burning: efficient thinking.
The sakamakismile quantization is the NVFP4 version I run locally.
sakamakismile NVFP4 Baseline
The NVFP4 quantization runs fine. Token generation hits 20+ tokens/sec as a baseline, peaking at 44 t/s. The speed is reasonable because sakamakismile kept the attention gates in the original BF16 weights, so accuracy stays comparable to FP8.
| Model | Quantization | Tokens/sec |
|---|---|---|
| sakamakismile | NVFP4 | 20–44 t/s |
| Ornith-1.0 | MoE | ~100+ t/s |
Acceptable for a dense model, but feels slow after tasting Ornith-1.0’s MoE performance.
EAGLE3 Attempt
I tried EAGLE3 speculative decoding with an external draft model:
SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=1 sglang serve \ --model-path ./sakamakismile/ThinkingCap-Qwen3.6-27B-NVFP4/ \ --speculative-algorithm EAGLE3 \ --speculative-draft-model-path ./Ex0bit/Qwen3.6-27B-PRISM-EAGLE3/compressed/ \ --speculative-num-steps 3 \ --speculative-eagle-topk 1 \ --speculative-num-draft-tokens 4 \ --served-model-name sakamakismile-ThinkingCap-Qwen3.6-27B-NVFP4Two blockers killed this approach.
Context ceiling. My monorepo codebase dump is ~170K tokens, but the EAGLE3 draft model only supports 61K:
Error: Input length (170543 tokens) exceeds the maximum allowed length (61661 tokens).RoPE scaling mismatch. The EAGLE3 model was trained with FP8 quantization, but I’m serving it in NVFP4. SGLang warned:
The explicitly set RoPE scaling factor (config.rope_parameters['factor'] = 32.0)does not match the ratio implicitly set by other parameters...Using the explicit factor (32.0) in YaRN. This may cause unexpected behaviour in model usageOn short test runs the token generation was actually fast — felt like running an MoE model, even faster than the NGRAM that eventually replaced it. I tried to run new sessions for each task.
For intense coding, I don’t like restarting sessions often because every restart burns context budget. I need 3 to 4 rounds of Q&A to build a solid implementation plan.
I didn’t have the time to dig deep into the model internals, so I let EAGLE3 go. If I ever get my hands on a Blackwell A6000 Pro or better, I’ll revisit EAGLE3 with its native FP8 variant instead of forcing NVFP4.
NGRAM to the Rescue
Switched from EAGLE3 to NGRAM speculative decoding — no draft model, no extra VRAM overhead:
SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=1 sglang serve \ --model-path ./sakamakismile/ThinkingCap-Qwen3.6-27B-NVFP4/ \ --kv-cache-dtype fp8_e4m3 \ --trust-remote-code \ --reasoning-parser qwen3 \ --tool-call-parser qwen3_coder \ --mamba-radix-cache-strategy extra_buffer \ --enable-hierarchical-cache \ --hicache-mem-layout page_first_direct \ --hicache-ratio 2 \ --hicache-write-policy write_through \ --mem-fraction-static 0.85 \ --max-running-requests 4 \ --max-mamba-cache-size 8 \ --chunked-prefill-size 4096 \ --host 0.0.0.0 \ --port 8082 \ --served-model-name sakamakismile-ThinkingCap-Qwen3.6-27B-NVFP4 \ --enable-metrics \ --chat-template ./chat_template-fixes/chat_template.jinja \ --speculative-algorithm NGRAM \ --speculative-num-steps 3 \ --speculative-num-draft-tokens 4Explicit --speculative-algorithm NGRAM with 3 steps and 4 draft tokens. NGRAM needs no draft model — just statistical n-gram matching in-memory.
But at --mem-fraction-static 0.80, I hit OOM under load:
retract_decode: aborted last request due to OOMKV cache pool is full. Retract requests.Raising to 0.85 resolved it — the extra 5% static allocation gave enough headroom for the KV cache under concurrent decode.
Benchmarks
Ran llama-benchy across three configurations:
uvx llama-benchy --base-url http://192.168.1.199:8000/v1 \ --model sakamakismile/ThinkingCap-Qwen3.6-27B-NVFP4 \ --depth 0 4096 8192 16384 32768 \ --latency-mode generationPerformance Comparison
| Metric / Scenario | Vanilla Baseline | NGRAM Speculative | EAGLE3 Speculative | Best |
|---|---|---|---|---|
| Short-Context Gen (tg32 @ d4096) | 68.72 t/s | 175.97 t/s | 179.17 t/s | EAGLE3 (by a hair) |
| Deep-Context Gen (tg32 @ d32768) | 75.79 t/s | 263.07 t/s | 203.46 t/s | NGRAM |
| Peak Token Generation | 83.75 t/s | 285.35 t/s | 212.14 t/s | NGRAM |
| Prefill Speed (pp2048 @ d4096) | 13,095.46 t/s | 12,235.70 t/s | 12,416.17 t/s | Vanilla |
| First Token Latency (e2e_ttft @ d32768) | 4,021.19 ms | 3,960.67 ms | 4,151.43 ms | NGRAM |
| VRAM Memory Cost | Baseline | 0 MB extra | ~3.46 GB | Vanilla / NGRAM |
Key Takeaways
- Deep-context king. At 32K context, NGRAM delivers 263 t/s — blowing past EAGLE3 (203 t/s) and vanilla (76 t/s). As context expands, EAGLE3’s secondary neural net drags down its speed, whereas NGRAM’s flat hash-lookup remains unaffected.
- Prefill penalty. Both NGRAM and EAGLE3 take a small hit during raw prefill vs vanilla. The engine spends extra time setting up speculation data structures instead of pure matrix math.
- Stability. EAGLE3 is highly predictable — tiny error margins (±4.47 t/s at d32768). NGRAM fluctuates more wildly (±95.60 t/s at d16384). EAGLE3 gives a stable speedup; NGRAM relies on bursty pattern matches.
- The real winner. EAGLE3 is fast on paper but needs a draft model (~3.46 GB VRAM), has a 61K context ceiling, and triggers RoPE warnings. NGRAM wins on throughput, simplicity, and VRAM efficiency — no draft model, no context limit, no warnings. The shortest path that actually works.
References
- SGLang Modelopt PR #27906 — sgl-project — https://github.com/sgl-project/sglang/pull/27906
- ThinkingCap-Qwen3.6-27B — BottleCap.ai — https://huggingface.co/bottlecapai/ThinkingCap-Qwen3.6-27B
- SGLang Served — SGLang Docs — https://docs.sglang.ai
This article was written by Pi Agent (ThinkingCap-Qwen3.6-27B-NVFP4 | sakamakismile), with analysis contributions from Gemini (Gemini 2.5 Flash | Google) and me.



