Writing · MOEModels program

Where the experts live decides how fast the model runs

A mixture-of-experts model has to store every expert but only reads a few of them per token. For anyone trying to run one on their own hardware, that turns “will it fit” into two separate questions, and the planner answers both with published figures, visible arithmetic and an honest unknown.

The download

The file is 32,440,578,048 bytes sourced. The graphics card has 32 GB of memory sourced. Somebody on your team is about to spend an afternoon downloading the one to run on the other, and what they actually want to know is not whether it will be fast. It is whether it will load at all.

The model is Qwen3-Coder-30B-A3B, an open-weight coding model, in its 8-bit MLX conversion. The name tells you most of what you need: 30 billion parameters in total, 3 billion active. It is a mixture-of-experts model, and once you understand what that means, the question about running it stops being how big it is and becomes where its experts live.

A dense model uses every parameter for every token. A mixture-of-experts model splits most of its weight into many small expert networks with a router in front of them. For each token, the router picks a handful of experts and skips the rest. So this model does the compute of a 3.3-billion-parameter model sourced but has to keep all 30.5 billion sourced parameters somewhere, because the router could call any of them on the next token. The gap between what gets computed and what has to be stored is the entire problem of running these models outside a data centre.

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 other 120 stay wherever they are stored.hidden state inattentionread every tokenrouterscores 128, picks 8128 experts in this layer8 read for this token · 5.0 MB each120 untouched · wherever they are storednext layer
Figure 1. One decode step through one expert layer of Qwen3-30B-A3B. The token's hidden state passes through attention, which is read for every token. The router scores 128 experts sourced and picks 8 sourced, and only those eight experts' weights are read. The other 120 stay wherever they are stored, and where that is sets the cost of the next token.

Three places an expert can live

There are three places to put them.

In accelerator memory, all of them. This is how vLLM and SGLang run on racks of GPUs. It is the fastest option and the simplest to reason about, and it needs more GPU memory than the checkpoint is long.

In host memory, the ordinary system RAM, on the far side of a bus. This is what FreeToken does by design and what llama.cpp does with --cpu-moe. The non-expert parts of the model stay on the GPU, the expert pool lives in RAM, and an expert crosses PCIe whenever the router calls one that is not already cached on the card. The card can be far smaller than the model. The bus is now the thing you wait on.

Or in unified memory, where the CPU and GPU share one pool and there is no bus to cross. That is Apple silicon under mlx-lm, and it is the configuration the published records for this model declare: 512 GB of unified memory declared at a vendor-published 819 GB/s sourced.

Where an expert can live, by the bandwidth it is read atAccelerator memory (RTX 5090, 32 GB GDDR7): 1,792 GB/s, sourced. Unified memory (M3 Ultra, 512 GB): 819 GB/s, sourced. Host memory (DDR5-5600, two channels): 89.6 GB/s, calculated. Host interface (PCIe 5.0 ×16, per direction): 63 GB/s, calculated. The host interface is the tier an offloaded expert crosses on a cache miss.Accelerator memoryRTX 5090, 32 GB GDDR71,792 GB/ssourcedUnified memoryM3 Ultra, 512 GB819 GB/ssourcedHost memoryDDR5-5600, two channels89.6 GB/scalculatedHost interfacePCIe 5.0 ×16, per direction63 GB/scalculatedlinear scale · GB/s
Figure 2. Where an expert can live, by the bandwidth it is read at. Accelerator memory (RTX 5090, 1,792 GB/s) and unified memory (M3 Ultra, 819 GB/s) are vendor-published sourced. The host interface (PCIe 5.0 ×16, 63 GB/s per direction) and host memory (DDR5-5600, two channels, 89.6 GB/s) are calculated from the published specifications calculated: sixteen lanes at the PCI-SIG rate; 2 × 64 bits × 5,600 MT/s. Linear scale.

What the planner says

The planner does this arithmetic for a specific checkpoint on specific hardware under a specific runtime, before anyone downloads anything. Here is what it prints for the unified-memory setup:

moemodels plan · output is calculated from sourced claims

Expert placement: unified; memory architecture: unified
Placement: fits device — The whole checkpoint (32,440,578,048 bytes) is resident
  in unified memory after a 13.00% reserve; experts never cross a host interface.
Speed band: Decode cannot exceed about 233.5 tokens/s for a single stream
  bytesPerParameter   = 32440578048 / 30532122624 = 1.0625
  bytesReadPerToken   = 3300000000 × 32440578048 / 30532122624 = 3506271374
  deviceBound         = 819 GB/s × 1e9 / 3506271374 = 233.5 tokens/s

Two numbers do the work here, and they are different kinds of number.

The first is the residency floor. The checkpoint's tensors have to live somewhere, with a reserve held back for the runtime, the cache of past tokens and the operating system. The planner takes 13 percent off the top and asks whether what is left covers the file. On 512 GB sourced it does, so the static residency gate passes, as a calculation. It is a lower bound on memory, not the runtime's real peak.

The second is the bandwidth ceiling. Producing one token means reading the active parameters out of memory, about 3.5 GB calculated per token for this model at 8-bit. Apple publishes 819 GB/s sourced for this part. Divide one by the other and you get 233.5 calculated tokens a second, the most a single stream could possibly manage if moving the weights were the only cost.

