Dual Sparks in nvfp4 vs 4x RTX Pro 6000 with native DeepSeek V4 0731 -- Quants and Speed

DeepSeek-V4-Flash-0731 on 2x DGX Spark: 1M Context, NVFP4 KV Cache

A practical, field-tested companion to the upstream guide:

GitHub - tonyd2wild/DeepSeek-v4-Flash-0731-DSpark-1M-NVFP4-KV-2x-DGX-Spark: DeepSeek V4 Flash DSpark 1M NVFP4 KV recipe for 2x DGX Spark · GitHub

This document is written for a homelab enthusiast who already owns two DGX Spark units (GB10, SM120), has a ConnectX/QSFP fabric between them, runs Docker, and wants a single 304B-parameter model serving at 1M context with an NVFP4 KV cache. It is a companion, not a replacement. Read the guide first, then use this to avoid the footguns we hit on a real deployment. Everything below was verified on our own pair of Sparks, not copied from the README.

[!IMPORTANT]
This recipe runs a custom vLLM fork, not stock vLLM. Do not point stock > vLLM (main, 0.24, or 0.25.2) at this model on DGX Spark. See > Why not stock vLLM below.


The shape of the thing

Component Value
Hardware 2x DGX Spark (GB10, SM120), 1 GPU per node
Tensor parallelism TP=2 (one GPU per node)
Fabric Dual ConnectX-7 200 Gb/s RoCE (RoCEv2, GID index 3)
Base image ghcr.io/bjk110/vllm-spark:unholy-fusion-prod-ready (public, no auth, ~21.2 GiB)
Runtime vLLM 0.21.1rc1.dev339+g1967a5627bc3, FlashInfer 0.6.12, TileLang 0.1.9, Python 3.12 at /opt/env
Model deepseek-ai/DeepSeek-V4-Flash-0731, rev 7872f01b, 166.9 GB, 48 safetensors shards
KV cache dtype nvfp4_ds_mla (the “NVFP4” in the repo name is the KV cache, not the weights)
Context 1,048,576 tokens (YaRN factor 16 over 65,536; 1M is the calibrated ceiling)
API http://<head-fabric-ip>:8888/v1

The build produces four images per node (overlay, stage-a, stage-b, stage-c); stage-c is canonical and is what you run.

Key .env.dspark values (from our working config)

WORKER_HOST=<worker hostname or IP>
MASTER_ADDR=10.10.10.1
MASTER_PORT=25440
VLLM_HOST_IP=10.10.10.1
WORKER_VLLM_HOST_IP=10.10.10.2
NCCL_IB_HCA=rocep1s0f1,roceP2p1s0f1
NCCL_SOCKET_IFNAME=enp1s0f1np1
NCCL_IB_GID_INDEX=3
HF_CACHE=/home/spark2/.cache/huggingface
DSPARK_MODEL=deepseek-ai/DeepSeek-V4-Flash-0731

Our fabric used 10.10.10.1/.2; the guide uses 192.168.192.0/24. Your subnet and device names will differ. The values above are the ones that worked for us.

Default config (current best per the guide, and what we ran):

MAX_MODEL_LEN=1048576
MAX_NUM_SEQS=6
GPU_MEMORY_UTILIZATION=0.78
MTP_NUM_TOKENS=5
kv-cache-dtype nvfp4_ds_mla
speculative config {"method":"dspark","num_speculative_tokens":5,"draft_sample_method":"probabilistic"} --distributed-executor-backend mp

Deviating from MAX_NUM_SEQS=6, GPU_MEMORY_UTILIZATION=0.78, or k=5
reproduces documented crashes. The model card recommends
num_speculative_tokens=7, but this drafter’s dspark_block_size is 5 and k=7 does not work on it. Use 5.

Launch sequence

./build-dspark-vllm-runtime.sh          # build overlay + stage A/B/C on head AND worker ./prepare-dspark-model-cache.sh         # snapshot_download + verify + mirror to worker ./start-deepseek-v4-flash-dspark.sh     # worker-first launch + smoke test

The API lands at http://<head-fabric-ip>:8888/v1. Boot markers to look for:

GPU KV cache size 1,492,347 tokens Maximum concurrency for 1,048,576 tokens per request: 1.42x Application startup complete.

Then the test: chat with "Reply exactly: NVFP4 DSPARK OK" should return exactly that string.


Where the guide needs adjustment (we hit all of these)

The guide is good, but it assumes a specific lab. On your hardware and setup, you will need to fix these.

1. Baked-in VLLM_HOST_IP footgun (fatal if ignored)

The base image has VLLM_HOST_IP=192.168.192.1 baked in. On any node whose fabric IP is not 192.168.192.1, the worker dies immediately with:

zmq.error.ZMQError: Cannot assign requested address

Our image also carried a stale NODE_IP=192.168.50.58. Fix: set
VLLM_HOST_IP (head) and WORKER_VLLM_HOST_IP (worker) explicitly per node, and override the stale NODE_IP. Do not rely on anything baked into the image.

2. NCCL_IB_HCA is per-node, not uniform

The image bakes NCCL_IB_HCA=rocep1s0f0, but RoCE device names are not uniform across units. Auto-detect the Up RoCE device whose netdev carries the fabric IP. On both of our nodes that resolved to:

NCCL_IB_HCA=rocep1s0f1,roceP2p1s0f1
NCCL_IB_GID_INDEX=3   # RoCEv2

Verify with ibstat/ibv_devinfo rather than trusting the baked value.

3. The model must be on BOTH nodes (TP=2 gotcha)

With TP=2 every node needs the full 166.9 GB of weights. Download once (to NFS or the head), then rsync to both nodes’ local HF caches. With HF_HUB_OFFLINE=1 the runtime resolves the model fully offline, which is how you avoid a surprise 167 GB re-download at boot.

