Mixture of Experts Explained: Why MoE Models Need So Much VRAM

A Mixture of Experts (MoE) model splits its feed-forward layers into many smaller “expert” networks and uses a router to run only a few of them for each token. That is why DeepSeek-V3 can carry 671 billion parameters yet use only about 37 billion per token. The catch, and the focus of this guide, is memory: compute scales with the experts you use, but MoE VRAM requirements scale with every expert you load.

Headline parameter counts make for good launch posts, but they hide this trade-off. This guide works from the published technical reports and model cards of open MoE models (DeepSeek-V3, Mixtral 8x7B, OpenAI’s gpt-oss, and OLMoE) rather than vendor marketing, because these are the models whose total and active parameter counts are actually disclosed.

The pattern across them is consistent. The engineering win is sparse compute; the infrastructure cost is the memory needed to keep inactive experts loaded, plus the work of keeping the router’s load balanced across experts and GPUs.

Dense vs. Sparse Architecture: The Execution Shift

To understand why a Mixture of Experts (MoE) model architecture is necessary, look at how traditional transformers function. Early foundational systems were dense models. In a dense setup, every single parameter is activated for every single token processed. If a model has 100 billion parameters, all 100 billion execute calculations to generate a comma, a code snippet, or a poem.

An MoE model alters this pipeline by replacing standard, monolithic Feed-Forward Networks (FFNs) with a series of smaller, specialized sub-networks called “experts.” Each token still passes through every layer, but inside each MoE layer only the experts chosen by the router do any work. This is called sparse activation.

When a token reaches an MoE layer, a small gating network (the router) scores every expert and keeps only the top k. The value of k varies by design: Switch Transformer used one expert, Mixtral uses two of eight, gpt-oss uses four of 128, and DeepSeek-V3 uses eight of 256 routed experts plus one shared expert. Unselected experts get a routing weight of zero, so they are not computed for that token. This decouples a model’s total capacity from its compute cost per token.

MoE VRAM Requirements vs. Dense Models

This table breaks down the computational and physical trade-offs encountered when moving from a monolithic architecture to a sparse network.

Architectural MetricMonolithic Dense ModelSparse Mixture of Experts (MoE)
Parameter Activation100% of parameters active per token.Only router-selected experts plus shared layers run (about 3% to 28% of total parameters in well-known open models).
Compute Cost Per TokenScales linearly with total parameter size.Low; bounded by the size of the active experts.
VRAM Memory RequirementEquals total parameter size, since every weight is activeMassive; must hold all active and inactive experts simultaneously.
Primary System BottleneckCompute at large batch sizes; memory bandwidth during low-batch decodingVRAM capacity first, plus cross-GPU communication when experts are split across devices.

Why MoE Models Need So Much VRAM: Expert Parallelism

Sparse activation cuts the floating-point operations (FLOPs) needed per token, but it does not shrink the model in memory. The router can pick any expert for the next token, so inactive experts normally stay resident in GPU memory. Inference engines can offload idle experts to CPU RAM or even SSD to save VRAM, but every time an offloaded expert is needed it has to be fetched first, which adds latency.

As a result, an MoE model needs GPU memory for its total parameter count, not its active count. To make these systems viable at scale, enterprise teams rely on expert parallelism. This strategy divides the specialized expert networks across multiple physical GPUs. When a token enters the system, the gating network must handle precise token allocation, routing data paths across high-speed interconnects to whichever specific GPU houses the target expert.

Two published examples show the gap. Mixtral 8x7B has 46.7 billion total parameters but only about 12.9 billion active per token, yet all 46.7 billion must be loaded. OpenAI’s gpt-oss-120b activates about 5.1 billion of its 116.8 billion parameters per token and fits on a single 80 GB GPU mainly because its expert weights ship in a 4-bit format, leaving a checkpoint of about 61 GiB. Quantization, which I cover in the 70B precision trade-off, is the main lever for shrinking that footprint.

Flow diagram of an MoE layer: a router sends each token to a few active experts while idle experts stay loaded in VRAM

According to an architectural guide published by Red Hat on Mixture of Experts, MoE models save compute through sparsity, but every expert still occupies hardware, which raises memory needs and cost. Expert parallelism also inherits the load-balancing problem: if the router sends too many tokens to experts on the same GPU, that device becomes a bottleneck while the others sit underused.

