EN

Language

Our editions

Written for each audience, not translated word for word.

What is a mixture of experts (MoE) model?

ExplainerBy Lucas Matías García TorresUpdated Data checked 4 min read

Reviewed by Lucas Matías García Torres on . How we work.

Leer en español

A 3D lattice of thin steel lines and nodes with a few pathways lit in orange, like a neural network

Short answer

A mixture of experts (MoE) model replaces the feed-forward layers of a language model with many experts and a router that sends each token to a few of them. Mixtral 8x7B has 47 billion parameters but uses 13 billion per token; Qwen3.8-2.4T-A95B activates 95 billion of 2.4 trillion. Total parameters decide the memory you need, active parameters the computation per token, and llama.cpp can keep expert weights in system RAM.

Prices and limits change often: check the vendor's page before you pay. How we make money.

A mixture of experts (MoE) model splits part of a language model into many smaller sub-networks, called experts, and uses only a few of them for each token. That is why model names now carry two numbers: Qwen3.8-2.4T-A95B has 2.4 trillion parameters in total but activates 95 billion per token, and Meta's Muse Spark Open has 816 billion in total and 42 billion active. The total decides how much memory you need; the active part decides how much computation each token costs. This guide explains how MoE works and what it means when you pick or run a model, based on the original research papers, Hugging Face's explainer and the model cards read on October 23, 2026.

How a mixture of experts works

A standard, or dense, model sends every token through all of its parameters. In an MoE model, the feed-forward layers inside the network are replaced by MoE layers. Each MoE layer holds a set of experts, which in practice are feed-forward networks, plus a small router, also called a gating network, that decides which experts process each token. Other parts of the model, such as attention, are shared and run for every token.

Mixtral 8x7B, described in a January 2024 paper by Mistral, is the clearest example: each layer has 8 experts, and for every token a router picks 2 of them and combines their outputs. The model has 47 billion parameters, but each token uses only 13 billion. It is 47 and not 8 × 7 = 56 billion because only the feed-forward layers are duplicated as experts; the rest is shared.

The idea is older than today's chatbots. A 2017 paper by Noam Shazeer and colleagues introduced the sparsely-gated MoE layer with up to thousands of experts and reported more than 1000× more model capacity with only minor losses in efficiency. The 2021 Switch Transformer simplified routing to a single expert per token and trained models of up to a trillion parameters.

Total parameters versus active parameters

Table: total and active parameters of MoE models (model cards and papers, checked October 23, 2026)

Model Total parameters Active per token Experts per layer
Mixtral 8x7B 47 billion 13 billion 8, 2 used per token
gpt-oss-20b 21 billion 3.6 billion not published
gpt-oss-120b 117 billion 5.1 billion not published
Muse Spark Open 816 billion 42 billion not published
Qwen3.8-2.4T-A95B 2.4 trillion 95 billion 512, 10 routed plus 1 shared

The names often encode the numbers: "8x7B" refers to eight experts per layer on a Mistral 7B-sized architecture, and "A95B" means 95 billion activated.

What MoE means for memory and speed

Hugging Face's explainer sums up the trade-off: an MoE model runs faster than a dense model with the same number of parameters, because each token only computes through a fraction of them, but all the parameters still have to be loaded in memory. Mixtral 8x7B needs the memory of a 47 billion parameter model while computing roughly like a 12 billion parameter one.

For you that means two separate questions. Will it fit? Count total parameters and the precision of the weights, as in our guide to how much VRAM an LLM needs. Will it be fast? Look at the active parameters. OpenAI quantized the MoE weights of gpt-oss to MXFP4 so that gpt-oss-120b runs on a single 80 GB GPU and gpt-oss-20b within 16 GB of memory; our explainer on quantization covers what those formats do. At the other end, Meta says Muse Spark Open runs on two Mac Studios with M5 Ultra; see running an LLM on a Mac for what one Mac can hold.

Running MoE models on a normal PC

Because each token only uses a few experts, a common way to run a large MoE model on a normal PC is to keep the expert weights in system RAM and the rest on the GPU. llama.cpp has options for exactly this: --cpu-moe keeps all MoE expert weights in system RAM, and --n-cpu-moe N keeps the expert weights of the first N layers there, while the rest of the model stays on the GPU. Raise N until the model fits in your VRAM. It is slower than having everything on the GPU, but it can make a model usable that would otherwise not load at all.

Common misunderstandings

  • "Each expert is an expert in a topic." Not really. Research summarized by Hugging Face found experts specialize in groups of tokens or shallow concepts, such as punctuation or proper nouns, and in a multilingual model no single expert specialized in a language.
  • "A 47B MoE is as cheap to run as a 13B model." Only in computation. It still needs the memory of the full model.
  • "MoE models are always better." As Hugging Face summarizes the Switch Transformer results, at the same pre-training quality sparse models did worse than dense ones on reasoning-heavy tasks and disproportionately well on knowledge-heavy ones, and Hugging Face notes MoE models have historically been harder to fine-tune.

If you want the basics first, start with what an LLM is. If you plan to build on one of these models, check its license too: our guide to open-weight model licenses compares them.