4. Leftover DSPARK_MODEL string

.env.dspark.example defaults DSPARK_MODEL to
deepseek-ai/DeepSeek-V4-Flash-DSpark, which is a leftover name. The real HF repo is deepseek-ai/DeepSeek-V4-Flash-0731. Point it at the 0731 local cache path and run with HF_HUB_OFFLINE=1.

5. capture_runtime.sh container-name mismatch

The script’s default CONTAINER_NAME is the title-cased basename of the
directory, which does not match the lowercase deploy container name. If you do
not pass it explicitly, the captured files come back empty. Pass:

CONTAINER_NAME=deepseek-v4-flash-0731-dspark-1m-nvfp4-kv-2x-dgx-spark-vllm-dspark-1

6. Reasoning-mode gotcha on the full endpoint

This only matters if you also run the 4x RTX6000 comparison (see below), but it
is worth knowing: the “full” stock-vLLM deployment runs in REASONING mode. It
emits a separate reasoning field before content, and small max_tokens budgets get eaten by reasoning. At max_tokens=16 you get content: null; at 64 you get "I am DeepSe". Use max_tokens >= 1024, or hit the raw
/v1/completions path, which skips reasoning entirely.

7. First boot is slow. Do not panic.

First boot takes on the order of 281 s: model load (~79.51 GiB), DeepGEMM warmup, FlashInfer SM120 sparse-MLA autotune, and torch.compile. Later boots reuse caches and are much faster. And before you trust any benchmark number, send real traffic first: cold runs are ~30% low until the JIT kernels warm up.

8. Repo rename

The repo was renamed from DeepSeek-v4-Flash-... to DeepSeek-v4-Flash-... (a case change). The old -v4- URL still works, but use the current one above.


Why not stock vLLM

This is the single most important thing to understand. Stock vLLM cannot serve this model on DGX Spark.
The guide documents this in UPSTREAM_V024_STATUS.md: a 2026-07-01 test of vLLM main (which already contained the merged DSpark PR) imported the DSpark modules but did not boot the checkpoint on 2x DGX Spark/SM120. The failures were backend-level: Unknown SF transformation, a Marlin FP4 repack PTX error, the FlashInfer backend rejecting the device, and MXFP4 method incompatibility.

A direct bake-off in RUNTIME-BAKEOFF-2026-07-29.md against vLLM 0.25.2 (ghcr.io/anemll/dspark-vllm-gx10:0.1.1) confirmed the gap: stock lost 9% on peak, 8% on mean, and 29% at concurrency c6. The gap is step time from the B12X MoE kernels plus a working torch.compile path, both of which only exist on the old fork.

The out-of-tree patch inventory (one line each)

Patch What it does
B12X MoE kernels (b12x_moe.py, VLLM_USE_B12X_MOE) The fused MoE kernels that make decode fast on SM120
B12X MLA sparse attention (b12x_mla_sparse.py) Sparse-MLA attention for the V4 architecture
DeepSeekV4 model support (models/deepseek_v4/) Model implementation for SM120/GB10
Spec-decode proposer Patches 1/2/2b (dspark_proposer.py, dspark.py, gpu_model_runner.py) The MTP drafter and its plumbing
Scheduler Patch 3 (scheduler.py) No spec placeholders on prefill chunks
NVFP4 envelope Stage A/B/C (nvfp4_ds_mla dtype) 416-byte probe validated to a 584-byte padded envelope
Patch 4 (0731, _STACKED_PARAM_NAME_MAPPING) Adds shared_experts.gate_up_proj rows; fixes 12 dropped tensors
keys-concurrency.patch External vendored patch
official-main-b12x-nvfp4-python.patch Experimental, not the default

Patch 4 is the big one for 0731. It fixes 12 dropped tensors and takes mean
decode from 32.7 to 55.4 tok/s, peak from 42.0 to 66.1, and acceptance from
25.7% to 60.2%. If your acceptance is stuck in the 20-30% range, Patch 4 is
missing.

Where upstream is heading

The upstream vLLM PRs that this fork tracks or parallels:

  • vllm-project/vllm#46995 Spec Decode DSpark (merged 2026-07-01)
  • vllm-project/vllm#41834 SM12x support for DeepSeek V4 Flash (open)
  • vllm-project/vllm#43477 Enable DeepSeek V4 and GLM-5.1 on SM120 (merged)
  • vllm-project/vllm#40082 FlashInfer B12X MoE and FP4 GEMM for SM120/121 (merged)
  • vllm-project/vllm#43332 B12X W4A16 (merged)
  • vllm-project/vllm#47577 Auto-select FLASHINFER_B12X NVFP4 on SM120 (open)
  • vllm-project/vllm#49133 DSpark draft under its own model/quant config (open; same failure family as Patch 4)
  • vllm-project/vllm#49617 Fix speculators dspark attribute loading (open)
  • vllm-project/vllm#48804 Warm spec-decode Triton kernels at startup (open)
  • vllm-project/vllm#38476 / #47629 TRITON_MLA_SPARSE backend (open)
  • vllm-project/vllm#50576 SM8x support (open issue)
  • vllm-project/vllm#50660 “0731 cannot be stabilized” (open issue)

Repo issues/PRs on the guide itself (renamed from -v4- to -v4-; the old URL still works): #1 perf PR, #2 long-context CUDA assert, #3 garble-fix root cause, #4 long-context crash fix PR, #5 max-cudagraph truncation PR, #6 open
soft-failure empty content, #7 proposer fixes via image PR, #8 open engine death CUBLAS/NCCL, #11 multi-node 500 on first request, #12 open “where is the docker image”, #13 open portability PR, #14 open sparkrun recipe PR.