Behind the Curtain: Training Stabilization and Router Failures

Training an MoE model is fundamentally harder than training a dense model because you are attempting to optimize a moving target. The router and the individual experts must learn how to cooperate simultaneously. Without tight structural guardrails, the training process inevitably runs into two systemic failure modes:

  • Expert Collapse: This occurs due to a self-reinforcing feedback loop during early training. If the router picks a specific expert slightly more often, that expert becomes better at processing tokens. The router then rewards it with more data, causing a few experts to become heavily overburdened while the remaining networks stay completely undertrained.
  • Catastrophic Forgetting: Fine-tuning any large model on new data can erase what it learned before. MoE models add an extra path to this risk: if fine-tuning shifts the router, tokens can start reaching different experts than before, disrupting the specialization those experts built during pretraining.

To combat these issues, most MoE models add an auxiliary load-balancing loss to the training objective. The Switch Transformer paper describes the standard form: the penalty is smallest when tokens are spread evenly, so the router is pushed away from favoring a few experts.

Newer models are moving past this. The DeepSeek-V3 technical report notes that a strong auxiliary loss can hurt model quality, so it balances load mainly by adjusting a bias term for each expert during routing and keeps only a very small sequence-level balance loss. Its successor, DeepSeek-V4, released in April 2026 with V4-Pro at about 1.6 trillion total and 49 billion active parameters, applies the same scaling logic at a far larger size.

Routing also never settles into a fixed path. Because experts are chosen per token, a long agentic session that mixes code, tool output, and natural language can send consecutive tokens to very different experts, and at serving scale that means the traffic between GPUs keeps shifting. Measure expert load on your own workload rather than trusting averages.

Frequently asked questions

What is a Mixture of Experts (MoE) model?

A Mixture of Experts model is a neural network whose feed-forward layers are split into many smaller expert networks. A router picks a few experts for each token and skips the rest, so the model can hold far more parameters than it uses at any one step. DeepSeek-V3, Mixtral, and gpt-oss all use this design.

Why do MoE models need so much VRAM?

Because the router can choose any expert for the next token, all experts normally stay loaded in GPU memory, even though only a few run at once. Memory therefore scales with total parameters, while compute scales with active parameters. Offloading idle experts to CPU RAM saves VRAM but adds a transfer delay whenever an offloaded expert is needed.

What is the difference between total and active parameters?

Total parameters count every weight in the model, including all experts. Active parameters count only the weights used for one token: the shared layers plus the selected experts. Mixtral 8x7B has 46.7 billion total and about 12.9 billion active parameters, so it computes like a mid-sized model but needs memory for a large one.

What is expert collapse in MoE training?

Expert collapse happens when the router keeps favoring a few experts early in training, so they improve and get chosen even more while the rest stay undertrained. Most MoE models prevent it with an auxiliary load-balancing loss. DeepSeek-V3 instead adjusts per-expert routing biases and keeps only a very small balance loss.

Can you run an MoE model on a single GPU?

Sometimes. OpenAI’s gpt-oss-120b fits on a single 80 GB GPU because its expert weights ship in a 4-bit format, and gpt-oss-20b runs within 16 GB. Larger models such as DeepSeek-V3 need several GPUs or heavy offloading, because their full set of experts is far bigger than one card’s memory.

The Reality of Scaling Intelligence

Evaluating the shift toward a Mixture of Experts architecture requires looking past marketing claims of trillion-parameter models. The actual value of an MoE system lies in its operational efficiency—its ability to selectively engage specific segments of a model based on the task at hand.

Adopting MoE shifts the main constraint from compute to memory and communication. If you plan to deploy one of these models, budget VRAM for the total parameter count, decide early between multi-GPU expert parallelism, quantization, or expert offloading, and monitor how evenly the router spreads load across experts. For more on running models efficiently, see the rest of the AI Insight series.

Disclaimer: The information provided in this article is for educational and general informational purposes only and should not be construed as professional advice (such as legal, medical, or financial). While the author strives to provide accurate and up-to-date information, no representations or warranties are made regarding its completeness or reliability. Any action you take based on this information is strictly at your own risk.

Comments are closed.