MichaelS1011/Qwen4-35B-A3B-DGX-Spark-Recipe
About
Measured recipe for Qwen4-35B-A3B (Q8) on one DGX Spark GB10: 48 tok/s prose, 74 tok/s code with the DFlash2 drafter (+36 %), 98.6 tok/s across four streams, 2,177 tok/s prefill. llama.cpp flags, drafter comparison, prefix-cache findings and limits — all measured on one box.
AI & Machine LearningMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalQwen4-35B-A3B in Q8 on a DGX Spark (GB10) — a measured recipe
Everything below was measured on one machine, with one build, using the flags in this document. Where a number is estimated, computed, or borrowed from someone else's hardware, it says so.
Deutsche Fassung: README.de.md
Bottom line: 58 GiB of Q8 weights, 393k tokens of context, 48 tok/s single-stream (or 72 tok/s on code with the DFlash2 drafter), 98 tok/s across four parallel streams, 2,177 tok/s prefill at 8k context (1,962 at 86k), 36 s load time — on 121 GiB of shared LPDDR5X, with no HBM anywhere.

Three things worth your time
- MTP is not a toy here. On a memory-starved box, speculative decoding nearly doubles decode throughput. Without it this model runs at ~25 tok/s. Swap MTP for the DFlash2 drafter and code decode goes from 54 to 74 tok/s (§5).
- Prefill is kernel-bound, not bandwidth-bound. The GPU reaches only 15 % of the bandwidth ceiling; the tensor cores sit idle most of the time. That is why flags stop helping and a different engine (vLLM) wins ~1.9–2.5×.
- One appended sentence in the system prompt can cost you 48 seconds. It invalidates llama.cpp's KV cache from byte 0. The same text at the end of the last user message keeps the cache warm and finishes in 0.6 s.
1. Summary
| Metric | Value | Notes |
|---|---|---|
| Decode, 1 stream | 47–49 tok/s | MTP on, mean len 1.88 |
| Decode, 1 stream, code | 72–74 tok/s | DFlash2 n=7, p_min 0.4 (+36 % over MTP) |
| Decode, 1 stream, prose | 39 tok/s | DFlash2 is slower on prose (−17 %); use MTP there |
| Decode, 4 streams | 98.6 tok/s aggregate | 2.1× single stream |
| Prefill, 8k prompt | 2,177 tok/s | batch 4096 / ubatch 2048 |
| Prefill, 33k prompt | 2,080 tok/s | −4.5 % from 8k |
| Prefill, 86k prompt | 1,962 tok/s | -10 % from 8k, 44.9 s |
| Prefill ceiling (bandwidth) | ~13,800 tok/s | theoretical |
| Cold start, real 86.7k turn | 48.5 s | 86k benchmark: 44.9 s wall (43.8 s prefill + ~1 s overhead); was 66.9 s before tuning |
| Model load time | 36.1 s | warm page cache |
| Context | 393,216 tokens, unified | one shared pool across 2 slots |
| Memory | ~105 of 121 GiB in use | 11–20 GiB available |
| Power / temperature | 36–65 W / 67 °C | 2,522 of 3,003 MHz |
| MTP acceptance | median 0.85 (p10 0.59, p90 0.95) | n=263 measurements |
2. Hardware and software
| Device | NVIDIA DGX Spark, GB10 (Grace-Blackwell, aarch64) |
| Memory | 121 GiB usable, LPDDR5X, 273 GB/s, no HBM |
| CPU | 20 Arm cores |
| OS | Ubuntu 24.04.5 LTS, kernel 7.0.0-1025-nvidia |
| Driver | 580.178.04 |
| CUDA | 13.0 |
| llama.cpp | 1.1.1-dev, commit 1579b02 |
| Build | -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=121 -DCMAKE_BUILD_TYPE=Release, cmake 3.28.3 |
The defining property of this box is the absence of HBM. The 273 GB/s are the bottleneck for everything that streams weights per token — and the reason this model only gets fast with MoE plus MTP.
3. The model
Qwen4-35B-A3B, Unsloth Dynamic UD-Q8_K_XL, split into two shards:
Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf 40.5 GB
Qwen4-35B-A3B-UD-Q8_K_XL-00002-of-00002.gguf 21.8 GB
mmproj-F16.gguf vision projector
62.3 GB on disk = 58.0 GiB of weights.
Metadata read from the GGUF:
| Layers | 41 |
| Experts | 256, 8 active per token |
| Embedding | 2048 |
| Attention heads | 16, KV heads 2 |
| Key/value length | 256 |
| Training context | 1,048,576 |
qwen4exp.attention.indexer.top_k |
2048 |
41 = 40 transformer blocks (10 × [3 Gated DeltaNet + 1 sparse attention]) plus the 1-layer MTP head. §5 and §8.2 count the 40 blocks.
Why Q8
Because it is the quality variant and it fits. The arithmetic:
58.0 GiB of weights
− 20.3 GiB PLE table (indexed per token, not streamed)
− 4.3 GiB dense parts
= 33.4 GiB of experts
So each token streams:
4.3 GiB (dense) + 33.4 GiB × 8/256 (experts) = 5.34 GiB (= 5.74 GB)
5.74 GB / 273 GB/s = 21.0 ms → ceiling 47.6 tok/s
With MTP the ceiling moves to roughly 90 tok/s, because one forward pass returns 1.88 tokens on average. Measured: 47–49 tok/s — about 54 % of that ceiling. The rest is KV reads, sampling, scheduling, and the fact that 273 GB/s is a datasheet number; LPDDR5X normally sustains 200–240 GB/s, which narrows the gap.
4. The command line
The full unit is in qwen4-llama.service (MTP) and
qwen4-llama-dflash2.service (DFlash2). Use one
of them, not both.
llama-server \
-m .../UD-Q8_K_XL-00001-of-00002.gguf \
--mmproj .../mmproj-F16.gguf \
--alias Qwen4-35B-A3B \
-ngl 99 \
--ctx-size 393216 --parallel 2 --kv-unified \
--batch-size 4096 --ubatch-size 2048 \
--cache-ram 24576 \
--jinja --flash-attn on --lazy-mode off \
--spec-type draft-mtp --spec-draft-n-max 1 \
--threads 20 --host 0.0.0.0 --port 8000 --metrics
--host 0.0.0.0 makes the server reachable from every interface of the machine
without authentication. On a trusted home network that is acceptable; if it is
not, add --api-key (the server then rejects requests without it) or bind to
127.0.0.1 and reach it over a tunnel.
Code-heavy? Replace the speculative line with:
--spec-type draft-dflash2 --spec-draft-n-max 7 \
--spec-draft-p-min 0.4 \
--model-draft .../dflash2-Q8_0.gguf \
Section 5 has the measurements and the trade-off behind that choice. Flag names
were verified with llama-server --help at commit 1579b02; upstream renames
them occasionally, so check yours.
Flag by flag
| Flag | Why |
|---|---|
-ngl 99 |
everything on the GPU; with unified memory this is the only sensible value |
--ctx-size 393216 |
393k token pool. Costs RAM at startup, not per request |
--parallel 2 |
two slots. Four streams still work (queued); two are enough for the aggregate |
--kv-unified |
required for multiple slots with long context: one shared KV pool instead of fixed partitioning |
--batch-size 4096 --ubatch-size 2048 |
the sweet spot, see the tuning table |
--cache-ram 24576 |
24 GiB of KV state kept in host RAM; turns follow-up requests into cache hits |
--jinja |
needed for tool calling and reasoning control |
--flash-attn on |
without FA, prefill is noticeably slower |
--lazy-mode off |
measurably better on this GPU; on costs throughput |
--spec-type draft-mtp --spec-draft-n-max 1 |
MTP with one draft token. 2 is slower. Swap for the DFlash2 block above if you are code-heavy |
--threads 20 |
all cores |
What tuning actually bought
| Change | Prefill (8k) | Cold start 86k | RAM |
|---|---|---|---|
| Baseline (131k ctx, 1 slot) | 1,728–1,742 tok/s | 66.9 s | — |
393k ctx + --kv-unified + b4096/ub2048 |
2,177 | 44.9 s | ~100 GB |
| additionally b8192/ub4096 | +2 % in its A/B run | — | +9 GB → rejected |
These flags were changed as a group, so we did not isolate each one. The
plausible causes are the ubatch size (more tokens per kernel launch) and
--kv-unified (no fixed split between slots); the context size itself is not one
of them, since prefill here is kernel-bound, not bandwidth-bound (see §6). The
separate b8192/ub4096 test supports this: doubling it again bought only 2 %.
5. Two drafters, one choice: MTP or DFlash2
llama.cpp supports both drafters, and both work on this box. DFlash2 needs a separate 431 MB model file. They win on different workloads, so this is a decision, not a ranking.
MTP — the safe default
MTP (multi-token prediction) is built into the model. The model predicts the next token, the server verifies several at once:
n = 263 measurements
draft acceptance: median 0.85 | p10 0.59 | p90 0.95
mean len: 1.78–1.95
In practice: every forward pass yields ~1.9 tokens. Without MTP, decode would sit at ~25 tok/s. With MTP: 47 tok/s on the prose prompt, 54 on code.
But: --spec-draft-n-max 2 is measurably worse than 1. Two guessed tokens
hit too rarely, and verification overhead grows.
DFlash2 — the code lever
DFlash2 is a separate drafter (431 MB, dflash2-Q8_0.gguf — a 5-layer
DFlash2DraftModel that reads target layers 19/23/27/31/35). It denoises a
block of 8 (dflash.block_size = 8), so at most 7 draft tokens. It only pays
off at full block width and with a confidence cutoff — our first test used n=2/3
with p_min 0 and lost overall (code +9 %, prose −23 %). The fair test, same prompts, temperature=0,
max_tokens=400, one run at a time:
| Drafter | Code, 400 tok | Prose, 400 tok | Acceptance (code / prose) |
|---|---|---|---|
| MTP, n=1 | 54.3 tok/s | 47.4 tok/s | 97 / 69 % |
DFlash2, n=7, p_min 0.30 |
70.8 | 36.2 | 44 / 17 % |
DFlash2, n=7, p_min 0.40 |
73.8 | 39.2 | 50 / 34 % |
DFlash2, n=7, p_min 0.50 |
72.6 | 39.4 | 59 / 46 % |
DFlash2, n=7, p_min 0.60 |
67.8 | 38.5 | 69 / 58 % |
DFlash2, n=7, p_min 0.70 |
60.9 | 36.2 | 73 / 68 % |
The 0.40 and 0.50 rows are means of three to four runs (±1.5 tok/s on code);
the other rows are single runs. The sweet spot is p_min 0.40–0.50, and the knob
is steep: 0.1 too high costs 5–10 %. n_max below 7 buys nothing — 5, 6 and 7
differ by about 1 tok/s at p_min 0.5, and 7 is the maximum the block size
allows.

