Fits is the wrong question
For a dense model the capacity question is simple: the artifact either fits in accelerator memory or it is served across more devices. A mixture of experts has a different shape. Every expert must be stored somewhere, because the router may ask for any of them, but each token reads only k experts per layer and the rest sit untouched.
The committed shard headers for the 8-bit Qwen3-30B-A3B conversion put numbers on this. Expert tensors are 30,802,968,576 of the artifact's 32,440,578,048 bytes, 95.0%. There are 48 layers × 128 experts = 6,144 expert slots, so each expert occupies 30,802,968,576 ÷ 6,144 = 5,013,504 bytes. A token reads 8 × 48 = 384 of them, which is 384 × 5,013,504 = 1,925,185,536 bytes of expert weights, plus the 1,637,609,472 non-expert bytes that every token reads regardless. All calculated from sourced inputs.
Put that next to a GeForce RTX 5090 with 32GB of memory. The 32.44GB artifact does not fit as a whole; a token needs about 3.56GB of it. If the experts a token asks for are already on the card, the shortfall is irrelevant; if not, they must arrive from somewhere slower before the token can be produced. That is the residency problem, and a dense model has no analogue.
The memory hierarchy, with the numbers vendors publish
Where the experts live determines how fast a miss can be served. The table gives each tier's bandwidth where a vendor publishes one, says so where none does, and states every figure's class in the last column.
| Tier | Example | Bandwidth | Class |
|---|---|---|---|
| Unified memory | Apple M3 Ultra, Mac Studio (2025) | 819 GB/s | sourced, Apple specifications |
| Discrete accelerator memory | NVIDIA GeForce RTX 5090, 32 GB GDDR7 | 1,792 GB/s | sourced, NVIDIA comparison page |
| Discrete accelerator memory | NVIDIA H100 SXM, 80 GB | 3,350 GB/s | sourced, NVIDIA product page (3.35TB/s) |
| Host interface | PCIe Gen5 as NVIDIA lists it for the H100 | 128 GB/s | sourced, NVIDIA product page; direction not stated |
| Host interface | GeForce RTX 5090 | unknown | product page states PCI Express Gen 5 without a lane count |
| Host DRAM | 12 channels of DDR5-6400, Intel Xeon 6980P | 614.4 GB/s | calculated: 6,400 MT/s × 8 bytes × 12 channels; Intel lists channels and speed, not bandwidth |
| NVMe storage | — | unknown | no vendor figure was verified for this lesson |
What the tiers imply
The ratios are the story. The RTX 5090 reads its own memory at 1,792 GB/s; the fastest host interface quoted in the table is 128 GB/s, fourteen times slower; and a twelve-channel DDR5 host at 614.4 GB/s is faster than the link that connects it to the card, so an expert fetched from host memory is limited by the link, not by the DRAM behind it.
Measured link rates sit below the specification. FreeToken (2026) measures PCIe expert-transfer bandwidth on the deployed tensor shapes rather than reading a spec sheet, and reports roughly 56.7 to 77.3 GB/s on its rented servers; MoE-Infinity reports a single I/O thread saturating PCIe 4.0 at 32 GB/s. Apple's unified memory has no such tier: the whole 512GB is one pool at 819 GB/s, which is why this project's Passports record no host interface.
Offloading, as published
Keeping some experts in a slower tier and fetching them on demand is called expert offloading, and a published line of work makes it fast.
Eliseev and Mazur (2023) ran Mixtral-8x7B on a laptop with a 16GB RTX 3080 Mobile and a desktop with a 12GB RTX 3060 by keeping a least-recently-used cache of experts on the GPU and loading the rest from host memory. Observing that some experts are reused between adjacent tokens, they added speculative loading: apply the next layer's gating function to the current hidden state, guess its experts, and start fetching early. Every configuration generated 2 to 4 tokens per second.
Pre-gated MoE (Hwang et al., 2023) moves the guess into the model: a pre-gate function in block N selects block N+1's experts, so their transfer from CPU memory overlaps block N's computation instead of waiting for its router. MoE-Infinity (Xue et al., 2024) traces which experts activate during a request, observes that reuse is skewed — fewer than 5% of experts are repeatedly activated within a single request in models with around a hundred experts — and uses the traces to drive both cache replacement and prefetching.
FreeToken (Yang et al., 2026) turns the remaining GPU memory into one elastic expert cache shared across layers and splits each decode step's misses between PCIe cache fills and direct CPU execution, according to the two bandwidths it measured. Production runtimes ship simpler versions: llama.cpp added --cpu-moe in July 2025 to keep MoE weights on the CPU and --n-cpu-moe N four days later for the first N layers only; KTransformers places hot experts on the GPU and cold ones on the CPU, and reports DeepSeek-R1 and V3 on a single 24GB GPU with 382GB of DRAM.
Hit rate, exposed misses, and why skew is the whole game
Three quantities decide whether any of this works. The hit rate h is the fraction of the 384 expert reads per token that are served from accelerator memory. A miss is a read that has to cross the host interface. An exposed miss is a miss whose transfer was not hidden behind computation — the only kind that costs wall-clock time.
The arithmetic uses the vendor figure from the table. One expert of 5,013,504 bytes over 128 GB/s takes 39.2 microseconds. If every expert read missed and nothing overlapped, a token would wait 384 × 39.2 µs = 15.0 ms for transfers alone, capping decode at about 66 tokens per second before any computation. All of it is calculated from sourced inputs, and it is only as good as the 128 GB/s it assumes; the measured link rates above would make it worse.
Now the part that makes caching possible. If routing were uniform and independent from token to token, a cache holding C of a layer's 128 experts would hit about C ÷ 128 of the time and nothing could improve it. Routing is not uniform. The offloading papers exist because experts recur across adjacent tokens, because a request concentrates on a small subset, and because the next layer's choice is predictable from the current state. Skew lets a cache far smaller than the artifact hit far more often than its size suggests; prediction turns the remaining misses from exposed into overlapped.
This project has measured no hit rates. The planner publishes residency as a calculated bound — bytes that must be somewhere, against each tier's capacity — and leaves hit rate, exposed misses and throughput to measurement. The numbers above are the arithmetic you would do with a measurement in hand.
Try it
An interactive version of this lesson, built on the same sourced inputs and labelled with the same classes, is on the residency page.
An interactive version of this lesson
The rule
A mixture of experts stores every expert and reads a few. Residency asks where the experts live; hit rate asks how often a token finds them there; exposed misses are what you pay. Only skew in the routing makes a small cache worth having, and only a measurement tells you how much.