The takeaway: this is a moving target. The custom fork is the only thing that works today, upstream is converging (several PRs merged), and the open issues above are the ones to watch before you decide to migrate.

Model card facts worth knowing

deepseek-ai/DeepSeek-V4-Flash-0731: 304B params, MIT license,
text-generation. max_position_embeddings is 1,048,576 with YaRN factor 16 over 65,536 (1M is the calibrated ceiling). Quantization: expert_dtype fp4, weights fp8 e4m3 ue8m0 block 128x128. Config: num_key_value_heads 1, head_dim 512, q_lora_rank/o_lora_rank 1024, sliding_window 128,
index_topk 512, num_hash_layers 3. DSpark is attached; the card recommends num_speculative_tokens 7, but the config has dspark_block_size 5 and the guide documents that k=7 does not work on this drafter (use 5).


Benchmark table (measured vs guide claims, steady state)

All numbers are tok/s (decode and concurrency are aggregate; prefill is TTFT for 1 output token). Measured with stream:false: under spec-decode, streamed deltas measure steps/s, not tokens/s.

Metric Guide claim Measured (steady-state) Delta
Decode peak 84.3 84.1 -0.2%
Decode mean 67.6 67.5 -0.1%
Concurrency c1 61.0 68.8-69.9 +13-15%
Concurrency c2 91.7 104.6-110.7 +14-21%
Concurrency c4 151.1 163.4-169.0 +8-12%
Concurrency c6 197.3 219.2-226.9 +11-15%
Prefill 8K 1,513 1,620 +7.1%
Prefill 32K 2,284 2,008 -12.1% (single-shot variance)
Prefill 100K 2,639 2,690 +1.9%

Bench notes:

  • stream:false is mandatory. Under spec-decode, vLLM emits one SSE chunk per step, so streamed deltas measure steps/s not tokens/s (we saw 14.7 vs 60.1). Always use stream:false and compute from server completion_tokens over wall time.
  • Heavy warm-up is mandatory. Cold runs are ~30% low. Our first concurrency pass was depressed by mid-bench Triton/TileLang JIT compilations firing on both ranks (concurrency kernels are not covered by the bench warmup). Once JIT-warm, the re-test met or exceeded every claim. Server logs confirmed zero JIT warnings in the steady-state window.
  • Acceptance measured 62.9% (13,335/21,210) vs the guide’s 60.2% at Patch 4.
  • Zero preemptions, zero queueing, zero OOM across the run.

The validation thought process

The goal was to prove the deployment matches the guide, not to re-derive it.
That shaped the procedure:

  1. Prove the right code is running. Patch checks first: grep -c is_prefill_chunk scheduler.py must return 5, and
    _STACKED_PARAM_NAME_MAPPING in dspark.py must contain the
    shared_experts.gate_up_proj rows. If those are missing, every benchmark
    below is measuring the wrong build. Both passed.
  2. Prove the right config booted. /v1/models must report
    max_model_len 1048576; the log must show the KV cache size, the
    concurrency figure, and Application startup complete.
  3. Prove determinism before trusting throughput. A chat smoke test
    ("Reply exactly: NVFP4 DSPARK OK") must return exactly that string. Then
    the agent sanity bench at concurrency 1/2/4/6 with bad_outputs:0.
  4. Benchmark decode, then concurrency, then prefill, each in the guide’s
    own terms and each after warm-up, so the comparison is apples-to-apples.
  5. Explain the deltas. Concurrency beats the guide because our runs were
    JIT-warm; the 32K prefill dip is single-shot variance, not a regression.
    Record both the first (cold) and steady-state numbers rather than hiding
    either.

Commands used to validate

# Boot check
curl http://10.10.10.1:8888/v1/models
# expect max_model_len 1048576; logs show KV cache size + "Application startup complete"

# Deterministic sanity
curl -s http://10.10.10.1:8888/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model":"deepseek-v4-flash-dspark","messages":[{"role":"user","content":"Reply exactly: NVFP4 DSPARK OK"}],"temperature":0}'
# expect: NVFP4 DSPARK OK

# Agent sanity bench (concurrency 1,2,4,6; expect bad_outputs:0)
python3 scripts/agent_sanity_bench.py   # CONCURRENCY=1,2,4,6

# Full benchmark (heavy warmup mandatory; stream:false)
URL=http://10.10.10.1:8888/v1 MODEL=deepseek-v4-flash-dspark python3 benchmarks/bench_full.py

# Patch checks
grep -c is_prefill_chunk scheduler.py          # expect 5
grep -A6 _STACKED_PARAM_NAME_MAPPING dspark.py # expect shared_experts rows

# Runtime capture (pass the container name explicitly!)
CONTAINER_NAME=deepseek-v4-flash-0731-dspark-1m-nvfp4-kv-2x-dgx-spark-vllm-dspark-1 \
  scripts/capture_runtime.sh

Validating this “Spark” model against the native model running on 4x RTX6000s

This section is about coherence, not performance. The RTX6000 box is much faster; that is irrelevant here. The question was narrower: is the model running on 2x DGX Spark through the custom fork the same model as the one running natively on 4x RTX6000s through stock vLLM?

Verdict: yes, it is the same model in two configurations. 15 of 16 prompts were coherently equivalent (temperature 0, no stream, 16 prompts covering both community and custom tasks). Every deterministic ground-truth task was identically correct on both:

Task Expected Spark Full
clock_angle 7.5 7.5 7.5
gpqa_balmer 656 nm 656 656
gsm8k_eggs 18 18 18
humaneval_close 6/6 tests 6/6 6/6
json_format valid JSON valid valid
logic_knights solve solve solve
state_track 1 1 1
structured_json valid JSON valid valid
trap_ignore no banana + ‘4’ pass pass
trap_no_e zero 'e’s pass pass
factual_author author correct correct