Which one to run
| Your workload | Drafter | Flags |
|---|---|---|
| Chat, prose, summaries, long-form writing | MTP | --spec-type draft-mtp --spec-draft-n-max 1 |
| Code, agentic tool loops, structured output | DFlash2 | --spec-type draft-dflash2 --spec-draft-n-max 7 --spec-draft-p-min 0.4 --model-draft .../dflash2-Q8_0.gguf |
DFlash2 is +36 % on code and −17 % on prose against MTP. If you mostly
write code or drive an agent, take DFlash2; if you mostly write prose, take MTP.
Both produce clean output and both call tools correctly — verified with a weather
tool and a Bash tool, both returning finish_reason: tool_calls.
One honest caveat
At temperature=0 the two drafters do not produce the same text. MTP is
bit-identical across restarts. DFlash2 is also deterministic per configuration —
the same p_min gives the same bytes — but its code output differs from MTP's in
about 12 % of characters, and prose differs much more. Both are coherent and
valid; the divergence is a different but equally sound sample, not broken code.
The cause is the hybrid SSM state: 30 of the 40 transformer blocks are Gated
DeltaNet, and after a rejected draft the recurrent state has to be rolled back
exactly. The model sets n_rs_seq = n_max and the build honours it, so the path
is supported. Byte-identical repeats prove it is deterministic, not that it
is equivalent to non-speculative greedy: if both drafters verified greedily
and rolled back exactly, DFlash2 and MTP would emit the same tokens, and they do
not. We have not verified DFlash2 against a no-drafter baseline. If you need
that, run with speculative decoding off (--spec-type none) and compare.
Finally, a full NVFP4 stack reports only +2 % for the same drafter (49.1 vs 48.1 tok/s), so treat DFlash2 as a Q8/code lever, not a universal one.
6. Where prefill stops
This is the interesting part, because it explains the limit instead of complaining about it.
Every 2048-token ubatch streams the weights once (everything except the PLE table, which is indexed row-wise):
37.7 GiB = 40.5 GB per chunk / 273 GB/s = 148 ms → ceiling 13,800 tok/s
measured at 33k: 2,080 tok/s → 15 % utilization
Two caveats on the same measurement, so the number does not look better than it is: prefill falls with context length — 2,177 tok/s at 8k, 2,080 at 33k, 1,962 at 86k. And the same 86k prompt measured twice gave 1,962 tok/s (44.9 s) as a bare synthetic prompt and 1,790 tok/s (48.5 s) as a real Qoder turn with system prompt and tools. So treat 1,800–2,000 tok/s as the honest range at that length.
15 % of bandwidth means: this is not a bandwidth problem. It is compute.
The reason is llama.cpp's MoE path: one small GEMM per layer per expert. With 256 experts × 41 layers that is ~10,500 tiny matrix multiplies per chunk (each around 64×512×2048). They barely occupy the tensor cores. vLLM fuses the same work into a single MoE kernel and therefore reaches ~1.9–2.5× the throughput.
Ruled out by measurement:
| Suspect | Measurement | Result |
|---|---|---|
| Thermals / power | 36–65 W, 67 °C, 2,522/3,003 MHz | not the limit |
| Context length | 49.5 tok/s at 93k vs. 47.7 at 1k | ~4 %, irrelevant |
| Small prompts | cost per token rises on short prompts | ubatch underfill, expected |

