We Doubled Our 284B Model's Throughput on One Desk Box
One desk box. Two agents, one 284B-parameter mixture-of-experts model, 44 tok/s aggregate — against about 25 for the single-slot configuration it replaced.
The headline numbers, all measured on the live pool: two concurrent streams aggregate 44.0 and 48.2 tok/s, where one slot answered about 25. A second agent's prompt, sharing the system-prompt head and diverging at its identity block, warms in 8.5 seconds instead of 17.7. The code embedder serves 4x more texts per second. The voice lane now discovers when it is wedged and restarts itself.
None of that came from a bigger GPU. It came from four decisions: run two slots instead of one, teach the prefix cache to checkpoint inside the system prompt, stop optimizing the kernel that was already at memory speed, and make every guard check the thing it claims to check.
Two slots, one box
DeepSeek-V4-Flash is a 284B-parameter mixture-of-experts model, served at 2-bit UD-IQ2_M
with a DSpark drafter, entirely on the DGX Spark's GB10. Three lines of the serving
configuration carry the result:
# llama-server, one DGX Spark GB10
-np 2 # two slots
-c 131072 # 65536 tokens per slot
KV q4_0, -fa on # 4-bit KV cache, flash attention
The scheduler's concurrency cap equals the slot count, so the pool never accepts more work than it has slots to feed. Measured on the A/B:
| configuration | throughput |
|---|---|
| one lone stream | 33.4 / 34.8 tok/s |
| two parallel streams | 23.0-25.6 tok/s each |
| two parallel, aggregate | 44.0 / 48.2 tok/s |
| single-slot baseline | ~25 tok/s |
The interesting column is aggregate. Each stream gives up about 30% of its lone speed, and the box still delivers roughly double the total output. Quoting one stream is a better benchmark number; two streams are a better service. That is the whole difference.
The single-slot configuration this replaced was the 24.2 tok/s median from 24 Tokens a Second. Same model, same box, one more slot.
The prefix cache is the real lever
Every agent on this platform shares a long system-prompt head and then diverges at its identity block. DeepSeek V4 uses sliding-window attention, and stock llama.cpp can rewind a cached prefix only to a saved context checkpoint — and it saves none inside the system prompt. An agent whose prompt diverges early re-reads everything after the divergence.
The pool-wide measurement: a 25% prefix hit rate, prefill at 41% of engine time, and 275 of 372 prompts at or above 2K tokens reused zero tokens.
The patch changes two numbers and one rule. It checkpoints every 1024 prompt tokens — about 13.9 MiB per checkpoint — and lowers the cached-sibling reuse floor from 0.25 to 0.1, so a prefix that shares only its head is still worth reusing:
checkpoint interval 1024 prompt tokens (~13.9 MiB each)
cached-sibling floor 0.10 (was 0.25)
checkpoint budget 32, thinned at the densest interior
Live probe against the running pool, three calls through the same model:
| call | state | time | prompt tokens reused |
|---|---|---|---|
| Atlas | cold | 17.7 s | 0 |
| Lyra | after Atlas | 8.5 s | 2,048 |
| Atlas | after Lyra | 2.9 s | 4,096 |
The third call is the shape of the win: the second agent pays for the divergence, and the first agent's next turn pays for almost nothing.
The first cut of that patch had a failure mode worth naming, because the second cut is the one running: once its 32-checkpoint budget filled, it re-checkpointed one position in a loop. The shipped version checkpoints only when a batch adds tokens and strictly past the newest checkpoint, and it thins the densest interior checkpoint instead of the oldest so the shared head survives. It was proven on a small sliding-window model before it touched the live pool, and a guard script watches for the loop signature and reverts to the stock binary automatically. The fix is not the thing to trust — the guard is.
Where the GPU time actually goes
Before optimizing anything, decode was profiled with nsys. The result rearranges the
priority list:
- decode GPU idle is 25.8%, spent in 459 host-side gaps of about 1.7 ms — one per step;
- CUDA graphs are already in use; launch gaps total just 72 ms;
- the 8-bit (
Q8_0) dense weights cost more GPU time than all routed experts combined; - attention is 1% of decode.
So the obvious target was not the target. A fused MoE gate/up/SwiGLU kernel was written anyway, passed 381 correctness tests, and gained about 1% — because the GEMV it replaces already runs at DRAM speed, around 310 GB/s. It stays a patch, not a rewrite: a kernel that is already memory-bound does not get faster when you fuse it.
The mesh is for capacity, not for splitting one model
A fifteen-agent design run asked whether the mesh should split this model across nodes. The answer was measured: V4-Flash fits on one node. A block split across the 1 GbE mesh costs 125.65 ms/token against 39.08 ms/token on the node. A two-stage pipeline of the OmniNode shape works out to ~21.2 tok/s, below single-node.
That does not make the mesh useless. It makes its job different: more slots and lanes, capacity from an idle 5090, faster time-to-first-token — restoring a 13.9 MiB checkpoint is roughly 37x faster than recomputing it, an estimate — and tolerance for churn. Splitting one model's FLOPs across a 1 GbE link buys latency you cannot spend.
Four times the embeddings
The code embedder on the RTX 5090 was leaving throughput in one flag: the physical batch.
Raising -ub from 512 to 2048 moved a scratch A/B from 19 / 25 / 22 texts/s to
87 / 98 / 113 at batch sizes 8 / 32 / 64. Live after the change: 114 / 119 / 109
texts/s, about 4x. The cost is a compute buffer that grows from 299 MiB to 1,195
MiB — a trade the 5090 can afford.
A voice lane that heals itself
The transcription lane taught the sharpest lesson here: a process can be up and still be dead. A CUDA error left it answering 500 on every request while its process stayed healthy, and it had no health check to notice.
It does now. The check transcribes one second of real audio; when that fails, the lane is restarted automatically. After the restart it answered 200 at 1, 2 and 4 concurrent requests. A health check that asks "is the process running" is not a health check. This one asks the only question that matters: can it do the job.
What we left alone
Bonsai2-27B — which is also the vision model — already runs 4 slots at about 57 tok/s alone and 86-105 tok/s aggregate at four concurrent requests, roughly 43 tok/s each. It was measured, found right, and left alone. The same discipline that says fix the prefix cache says do not touch the lane that is already doing its job.
Guards, not vigilance
The launcher used to trust its environment file. A Windows CRLF line ending made one flag
read as 1\r, which silently selected the slow split. It now rejects a CRLF file outright
instead of guessing. Together with the prefix-cache guard, the rule is the same: when a
configuration can lie, make it impossible to load rather than likely to be noticed.
What this buys
One desk box now carries a 284B-parameter model at two agents' worth of concurrency, warms a second agent's prompt in single-digit seconds, embeds four times faster, and repairs a wedged voice lane without a human. The GPU did not get bigger. The stack got honest about where the time goes.
The architecture that puts all of this behind one front door is in One Fleet, Five Audiences: Multi-Tenant and Multi-Agent on Hardware You Own.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.