The one caveat with Spark

There is exactly one divergence, and it is consistent. count_letters asks “How many times does the letter ‘r’ appear in the word ‘strawberry’?” (correct answer: 3).

  • Full (RTX6000): 3, 3, 3. Stable and correct.
  • Spark (2x DGX): 5, 5, 9, 5, 9 across five temperature-0 runs. Wrong every time, and non-deterministic at temperature 0.

This is a genuine, narrow model-quality flake on the custom fork’s sampler, not a configuration artifact. It reproduced in a fresh run. Everything else about the model is coherently equivalent; this one letter-counting edge case is not.

Systematic config differences (not model differences)

  1. Reasoning field. Full emits a separate reasoning field before
    content; Spark returns reasoning: null. The final content matches.
  2. Token-budget trap. At max_tokens=1024, Full’s reasoning ate the budget on a creative task and returned content: None; Spark returned a complete ~150-token continuation. This is why the harness re-runs the creative prompt at 4096 for Full.
  3. Verbosity. Spark is concise (80-170 tokens); Full is expansive
    (250-1300 tokens) because it front-loads reasoning. This may be due to slightly differenve vLLM configurations.
  4. Hard reasoning is identical and correct on both, with no truncation on Spark.

Reproduction (harness on NFS)

The harness lives at /nfs/Dual_Spark_DSV4Flash0731/comparison/. It is
stdlib-only, deterministic in its scorers, and was verified reproducible fresh
from the NFS copy on stock Python 3.12.

cd /nfs/Dual_Spark_DSV4Flash0731/comparison/

# 1. Edit the two endpoint URLs in compare_harness.py
#    Spark: http://10.10.10.1:8888/v1   model deepseek-v4-flash-dspark
#    Full:  http://10.200.0.166:8000/v1 model deepseek-v4-flash

# 2. One-shot collection + scoring + report
bash run_all.sh out

What it does, in one line each:

  • compare_harness.py sends identical prompts to both endpoints with identical sampling (temperature 0, no stream, generous max_tokens) and saves the raw JSON. It merges runs by prompt+endpoint+max_tokens, keeping the newest, so a creative re-run at a larger budget is picked up automatically.
  • analyze.py scores deterministically: numeric exact-match, JSON validity, unit-test pass for the HumanEval-style task, trap checks.
  • report.py produces the per-prompt table plus a full report with quotes and assessments.
  • out/ holds 32 raw JSON responses plus records.json, results.json,
    comparison_table.md, and results_summary.md.

Sample run:

python3 compare_harness.py --out out --max-tokens 1024 --timeout 900
python3 compare_harness.py --out out --max-tokens 4096 --timeout 900 --prompt creative_continuation
python3 analyze.py --in out --out out
python3 report.py

Final checklist

  • Fabric IPs assigned and reachable on both nodes; VLLM_HOST_IP /
    WORKER_VLLM_HOST_IP set explicitly (not the baked-in values).
  • NCCL_IB_HCA matches your RoCE device names; NCCL_IB_GID_INDEX=3.
  • Model cached on both nodes; HF_HUB_OFFLINE=1 for offline boot.
  • DSPARK_MODEL points at ...-0731, not the leftover -DSpark string.
  • Boot markers present: KV cache size, concurrency figure, “Application
    startup complete”.
  • Smoke test returns exactly NVFP4 DSPARK OK.
  • Patch checks pass: is_prefill_chunk count 5, shared_experts rows
    present (Patch 4).
  • Benchmarks run with stream:false and after warm-up.
  • capture_runtime.sh called with the explicit lowercase container name.

The deployment is legit, it matches the guide’s headline numbers (84 tok/s peak, ~67 mean decode, ~220+ aggregate at c6, ~2.7K tok/s prefill at 100K), and the model is the same one you get from stock vLLM on the RTX6000 box, with one documented letter-counting flake on the custom fork’s sampler.

40-minute mixed-traffic soak

After the benchmark table above, we ran the guide’s realistic-mixed-traffic soak
to see how the deployment holds up under sustained agent-shaped load. It
reproduced the guide’s numbers within ~2%.

  • This run: 532 requests / 209,566 completion tokens / 25,414 prompt tokens /
    40 min at concurrency 4, stream:false.
  • Aggregate 87.2 tok/s (guide 88.6, -1.6%), per-stream 21.8 (guide 22.3,
    -2.2%). 0 errors, 0 soft-empty, 0 degenerate.
  • Per-stream workers 21.24 / 22.27 / 22.04 / 21.81. Latency wall p50 15.9s,
    p90 42.1s, p95 44.8s, p99 47.2s, max 52.1s.

Method

The guide’s own benchmarks/soak.py is the exact agent-shaped soak behind the
guide’s 553 / 212,974 / 88.6 numbers. We ran an enhanced copy
(soak_enhanced.py) with identical 6 prompt types (tool/code/JSON/reasoning/
long-context/chat), identical mixed temps (0.0/0.3/0.7) and budgets
(300/500/800), concurrency 4, stream:false, 40 min. We warmed the engine first
(guide’s bench_full.warm: 5 long + 4 short) since warm state decays after
~30 min idle.

Server health

No OOM, no preemptions, no errors, no restarts on either node; only 1 benign
Triton JIT-compile warning at the soak’s first second; both vllm containers
Up 3h, never restarted.

Artifacts at /nfs/Dual_Spark_DSV4Flash0731/soak/ (soak_enhanced.py,
soak-0731-2xspark.json/.jsonl/.md, soak-calibrate.json/.jsonl). [github link]

Caveat

These are mixed-traffic numbers. The same server does 151 agg / 38.7 per-stream on the easy BST benchmark prompt and ~84 peak decode on toy content. ~87/22 is what realistic agent work gets.