7. Client integration: what no benchmark tells you
An agent client (Qoder, in our case) behaves nothing like a chat window. Five things must be set correctly, or you leave most of the performance on the table.
7.1 Set the context window honestly
The client compacts the conversation at ~80 % of its configured window. At 120k it summarizes at 96k — in the middle of work, several times per session. At 200k that moves to ~160k. The window costs no extra RAM, because the KV pool is reserved in full at startup anyway.
7.2 Tool definitions are the biggest cost you control
An agent prompt carries 20–24k tokens of tool schemas alone. An audit of our own client logs found 14 tools used never or almost never (VideoGen, create_team_task, TaskCreate, NotebookEdit, ImageSearch, Monitor…). Removing them saves 5–5.6k tokens per request, permanently, with no quality loss.
7.3 The prefix cache trick (the important one)
Rule: never put extra instructions in the system prompt. Append them to the end of the last user message.
The reason is the KV cache. llama.cpp recognizes a prompt when its beginning is byte-identical to a previous one. Measured on this machine:
Request A (cold) 48,587 tokens → 24.3 s
Request B (A + 383-token tail) 48,970 tokens → 0.6 s (only 383 recomputed)
~40× faster, 127× fewer computed tokens. Change the system prompt instead — even by appending a single sentence — and the cache is invalid from byte 0, forcing a full re-evaluation. On a real ~88k compaction that was the difference between 0.6 s (cache hit) and 40–48 s (cold).
So if you inject a summary instruction, a language rule, or a format constraint into an agent prompt, put it at the end:
def append_rule(payload, rule):
"""Append to the END of the last user message - not to the system prompt.
Otherwise the prefix breaks and llama.cpp re-evaluates the whole history."""
for m in reversed(payload.get("messages") or []):
if m.get("role") != "user":
continue
if isinstance(m.get("content"), str):
m["content"] = m["content"].rstrip() + rule
return True
if isinstance(m.get("content"), list):
m["content"].append({"type": "text", "text": rule})
return True
return False
The same trap applies to tool schemas: Qwen renders them into the system block. Dropping them for a compaction saves 15k tokens but breaks the prefix and costs 40 s. Keeping them is faster than removing them.
7.4 Compaction needs no thinking
A compaction is summarization, not reasoning. enable_thinking=false plus a hard
max_tokens turns a minutes-long rumination into five seconds. Summary quality
does not measurably change.
7.5 Do not echo reasoning blocks back
The server warns about this at startup: "chat template supports preserving
reasoning, it is enabled by default (may use more tokens, disable via
--no-reasoning-preserve)". In a 20-turn agent loop that means the reasoning
blocks of every previous turn ride along in every request. Disable it — either
with the server flag or client-side (preserve_thinking=false). We did not
isolate the saving, but it scales with turn count: it is the accumulated thinking
of the whole session, not just the current turn.
8. How it compares: vLLM, Basalt, and what the gap really is
Everything in this section comes from someone else's machine — identical hardware, identical model where stated. It is marked as foreign data, not mixed into our own numbers.
8.1 The same model, three runtimes
| llama.cpp Q8 (here) | vLLM FP8 | vLLM NVFP4 | |
|---|---|---|---|
| Prefill, 8–9.6k prompt | 2,177 tok/s @8k | ~4,090 | ~5,376 |
| Decode, 1 stream | 47–49 | 42.2 | 48.1 |
| Decode, 4 streams | 98.6 | 102.1 | 140.9 |
| TTFT, cold ~9.6k prompt | ~4.4 s | 2.36 s | 1.79 s |
| KV pool | 393k, 2 slots | 3.15 M tokens | 3.58 M tokens |
| Weights | 58.0 GiB | 40.7 GiB | 24.8 GiB |
| Free RAM at the low point | 11 GB | 33 GB | 40 GB |
| Quality | Q8, untouched | FP8, untouched | requantized, no evals |
The honest read: single-stream decode is a tie. Our 47–49 tok/s against their 48.1 is within run-to-run noise. The gaps are prefill (2–2.5×) and four-stream throughput (+43 %), and both come from the same place: NVFP4's total weights are 24.8 GiB against our 58 GiB, so it streams roughly 2.4 GB per forward pass where we stream 5.74 GB. That is the physics of §3, not a tuning failure.
Two useful confirmations from their measurements:
- MTP depth 1 is right on GB10. Their sweep: MTP off → 30.6 tok/s, MTP 1 →
41–43, MTP 3 → 35.0 (and 81.5 aggregate at four streams, worse than no
MTP at all). The box is bandwidth-bound, so each extra draft token costs a
full verify pass. Our
n_max 1is not a compromise; it is the optimum. - The 20.5 GB n-gram table costs ~33 GiB of the budget on unified memory,
which is why they offload it to disk (
--engram-config '{"disk_offload":true}') for a 5.3× larger KV pool at −1.5 % decode. In llama.cpp the equivalent is--lazy-mode on.
8.2 A third engine: Basalt
Basalt is a Blackwell-native engine that keeps MoE experts resident. It does not run this checkpoint — it runs Qwen3.8-Flash-Next, which is the architecture Qwen4 is built on (40 layers = 10 blocks of 3 Gated DeltaNet + 1 sparse-attention layer). On a GB10 fork:
| Workload, single stream | 8k context | 262k context |
|---|---|---|
| Chat | 59.8 tok/s | 58.5 |
| Code | 83.6 | 82.0 |
| Agent (tool calls) | 79.2 | 78.5 |
A second user on a different GB10 box reports 77.6 code / 60.5 prose / 99.9 long-code at ~74 % speculative acceptance. Decode barely falls from 8k to 262k — exactly the shape an agent client needs.
Treat this as a direction, not a drop-in: it is a fork of an Arm port, it uses its own pack format rather than GGUF, and those numbers are for a different (if closely related) checkpoint. The same author's A/B against vLLM also shows vLLM winning four concurrent short outputs, so "faster" depends on the workload.
8.3 What this means for a Q8 recipe
If you want maximum quality per token on one Spark and you accept ~48 tok/s, this recipe is close to its own ceiling: one forward pass streams 5.74 GB, and at 1.88 tokens per pass and 48 tok/s that is ~146 GB/s, about 53 % of the 273 GB/s datasheet. Section 3 puts the MTP ceiling at ~90 tok/s; we reach ~54 % of it, and the rest is KV reads, sampling and scheduling. DFlash2 shows the ceiling is content-dependent — code reaches 74 tok/s (§5).
If you want throughput, the lever is bytes per token, not flags: NVFP4's total weights are 24.8 GiB against our 58 GiB, which is roughly 2.4 GB streamed per forward pass against our 5.74 GB. That raises four-stream throughput by ~43 % and cuts prefill time by ~60 % (2.5× the tok/s). That is a different recipe with a different quality claim, and it should be measured as such.
For a recipe that promises "Q8 = the quality variant", NVFP4 would be a break: the expert weights are requantized, and there are no published quality evaluations for that variant.
Known pitfalls of the vLLM path on GB10 (from the reference, not tested here):
the Engram table (20.5 GB) counts against --gpu-memory-utilization and must be
offloaded with {"disk_offload":true}; NVFP4 KV cache fails on SM12x, with
--kv-cache-dtype fp8 as the workaround; and the machine freezes instead of
failing cleanly on OOM — 0.62–0.68 utilization plus an external memory guard
that drops caches below 6 GB free and kills the server below 10 GB.
9. Reproducing it
# 1. Build llama.cpp (the units below expect ~/llama-qwen4)
git clone https://github.com/ggml-org/llama.cpp llama-qwen4 && cd llama-qwen4
cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=121 -DCMAKE_BUILD_TYPE=Release
cmake --build build -j20
# 2. Fetch the model (2 shards + vision projector)
# from the Qwen4-35B-A3B repo, folder UD-Q8_K_XL, plus mmproj-F16.gguf
# For DFlash2, fetch RadixArk/Qwen4-35B-A3B-Dflash2 (Apache-2.0, 0.8 GB BF16),
# convert it with llama.cpp's convert_hf_to_gguf.py (arch `dflash`), then
# quantize to Q8_0 with llama-quantize.
# Expected path: ~/models/qwen4-dflash2/dflash2-Q8_0.gguf
# 3. Install one unit: MTP for prose, DFlash2 for code
mkdir -p ~/.config/systemd/user
cp qwen4-llama.service ~/.config/systemd/user/ # or:
cp qwen4-llama-dflash2.service ~/.config/systemd/user/
# adjust the paths inside, then (pick one):
systemctl --user daemon-reload
systemctl --user enable --now qwen4-llama
# systemctl --user enable --now qwen4-llama-dflash2
# 4. Verify
curl -s localhost:8000/v1/models
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"Qwen4-35B-A3B","messages":[{"role":"user","content":"Say only: ok"}],"max_tokens":8}'
Measure, don't trust
bench_step.py reproduces the throughput and prefill numbers above, one step per
invocation. The drafter table in §5 comes from bench_drafter.py.
python3 bench_step.py decode # single stream, 300 tokens
python3 bench_step.py prefill8 # 8k prompt, cold
python3 bench_step.py prefill33
python3 bench_step.py prefill86
python3 bench_step.py cache # prefix cache A/B
bench_drafter.py reproduces the §5 table. One prompt per call; restart the
server between configurations so the comparison is clean:
python3 bench_drafter.py code # 400 tokens, temperature 0
python3 bench_drafter.py prose
Each step first waits until the server reports requests_processing 0, so a
measurement never collides with real work. Prefill prompts carry a random nonce,
which guarantees they are cold. All runs use temperature=0. For bench_step.py, leave the server running
between steps — a restart empties the prefix cache. For bench_drafter.py,
restart once per configuration: that comparison is between configurations, not
between calls. Pause between steps; do not fire them in parallel — that is what
made the client crash.

