Last updated: December 2, 2026
A mixture-of-experts (MoE) model splits most of its layers into many smaller sub-networks, called experts, and sends each token through only a few of them. That is why Amazon Ergo has 1.1 trillion parameters in total but uses only about 55 billion, roughly 5 percent, for any single token.
MoE gives a model the knowledge capacity of a very large network with the per-token compute cost of a much smaller one. The trade-off is memory: all the experts still have to be loaded.
Each MoE layer has a small router network. For every token, the router scores the experts and picks the top few. In Ergo, each of the 63 MoE layers has 256 routed experts plus one shared expert that every token uses. The router picks 8 routed experts per token, so 9 experts do the work and 247 sit idle for that token.
Different tokens pick different experts, so over a long text the whole network gets used.
| Model | Total parameters | Active per token |
|---|---|---|
| Amazon Ergo | 1.1T | 55B |
| Kimi K3.1 Pro | 2.8T | 104B |
| DeepSeek V4-Pro | 1.6T | 49B |
| Muse Spark Open | 816B | 42B |
| gpt-oss-120b | 117B | 5.1B |
Active parameters drive compute per token, and so speed and serving cost. Total parameters drive memory: Ergo’s smallest checkpoint is still 626 GB.
Because only a fraction of the weights work on each token, an MoE model generates text faster than a dense model of the same total size. Ergo pairs this with sliding-window attention, where three of every four layers look only at the last 512 tokens and every fourth layer looks at the full context, which cuts the cost of long inputs.
Think of a dense model as one generalist who reads every question in full and answers it alone. A mixture-of-experts model is more like a large firm with hundreds of specialists and a receptionist. Each question goes to the receptionist (the router), who passes it to a handful of the most relevant specialists, while one generalist (the shared expert) reviews every question. The firm knows far more than any one person, but each question only takes up a few people’s time.
The catch is that the whole firm has to be in the building, even if most people are idle at any moment. In model terms, every expert has to be loaded into GPU memory.
The idea of mixing expert networks dates back to the early 1990s. Google brought it to large language models with sparsely gated MoE layers in 2017 and the Switch Transformer in 2021. Mistral’s Mixtral popularized open MoE models in late 2023, and DeepSeek’s V2 and V3 models pushed the design further with many small experts plus shared experts.
By 2026, nearly every frontier open model uses MoE, including Amazon Ergo, Kimi K3.1 Pro, DeepSeek V4, Qwen3.8’s flagship, Muse Spark Open and Mistral Large 4.
| Dense model | Mixture-of-experts | |
|---|---|---|
| Compute per token | All parameters | Active parameters only |
| Memory needed | Total parameters | Total parameters |
| Speed at the same total size | Slower | Faster |
| Training complexity | Simpler | Needs load balancing |
| Fine-tuning | Straightforward | Often adapter-based |
| Example | Gemma 4 31B, Qwen3.8-27B | Amazon Ergo, Kimi K3.1 Pro |
MoE is one of several design choices that make Ergo practical. Its sliding-window attention limits most layers to the most recent 512 tokens. Amazon ships quantized checkpoints in MXFP4 and MXFP8, which shrink memory needs. A 3.24 billion parameter DSpark draft model enables speculative decoding, guessing several tokens ahead for the big model to confirm in one step. And on AWS, the Trainium3SR system splits prompt processing and token generation across different chips, which powers Ergo’s Turbo mode. Read more in Trainium3 vs Nvidia.
For concrete numbers, see Ergo on Bedrock vs self-hosting and our single-GPU model list.
| Spec | Value |
|---|---|
| Total parameters | 1.1 trillion |
| Active per token | 55 billion |
| Layers | 64 (1 dense, 63 MoE) |
| Routed experts per MoE layer | 256 |
| Experts chosen per token | 8 routed plus 1 shared |
| Attention | Sliding window of 512 tokens on three of every four layers, full attention on the fourth |
| Context window | 1,048,576 tokens |
| Maximum output | 131,072 tokens |
Not automatically. Ergo’s benchmark table on Hugging Face shows Kimi K3.1 Pro, with about twice the active parameters, leading most public benchmarks, while Ergo leads Amazon’s internal FMR-Bench and FrontierSWE v2. Smaller-active models such as DeepSeek V4.1 Flash, with 8 to 16 billion active, still score near the top of open leaderboards. Data quality, training methods and post-training for agentic work matter as much as raw size.
Because each token may use experts spread across many GPUs, MoE serving engines split experts across devices (expert parallelism) and move tokens to the right GPU. That makes fast interconnects important. It also explains why tools such as vLLM and SGLang add model-specific support for each new MoE architecture, and why Amazon worked with both to support Ergo from day one.
Training an MoE model adds problems that dense models do not have. If the router sends most tokens to a few favorite experts, the others never learn and the GPUs that hold them sit idle. To prevent this, labs add load-balancing terms to the training objective or adjust routing so tokens spread across experts. Shared experts, like Ergo’s, give every token a common path for general knowledge, which lets routed experts specialize further.
MoE training also needs careful distribution across many accelerators, because experts live on different devices and tokens must move between them. This is a major reason why only well-funded labs train trillion-parameter MoE models.
| Model | Total | Active | Origin |
|---|---|---|---|
| Amazon Ergo | 1.1T | 55B | US |
| Kimi K3.1 Pro | 2.8T | 104B | China |
| Qwen3.8 flagship | 2.4T | 95B | China |
| DeepSeek V4-Pro | 1.6T | 49B | China |
| Mistral Large 4 | About 1.05T | About 52B | France |
| Muse Spark Open | 816B | 42B | US |
| DeepSeek V4.1 Flash | 552B | 8B to 16B | China |
| Nemotron 3.5 Super | 120B | 12B | US |
Dense models remain popular below about 30 billion parameters, where their simplicity and easy fine-tuning win, as with Gemma 4 31B and Qwen3.8-27B. Above that size, nearly every recent open release is MoE, because the efficiency gains are too large to ignore. Expect that split to continue.
Ergo pairs its MoE design with speculative decoding. A small 3.24 billion parameter draft model, called DSpark, guesses several upcoming tokens. The full model then checks those guesses in one pass, accepting the ones it agrees with. Because checking several tokens at once costs about the same as generating one, accepted guesses come almost free. This works with dense models too, but it is especially useful for MoE models, where each forward pass involves moving tokens between experts across GPUs.
The result for users is faster output with no change in quality, because the full model still decides every token.
Coding agents make many calls, each generating hundreds or thousands of tokens. A model with low active parameters keeps each call fast and cheap, which lets an agent try more fixes and run more tests in the same time and budget. That is the practical reason labs building coding models, from Amazon to Moonshot and DeepSeek, have converged on MoE: it lets them offer frontier capacity at prices agents can afford to call hundreds of times a day.
When you compare models for agents, look at output speed and output price together. Ergo’s combination of 55 billion active parameters, more than 400 tokens per second on Bedrock and $3 per million output tokens is a direct result of these design choices.
Mixture-of-experts models store a lot of knowledge but only use a small part of it for each token. That makes them fast and affordable to run per token, but heavy to host because all experts must sit in memory. Ergo uses 55 billion of its 1.1 trillion parameters per token, with 8 of 256 routed experts plus a shared expert in each layer. When comparing models, read active parameters as a guide to speed and cost, total parameters as a guide to hardware, and benchmarks on your own tasks as the guide to quality.
When comparing models, look at both numbers. Active parameters predict speed and token price; total parameters predict the hardware you need to self-host. Our open-weight coding models list shows both for each model.
This explainer uses architecture details from Amazon’s Ergo model card and the published configurations of other open models. Read more about our research process.
It is a model whose layers contain many expert sub-networks, with a router that sends each token through only a few of them, so only part of the model runs per token.
Its router selects 8 of 256 routed experts, plus one shared expert, in each MoE layer for every token, which adds up to about 55 billion active parameters.
Per token, yes, because compute depends on active parameters. But they still need enough memory to hold all parameters, so hardware costs remain high for self-hosting.
An expert that every token passes through, alongside the routed experts. Ergo has one shared expert per MoE layer.
Closed labs rarely publish architecture details, so it is not confirmed for most closed models. Most leading open models use MoE.
Every expert must be ready in case the router picks it, so the full set of weights stays loaded even though only a few run per token.
Eight routed experts plus one shared expert in each MoE layer, out of 256 routed experts per layer.
Not inherently. Well-trained MoE models match or beat dense models of similar compute cost. Quality depends on data, training and post-training more than on the architecture alone.
Many smaller models are dense, including Gemma 4 31B, Qwen3.8-27B, Muse Glimmer 30B and OLMo 3.1 32B.
Because the file holds all 1.1 trillion parameters. Every expert must be stored and loaded, even though each token only uses a few.
Mixture-of-experts is how open models like Ergo, Kimi and DeepSeek reach trillion-parameter scale while staying fast. Read active parameters as a guide to speed and cost, and total parameters as a guide to the hardware you will need.