Expanded coherence validation: 100 prompts

The 15/16 result was interesting, so we decided to do another ~100 prompts for more validation.

The harness is at /nfs/Dual_Spark_DSV4Flash0731/comparison100/ [github link] (100 prompts, 15 categories, staged and self-tested before the soak, run after the soak finished). The 16 original prompts are included byte-for-byte for continuity, and counting_traps was deliberately expanded to 13 prompts to stress the count_letters flake.

Result

83 same / 17 diff / 0 review / 0 fail. The verdict: the original
count_letters flake was the visible tip of a SYSTEMIC counting/consistency deficit on the Spark deployment. Full is correct on all of these.

Per-category rollup:

Category same diff
counting_traps 3/13 10
deterministic_math 8/13 5
logic_puzzles 4/5 1
reasoning_mode 3/4 1
code_generation 12/12 0
code_reasoning 5/5 0
factual 12/12 0
structured_output 6/6 0
traps 6/6 0
translation 6/6 0
summarization 4/4 0
creative 4/4 0
long_reasoning 4/4 0
multiturn 3/3 0
ambiguity 3/3 0

The counting traps (Spark wrong, Full correct)

count_letters 5 vs 3, cnt_mississippi 6 vs 4, cnt_rhubarb 5 vs 2,
cnt_banana_a 6 vs 3, cnt_supercali_l 9 vs 3, cnt_supercali_i 9 vs 7,
cnt_letter_in_sentence 9 vs 4, cnt_substr 6 vs 3, cnt_vowels 6 vs 3,
cnt_triple 6 vs 3. Spark is only correct on the three that do not require
counting repeated letters (word-count, string reversal, palindrome).

Non-counting diffs: math_geom_pyth 6 vs 5 (hypotenuse 3-4), math_word_consec 45 vs 13, math_word_work 1.2 vs 2.4, logic_scheduling 6 vs 3, reason_mode_letter 11 vs 3.

Determinism (5x temp-0 re-runs)

Spark is non-deterministic on count_letters ({9:4, 5:1}) and math_word_work ({1.2:4, 2.4:1}); wrong-but-stable on the other wrong counts. Full is deterministic and correct. Two distinct Spark symptoms: (a) a systematic counting/arithmetic-consistency deficit, (b) sampler non-determinism at temp 0 on at least 2 tasks.

Artifacts

  • math_prob_dice: Spark is correct (writes \frac{1}{6} in LaTeX); the
    fraction scorer’s literal-match check is a false negative.
  • math_word_trains: flawed prompt (Train A 60mph leaves earlier AND faster, never catches up); the expected ‘40’ is wrong.
  • Full’s None on 2 supercali prompts is the 512-token reasoning-budget trap; re-run at 4096 returns the correct 7 and 3.

Everything else is identical: code 17/17 (12 HumanEval all unit tests pass on both, plus 5 code-reasoning), factual 12/12, structured output 6/6, traps 6/6, translation 6/6, summarization 4/4, creative 4/4, long reasoning 4/4 (train_meet 10:54 AM solved identically), multiturn 3/3, ambiguity 3/3.

Bottom line

Same model, same weights, but the custom vLLM fork on 2x DGX Spark shows a
genuine, systemic weakness on exact-counting/consistency and trivial arithmetic
that the stock-vLLM Full deployment does not. The flake was not isolated.

Reproduction

Harness at comparison100/ (prompts.py/json,
compare_harness.py, analyze.py, report.py, run_all.sh, README.md,
out/ with records.json, results.json, comparison_table.md,
results_summary.md, raw/ 200 files, determinism_counting.json +
determinism_math.json).

From the git clone:

cd comparison100 && ./run_all.sh

Project task: one-page Breakout clone (event-driven JavaScript)

A single 2,500+ token “project” prompt was devised and given to both models.
The goal was a real, end-to-end software-engineering task rather than short
prompts: build a one-page HTML5 Breakout clone that doubles as a teaching
example of event-driven JavaScript for a novice. The prompt specified project
organization, code layout, comment style, art/graphics (exact hex palette,
8x6 brick grid), game mechanics, an event-driven teaching angle (CustomEvent
pub-sub, event delegation, event.code), a deliberate twist (combo multiplier +
phasing every 5 bricks), Web Audio, localStorage high score, and a strict
quality bar. The full prompt is shared at
/nfs/Dual_Spark_DSV4Flash0731/project_task/prompt.md [github link] (~4,480 words).

Stats

Metric Spark (2x DGX) Full (4x RTX6000)
Elapsed 229.7 s 32.6 s (7x faster)
prompt_tokens 5,807 5,807
completion_tokens 13,432 10,303
Output size 67,444 B / 1,551 lines 45,779 B / 1,137 lines
finish_reason stop stop
Reasoning field none 1,630 chars
Layout chosen single-file index.html single-file index.html

Spec coverage

Spark 33/38 requirements met (5 partial, 0 missing), playable end-to-end.
Full 22/38 (5 partial, 11 missing), NOT playable. Both passed node --check
(valid JS) and HTML balance. Review used a headless node vm sandbox with
DOM/canvas stubs to empirically verify runtime behavior, not just static
inspection.

The twist (combo/phasing)

CORRECT in BOTH artifacts, verified by scripted playthroughs. Combo
increments, multiplier = min(5, 1 + floor(combo/5)), phasing triggers at
combo % 5 === 0, resets on miss, 3-second timer expiry, paddle-hit
termination, lives interaction all per spec. No off-by-one, no wrong reset.
Notable: the Spark deployment’s earlier systemic counting deficit (10/13
counting prompts wrong) did NOT recur in this code-generation task. Minor
nits: Full dispatches score-update with a stale combo (before increment);
neither implements the spec’s phase countdown meter.