10. What we deliberately do not do
| Idea | Why not |
|---|---|
--spec-draft-n-max 2 |
measured slower than 1 |
DFlash2 drafter at n=2/3, p_min 0 |
that is a third of the block; 16–26 % acceptance, code +9 %, prose −23 %. Full width n_max 7 + p_min 0.4 wins on code — see §5 |
| DFlash2 for prose | −17 % against MTP; use MTP there |
| batch 8192 / ubatch 4096 | +2 % throughput for +9 GB RAM |
| 1M context | 393k covers two sessions; more only costs pool |
| NVFP4 | no quality evidence, weights changed |
11. What is not proven here
Honesty belongs in a recipe:
- The vLLM numbers come from foreign hardware. Same device, same model, different prompts. Their 9.6k TTFT is measured; the tok/s figure is that measurement divided by prompt length.
- The prefix-cache fix is deployed but not yet observed in the wild. The mechanism is solid (48,587 → 383 tokens in the lab). The proxy used to strip tool schemas on compaction, which changed the system block and forced a cold prefill — the last four compactions ran cold (38.7 s for 63k tokens). Keeping the tools is the fix and it is now running; the next real compaction has to prove it by finishing in a few seconds instead of ~39 s.
- The 15 % prefill utilization is arithmetic, not a profiler capture. Tensor sizes come from the GGUF, bandwidth from the datasheet.
- MTP acceptance varies a lot: median 85 % over 263 measurements, but p10 59 % and p90 95 %. In our own benchmarks it is 97 % on code and 69 % on prose, which is exactly why DFlash2 helps one and hurts the other. The mean of 1.88 tokens per forward pass is the safe summary.
- The Basalt numbers are not Qwen4. They are Qwen3.8-Flash-Next — the architecture Qwen4 is based on — on a community Arm port, with a different pack format. Close enough to be interesting, not close enough to quote as this model's performance.
12. Sources
- llama.cpp — https://github.com/ggml-org/llama.cpp (commit
1579b02) - Qwen4-35B-A3B GGUF (Unsloth Dynamic Q8_K_XL)
- Reference vLLM FP8/NVFP4 recipe on GB10: https://github.com/tonyd2wild/Qwen4-35B-A3B-DGX-Spark
- vLLM day-0 support and architecture notes: https://vllm.ai/blog/2026-12-04-qwen4-35b-a3b
- N-gram table, page cache and row-lookup analysis: https://importstatic.com/ai/qwen4-35b-a3b-engram-ssd-memory
- Basalt engine: https://github.com/jesdga95/basalt — GB10 port and measurements: https://github.com/dingzhao100/basalt-arm-sm121-dgxspark
- DFlash with
p_minon GB10 (llama.cpp): https://github.com/phuongncn/qwen3.6-27b-speedhack-gx10-dgx-spark - DFlash2 drafter (Apache-2.0): https://huggingface.co/RadixArk/Qwen4-35B-A3B-Dflash2
- NVIDIA DGX Spark / GB10 datasheet (273 GB/s, 128 GB unified)
All measurements on one DGX Spark GB10, Ubuntu 24.04.5, llama.cpp 1.1.1-dev, December 2026. No vendor paid for or reviewed this document.
Explore related projects
Loading…