Bonsai demo · inference stack · where the weights sit
Two machines share a desk. One is an RTX 5090: 32 GB of memory at about 1,790 GB/s, of which 20.6 GB is actually free once a desktop is running on it. The other is a DGX Spark: 121 GB of unified memory at about 273 GB/s — nearly four times the memory and 6.6 times less bandwidth. Serving a 284-billion-parameter sparse model means deciding, per tensor class, which of those two constraints is allowed to bite.
Two tiers, one desk
A card that reads memory six times faster has a quarter of the memory. Neither machine is better; they are better at different halves of the same problem, and the difference is not subtle enough to average away.
| RTX 5090 — fast tier | DGX Spark — slow tier | |
|---|---|---|
| Memory | 32 GB discrete VRAM, 20.6 GB free in the measured configuration | 121 GB unified, exposed to llama.cpp as CUDA VRAM |
| Measured bandwidth | ~1,790 GB/s | ~273 GB/s |
| A 90.9 GB model in 2-bit | does not fit | fits with its 10.9 GB drafter — 102 GB of 121, leaving ~19 GB |
| A 155 GB model in 4-bit | does not fit | does not fit either — this is why the pool exists |
| What it is good for | the handful of tensors read on every token | holding the bulk of the weights that are touched rarely |
Both boxes also have local NVMe, and the same nominal tier measured 6.9 GB/s on one path and 64 MB/s on another — a ~100× gap, because one sat behind a Windows filesystem bridge. That is why capacity and bandwidth are measured on the machine before anything is placed: a plan built from a spec sheet elects the wrong node, and the failure looks like slowness rather than like a mistake.
Two budgets, not one
For a dense model, “how much memory does it need” and “how many bytes does it read per token” are almost the same number. A sparse mixture of experts decouples them, and the two can end up an order of magnitude apart. So any ranking of hardware on a single metric is answering half the question.
The coordinating node is the one with the fastest weight-read path and the most usable memory — not the node with the biggest GPU. That reads backwards until you measure it. On this pair, electing on GPU size meant the coordinator read its weights through a 64 MB/s bridge while the other machine read its own disk at 6.9 GB/s. Same model, same disks, ~100× apart, and the wrong election produced a load measured in tens of minutes.
The same inversion decides placement. A tensor read once per token must sit on the fast tier no matter how small it is. A tensor read for six tokens out of 256 can sit anywhere, no matter how large it is.
What is in the box
DeepSeek-V4-Flash-0731 is a sparse mixture of experts. The architecture numbers below come from the GGUF header and the published file tree, not from a model card summary.
| Total parameters | 284 B |
| Activated per token | 13 B |
| Blocks (layers) | 43 |
| Routed experts | 256, of which 6 are touched per token, plus 1 shared expert that always runs |
| Embedding width | 4,096 |
| KV heads per layer | 1 (MLA-style) — which is how a 1M-token context stays affordable |
| Quant | Weights | Where it fits |
|---|---|---|
| UD-IQ2_M | 90.9 GB | the 121 GB Spark, with the 10.9 GB drafter — 102 GB of 121, ~19 GB left |
| UD-Q4_K_XL | 155.1 GB | neither box alone. This is the quant the pool runs |
At the 4-bit quant, 138 GB of the 155 GB is routed experts. Each token touches 6 of 256 of them, so it reads about 3.2 GB of expert weight. The remaining 17 GB — attention, KV, embeddings, output head — is read on every token. Hold 155 GB and read 7 GB per token: those two sentences describe the same model and point at opposite hardware.
Interactive · place the layer
Each block is a tensor class with its size and the bytes it reads per token. Drag one between the tiers — or tap it to send it to the other side. Anything that does not fit its tier falls through to local NVMe at 6.9 GB/s.
Under the placement
It is tempting to think a pool shares memory. It does not. A vLLM NVFP4 paged KV block cannot be read by a llama.cpp attention kernel, and neither engine can consume the other's quantized weights. KV layouts, quantization formats and kernels are mutually unintelligible.
Splitting a model that already fits is a pessimization, not a speedup. A dense 27B measured 133 tok/s on one card and 40 tok/s split across two. Pool when nothing holds the model; replicate when one node holds it.
Run sheet
Every figure below came from a server's own timings block or from the machine's own memory counters. None are estimated.
| Configuration | Result |
|---|---|
| One DGX Spark, 2-bit + drafter, structured output | 30.6 tok/s, draft acceptance ~85% |
| One DGX Spark, 2-bit + drafter, prose | 27.7 tok/s, draft acceptance ~60% |
| One DGX Spark, 2-bit, no drafter | 12.6 tok/s — the honest floor |
| One DGX Spark, 2-bit + drafter, separate run | 23.6 tok/s median, acceptance 0.51 |
| Two boxes, whole blocks, no drafter | 7.76 tok/s — the split loses 43% against one box |
| First working pool, 4-bit, experts paging from NVMe | 2.25 tok/s decode, 1.96 prefill, first token at 2,036 ms, load 17 m 33 s |
| Dense 27B that fits one card | 133 tok/s on one card, 40 tok/s split |
| Architecture, layer count, expert count, quant sizes | The GGUF header and published file tree for DeepSeek-V4-Flash-0731 (unsloth/DeepSeek-V4-Flash-0731-GGUF), read 2026-07-31 |
| Bandwidth, free memory, the 64 MB/s vs 6.9 GB/s gap | Measured on our own two machines, 2026-07-31 |
| All throughput figures | Read from the serving process's own timings block, 2026-09 |
| Tensor-class split (138 / 17 GB) and pool design | Our own design record and measurements, 2026-07-31 |