Full model’s critical bugs (why it is not playable)

  • F-1 Critical: initAudio() is dead code, never called, so no sound ever plays.
  • F-6 Critical: drawParticles() called without its ctx argument, so render()
    crashes on the first brick break (ctx.globalAlpha on undefined).
  • F-7 High: soft-lock after a miss, no relaunch path.
  • F-2 High: win unreachable, no max level, setState(‘win’) never called.
  • F-3 High: unprotected localStorage.setItem crashes in private mode.
  • F-4 High: two-brick same-frame double-flips the axis, ball tunnels through
    a brick (the exact bug the spec warned about).
  • F-5 Med: level-complete any-key restarts the game instead of advancing.
  • F-8 Med: no IIFE, global scope pollution.

Spark model’s bugs (all minor)

Dead lastHitPaddle field; playSound(‘levelcomplete’) never called; no
combo-milestone beep; score-update CustomEvent missing bubbles:true; no dedicated corner-stuck detector.

Direct comparison / verdict

Spark produced a more complete, more correct, better-organized artifact (IIFE + single state + setState), with roughly 2x the comment density (404 vs 220 comment lines, all WHY-style teaching comments).

The 67 KB vs 46 KB size delta is that comment density, i.e. Spark did more of what the spec asked, not padding. Both used the exact 12-hex palette, 8x6 grid, event.code, event delegation, visibilitychange, variable timestep and everything else in the spec document. Teaching sections: Spark 385 words, Full 286, both within the 200-400 word spec.

Overall verdict: on a long structured software-engineering task, the 2x Spark deployment with the Dell Pro Max with GB10 (custom vLLM fork) produced the better artifact, slightly, despite Full being 7x faster.

This inverts the short-prompt pattern: the fork’s counting/consistency deficit appears task-specific (exact counting and arithmetic in short-form), but not a general capability gap. I was surprised by this.

Full’s artifact, while faster to produce, wasn’t runnable without some minor fixes.

UPDATE: There may be a minor problem with vLLM on the Full 4x RTX6000 setup. I am still investigating that part.

Artifacts

TODO

Follow-Up

Required Reading: Why your local LLM feels dumber than it is

for follow up I’m working on, The rabbit hole on differences beween GH200, sm120 RTX Pro Blackwell and NvFP4 spark has been interesting to say the least.

3 Likes

I really would like to chat in depth about precision testing sometime.

What you run into with comparing varying quantizations is not log probs going wildly out of whack in the first few thousand tokens. That is not stressing the quantization of the activations or kv cache, which are big sources of failure scenarios like broken tool calls when your context rolls past 32k->128k->… Sampler settings (like temp) are also not a deterministic testing strategy and yours should usually match the vendor model card spec.

When doing head to head quant comparison, and more broadly validation of an entire implementation from the cards/drivers/cuda kernels/inference engine/attention backend/speculative decode/etc., there are two approaches to comparison.

  1. Formal benchmarks. Run the real hle termbench cybergym mmlu-pro etc. Run them multiple times. See how far your quality benchmarks drift from the reference implementation advertised by the lab publishing the model, and then rent an H200 node for a few hours to run the same harness against first-party weights and compare against that.

Its fascinating to find weird swings in scores, watch VLLM select a different kernel on different hardware, figure out that there are bugs in your local SM120 implementation of DSA, and work with the blackwell performance community to remedy them. btw some of those guyZ have continual improvement loops running around the clock on things like B12x kernels. Their testing is almost professional grade with attention to consistency and getting the math right before optimizing for speed, making sure to monitor any regressions.

  1. Calculate the KL divergence of the full output distributions computed from the logits, with large datasets. Don’t use wikitext or whatever calibration dataset ngreedia used for their nvfp4 release. You will get impossibly low false numbers that do not reflect actual real world usage of the model. Ideally this testing in the enterprise space is done with workload specific datasets. Its funny that the original push for speed using w4a4 seems to have silently shifted in nvfp4 releases to w4a8 or w4a16 after quality on longer context decayed.

Working from the logits bypasses the sampler settings entirely, and gives you a purely mathematical comparison of the full distribution rather than just the single top token emitted during normal decode. Per-position KLD plotted against context depth shows exactly when decay kicks in. Pair it with targeted long-context functional evals. RULER-style retrieval or actual multi-turn tool calling at 100k+ since a small average KLD can still hide catastrophic failures in structured output like JSON tool calls. You can run the same test on that rented H200 node with the first party weights and use that as your baseline to find out where your setup is doing math differently. You’ll need the bigger node to capture reference logits anyway in cases where the local hardware is too small to load full bf16 weights. Different datasets can also narrow down what knowledge areas (business, law, math, science, coding…) your local implementation diverges the most in which might provide an interesting parallel to the MMLU pro scores in #1.

I feel like most internet-local-llm reviews center on how quickly they can make decode go, and maybe sometimes show prefill statistics, while nobody is going after the quality angle. The thing that will silently kill local llm use isn’t the speed, but the results. If the local software stack isn’t performing as well as the hosted model and nobody knows how to validate or troubleshoot, people wind up with unsatisfying outcomes without understanding the why.

2 Likes

100% – in chasing this down I have been running the same model on vllm on a a single gh200 and it seems even better. Same pathway as far as I can tell, but different math kernels?

for real hle termbench one thing that seems is that things can be consistent even for the benchmark but a 12 hour long-running session will go off the rails on one set of hardware vs the other.

It sounds like you’re a little ahead of what I’m discovering on my own; my assumption was that math is math and variability was mostly down to quant or packaging and vllm (tag) = vllm (tag) but that’s not the case at all.

for this the “pragmatic” aspect of it, I think holds up.. it’s a pretty good result, “good enough” for most things. But really REALLY underscores how different sm120 blackwell is from real blackwell.

