What is Mixture of Experts (MoE)? AI coding glossary

By

Mixture of Experts (MoE) activates a subset of specialist networks for each token. Learn how total and active parameters affect memory needs.

Mixture of Experts (MoE) is a neural network design that replaces one giant feed-forward layer with many smaller specialist networks called experts, plus a lightweight router that picks only a few experts for each token.

Because most experts stay idle on any single step, a trillion-parameter MoE model runs at roughly the speed of a much smaller dense model while holding far more learned knowledge in its model weights.

Total vs active parameters

In a traditional dense model, every parameter runs on every single token. A 70B dense model does 70 billion parameters worth of math per token.

In an MoE model, we always see two numbers: total parameters (every expert stored in the checkpoint) and active parameters (the slice that actually runs for one token). Many modern MoE models also keep one small shared expert running on every token alongside the routed experts.

How a Mixture of Experts layer routes one tokenAn input token enters a router that activates a small subset of experts plus one shared expert, skips the remaining experts, and combines the active outputs.SkippedInput tokenRouterActive experts (forexample 8 of 256)Shared expert(always on)Idle experts (248)Combined tokenoutput

That split changes both speed and hardware planning. Active parameters set how fast the model generates tokens during inference. Total parameters set how much disk space and GPU memory (VRAM) you need to load the checkpoint.

Real 2026 MoE models compared

Almost every large open-weight model released in 2026 uses an MoE architecture:

ModelTotal parametersActive per tokenExperts per layerDefault download
Amazon Ergo 1.01.1T55B (5%)256 routed (8 active) + 1 shared626 GB (MXFP4)
Mistral Large 4~1T49B (5%)Routed MoE~500+ GB
Qwen3.8-2.4T-A95B2.4T95B (4%)Routed MoEMulti-node cluster
Kimi K3.1 Pro2.8T104B (3.7%)896 routed (16 active)1.56 TB (MXFP4)

Notice the A55B or A95B naming shorthand we often see on Hugging Face repos (Qwen3.8-2.4T-A95B, Mistral-Large-4-1T-A52B): the first number is total parameters and the A number is active parameters per token.

A concrete example

We can check whether any Hugging Face model is MoE and how many experts it activates by reading its config.json:

curl -sL https://huggingface.co/Amazon-FMR/Ergo/raw/main/config.json | \
  jq '{num_hidden_layers, num_experts, num_experts_per_tok}'

For Amazon Ergo, that prints 64 layers, 256 routed experts, and 8 active experts per token.

When to use the term

Use Mixture of Experts (or total vs active parameters) when comparing open-weight models, sizing GPU hardware for self-hosting, or figuring out why a 1-trillion-parameter model on a hosted API can stream at 400+ tokens per second for a few dollars per million output tokens.

Pitfalls

I never size local RAM or VRAM by active parameters. Even though Amazon Ergo only runs 55B parameters per token, the router can pick any of the 256 experts on the very next token, so all 626 GB of MXFP4 weights still have to stay loaded in memory. A 55B-active MoE model will not fit on a laptop or a single 80 GB GPU.

I also never assume two hosts running the same MoE checkpoint give the same speed. MoE serving depends heavily on expert-parallel routing across GPUs and speculative decoding. In my live Amazon Ergo benchmark, Amazon Bedrock streamed at 405 tokens per second while another OpenRouter host serving the same weights ran at 104 tokens per second.

  • Model weights: Model weights are the learned numbers inside a neural network. Understand how they differ from prompts, model settings, and the tools around a coding agent.
  • Inference: Inference is running a trained model on new input. Learn where coding models run, how inference differs from training, and what a local agent needs.
  • Frontier model: A frontier model is one of the most capable models right now, and the label moves. How Claude Code, Codex, Cursor and Grok name the model they point you at.

All AI glossary entries → · AI for coding hub →

Want me to talk about your product? You can sponsor this site.