EXPLAINER / EXPERT RESIDENCY
Where the experts live.
A mixture-of-experts model stores every expert but reads only a few of them per token. That one fact breaks the usual question, “does the model fit?”, into two: where the whole artifact is stored, and where the experts a token actually needs are when it needs them. This page works through the arithmetic with sourced figures, then lets you run a calculated decode on a consumer GPU and watch experts move between host memory and the device.
Every figure on this page is sourced from a vendor or model publisher, or calculated from those figures by arithmetic shown here. Nothing on this page is a measurement; the measured records are on Evidence.
01 / What one token reads
A decode step touches a sliver of the weights.
For Qwen3-30B-A3B in 8-bit (MLX): 48 expert layers, 128 experts each, 8 routed per token.
Dense decoding is memory-bound: a single stream reads the whole weight set once per token, so the ceiling on tokens per second is bandwidth divided by bytes. A mixture of experts keeps that ceiling but changes the numerator. On the M3 Ultra, 819 GB/s over 3.56 GB is about 229.9 tokens per second calculated, against a measured 55.7, 54.7 and 49.6 for the same artifact under the same runtime measured. The planner publishes the first number as a ceiling and the Passport records the second; the gap between them is unprofiled and this page does not guess at it.
A dense model has one question: does it fit. A mixture of experts has two: where is the artifact stored, and where are the eight experts this token needs when it needs them.
02 / Where weights can live
Five places to keep an expert, two orders of magnitude apart.
Bandwidth is what decides a tier’s cost per expert read. Capacity decides how many experts it can hold. The two are in tension everywhere below the top row.
| Tier | Example part | Bandwidth | Note |
|---|---|---|---|
| Accelerator memory | RTX 5090, 32 GB GDDR7 | 1,792 GB/s sourced | NVIDIA compare page. Where the active weights must be to decode at the roofline. |
| Unified memory | M3 Ultra, 512 GB | 819 GB/s sourced | Apple Mac Studio (2025) specifications. One address space; capacity rarely binds, bandwidth always does. |
| Host interface | PCIe 5.0 × 16 | 63 GB/s per direction calculated | From the PCI-SIG published rate. Vendors state the generation, not the lane count; the registry records the interface as unknown. |
| Host memory | DDR5-5600, two channels | 89.6 GB/s calculated | 2 × 64 bits × 5,600 MT/s. Where an offloading runtime keeps the whole expert pool. |
| Solid-state storage | NVMe, PCIe 4.0 × 4 | 7.9 GB/s calculated | Four lanes at the PCI-SIG rate. A fourth tier some runtimes page experts from; not simulated below. |
An 8 GB card cannot hold a 32.4 GB artifact, and nothing about sparsity changes that. What sparsity changes is the price of not holding it. A runtime that keeps the expert pool in host memory and a bounded cache of experts on the device pays for a miss at the interface rate, not the device rate: at 31.5 GB/s a 5.0 MB expert costs about 0.16 ms to fetch, where reading it from GDDR at 272 GB/s would cost 0.018 ms calculated. Whether that is survivable depends on how many of a token’s 384 expert calls miss, and that depends on two things the hardware does not control: how skewed the routing is, and how well the policy that chooses which experts stay resident has read that skew.
This is the published problem. Eliseev and Mazur showed in 2023 that an LRU expert cache with speculative loading makes Mixtral-8x7B usable on a consumer GPU; MoE-Infinity, Pre-gated MoE, and more recently FreeToken and the host-expert modes of llama.cpp and KTransformers all occupy the same design space with different cache, prefetch and placement choices. The Learn track’s residency lesson carries the citations. The calculation below is the simplest honest version of that design space: two baseline policies, synthetic routing, vendor bandwidths, and one adjustable assumption that is labelled as one.
03 / Run the arithmetic
Decode 240 tokens through a bounded expert cache.
Choose an artifact and a machine. The device keeps the non-expert weights and as many expert slots as fit after a 13% reserve; the rest of the pool stays in host memory. Press decode and watch, for one layer, which experts a token routes to and which of them have to cross the interface.
misses this token by layer, 1 to 48
| Policy | Exposed misses per token calculated | Hit rate calculated | Interface bytes per token, MB calculated | Single-stream decode, tokens/s calculated |
|---|---|---|---|---|
| Everything residentThe whole artifact in device memory. The ceiling case; feasible only when it fits after the reserve. | The artifact does not fit in device memory after the reserve. Needs 32.4 GB; 7.0 GB usable. | |||
| Bounded cache, least-recently-usedExperts stream from host memory on a miss and evict the least recently used slot. The baseline in the published offloading work. | 215.1 of 384 | 44.0% | 1078.3 | 21.8 |
| Static pinning by observed frequencyProfile the first fifth of the run, pin the hottest experts, stream the rest. The simplest workload-aware policy in the literature. | 157.9 of 384 | 58.9% | 791.7 | 26.5 |
Time model per token: 3.56 GB of active weights read from device memory at 272 GB/s, misses streamed at 31 GB/s, plus a fixed 2 ms. Device-bound ceiling for this artifact on this machine: 76.3 tokens/s calculated. Steady-state figures exclude the first 48 tokens so neither dynamic policy is charged for its cold start. Under the least-recently-used policy the run moved 207.0 GB across the interface over its steady state.
What this page does not show. The two policies above are the public baselines. The lab’s own engine work on expert residency is not described on this site; it will be described when a measured result exists and the description can be made in full. Patent pending, 2026. Nothing here is a measurement of any runtime.
- Geometry: routed experts and experts per token from each artifact’s
config.jsonat the pinned revision; artifact bytes from the safetensors manifestmetadata.total_size; expert bytes and the expert-layer count from the shard headers, as recorded in the registry’s artifact partitions. Bytes per expert are the expert total divided by layers × experts; the real tensors differ slightly in size across projections. - Routing: a seeded Zipf draw per layer over a per-layer permutation of expert popularity, 8 distinct experts per layer per token. Real routing is workload-specific and layer-specific; the skew slider is a stand-in for that, not a measurement of any model.
- Time model: active weights read at the vendor bandwidth, misses streamed at the interface assumption, plus a fixed 2 ms per token for everything that is not a byte moved. No overlap of fetch with compute, no CPU execution of missed experts, no KV cache traffic, no prefill. These omissions make the figures optimistic in some places and pessimistic in others; they are ceilings on a simplified machine, not predictions.
- Bandwidth: Apple and NVIDIA figures are the vendor pages the registry cites. The RTX 4060’s 272 GB/s is not on its product page and is shown as an assumption. Interface rates are PCI-SIG per-direction figures for sixteen lanes.