TL;DR: Swapping the BF16 DFlash 2 draft for a local NVFP4 DSpark drafter and booting on a warm FlashInfer cache cuts the SGLang boot from 4 min 7 s in the previous post to about 23 s — but on a 32 GB card the mamba state cache (7 slots) still caps concurrency at 1 request, and the smaller draft buys ~28% more FP8 KV tokens (113,134 vs 88,740).
This is the warm-cache follow-up to the DFLASH 2 launch of the previous post — the same NVFP4 Qwen3.8-27B target, same 5090, same HiCache/mamba flags, with two changes that rewrite the boot-time story. The draft model is now a local NVFP4 build of the DSpark drafter (gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4, the community drafter the previous post’s table listed as trailing DFlash 2 on acceptance length) instead of Inco’s BF16 DFlash 2, and it rides under SGLang’s --speculative-algorithm DSPARK. That 3.73 GB of BF16 draft weights is gone, replaced by 1.45 GB of NVFP4 — and the whole thing boots in about 23 seconds instead of 4 minutes 7. The rest of the machine is identical, so the deltas are the story.
The Command
The SGLang that served this run is the same git build in a dedicated uv venv from the previous post, so only the speculative flags moved. From this machine’s history, with the line numbers stripped:
PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True,max_split_size_mb:512" \CUDA_VISIBLE_DEVICES=0 \NCCL_P2P_DISABLE=1 \VLLM_SKIP_P2P_CHECK=1 \VLLM_USE_FLASHINFER_SAMPLER=1 \FLASHINFER_MAX_NUM_SEQS=6 \CUTE_DSL_ARCH=sm_120 \sglang serve \ --tensor-parallel-size 1 \ --trust-remote-code \ --model-path ~/Models/gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090 \ --speculative-algorithm DSPARK \ --speculative-draft-model-path gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4 \ --cuda-graph-backend-prefill=disabled \ --attention-backend flashinfer \ --cuda-graph-max-bs-decode 2 \ --max-running-requests 2 \ --enable-hierarchical-cache \ --hicache-ratio 6.0 \ --enable-metrics \ --served-model-name "gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090"One artifact before the flag tour. The pasted transcript shows the final line smushed — --enable-metrics and --served-model-name got folded into a single --enable-metricsame token, and the shell printed : command not found for the fragment it tried to execute. The ServerArgs dump in the log proves the intended values did reach the engine — enable_metrics=True and served_model_name='gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090' — so the successful run carried both flags cleanly.
One quirk in the dump is worth flagging while the config is fresh: max_running_requests=2 is what the command asked for, but the log later shows the engine granting 1 — more on that below.
What DSpark Is
The draft model in the command — gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4 — is the community DSpark drafter for Qwen3.8-27B, this time as a local NVFP4 build from the gittensor model hub rather than the reference checkpoint. DSpark was the community drafter the previous post’s acceptance table listed at a mean of 3.62 accepted tokens, trailing DFlash 2’s 4.80 — so this launch is the NVFP4 version of that trailing drafter, not a quality upgrade, but a format one. The draft arrives as a single 1.45 GB shard (type=Qwen3DSparkModel, quant=modelopt_fp4, quant_algo=NVFP4) and loads in 0.51 s, against the 3.73 GB BF16 DFlash 2 that took 146.9 s in the previous post.
The runner initialisation stamps the DSpark mechanics:
[2026-08-19 15:22:50] Initialized DSpark draft runner. attention_backend=flashinfer, model=Qwen3DSparkModel, gamma=7, verify_num_draft_tokens=8, mask_token_id=248077, markov_head=VanillaMarkovTwo things stand out. markov_head=VanillaMarkov — the draft steers its block through a Markov transition head (a lightweight n-gram-style walk over candidate tokens) rather than a second full backbone, which is why the draft is only 1.45 GB. gamma=7 is the transition depth that head operates at. verify_num_draft_tokens=8 keeps the same 8-token draft block as DFlash 2, and mask_token_id=248077 is DSpark’s block-fill sentinel (DFlash used 248070). The surrounding defaults are visible in the dump — speculative_num_steps=1, speculative_eagle_topk=1, speculative_num_draft_tokens=8, and speculative_dspark_block_size=None (unset, so the draft’s own default block wins).
Environment Variables
PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True,max_split_size_mb:512"
The standard anti-fragmentation pairing for PyTorch’s CUDA caching allocator (PyTorch CUDA notes) — the same two knobs as the vLLM twin launch. Expandable segments stop the allocator carving VRAM into unusable gaps, and the 512 MB split cap protects the large long-lived allocations (weights, two KV pools, the mamba pool) from being shredded by churning activation tensors.
CUDA_VISIBLE_DEVICES=0
Pins the whole process to GPU 0. Redundant with --tensor-parallel-size 1, defensive as ever.
NCCL_P2P_DISABLE=1 and VLLM_SKIP_P2P_CHECK=1
Both are vLLM-convention variables carried over by muscle memory from the same machine’s vLLM launches. On a single-GPU box they are inert ballast — NCCL initialisation is pure bookkeeping at world_size=1 (the log’s Init torch distributed ends. elapsed=0.01 s says it all). SGLang’s own P2P check is already off in this build (enable_p2p_check=False in the dump).
VLLM_USE_FLASHINFER_SAMPLER=1
Another vLLM variable — SGLang reads its sampling backend from --sampling-backend instead, and the dump shows sampling_backend='flashinfer' was resolved without the variable’s help.
FLASHINFER_MAX_NUM_SEQS=6
Tells FlashInfer how many concurrent sequences to plan its batched workspaces for. Six is far above the one request this server will ever run (capped below by the mamba cache), so this is effectively a leftover from earlier, higher-concurrency setups.
CUTE_DSL_ARCH=sm_120
Points the CUTLASS DSL GEMM kernels at consumer Blackwell (sm_120, the RTX 5090). Consistent with the rest of the log — the FlashInfer autotune cache path is .../0.6.15.post1/sm120/..., and the whole machine is a 5090 box.
Flag Breakdown
--model-path ~/Models/gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090
The same local NVFP4 recipe of Qwen3.8-27B from the gittensor model hub as the previous post — a 5090-targeted variant, not the RadixArk mixed-precision checkpoint from the HiCache launch. The load line shows the same shape: 18.80 GB across 3 shards in 4.06 s, quant=modelopt_fp4, quant_algo=NVFP4:
[2026-08-19 15:22:45] Using ModelOptModelLoader due to ModelOpt quantization config.[2026-08-19 15:22:45] Detected nvfp4 checkpoint. Please note that the format is experimental and subject to change.[2026-08-19 15:22:49] Load weight end. elapsed=4.06 s, type=Qwen3_5ForConditionalGeneration, quant=modelopt_fp4, quant_algo=NVFP4, avail mem=10.41 GB, mem usage=18.80 GB.--speculative-algorithm DSPARK with --speculative-draft-model-path gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4
The centerpiece. DSPARK is the SGLang draft-model speculative-decoding family for the DSpark drafter — instead of the checkpoint’s built-in MTP head, the Qwen3DSparkModel network proposes a block of tokens that the target verifies in one fused pass. The draft here is the local NVFP4 build, which lands at 1.45 GB (one shard) on this card:
[2026-08-19 15:22:49] Load weight begin. avail mem=10.37 GB[2026-08-19 15:22:50] Load weight end. elapsed=0.51 s, type=Qwen3DSparkModel, quant=modelopt_fp4, quant_algo=NVFP4, avail mem=8.92 GB, mem usage=1.45 GB.So each decode step is: draft 8 tokens, verify 8, keep whatever the target model accepted. The split shows up in the two verify CUDA graphs — the target captures num_tokens_per_req=8 and the draft captures num_tokens_per_req=7 (the draft’s 7-step proposal against its Markov head). “DSpark draft proposal (greedy + sampling) folded into the draft cuda graph” means the sampling decision after a draft step runs inside the captured graph instead of as an eager kernel launch.
--attention-backend flashinfer
Routes the target model’s full-attention layers through FlashInfer (0.6.15.post1 here — note the version is a step below the 0.6.17 the previous post ran, which matters if you’re comparing autotune-cache hits across launches). The cache is warm, so the autotune completes in a beat:
[2026-08-19 15:22:51] Running FlashInfer autotune with cache: /home/spidey/.cache/sglang/flashinfer/autotune/0.6.15.post1/sm120/90c620833b862ee0/rank_tp0_pp0_dp0.json[2026-08-19 15:22:51] FlashInfer autotune completed.The draft model does not inherit the flag — the log overrides it explicitly, one line per backend, because speculative decoding needs the draft attention pinned to a known-good kernel:
[2026-08-19 15:22:50] Overriding draft attention backend to flashinfer.The GDN linear-attention layers follow their own dispatch again, as in every launch of this hybrid architecture:
[2026-08-19 15:22:50] Linear attention kernel backend: decode=triton, prefill=triton, verify=triton[2026-08-19 15:22:50] GDN kernel dispatcher: decode=TritonGDNKernel, extend=TritonGDNKernel, verify=TritonGDNKernel packed_decode=True--cuda-graph-backend-prefill=disabled
An explicit opt-out of prefill graphs. Prefill here is chunked at 2048 tokens (chunked_prefill_size=2048, the default) with a small number of requests, so the graph win is marginal and the capture cost is not — the log confirms the flag was honored:
[2026-08-19 15:22:51] Disable prefill CUDA graph because cuda_graph_config resolved prefill.backend='disabled' (e.g. via --cuda-graph-backend-prefill=disabled or auto-disable rules).It appears twice — once for the target model, once for the draft — which is the tell that both engines honor it independently.
--cuda-graph-max-bs-decode 2
Decode graphs captured up to batch size 2, in full-capture mode (backend='full', bs=[1, 2] in the dump). With the mamba cap of 1 that the engine enforces (below), the bs=2 graph is insurance for a configuration that will not trigger in this run.
--max-running-requests 2
Requested concurrency. Granted: none of it. The mamba state pool has 7 slots and each request holds 5, so the engine caps execution at 1:
[2026-08-19 15:22:50] max_running_requests is capped to 1 by the mamba state cache (max_mamba_cache_size=7, 5 state slots per request). To raise it: increase --mamba-full-memory-ratio or --max-mamba-cache-size, or halve the state size with --mamba-ssm-dtype bfloat16.Same mechanic as the earlier launch — there 32 slots gave 6 requests, here 7 slots give 1 — but the NVFP4 draft freed enough VRAM to grow the pool from 5 slots in the previous post to 7 here. The hint in the message is stale for this build (mamba_ssm_dtype is already bfloat16 in the dump), so the real levers are --mamba-full-memory-ratio (default 0.5 here) or --max-mamba-cache-size. Note the pool grew 5 → 7 but the cap stayed at 1: with 5 states per request, you need 10 slots for two requests, and 7 is short of that.
--enable-hierarchical-cache with --hicache-ratio 6.0
The HiCache host tier, still at 6× the device pool — but the device pool is now bigger, so the host footprint grew with it:
[2026-08-19 15:22:54] Allocating kv hierarchical KV host pool: 678805 tokens, 22.24 GB host memory.[2026-08-19 15:22:58] Allocating 3.37 GB host memory for hierarchical Mamba cache (layout=page_first).[2026-08-19 15:22:58] Allocating draft hierarchical KV host pool: 678806 tokens, 6.95 GB host memory.678,805 tokens is exactly 6 × 113,134 device tokens plus one alignment token — the ratio is doing exactly what it says. Two details stand out. First, the draft model gets its own hierarchical pool (678,806 tokens / 6.95 GB), because speculative decoding makes the draft’s KV cache a first-class citizen of the tree. Second, the total host footprint — 22.24 + 3.37 + 6.95, about 32.56 GB of system RAM — is up from the 25.3 GB of the previous 6× launch, because the NVFP4 draft let the device pool grow from 88,740 to 113,134 tokens and the 6× ratio scales the host side with it. On a machine that also runs other things, a full 32.56 GB of HiCache host reservation is worth knowing about.
--enable-metrics
Turns on Prometheus-style metrics; the runtime tail shows a /model_info and a /v1/models scrape answering 200. The flag itself got smushed into the --enable-metricsame artifact on the pasted transcript (The Command above), but the dump confirms enable_metrics=True reached the engine.
--served-model-name "gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090"
The client-facing name. SGLang serves the model under this string instead of the checkpoint path, so clients and any gateway added later address the model by it.
What the Startup Log Reveals
Two checkpoints, two very different load times
The main model was a non-event; the draft model was even less than in the previous post, because it is NVFP4:
| Checkpoint | Shards | Elapsed | VRAM used |
|---|---|---|---|
| Qwen3.8-27B-NVFP4 (target) | 3 | 4.06 s | 18.80 GB |
| Qwen3.8-27B-DSpark-NVFP4 (draft) | 1 | 0.51 s | 1.45 GB |
The progress bar shows the draft’s single shard finished reading in 0.0 s at 15:22:49, and Load weight end stamps 15:22:50 — so the whole 0.51 s is nearly all I/O. There is no two-and-a-half-minute initialization tail the way the BF16 DFlash 2 draft’s 146.9 s load in the previous post was dominated by non-I/O draft initialization. The NVFP4 format is the reason: a pre-quantized Qwen3DSparkModel loads directly (Model is already quantized, loading directly...) with no per-shard kernel setup.
The 23-second boot
This is the number the previous post’s “Knobs to Turn Next” was predicting — “a second boot on this box is the real figure for this config, and it should be dramatically shorter.” It is. From the 15:22:39 banner to The server is fired up and ready to roll! at 15:23:02, about 23 seconds total, against the 4 min 7 s of the cold DFlash 2 launch. Two things collapse the boot:
- The draft load is 0.51 s instead of 146.9 s, because the NVFP4 draft is a local, pre-quantized 1.45 GB shard rather than a 3.73 GB BF16 model that the engine had to initialize from scratch.
- The FlashInfer autotune cache is warm, so the draft graph capture is 1.26 s instead of the 78.81 s cold-sm_120 capture that ate a third of the previous post’s boot.
The timing summary confirms the split:
[2026-08-19 15:23:00] Engine startup timings (s): load_weight=4.57, kv_cache_allocation=0.32, scheduler_e2e=16.55, cuda_graph={prefill=0.00, decode=0.00, target_verify=0.97, draft_prefill=0.00, draft_decode=1.26, draft_extend=0.00}, tokenizer_e2e=21.03scheduler_e2e=16.55 and tokenizer_e2e=21.03 are the two dominant spans, and draft_decode=1.26 (the warm draft-graph capture) is the one that would be 78.81 on a cold cache. This is a one-time-cold vs steady-state distinction, not a DFlash-vs-DSpark difference per se — the algorithm is not the reason the boot is fast, the warm cache and the pre-quantized draft are.
The memory ledger
After everything, on the 32 GB card:
| Component | Size |
|---|---|
| Target weights (NVFP4, 3 shards) | 18.80 GB |
| Draft weights (DSpark NVFP4, 1 shard) | 1.45 GB |
| Mamba cache (7 slots) | ~1.72 GB (conv 0.02 + ssm 0.56 + intermediate ssm 1.12 + conv window 0.02) |
| Target KV cache (FP8 e4m3, 113,134 tokens) | 3.46 GB (K 1.73 + V 1.73) |
| Draft KV cache (FP8 e4m3, 113,134 tokens) | 1.08 GB (K 0.54 + V 0.54) |
| CUDA graphs (target + draft verify) | 0.16 GB (0.09 + 0.07) |
| Remaining headroom | 1.89 GB |
Three observations. The KV pool is 113,134 tokens — still under half the 262,144-token native context, but up ~28% from the 88,740 of the previous post, because the 1.45 GB NVFP4 draft is 2.28 GB smaller than the 3.73 GB BF16 DFlash 2 draft and that difference goes straight into the FP8 pool. The draft KV is smaller per token (1.08 GB vs 3.46 GB) because the draft’s Markov head carries far fewer attention layers than the target. And 1.89 GB of headroom with two models resident is comfortable but not lavish — the expandable_segments allocator keeps the rest of the card’s free space usable. The 1024 MiB multimodal-feature reservation is a bounded pool, not a committed allocation, so it does not fully consume the gap between the component sum and 1.89 GB.
The FP8 caveat repeats
[2026-08-19 15:22:49] Using FP8 KV cache but no scaling factors provided. Defaulting to scaling factors of 1.0. This may lead to less accurate results!Printed twice — once per KV pool (target and draft), exactly as in the previous post. Neither checkpoint ships calibrated FP8 scales, so both pools run at scale 1.0. Fine for agent workloads; if quality regressions show up, calibration is the first suspect in both pools.
Startup timeline
| Phase | Duration |
|---|---|
| Config, tokenizer, multimodal init | ~6 s |
| Target weights (3 shards) | 4.06 s |
| Draft weights (1 shard, NVFP4) | 0.51 s |
| FlashInfer autotune (warm cache) | ~1 s |
| Target verify graph | 0.97 s |
| Draft verify graph (warm) | 1.26 s |
| HiCache host pools (32.56 GB RAM) | ~6 s |
| Scheduler end-to-end | 16.55 s |
| Command to “fired up and ready to roll” | ~23 s |
15:22:39 banner to 15:23:02 ready — about 23 seconds. Against the 4 min 7 s of the previous post, this is the “dramatically shorter” second boot it promised, with the entire delta traced to a warm autotune cache and a pre-quantized draft rather than to the algorithm itself.
The runtime tail
The server opens and the first traffic is exactly what you would expect of a fresh 5090 box serving itself — a 122-token local warmup prefill, then a health probe from a Tailscale client (the 100.89.98.50 source address) checking in:
[2026-08-19 15:23:02] Prefill batch, #new-seq: 1, #new-token: 122, #cached-token: 0, full token usage: 0.00, mamba usage: 0.57, #running-req: 0, #queue-req: 0, #pending-token: 0, cuda graph: False, input throughput (token/s): 54.48[2026-08-19 15:23:02] INFO: 127.0.0.1:55376 - "POST /v1/chat/completions HTTP/1.1" 200 OK[2026-08-19 15:23:02] The server is fired up and ready to roll![2026-08-19 15:23:03] INFO: 100.89.98.50:40940 - "GET /v1/models HTTP/1.0" 200 OKThe numbers are cold-start numbers, not steady state — small prompt, no CUDA graph in prefill (disabled by flag), first-touch kernel paths. mamba usage: 0.57 is the fraction of the 7-slot mamba pool in play (about 4 of 7). What the tail does establish is that everything routes: /model_info, /v1/models, and /v1/chat/completions all answered 200, and the Tailscale client at 100.89.98.50 is already hitting the endpoint.
Reading the Warnings
| Message | What it means |
|---|---|
--enable-metricsame ... : command not found | Shell artifact from the smushed flag pair — both values demonstrably reached the engine; no action. |
[ERROR] loss / logits ... not documented (×2 each) | transformers’ docstring lint on the Qwen2_5 VL modeling file. Cosmetic, printed per process, same as every Qwen-VL launch. |
Detected nvfp4 checkpoint ... experimental | Standing ModelOpt format-stability notice, not a runtime problem. |
FP8 KV ... scaling factors of 1.0 (×2) | Uncalibrated FP8 in both target and draft pools. The one warning with an actual accuracy consequence. |
max_running_requests is capped to 1 | The mamba pool, not VRAM, is the concurrency ceiling. Expected given 7 slots ÷ 5 per request. |
DSpark draft runner ... markov_head=VanillaMarkov | Informational — the draft’s Markov block-walk, confirming gamma=7 and verify_num_draft_tokens=8 are wired. |
Multimodal feature transport ... cuda_ipc | Informational — a 1024 MiB bounded pool on the base GPU, reserved not committed. |
ORJSONResponse is deprecated | FastAPI now serializes natively via Pydantic; SGLang’s custom response class is no longer needed. Cosmetic. |
None of them need action for this workload.
Knobs to Turn Next
- Buy concurrency if you need it. The cap of 1 comes from
max_mamba_cache_size=7— raise--mamba-full-memory-ratio(or--max-mamba-cache-sizeto 10 or more, since 5 slots per request means 10 slots for two), accepting a smaller KV pool, or drop--hicache-ratio6.0 to give the device side more room to size the mamba pool from. - Calibrate the FP8 KV scales for both pools if the 1.0 defaults show up as quality loss — the draft pool in particular, because draft errors propagate as rejected blocks.
- Reconcile the FlashInfer version. This run autotuned under 0.6.15.post1 against a cache built for that version; the previous post ran 0.6.17. If you compare autotune-cache hit rates or kernel choices across these two launches, the version jump is a confound worth pinning down.
- Tidy the environment.
VLLM_SKIP_P2P_CHECK,VLLM_USE_FLASHINFER_SAMPLER, andFLASHINFER_MAX_NUM_SEQS=6do nothing in an SGLang process; keeping them costs nothing but misleads anyone reading the launch script next month.
References
- Qwen3.8-27B-NVFP4-RTX5090 — gittensor model hub, local checkout at
~/Models/gittensor-model-hub/ - gittensor-model-hub/Qwen3.8-27B-DSpark-NVFP4 — gittensor model hub, local NVFP4 DSpark drafter
- Qwen3.8-27B — Qwen, Hugging Face — https://huggingface.co/Qwen/Qwen3.8-27B
- incoai/Qwen3.8-27B-DFlash2 — Inco AI, Hugging Face (BF16 reference drafter from the previous post) — https://huggingface.co/incoai/Qwen3.8-27B-DFlash2
- sgl-project/sglang — GitHub — https://github.com/sgl-project/sglang
- Speculative Decoding (DSPARK) — SGLang Documentation — https://docs.sglang.io/docs/advanced_features/speculative_decoding
- Hierarchical KV Caching (HiCache) — SGLang Documentation — https://docs.sglang.io/docs/advanced_features/hicache
- Attention Backends — SGLang Documentation — https://docs.sglang.io/docs/advanced_features/attention_backend
- flashinfer-ai/flashinfer — GitHub — https://github.com/flashinfer-ai/flashinfer
- CUDA Notes (PYTORCH_CUDA_ALLOC_CONF) — PyTorch Docs — https://pytorch.org/docs/stable/notes/cuda.html
- SGLang: DFLASH 2 Speculative Qwen3.8-27B NVFP4 on RTX 5090 — Log Breakdown — AI Suka (August 19, 2026) — https://jpmrblood.codeberg.page/2026/08/21-sglang-dflash-qwen38-27b-nvfp4-5090-speculative-log-breakdown/
- SGLang: Qwen3.8-27B NVFP4 with HiCache — Serve Command and Startup Log Breakdown — AI Suka (August 15, 2026) — https://jpmrblood.codeberg.page/2026/08/18-sglang-qwen38-27b-nvfp4-mamba-radix-command-breakdown/
- vLLM: Qwen3.8-27B NVFP4 on RTX 5090 — Command and Startup Log Breakdown — AI Suka (August 19, 2026) — https://jpmrblood.codeberg.page/2026/08/19-vllm-qwen38-nvfp4-5090-startup-log-breakdown/
This article was written by Pi (gittensor-model-hub/Qwen3.8-27B-NVFP4-RTX5090 | PC Eyay).