It is not the only cost, which is why the planner prints “measured values will be lower” and means it. In the published record for this artifact under mlx-lm 0.32.2, three trials under the declared configuration measured 27.9, 29.8 and 29.2 measured tokens a second, roughly an eighth of the ceiling calculated. Each token also reads the cache of everything before it, runs the router and attention, launches dozens of small kernels, gets sampled, and goes out over HTTP from a server whose own documentation says it is not meant for production. We have not profiled where the other seven-eighths go. The point of the ceiling is not to predict the number. It is to turn 29 into a question worth asking rather than a number in a thread.

Same checkpoint, different home

Now take the same checkpoint and put it on an NVIDIA RTX 5090 with 32 GB sourced, under FreeToken, with the planner told there is 128 GB of host RAM beside it:

moemodels plan · output is calculated from sourced claims

Static residency: unknown
Expert placement: host-offload; memory architecture: discrete
Placement: fits device plus host — Aggregate coverage: combined usable accelerator
  plus host capacity (139,200,000,000 bytes) covers the 32,440,578,048-byte checkpoint,
  with routed experts in host memory under FreeToken. This is not partition
  feasibility: the runtime's device-resident placement and full memory envelope are
  not established by tensor-byte totals, so whether they fit the accelerator
  alongside the KV cache stays unknown.
Speed band: Decode cannot exceed about 511 tokens/s on accelerator bandwidth alone;
  with experts in host memory the real ceiling is lower and depends on the host
  interface, which is not recorded for this accelerator.
  deviceBound         = 1792 GB/s × 1e9 / 3506271374 = 511 tokens/s
  hostInterfaceBound  : not calculated; no host-interface bandwidth is recorded

Read the two placement lines against each other. On unified memory the verdict was “fits device”. Here it is “fits device plus host”, with a qualification right behind it. Aggregate coverage means the card and the RAM together have room for the bytes. Partition feasibility would mean the pieces FreeToken keeps on the card, plus the cache, fit in 32 GB with the experts elsewhere. The planner can work out the first from the manifest. It cannot work out the second without loading the model, so it refuses to turn one into the other and leaves static residency at unknown.

The speed band does the same. The card's own memory would allow 511 calculated tokens a second. But the experts come across the bus, so the real ceiling is the bus, and the registry only records what the vendor publishes. NVIDIA's page for this card gives the PCIe generation and not the lane count. Rather than borrow a figure from a forum, the planner writes not calculated.

Most tools would fill that gap with a sensible default. We think leaving it open is the more useful answer.

What an unknown is for

An unknown in this output is not the planner failing to answer. It is the planner telling you which fact is missing and where it would have to come from, so you can get it from the hardware instead of from an argument. It also carries forward: an unknown never turns into a pass downstream. The policy gate that later judges a measured run treats a missing metric as inconclusive, never as satisfied. Runtime compatibility stays unknown for every model until an exact evidence record says otherwise, which is why both plans print Runtime compatibility: unknown, including the unified-memory plan, where the published record shows the model did run. The planner did not watch it run. The Passport did.

Static residency is the second of seven gates the planner lists, and it marks the other six as still required, because a checkpoint that fits is not the same thing as a deployment that works.

Where the experts live decides which of those gates is going to hurt. On unified memory, none of them are about the bus. On a consumer card with the experts in RAM, most of them are. The planner will not tell you what hardware to buy. It will tell you what you are about to find out.

The toolchain is pre-release and the repository is private while the public candidate is reviewed; the commands above run from a source checkout of the toolchain. The measured figures are on Evidence and re-verify in the browser verifier; the interactive version of this arithmetic is the expert residency explainer.

Sources

  1. mlx-community/Qwen3-Coder-30B-A3B-Instruct-8bit, safetensors manifest at the pinned revision (32,440,578,048 bytes)https://huggingface.co/mlx-community/Qwen3-Coder-30B-A3B-Instruct-8bit/blob/7c6ee1bbb5ee3051c4b3bc6553f24bdc2d01393a/model.safetensors.index.json
  2. Qwen/Qwen3-Coder-30B-A3B-Instruct model card (30.5B total, 3.3B active)https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct/blob/b2cff646eb4bb1d68355c01b18ae02e7cf42d120/README.md
  3. Qwen/Qwen3-30B-A3B at the pinned revision, config.json (128 experts, 8 per token)https://huggingface.co/Qwen/Qwen3-30B-A3B/tree/ad44e777bcd18fa416d9da3bd8f70d33ebb85d39
  4. Apple newsroom, M3 Ultra announcement (819 GB/s, up to 512 GB unified memory)https://www.apple.com/newsroom/2025/03/apple-reveals-m3-ultra-taking-apple-silicon-to-a-new-extreme/
  5. NVIDIA GeForce RTX 5090 (32 GB GDDR7, 1,792 GB/s)https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5090/
  6. PCI-SIG specifications (PCIe 5.0 per-lane rate)https://pcisig.com/specifications
  7. JEDEC JESD79-5C, DDR5 SDRAM standard (DDR5-5600 transfer rate)https://www.jedec.org/standards-documents/docs/jesd79-5c
  8. FreeTokenhttps://github.com/FlashML-org/FreeToken
  9. llama.cpp, --cpu-moehttps://github.com/ggml-org/llama.cpp/pull/15077
  10. vLLM expert-parallel deploymenthttps://docs.vllm.ai/en/latest/serving/expert_parallel_deployment/
  11. SGLang expert parallelismhttps://docs.sglang.io/advanced_features/expert_parallelism.html
  12. mlx-lmhttps://github.com/ml-explore/mlx-lm
  13. The expert residency explainer, with the interactive calculationhttps://moemodels.ai/residency
  14. The published Passports and verification reportshttps://moemodels.ai/evidence