Where that left me is.. okay maybe I can setup dgx thor vs dgx spark since thor is closer to gb200 and sm120/rtx6000 is closer to spark.. but would that make sense? I have a lot more to learn but I’ve also learned a lot

1 Like

NV GPUs are all different, different instruction sets, different operations *in different order* on the GPU, different SM’s in different warp groups. Different memory type, width, and access patterns drive the composition of different cuda kernels. A hopper generation GPU doesn’t have a WGMMA instruction for 4/6 bit math. Its doing 16 bit floating point math internally…

The geometry of the cuda kernel is really important. The performance numbers you enjoy on SM120/121 (B12x) are usually the result of fused gemms, combined matrix multiply accumulate (et al) operations. The goal of a good cuda tile is taking as few trips back and forth to vram as possible. To optimize that you have per-chip or per-family instructions for dimensions that multiply larger/smaller/differently-sized matrixes. You can spot poor optimization using ngreedia’s nsight debug tools, or just watch nvitop where gpu utilization is 100% (busy) but power utilization is nowhere near max (inefficient operations).

This is where 2x3+1 = either 6.9999 or 7.0001. Floating point non-determinism is one small component that can be used to help to explain larger divergences in the math between hardware/software implementations. Especially when you are running TP4 or TP8, and the order in which things complete become subservient to the individual cards as well as the BATCHING of other concurrent requests in vram!

And here is where I do the borderline-insane-full-internet-rando thing for edutainment:

SM120 uses warp-level mma.sync: 32 threads cooperate on a small 16x8xK atom while SM90a in an H200 uses wgmma.mma_async: 128 threads (four warps) cooperate on a much wider 64xNxK atom.

Tables Suck. SM120… SM90a in an H200nvl
MMA interface mma.sync wgmma.mma_async
Cooperative group 1 warp, 32 threads 1 warpgroup, 128 threads
FP16/BF16 atom 16x8x16 64xNx16
TF32 atom 16x8x8 64xNx8
FP8 atom 16x8x32 64xNx32
Valid N Fixed at 8 per instruction 8, 16, …, 256
FP32 accumulator ownership 4 values per lane for a 16×8 result N/2 values per lane
Inputs Register fragments, usually loaded with ldmatrix B and optionally A described directly in shared memory
Execution Warp-synchronous instruction Asynchronous warpgroup pipeline
SM120-only addition FP6/FP4 and block-scaled warp MMA No native FP4 WGMMA
SM100-style tcgen05/TMEM No No

Ngreedia’s PTX specific SM120 standard BF16 operation is mma.sync.aligned.m16n8k16.row.col.f32.bf16.bf16.f32

And in nerd-speak: image (I literally don’t know how to paste equations into this forum software and not mangle them so enjoy Microslop paint images)

One warp collectively produces 128 output values. With FP32 accumulation, those are distributed as four accumulator registers per lane.

The equivalent Hopper primitive is wgmma.mma_async.sync.aligned.m64nNk16.f32.bf16.bf16 where N ranges from 8 through 256 in increments of 8. A common N=64 expression image

across four warps. Instead of issuing 32 separate 16x8x16 warp MMAs to cover that 64x64 tile, Hopper can express it as one warpgroup-level WGMMA operation though the physical hardware naturally decomposes it internally.

During prefill, attention has reasonably large matrix dimensions, so SM90’s broad M=64, variable N WGMMA tiles can be filled effectively but decode is geometrically awkward:

image

Logical query dimension is only one token. Kernels manufacture larger M-dimension concurrency by combining batch elements, query heads, or sequence partitions… That leads to different strategies for different hardware.

SM90 will form a warpgroup-sized tile and use WGMMA, like partitioning the KV sequence so enough work exists for 128 cooperating threads. SM120 would tile the work among independent 32-thread warps using 16x8 MMA atoms. This can fit skinny or ragged (batched requests where individual sequences have unequal or dynamic context lengths, preventing uniform rectangular tensors without adding padding waste) decode shapes differently, even though its individual atom is smaller. But either backend can abandon Tensor Core MMA for portions of decode when head dimension, page boundaries, GQA ratio, or short sequence length makes scalar/vector FMA cheaper. And the softmax merge may occur per warp, per warpgroup, per CTA, or through a second reduction kernel.

Thus “both ran BF16 attention” does not mean they evaluated the same arithmetic tree!!!11one

Floating-point addition is not associative, so these differ by a few low bits. PTX specification explicitly says ‘MMA/WGMMA floating-point accumulation order, rounding, and subnormal handling are unspecified.’

A fixed kernel, launch shape and input will often be bit-stable across repeated executions on one GPU. Differences arise between architectures or backend choices because they use different legal arithmetic trees. True run-to-run nondeterminism requires atomic accumulation, split-K or split-sequence partitions merged in completion order, different dynamic batching shapes, different attention backend selected for a shape, distributed NCCL reductions, and sampling after tiny logit differences… on and on.

Now. Pretend you are a home labber with a collection of different GPUs. You have a couple 3090s, maybe a 5080, toss in a RTX 4000 ADA card you found on facebook marketplace.

Combine that with the average container image (I did SCA on a VLLM nightly) that has oh in the neighborhood of 750+ different pieces of software each with their own interesting bugs.

No two hardware/software implementations are alike. This is a huge problem. Why does bob get great results with Qwen on his rig but poor timmy gets garbage output? Turning MTP on with gemma/qwen 2 months ago with constrained json output usually resulted in corruption due to one vllm bug. But who would be entrenched in the ecosystem enough to figure out the culprit?

