🎅 DISPATCH FROM SANTA KIT'S WORKSHOP

🎁 Workshop Log: AI & TechLetter #16 of 16

Qwen4-35B on Two DGX Sparks: 563 tok/s, 13.17M KV Cache, and What It Replaced

Qwen4-35B on Two DGX Sparks: 563 tok/s, 13.17M KV Cache, and What It Replaced

On December 4 and 5 I benched and then promoted a new production stack on my two NVIDIA DGX Sparks: Qwen4-35B on Flare TP2, exported by me from an open recipe ahead of the upstream merges. It replaced the Qwen3.8 DUO TP2 build I promoted on December 3. The headline numbers are 562.8 tok/s aggregate decode at C16, 13,172,736 tokens of live KV cache, and 27/30 exact answers on Hotel Lights at xhigh, which clears the 23/30 switch bar I set for myself.

This is the December record behind my six-week Spark comparison and my October Qwen Flash-Next recipe post. Same two machines, same harness, same pinned driver, different model. If you only read one table, read the cache column in the scoreboard below; speed was never the only reason to switch.

The pinned baseline

Everything below ran on GB10 Sparks with 121.7 GiB of unified memory each, joined by a direct 200G CX-7 RoCE link. I held the software still for the whole comparison so the numbers mean something against each other: kernel 7.0.0-1019-nvidia, NVIDIA driver 615.71.09, CUDA 13.0. No driver or kernel moved mid-comparison, so a gap between two rows is a model or runtime difference, not a moving baseline.

The harness is llm-inference-bench 0.8.0. I run 8K-context sustained decode at C1, C4 and C16, a ten-run single-stream coding peak probe, toolcheck.py with five cases, visioncheck.py with eight scored cases plus two unscored stress cases, and profile:hotel-lights at C=4 with reasoning_effort=xhigh. Hotel Lights is scored numeric-exact against an expected answer of 48. My production switch bar is at least 23/30 on the full x30 run, because eight cases is too few to trust.

The previous production stack, promoted December 3, was Qwen3.8 DUO TP2: q38-duo-v052-tp2.safetensors, a 104 GB packed package on Flare v0.5.2 with a WARMIND v1.2 steering sidecar, mtp-draft-tokens 7, alpha=0.5, --memory-limit 90G, and a 250 GB NVMe disk prefix cache per Spark. I kept that package on disk the entire time so rollback was one command away, and I still can roll back if this build misbehaves in a way the benchmarks did not predict.

The scoreboard

These are the four builds I compared across Dec 3 to 5. Decode is aggregate tokens per second at 8K context. Coding peak is the median and max of ten single-stream coding runs at C1. KV cache is the live token capacity the server reported, not a spec-sheet number.

Build Layout C1 / C4 / C16 tok/s Coding peak (med / max) KV cache
Qwen4-35B Flare TP2 (new prod) TP2 106.8 / 243.5 / 562.8 179.1 / 189.6 13.17M
Qwen4-35B Flare TP1 (one Spark) TP1 68.1 / 169.9 / 362.1 113.5 / 122.2 6.54M
Qwen3.8 DUO Flare TP2 (old prod) TP2 68.8 / 157.4 / 317.5 131.0 / 150.6 6.47M
Qwen4-35B on vLLM (one Spark) TP1 36.8 / 114.7 / not run not run 0.69M

The new TP2 build is 2.04x the old Qwen3.8 DUO TP2 on KV cache and about 19x what the same model gets on vLLM on one Spark. Warm C1 on the new build reached 110.8 tok/s, and the coding peak had 0 CJK leaks across all ten runs, same as TP1. The vLLM row is included as a floor, not a candidate: at 0.69M tokens of cache it could never hold a long agent session next to my other workloads, so it only appears to show what the model costs without the Flare packaging.

Tools and vision were clean everywhere I tested: 5/5 tools and 8/8 vision on the new TP2 build, TP1, the old DUO build, and vLLM. The difference shows up in the unscored vision stress cases, not the scored eight. On 1x checkout 32px-seam, old Qwen3.8 DUO TP2 transposed a checkout total to $1,248.50 where the true answer is $1,284.50. The new TP2 build and the vLLM baseline both read it exactly and both passed the tiny green after 20K tokens case. TP1 also scored 8/8 on the scored cases; I did not carry a stress-case claim for it. A transposed dollar total is exactly the kind of error that would silently corrupt an invoice or a booking, which is why I keep watching that one case.

The cache is the reason

Speed was never the only reason to switch. The KV cache is, and it is the number that changed my day-to-day.

