Explainer / Models

Understanding mixture of experts: why a model has two sizes.

Published
Reading time
3 minutes
Topics
mixture-of-experts / local-ai / inference

The idea

A language model is a very large set of numbers, called parameters, learned in training. It reads and writes text in tokens, words or pieces of words. An ordinary model, called dense, uses all its parameters for every token.

A mixture-of-experts (MoE) model splits a large part of its parameters into groups called experts. For each token, a small router picks a few experts, and only those do the work. The other experts wait.

Mixtral 8x7B, the example here, has 8 experts, and the router picks 2 of them for each token. The model has 47 billion parameters in total, but uses about 13 billion for each token. (The name suggests 8 × 7 = 56 billion, but some parts of the model are shared by all the experts and are counted only once.) Mixtral paper

A router picks two experts for each token

Follow one token, "password", from the prompt "Reset my password". The router gives each of the 8 experts a score and keeps the 2 best, say experts 2 and 5. Both process the token, and their results are mixed, here 70 % from expert 2 and 30 % from expert 5. The other six experts do nothing for this token. The scores are made up for the example.

The model handles each token in 32 steps, called layers, and each layer has its own router and its own 8 experts. So the choice is made again at every step, and the next token may use different experts. Mixtral paper, section 2

One token, "password", enters a mixture-of-experts layer as a vector from the layer before. The router scores all 8 experts and keeps the top 2. Experts 2 and 5 receive the token, with weights 0.7 and 0.3; experts 1, 3, 4, 6, 7 and 8 stay idle for this token. The layer adds 0.7 times expert 2's output and 0.3 times expert 5's output, and the resulting vector goes to the next layer. All 8 experts stay loaded in memory, but only 2 run for this token.

Total size decides memory, active size decides work

The router can pick any expert for the next token, so every expert must be loaded in memory, even the ones that wait. The total count therefore tells you whether the model fits on your machine. Hugging Face's Mixtral documentation estimates about 90 GB of GPU memory for the whole model, at 2 bytes per parameter. Transformers: Mixtral

Only the chosen experts compute, so the active count tells you roughly how much work each token takes: Mixtral needs the memory of a 47-billion-parameter model but does about the work of a 13-billion one. Storing each parameter in fewer bits, called quantisation, cuts the memory. OpenAI's card says gpt-oss-120b fits on a single 80 GB GPU because its experts are stored in 4 bits. gpt-oss-120b

Where you meet it

You meet MoE when you choose an open-weight model, one you can download and run yourself. Its card often gives both counts (checked on 4 December 2026):

Model Total parameters Active per token Source
Mixtral 8x7B 47B 13B (2 of 8 experts) Mixtral paper
Qwen3-30B-A3B 30.5B 3.3B (8 of 128 experts) Model card
gpt-oss-120b 117B 5.1B Model card

Some names carry both numbers: the "A3B" in Qwen3-30B-A3B means about 3 billion active parameters.

The experts are not subject specialists

"Expert" suggests one for biology and another for law. The Mixtral authors looked for that and found nothing of the kind: tokens from different subjects were spread over the experts in similar ways. Mixtral paper, section 5

What to try first

Read both counts on a model card and check the total against your memory, allowing for quantisation. Then run the MoE model and a dense model of similar total size on the same prompts, and compare memory use, tokens per second and answer quality. A local runtime such as Ollama can run both.

Sources checked on 4 December 2026.

AI Disclosure

Researched and drafted with AI assistance, then reviewed by Søren Dalby. Sources are linked; errors may remain, and corrections are welcome.

Sources