Topic 4 of 5 · 4 min read
Mixture of experts: total versus active parameters
Goal: Tell total from active parameters in a model card and explain what each means for memory and speed.
A mixture-of-experts (MoE) model holds many expert sub-networks but sends each token through only a few of them, so its total parameters and its active parameters are different numbers. Total size sets the memory you need. Active size sets how much work each token takes.
Check yourself · 1 of 3
In a mixture-of-experts model, what are active parameters?
Why it matters
Model names and cards can show two sizes, for example a model with 47 billion in total but only about 13 billion active per token. If you read only one number, you will misjudge either the hardware or the speed. Many recent large models, open and closed, use this design, though closed providers rarely say which.
How it works
In an ordinary ("dense") model, every parameter takes part in every token. In an MoE model, part of each layer is split into several experts, and a small router picks a few of them for each token. The other experts sit idle for that token. Different tokens can go to different experts, so over a whole answer many experts get used.
Reading a model card
- Total parameters. All experts together. All of them must be loaded in memory, so this number drives the hardware you need.
- Active parameters. What one token actually uses. This drives speed per token and the compute cost.
- Compare like with like. A model with 47B total and 13B active needs memory like a large model but runs each token closer to a smaller one.
An expert is not a topic specialist such as "the law expert". Experts learn mixed patterns, and the router chooses them for each token.
Before and after
Before: "It has only 13B active parameters, so it will fit on my small card."
After: "The 13B is active, not total. All 47B must be loaded, so I need memory for 47B, even though each token runs fast."
What goes wrong
- Sizing hardware from the active count and running out of memory.
- Assuming a large total means slow, when the active count may be small.
- Believing each expert is a human-style specialist.
- Comparing an MoE model with a dense model using only one of the two numbers.
Examples
Reading two model cards
| Model | Total | Active | What it means |
|---|---|---|---|
| Dense 13B | 13B | 13B | Memory for 13B, speed of 13B |
| MoE 47B / 13B | 47B | 13B | Memory for 47B, speed near 13B |
The MoE model runs each token about as fast as the dense one but needs far more memory to load.
The wrong hardware order
A team buys a card sized for a 13B model because the announcement said "13B active". The model will not load, since all 47B must be in memory. They should have read the total, not the active, count.
Key points
- A mixture-of-experts model routes each token through a few expert sub-networks instead of all of them.
- Total parameters are all the experts together and set the memory needed.
- Active parameters are those used per token and set the compute and speed per token.
- Experts are not neat human topics; they are learned pieces chosen by a router.
- Always read both numbers on a model card before judging cost or hardware.
Common mistakes
- Planning memory from the active parameter count.
- Assuming a big total means every token is slow.
- Picturing each expert as a human subject specialist.
- Comparing models by only one of the two sizes.
Check yourself · 2 of 3
A card says 47B total and 13B active. What must you plan memory for?
Check yourself · 3 of 3
What is an expert in a mixture-of-experts model?
Practice items, not counted towards your mastery.
Start here
- Optimizing LLMs for speed and memory (Hugging Face Transformers docs) (opens in a new tab)DocsFree
Covers the KV cache, quantization and faster decoding with runnable settings and plain explanations.
- Mixture of Experts Explained (Hugging Face) (opens in a new tab)ArticleFree
A clear walk through experts, routers, and why total size and active size differ.
- Prompt caching (Claude docs) (opens in a new tab)DocsFree
A vendor's own rules for cacheable prefixes, what breaks a cache hit, and how cached reads are billed.