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.

One decode step through one mixture-of-experts layerThe token’s hidden state passes through attention, then a router scores 128 experts and selects 8. Only those 8 experts’ weights are read. The 120 others stay wherever they are stored.hidden stateattentionread every tokenrouterscores 128, picks 8128 experts in this layer8 read this token · 5.0 MB each120 untouched · wherever they are storednext layer
Figure 1. One decode step through one of the 48 expert layers. The attention block, norms, router and embeddings are read on every token for every layer: 1.64 GB in this artifact. The experts read are 48 layers × 8 = 384 of 6,144 stored, 5.0 MB each: 1.93 GB. Active bytes per token: 3.56 GB of a 32.44 GB artifact. calculated

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.

TierExample partBandwidthNote
Accelerator memoryRTX 5090, 32 GB GDDR71,792 GB/s sourcedNVIDIA compare page. Where the active weights must be to decode at the roofline.
Unified memoryM3 Ultra, 512 GB819 GB/s sourcedApple Mac Studio (2025) specifications. One address space; capacity rarely binds, bandwidth always does.
Host interfacePCIe 5.0 × 1663 GB/s per direction calculatedFrom the PCI-SIG published rate. Vendors state the generation, not the lane count; the registry records the interface as unknown.
Host memoryDDR5-5600, two channels89.6 GB/s calculated2 × 64 bits × 5,600 MT/s. Where an offloading runtime keeps the whole expert pool.
Solid-state storageNVMe, PCIe 4.0 × 47.9 GB/s calculatedFour 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.

48 expert layers × 128 experts, 8 per token. 32.4 GB artifact, 30.8 GB of it experts, 5.0 MB per expert. sourced
8 GB device memory, 272 GB/s. assumption
31 GB/sBandwidth a missed expert streams at. Vendors do not publish the lane count, so this is an assumption: PCIe 4.0 ×16 is 31.5 GB/s per direction, PCIe 5.0 ×16 is 63 GB/s.
Zipf s = 1.00 is uniform: every expert equally likely. Larger values concentrate calls on a few experts per layer. Synthetic; real routing is workload-specific.
token 1 / 240
Device memory8 GB · 272 GB/s
attention, routers, embeddings 1.6 GBresident experts 1,061 of 6,144 slotsreserve 13% 1.0 GB
Host memoryexpert pool
all 6,144 experts 30.8 GBserved this token 384 of 384 calls
Layer 1 of 48: 128 experts, 8 routed this token
resident in device memory in host memory only routed this token, served from device routed this token, fetched over the interface

misses this token by layer, 1 to 48

PolicyExposed misses per token calculatedHit rate calculatedInterface bytes per token, MB calculatedSingle-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 38444.0%1078.321.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 38458.9%791.726.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.

  1. Geometry: routed experts and experts per token from each artifact’s config.json at the pinned revision; artifact bytes from the safetensors manifest metadata.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.
  2. 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.
  3. 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.
  4. 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.