What we checked

  • Outrageously Large Neural Networks (Shazeer et al., submitted January 23, 2017): introduces the Sparsely-Gated Mixture-of-Experts layer with up to thousands of feed-forward sub-networks and a trainable gating network; greater than 1000x improvements in model capacity with only minor losses in computational efficiency. (arXiv (Shazeer et al.), )
  • Mixtral of Experts (submitted January 8, 2024): Mixtral 8x7B has the Mistral 7B architecture with 8 feed-forward blocks (experts) per layer; a router selects two experts per token at each layer; 47B parameters with 13B active during inference; Apache 2.0. (arXiv (Mistral), )
  • Switch Transformers (submitted January 11, 2021): simplified MoE routing; up to 7x increases in pre-training speed with the same computational resources; pre-training of up to trillion parameter models. (arXiv (Fedus, Zoph and Shazeer), )
  • Mixture of Experts Explained (Hugging Face, December 11, 2023): MoE layers replace dense feed-forward layers, with experts and a gate network or router; faster inference than a dense model with the same number of parameters but all parameters must be loaded in memory; Mixtral 8x7B needs the VRAM of a dense 47B model and computes like about 12B because attention and other parts are shared; experts specialize in groups of tokens or shallow concepts and no single expert specialized in a language; Switch Transformers observed sparse models doing worse on reasoning-heavy tasks and disproportionately well on knowledge-heavy tasks at fixed pretrain perplexity; fine-tuning has historically been challenging. (Hugging Face, )
  • gpt-oss README: gpt-oss-120b has 117B parameters with 5.1B active and fits into a single 80GB GPU; gpt-oss-20b has 21B parameters with 3.6B active and runs within 16GB of memory; MoE weights post-trained with MXFP4 quantization. (OpenAI (GitHub), )
  • Qwen3.8-2.4T-A95B model card: 2.4T parameters in total and 95B activated; 512 experts with 10 routed plus 1 shared activated. (Qwen (Hugging Face), )
  • Introducing Muse Spark Open (October 15, 2026): 816B total parameters with 42B active; runs on two Apple M5 Ultra Mac Studios with MLX. (Meta, )
  • llama.cpp server README: -cmoe, --cpu-moe keeps all Mixture of Experts weights in the CPU; -ncmoe, --n-cpu-moe N keeps the MoE weights of the first N layers in the CPU. (ggml-org (GitHub), )

What may change

  • Parameter counts are those published for each model on October 23, 2026; new models appear every month. llama.cpp options can change between releases. This page is reviewed quarterly.
  • The advice on running MoE models on a normal PC is our own.

Frequently asked questions

What is a mixture of experts model?

It is a language model whose feed-forward layers are split into many experts, with a router that sends each token to only a few of them. The rest of the model, such as attention, is shared. That lets the model have many parameters while each token uses only a fraction of them.

What does active parameters mean?

Active parameters are the ones used to process each token. Mixtral 8x7B has 47 billion parameters in total but uses 13 billion per token, and gpt-oss-120b has 117 billion in total with 5.1 billion active. Names like A95B give the active count directly.

Does an MoE model need less memory?

No. All parameters still need to be loaded in memory, so a 47 billion parameter MoE needs the memory of a 47 billion parameter model. What drops is the computation per token, which is why MoE models run faster than dense models of the same total size.

How do I run a large MoE model with little VRAM?

In llama.cpp, --cpu-moe keeps all expert weights in system RAM and --n-cpu-moe N keeps those of the first N layers there, with the rest on the GPU. Increase N until the model fits. It is slower than a full GPU load but can make the model usable.

Does each expert specialize in a topic?

Not in the way the name suggests. Research summarized by Hugging Face found that experts tend to specialize in groups of tokens or shallow concepts, such as punctuation or proper nouns, and that in a multilingual model no single expert specialized in a language.

Sources

  1. Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer, arXiv (Shazeer et al.). Accessed October 23, 2026.
  2. Mixtral of Experts, arXiv (Mistral). Accessed October 23, 2026.
  3. Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity, arXiv (Fedus, Zoph and Shazeer). Accessed October 23, 2026.
  4. Mixture of Experts Explained, Hugging Face. Accessed October 23, 2026.
  5. gpt-oss README: model sizes, active parameters and MXFP4, OpenAI (GitHub). Accessed October 23, 2026.
  6. Qwen3.8-2.4T-A95B model card, Qwen (Hugging Face). Accessed October 23, 2026.
  7. Introducing Muse Spark Open, Meta. Accessed October 23, 2026.
  8. llama.cpp server README: --cpu-moe and --n-cpu-moe, ggml-org (GitHub). Accessed October 23, 2026.

Spotted an error or an outdated price? Tell us and we will fix it.

Change history

  • : First published. Checked on October 23, 2026 against the Shazeer et al. 2017, Switch Transformers and Mixtral papers, Hugging Face's Mixture of Experts Explained, the gpt-oss README, the Qwen3.8-2.4T-A95B model card, Meta's Muse Spark Open announcement and the llama.cpp server README.

Next review: .

Part of our Language Models Explained guide.

Other topics