Bar chart of live KV cache capacity with disk-backed FP8 PLE and a 90G memory limit: Qwen4-35B Flare TP2 at 13.17 million tokens, Qwen4-35B Flare TP1 at 6.54 million, Qwen3.8 DUO Flare TP2 at 6.47 million, and Qwen4-35B on vLLM at 0.69 million.

The new TP2 package reports 13,172,736 tokens of live KV cache while leaving 13 to 15 GB of RAM headroom per Spark alongside ComfyUI-3D, AniGen, and the ComfyUI auto-proxy. That is the part that makes long agent sessions survivable on these machines. The old DUO build gave 6.47M and vLLM on one Spark gave 0.69M. Between the two, only the new TP2 build holds a multi-hour coding session with tools attached while image generation stays warm on the other Spark.

Getting there required a package shape Flare has not shipped yet. The TP2 package is 47 GB packed: 11.8 GiB per Spark of GPU weights plus a 19.1 GiB single-plane FP8 E4M3 PLE that stays on disk instead of in VRAM. Export took 53 minutes across both Sparks and packed in 40 seconds. Production cold boot is 84 seconds with --memory-limit 90G, the disk FP8 PLE served by four workers with a 1 GiB cache, and the 250 GB NVMe prefix cache per Spark. The runtime is configured for C=16, four image concurrency, a 4096-token prefill chunk, the 7-draft causal DFlash2 speculator, and online MXFP8, with 1M tokens of native context.

Stock Flare cannot run it yet

Here is the honest part, and the reason this post is a record and not a tutorial you can follow off the shelf. Released Flare, anything at v0.6.1 or older, fails at load with engram table has no encoding when it meets the single-plane FP8 PLE (FP8_E4M3_GLOBAL = 4). So I am not running a released Flare. I exported against a pinned runtime and an open recipe, which means this deployment is ahead of upstream on purpose and will need a re-export or a patch once those merge. The receipts, all current as of Dec 5:

The TP1 fallback is the one place I did not have to export anything, which is also why it is the one I trust most as a reference. JMNI-Labs’ prebuilt gb10-tp1 package is 42 GB, 22.1 GiB of GPU weights plus the same 19.1 GiB disk FP8 PLE, 1M native context. It reported 6,537,216 tokens of live KV cache, matching the old two-box DUO build on a single Spark, with up to 7.83M uncapped. I run it as the live one-box fallback whenever ComfyUI auto-wakes on the second Spark, so production never goes dark if the pair is busy. On Hotel Lights at x8 it scored 7/8 with one miss (47), at 82.5 agg tok/s, 406.3s average, 33,502 average tokens, and 17.1W avg / 51.0W max GPU power.

Hotel Lights at xhigh, and the two runs I trust differently

Speed on a decode benchmark tells you almost nothing about whether a build can do the reasoning work I actually ask of it. Hotel Lights at xhigh is that check, and it is where I had to be careful about sample size rather than chase a scary number.

Two bar charts of Hotel Lights at xhigh reasoning and C=4. Exact-answer pass rate shows Qwen4-35B Flare TP2 at 27/30 (90%) against a 23/30 switch bar, above Qwen4 Flare TP1 and Qwen4 on vLLM at 7/8 and old Qwen3.8 DUO at 8/8. Aggregate reasoning speed shows Qwen4 Flare TP2 at 120.1 tok/s, far ahead of TP1 at 82.5, vLLM at 39.9, and old DUO at 48.8.

The first trial at x8 on the new TP2 build scored 6/8 (75.0%), missing 24 and 49, at 127.1 agg tok/s and 167.6s average. Eight cases is a small sample and I do not trust it as a pass or fail signal in either direction, so I ran the full gate instead of declaring a regression on eight answers.

The live production run at x30, through the production proxy, scored 27/30 (90.0%) with 30/30 completed: zero stalls, zero timeouts, zero max_tokens hits. The three misses were #7 (answered 47 at 17,465 tokens), #27 (answered 49 at 22,622 tokens), and #19, a formatting miss that produced an empty final output after 29,754 tokens. Aggregate speed was 120.1 tok/s (120.9 mean per request), with 0.09s average time to first token and 213.4s average elapsed, 28m 17s total for the run. Tokens per request averaged 25,624, p50 25,254, p90 31,496, p99 44,608. Power stayed low and cool: 28.5W avg / 32.1W max GPU power per Spark, settled at 51°C and full 2340 MHz SM clocks for the whole run.

