Mixture of experts
A model design where each token is processed by only a few of many sub-networks (experts), so only part of the parameters are active for each token.
Why it matters. Explains why a model with a very large total size can be relatively cheap to run per token, although all its weights still need memory.
How it works
In a mixture-of-experts (MoE) model, some layers contain many parallel sub-networks called experts, and a small router picks a few of them for each token. Makers often report two sizes: total parameters (all experts) and active parameters (those used per token).
Compute per token scales roughly with active parameters, so an MoE model can be cheaper to run than a dense model of the same total size. But every expert must be loaded in memory, so hardware needs follow the total size. Expert counts and routing designs vary between models.
When planning self-hosting, size memory by total parameters and expect compute per token closer to the active count. For API users, MoE mostly shows up indirectly, in price and speed.
Worked example
Illustrative: an MoE model with 400B total and 20B active parameters needs memory for all 400B, about 800 GB at 16-bit, but each token uses roughly the compute of a 20B dense model.
Common mistakes
- Sizing GPU memory from active parameters instead of total parameters.
- Comparing MoE and dense models by total parameter count as a proxy for quality or speed.
- Assuming quantization and fine-tuning tools behave the same on MoE models as on dense ones.
Across the catalog today
Total vs active parameters
- gpt-oss-20bOpenAI20.91B total / 3.61B active per token
- gpt-oss-120bOpenAI116.83B total / 5.13B active per token
- Llama 4 ScoutMeta17B active / 109B total, 16 experts
- Llama 4 MaverickMeta17B active / 400B total, 128 experts
- Qwen3.8-FlashAlibaba125B total, 6B activated
- Qwen3.7-PlusAlibaba397B total, 17B activated
- Qwen3.8-MaxAlibaba2.4T total, 95B activated
- Mistral Large 3Mistral AI675B total / 41B active
Mixture-of-experts models run only part of their weights per token.
See it on a real card: Where to run it on Llama 4 Maverick.
Related terms
- Weights & training43
Active parameters
Parameters actually used for each token in MoE
Explained - Weights & training41
Parameters
The learned numbers that make up a model
Explained - Inference36
GPU memory (VRAM)
Accelerator memory for weights, KV cache and buffers
Explained - Weights & training47
Quantization
Lower-precision weights to cut memory and cost
Explained - Pricing14
Self-hosting cost
What it costs to run open weights yourself
Explained