The really insidious part is small errors. Bad output. Most people never precision benchmark their setup. It takes time and power and might be slower than a turtle on its back due to an exotic mixture of consumer and datacenter hardware. So they just dont know. They do what a lot of people do. “I have these 4 prompts I toss in to see if its a good or bad model.”

And everybody is talking past one another chasing after the next thing when all they needed was a little more precision.

5 Likes

AFAIK Thor is closer to server Blackwell than the Spark, which is closer to consumer Blackwell.

1 Like

Oops typed the wrong thing that’s what I meant​:smiley:, will fix

1 Like

I know you are using this to run larger models, but I really wonder what the performance would be to run many smaller models…

Right now I have 2x5090s both with Qwen3.8-27B-UD-Q5_K_XL cache-type-k / V @ Q8 and context 235K, bunch of other settings for mtp etc…

And we can get between 60-100 tok/s per GPU and 1800-3000k for decode. And its working well for our use case.

My curiosity is if you can run 4x on each spark and what kind of performance I could expect.

Really wanting to scale for at least 4-12 agents running at once at least 60 tok/s+

This is almost a perfectly timed post for me, except I have the ugly stepchild version of this setup, which is 2x MS-S1 strix halos which I plan to link via a usb 4v2 cable (which only gives me 80Gbps potentially, or maybe I can somehow use 2? depends on the software, but I’m not beating the theoretical 128Gbps anyway).

The downside being I don’t have the NVIDIA stack to benefit from. I wonder if the gracious folks at level1techs could try a similar setup with their strix halos? I’m still too much of a beginner in LLM setup to figure out the nuances of maximizing a setup like this, I think. I only recently found out that I should probably enable IOMMU so that my NPU can help with prompt processing (still need to double check via the lemonade setup).

In VLLM with the highest quality W4A16 quant we tested for 5090s, you should be able to get somewhere ~16 parallel workers running around 1500T/s generation total at TP2:


I was running these without p2p-dma & power limited to 400W.

You are leaving a lot of performance on the table with 2x5090 in llama.cpp. Your current hardware should smoke the dgx sparks in performance as long as the model fits in vram.

I will work on moving over to VLLM then!

1500T/s on 1 Spark? or 2? thats a lot of throughput either way.Both from a $ and watt prospective.

@wendell what harness were you using? I saw that white screen where you were able to open multiple panes and have nodes. What’s this? I’ve been about building one like it, but that’s lot of work. I thought well… maybe something already like that exists. Since I saw you using that, I thought I’d ask.

Turnstone GitHub - turnstonelabs/turnstone · GitHub which is also from us. It’s bananas

2 Likes

Are you able to share your comparison100/prompts.json, comparison100/prompts.py, comparison100/analyze.py, or project_task/prompt.md used for these tests (they all just say [github link]?

I ran as similar a test as I could on my poor man’s Lucebox (Bosgame AI Max 395+ with M.2 > OCuLink > AI PRO 9700 GPU). DeepSeekFlash V4 0731 — their official all-in-one box is implemented better: Lucebox (hope you can review this one day!) and Lucebox (AMD Radeon AI PRO R9700 + Strix Halo) Beats NVIDIA DGX Spark by 3.63x on DeepSeek V4 Flash Decode Speed (for reference).

https://github.com/Luce-Org/lucebox

It’s unique because asymmetric expert parallelism assigns each GPU different parts of the MoE model based on its strengths—compute-heavy/frequently used experts to the fast R9700 and the long-tail experts to Strix Halo’s larger memory—then runs them concurrently instead of splitting every operation evenly across GPUs.

Setup: DeepSeek V4 Flash on Lucebox (dflash, R9700 + 8060S via OCuLink, top-k 4, fused decode), 1 warm-up + 3 measured runs at temperature=0, stream=false, max_tokens=16384.

Results (3 measured runs, all byte-identical):

Metric Value
Prompt tokens (server-verified) 5,807
Completion tokens 6,515
Median elapsed 202.34 s
End-to-end throughput 32.20 tok/s
Server decode rate 35.7–35.8 tok/s
Prefill / decode split ~20 s / ~182 s
Determinism SHA-256 identical across all 3 runs

vs. yours: Spark: 229.7 s / 13,432 tokens; RTX 6000: 32.6 s / 10,303 tokens. My elapsed time lands close to the Spark number, but my model emitted about half as many completion tokens, so it’s not an apples-to-apples comparison.

setting it up right now

Ooooooa. I’m traveling but will upload those, meant to

1 Like

Hello,

I tried to reproduce the setup on my two asus ascent. It is running, however seems to be slower than your implementation. I don’t know why this is the case. What could be the reason for this? Are you running this with graphical desktop?

URL=http://127.0.0.1:8888/v1 MODEL=deepseek-v4-flash-dspark python3 benchmarks/bench_full.py
=== current @ http://127.0.0.1:8888/v1 ===

— [current] DECODE by content (temp 0, warm) —
prompt       tok    sec    tok/s
count300     600  11.35     52.8
mult12       900  18.18     49.5
json60       800  16.20     49.4
bst          600  14.22     42.2
story        233  11.75     19.8
PEAK 52.8 (count300)   MEAN 42.7

— [current] CONCURRENCY (same prompt, 400 tok each) —
conc   ok   agg tok/s  per-stream    wall
1    1        44.2        44.2    9.05
2    2        76.6        38.5   10.44
4    4        99.9        25.5   16.02
6    6       127.0        21.6   18.89

— [current] PREFILL (TTFT method, 1 output token) —
target  prompt tok     sec     tok/s
8000        6234     6.7       935
32000       24900    20.2      1231
100000       77790    61.1      1272

===== SUMMARY [current] =====
decode peak 52.8 | mean 42.7
concurrency agg: c1=44  c2=77  c4=100  c6=127
prefill: 8K=935t/s  32K=1231t/s  100K=1272t/s

best regards