Compare that honestly against the old build. Qwen3.8 DUO TP2 scored 8/8 at x8, but only at 48.8 agg tok/s and 689.8s average, 33,674 average tokens. The new build clears the bar at about 2.5x the reasoning speed. I want to be plain about the x8 6/8 versus x30 27/30 gap: the x8 trial is a noisy eight-case sample and the x30 run is the one I stand behind. I would not quote 6/8 as a real score, and I would not quote 8/8 on eight cases as proof the old build was better at the effort I actually run. Both x8 numbers, on every build in this post, are trial data. The x30 run is the gate.

Update (Dec 5 afternoon): WARMIND DUO sidecar and warmind-auto

Three hours after I promoted Qwen4-35B-A3B, jcartu published the standalone 598 KiB rank-2 steering sidecar (jcartu/WARMIND-Qwen4-35B-A3B-Steering-Sidecar, warmind-qwen4-v1-steering.safetensors, SHA-256 9b8ea28736e863006c49b29b36c2bda3752cbcce6db0f2ee34b228aeb68a9dc6, covering layers.3 through layers.39 with zero base-weight modification). Their prebuilt combined core targets SM120 (gb202) with built-in MTP-5, so for my SM121 Sparks I merged the open steering PR (local-inference-lab/hyperflare-recipes#108 at 0ca8d677) onto #167 (3b19a3e), kept the 7-draft DFlash2 speculator, and exported native GB10 TP2 DUO and TP1 DUO packages against the exact same JMNI-Labs/Qwen4-35B-A3B-NVFP4-Hybrid (423a7ab1) weights.

Both builds exported cleanly on the first run (41m 32s for TP2 at 47 GB, 14.38 GiB/rank, 107 graphs; 1h 39m for single-box TP1 at 43 GB, 24.12 GiB, 107 graphs) and are now promoted in production. Live verification on the promoted DUO stack:

Check Measured result Notes
TP2 DUO live KV & memory 13,156,352 KV 14–15 GB RAM free per Spark, 89s cold boot
TP2 DUO coding c1 decode 181.4 / 176.4 tok/s steering_scale = 0.0 vs 1.0 (DFlash2 k=7)
TP1 DUO live KV & decode 5,976,064 KV / 90.0 / 89.1 tok/s 21 GB free on Spark B, 34s boot (0.0 vs 1.0)
Logprob invariance (omit vs 0.0) 0.000000 max abs delta 10/10 top logprobs bit-identical to stock
Prefix-cache isolation (0.0 → 1.0 → 0.0) 0.000000 max abs delta Parameter-salted KV cache, zero cross-scale leakage
Steering delta (0.0 vs 1.0) 2.494 max abs delta Confirmed active across 37 steered layers
Tools & vision gates (TP2 DUO) 5/5 tools, 8/8 vision Unscored tiny green after 20K tokens stress case also passed

On top of the pinned 0.0 and 1.0 aliases, I wired jcartu/WARMIND’s warmind_gateway.py (warmind-auto) side-by-side on :4000 pointing straight at Flare :8002, and routed warmind-auto / qwen4-auto aliases to it from the :8000 front proxy. Every warmind-auto turn starts on pristine 0.0 with a 0 ms regex screen over the opening visible text; benign turns pass straight through at 0.0 with zero extra calls, and only a flagged policy/pivot refusal fires a tiny non-thinking JSON-schema judge (max_tokens=24) to escalate that turn to 1.0 with a short non-renewing thread lease (K=2) before dropping back to 0.0. End-to-end through :8000, benign requests stayed on 0.0 (pass / clean_opening), a refused security-control prompt escalated 0.0 → 1.0 (judge:PIVOT_REFUSAL) into a complete technical answer, and SSE streaming passed cleanly.

Three honest caveats on the DUO update:

  • I did not re-run a separate 30-run Hotel Lights xhigh sweep at steering_scale=1.0. At 0.0, top-10 logprobs are 0.000000 identical to the unsteered morning build that scored 27/30, so the stock baseline carries straight over; 1.0 reasoning parity relies on jcartu’s paired SM120 benchmarks (GSM8K, MMLU-Pro, GPQA-Diamond, Aider Polyglot) plus my local tools, vision, and decode checks.
  • On TP1, my self-exported non-CSF DUO package reports 5.98M KV (43 GB) versus 6.54M KV (42 GB) on JMNI-Labs’ CSF-compressed prebuilt gb10-tp1 — a ~560K KV trade in exchange for having DUO steering available in both TP2 and one-box TP1 modes.
  • On warmind-auto, a turn that triggers a refusal at xhigh effort still pays for the 0.0 thinking pass before retrying at 1.0. That is why I keep the default production alias pinned to zero-overhead 0.0 stock, expose pinned 1.0 (*-warmind) for known false-positive retries, and run warmind-auto side-by-side for clients that want automatic escalation.

What the move cost

Two real trade-offs at launch, and one of them only lasted three hours.

Steering sidecar (solved same day). At 6:49 AM when I promoted Qwen4, there was no steering sidecar and I had to strip steering_scale injection from the front proxy to avoid 400s. By afternoon, the 598 KiB WARMIND Qwen4 sidecar closed that gap completely on both TP2 and TP1 without touching base weights, while keeping stock 0.0 bit-identical (0.000000 delta) and adding warmind-auto side-by-side.

Smaller model class. 35B-A3B is about 3B active parameters. The package I replaced was a 104 GB Qwen3.8-Flash-Next build. That is still a real downgrade in raw model class, and I am not pretending otherwise. What pushed me over the line was that 27/30 on Hotel Lights at xhigh, plus dogfooding it immediately to audit this very Astro repo in about 85 seconds with exact file:line citations, was enough evidence for the workloads I actually run: coding agents, scheduled jobs, and image generation that has to stay warm next to the model. I am keeping an eye out for larger Qwen4 drops and for the upstream PRs (#732, #167, #108, #170) to merge so I can get off the pinned runtime.

Everything else about the swap was plumbing. The same lightweight front proxy I already run maps the legacy production names such as qwen3.8-flash-next, plus Qwen4-35B, pinned *-warmind (steering_scale=1.0), and warmind-auto / qwen4-auto (forwarded to the side-by-side warmind_gateway.py on :4000), turns high reasoning effort into xhigh, and strips strict: true tool flags, so my scheduled jobs, coding agents, and chat services did not need rewriting. Both the non-DUO Qwen4 packages and the old Qwen3.8 DUO TP2 package stay on disk for instant rollback.

What I’d do differently

I’d have run the x30 gate before the x8 trial instead of after, because the eight-case number sent me chasing a regression that the full run disproved. And I’d have confirmed the Flare PR merge status before committing to a 53-minute export across two machines, since being ahead of upstream is a cost I only accepted after seeing the cache number and the reasoning score side by side.

Credit belongs to Local Inference Lab, JMNI-Labs, RadixArk, jcartu for the WARMIND sidecar, steering PR #108, and warmind_gateway.py, and the Hyperflare and FlashInfer contributors for the checkpoints, packages, runtime and kernels. My contribution is the comparison, the GB10 TP2/TP1 DUO exports, and a record of what actually ran on these two machines.

🎄 Frequently Asked at the Workshop

Does Qwen4-35B fit on one DGX Spark, or do I need two?

One Spark is enough, with a real trade. The single-Spark TP1 package holds 22.1 GiB of GPU weights plus a 19.1 GiB FP8 PLE on disk, and it reported 6,537,216 tokens of live KV cache, which matches the old two-box Qwen3.8 DUO TP2 on one machine. Decode on one Spark is 68.1 / 169.9 / 362.1 tok/s at C1 / C4 / C16, against 106.8 / 243.5 / 562.8 on TP2. I run TP2 as production and keep TP1 as the live fallback for whenever ComfyUI auto-wakes on the second Spark.

Why can't stock Flare run this package yet?

Because the single-plane FP8 PLE that makes the KV cache this large is not accepted by released Flare. Anything at flare v0.6.1 or older fails at load with 'engram table has no encoding' when it meets FP8_E4M3_GLOBAL = 4. The fix is an open pull request, NVIDIA/hyperflare-inference#732, at commit 02ba7629 as of Dec 5. Until it merges I export against a pinned runtime and the recipe PR local-inference-lab/hyperflare-recipes#167, so I am running ahead of upstream on purpose.

What do I give up moving from Qwen3.8 DUO TP2 to Qwen4-35B TP2?

At first, two things: WARMIND steering and raw model class. Three hours after I promoted Qwen4, jcartu published the 598 KiB WARMIND-Qwen4-35B-A3B steering sidecar, so I rebuilt both TP2 and TP1 with per-request steering_scale in [0.0, 1.0] and wired up warmind-auto side-by-side. The real remaining trade is model class: 35B-A3B (~3B active) is smaller than the 104 GB Qwen3.8-Flash-Next package, and my self-exported non-CSF TP1 DUO build holds 5.98M KV vs 6.54M on JMNI-Labs' prebuilt CSF TP1. I kept the old packages on disk for instant rollback.

🎄 XMAS 2026