GLM-5.3-Flash (NVIDIA NVFP4 + DFlash2) on 2× DGX Spark: great single-stream and long-context, but aggregate tokens/s does not scale with concurrency — anyone else seeing this?
Over the weekend I trialed the GLM-5.3-Flash NVIDIA-NVFP4 + DFlash2 recipe
(GitHub - 0rand/glm-5.3-flash-nvidia-nvfp4-dflash-2x-dgx-sparks: GLM-5.3-Flash NVIDIA official NVFP4 + DFlash2 on 2x DGX Spark — TP=2 over RoCE, cudagraphs + async scheduling, verified 700K ctx (hardmode 94/100), one .env · GitHub, pilcothink vllm_spark_glm53:0.28
runtime) on my 2× DGX Spark pair, side by side with the stack I run in production, DeepSeek-V4-Flash
(0731) on aidendle94’s sparkrun-vllm-ds4-gb10:production-3.7 DSpark image. Both TP=2 over a
200 Gb/s ConnectX-7 RoCE link, both nodes headless. Sharing the numbers because one result surprised me
and I had not seen it mentioned anywhere.
Setup / fairness notes. Same hardware, same day, GPU clocks capped at 2000 MHz on both nodes for both
stacks (thermal mitigation I run permanently — so absolute numbers are ~25–30 % below what an uncapped
Spark does), same benchmark tooling (tool-eval-bench v2.0.7 for quality and spec-bench, llama-benchy for
single-stream, and a small concurrency harness that fires N identical 1K-token requests with 512 output
tokens and reports total tokens / wall time). Everything warmed before measuring.
What GLM does well. Single-stream decode is ~33 t/s and it is flat with depth: 33.0 / 33.1 / 32.0 / 34.0 /
33.6 t/s at 0 / 2K / 8K / 64K / 128K context. Prefill is ~920 t/s past the first chunk (so 128K of context is ~2
minutes to first token). DFlash2 acceptance is excellent on code and structured output (86–92 %, ~4.4
accepted tokens per step) and poor on prose (38–55 %). Tool-calling quality matched DeepSeek exactly on
tool-eval hardmode (89/100 vs 89/100 at 20 parallel scenarios). It did not leak on a prompt-injection
probe that the 0731 DeepSeek release fails. HumanEval was lower (147/164 vs 158/164).
The surprise: aggregate throughput is flat.
| concurrency | GLM-5.3-Flash + DFlash2 (agg t/s) | DeepSeek DSpark (agg t/s, same day) |
|---|---|---|
| 1 | 33 | 31 |
| 4 | 43–46 | 98 |
| 8 | 43–44 | 143 |
| 16 | 45 | (243 on an earlier uncapped day) |
Going from 1 to 16 clients moves GLM’s total from 33 to 45 t/s while per-request speed collapses from 33 to
5 t/s and TTFT at c8 balloons to ~28 s. I first assumed it was the recipe’s scheduler profile
(max-num-seqs 4, max-num-batched-tokens 1024, tuned for one long-context user), so I rebooted with
seqs 16 / batch 4096 and then seqs 16 / batch 2048: same ~45 t/s ceiling. The DeepSeek image on the same
iron batches almost linearly to c8. Whatever the DFlash2 verify/draft step is doing at batch > 1 on GB10,
it behaves like a single ~45-token/s pipe shared by all clients.
I have not yet swept the draft depth (k=5 in the recipe); on the DeepSeek side we found spec=3
beat spec=5 under concurrency for exactly this reason, so that is my next experiment. If anyone has
run this stack with several simultaneous clients, or has DFlash2 batching numbers on Spark, I would
really like to compare notes — is this expected for DFlash, or a config/backend issue on my side?
Other gotchas from the weekend, in case they save someone time
- The Docker Hub
0.28tag was re-pushed on 09-12; in that build--per-request-spec-decode-metricstakes a
value (none|summary|detailed). The recipe passes it bare →vllm serve: error: expected one argument. - The new
hfCLI (1.x) stores weights in a content-addressedhub/blobs/<2hex>/<sha>tree; the recipe’s
download.shrsyncs only the per-model directory to the worker, which is just symlinks. The worker’s
“weights=yes” check passes onconfig.jsonalone. Synchub/blobs/too. gpu-memory-utilizationis a fatal pre-load check in this image and is a fraction of whole-system RAM.
0.88 missed on my head node by 0.5 GiB; 0.86 works. Do not port GMU values between images.- The head node has ~5 GiB less headroom than the worker (API server + engine core + whatever else you
host there). With the recipe’s 9 GiB KV pin, DGX OS’searlyoom(2 % threshold) killed the head’s vLLM
worker at KV allocation and again under load. A 6 GiB pin was the fix. Checkjournalctl -u earlyoom
before blaming NCCL when a worker “died unexpectedly (exit code: None)”. - The display-reserve KV trick (coolbho3k’s allocator, shipped in the recipe as
start-display-kv.sh)
works on driver 580.159: +1.75 GiB KV per rank, +29 % pool at my pin size, no measurable decode tax,
runtime-only and reversible. It needs both nodes headless and, on my Sparks, the GPU is/dev/dri/card0
rather than thecard1the scripts assume.
Verdict for my use case (a shared endpoint for several coding agents): DeepSeek/DSpark stays. For a
single long-context user GLM-5.3-Flash on this recipe is a genuinely strong stack. Thanks to 0rand,
pilcothink, coolbho3k and aidendle for the work — happy to share the full logs and configs.