Bonsai demo · inference stack · where the weights sit

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.

1,790 GB/smeasured read bandwidth on the RTX 5090, or 1.8 TB/s
273 GB/smeasured read bandwidth, DGX Spark
20.6 GBfree on the 32 GB card with a desktop running
6 of 256routed experts that fire for each token

Two tiers, one desk

The fast box is the small box.

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 tierDGX Spark — slow tier
Memory32 GB discrete VRAM, 20.6 GB free in the measured configuration121 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-bitdoes not fitfits with its 10.9 GB drafter — 102 GB of 121, leaving ~19 GB
A 155 GB model in 4-bitdoes not fitdoes not fit either — this is why the pool exists
What it is good forthe handful of tensors read on every tokenholding the bulk of the weights that are touched rarely
Measured, not declared

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

Rank on one number and you pick the wrong machine.

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.

Rank by memory

  • You elect the DGX Spark. 121 GB is the only one of the two that can hold a 90.9 GB model.
  • You also elect the box that reads every weight it serves at 273 GB/s — the slower path, by 6.6×.
  • Capacity bought, bandwidth lost.

Rank by bandwidth

  • You elect the RTX 5090. 1,790 GB/s is the faster path by a wide margin.
  • You also elect a card with 20.6 GB free, which cannot hold the model at all.
  • Bandwidth bought, capacity lost.

The rule we encode instead

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

284 billion parameters, 13 billion of them awake.

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 parameters284 B
Activated per token13 B
Blocks (layers)43
Routed experts256, of which 6 are touched per token, plus 1 shared expert that always runs
Embedding width4,096
KV heads per layer1 (MLA-style) — which is how a 1M-token context stays affordable

Two quants, two different machines

QuantWeightsWhere it fits
UD-IQ2_M90.9 GBthe 121 GB Spark, with the 10.9 GB drafter — 102 GB of 121, ~19 GB left
UD-Q4_K_XL155.1 GBneither 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.

Two accountings, both ours
  • The 13B-activated estimate puts per-token weight reads near 7 GB.
  • The tensor-class accounting puts routed experts at 3.2 GB per token and the always-read tensors at 17 GB.
  • They differ because they count different tensors at different bit widths. The conclusion this page draws survives either: bytes read on every token must live on the fastest tier; bytes touched rarely need not.

Interactive · place the layer

Move the blocks. Watch the token rate.

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.

Fast tier1,790 GB/s

RTX 5090
20.6 GB free of 32

Slow tier273 GB/s

DGX Spark
121 GB unified
What the number is, and is not
  • It is a bandwidth-only arithmetic. Per-token read bytes divided by the bandwidth of the tier holding them. It contains no compute, no drafter, no KV growth, and no batching.
  • It is calibrated, not fitted. The best placement here predicts 13.0 tok/s; a single Spark on the 2-bit quant measured 12.6 tok/s — the same order, on a different configuration. Putting the experts on the fast tier predicts 2.2 tok/s; the first real pool, paging experts from NVMe, measured 2.25 tok/s.
  • The expert block is 138 GB and the slow box is 121 GB. Even the best placement leaves about 12% of it on disk, which is exactly why the working pool added a third tier rather than stopping at two.

Under the placement

Why the pool is stitched above the tensor level.

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.

The seam is the plan

  • Unification happens above the tensor: one abstract plan that maps tensor class → tier, rendered into each engine's own flags.
  • Sharing a KV block across engines is a category error. Routing a request to the node that already holds its prefix is not.

An RPC backend is a remote executor

  • Read the source: the backend receives a serialized graph and runs it on its own node. It is not remote storage.
  • Weights cross the wire once, at load. Per token, one hidden-state vector crosses — about 14 KB, or 8 KB at 4,096 dims × 2 bytes.

Link bandwidth is a load-time cost

  • Steady-state cost is round-trip latency × layer boundaries: 20 remote layers at 1 ms is ~20 ms per token.
  • The same 20 boundaries at 100 ms is 2 seconds. That, not bandwidth, is why you never split across a wide-area link.

Static partitions lose

  • The first pool carved layer ranges to tiers. Transfer decayed from 142 MB/s to 17 MB/s over 40 minutes, and the coordinator read 214 GB for a 155 GB model: mmap thrashing, not a hardware limit.
  • A static partition assumes exclusive ownership of each tier. Nothing on a working fleet owns one exclusively. The page cache is the multiplexer — give it hot experts and let it evict cold ones.
One more measured inversion

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

The anchors this page is calibrated against.

Every figure below came from a server's own timings block or from the machine's own memory counters. None are estimated.

ConfigurationResult
One DGX Spark, 2-bit + drafter, structured output30.6 tok/s, draft acceptance ~85%
One DGX Spark, 2-bit + drafter, prose27.7 tok/s, draft acceptance ~60%
One DGX Spark, 2-bit, no drafter12.6 tok/s — the honest floor
One DGX Spark, 2-bit + drafter, separate run23.6 tok/s median, acceptance 0.51
Two boxes, whole blocks, no drafter7.76 tok/s — the split loses 43% against one box
First working pool, 4-bit, experts paging from NVMe2.25 tok/s decode, 1.96 prefill, first token at 2,036 ms, load 17 m 33 s
Dense 27B that fits one card133 tok/s on one card, 40 tok/s split
Read this fairly
  • 2-bit is a real quality trade. It is taken deliberately: the drafter's 10.9 GB has to come from somewhere, and on a fast agentic loop the speed is worth more than the last fraction of a point. You may make it differently.
  • The arithmetic on this page is a bandwidth-only idealization. It brackets the measured runs rather than reproducing them; the drafter alone moves a real box from 12.6 to about 30 tok/s.
  • An open question we have not settled. The CUDA backend reportedly implements only the lightning-indexer kernel and round-trips the other operations through the CPU. If that is so, this model may be compute-bound rather than bandwidth-bound. The falsification test is simple: once the experts are resident, throughput that does not rise materially means the memory-tier work is aimed at the wrong bottleneck.

Where the numbers come from

Architecture, layer count, expert count, quant sizesThe 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 gapMeasured on our own two machines, 2026-07-31
All throughput figuresRead from the serving process's own timings block, 2026-09
Tensor-class split (138 / 17 GB) and pool designOur own design record and measurements, 2026-07-31