Most LLMs use a total-to-active ratio between 8:1 and 16:1, and that band is the closest thing to an optimum that published model designs support. For a 7B-active model, that means 47B to 110B total parameters. Inside that band, the binding constraint is memory, not cleverness. Slimmer ratios waste compute on dense math; fatter ratios inflate the memory bill without buying proportionally better quality per token. This article covers the design levers, the model families that anchor each ratio, and the failure modes that turn a clean ratio into a hardware disaster.

Why the Ratio, Not a Fixed Expert Count, Is the Real Design Lever

Two Mixture-of-Experts models with the same expert count can behave nothing alike. A model with 64 experts and top-2 routing activates 2/64 of its capacity per token; a model with 8 experts and top-2 routing activates 2/8. The ratio β€” total parameters divided by active parameters β€” captures that difference in one number, which is why researchers quote ratios when they compare MoE designs and quote expert counts only as a secondary detail.

The ratio also maps directly to hardware cost. Total parameters determine how much memory the model needs when loaded; active parameters determine the compute per token and, at inference, roughly the throughput ceiling. If you know the target active size and the ratio, you get the total size for free, and the total size tells you which GPUs or which quantization scheme will hold the model. That arithmetic is the whole planning exercise in microcosm.

Published MoE models sit inside a fairly tight band. Mixtral 8x7B activates 12.9B of 46.7B total, a ratio near 3.6:1. Mixtral 8x22B activates 39B of 141B, roughly 3.6:1 again. Qwen's Qwen1.5-MoE-A2.7B activates 2.7B of 14.3B, around 5.3:1. Switch Transformer pushed 1.6T total parameters with only 1.2B active in its largest version, an extreme ratio that traded hardware simplicity for capacity. The spread is real, but the median design converges.

The number of experts matters less than the ratio, with one caveat: too few experts gives each expert too much traffic and routing collapses toward noise; too many experts makes routing harder to learn and adds per-expert overhead. The ratio is the durable design lever. The expert count is how you implement it.

The Anchor Models: Where Every Published Ratio Actually Sits

There's a common misconception that MoE models are all "one model with many experts," like an ensemble. They're not. The router is a learned linear layer that scores every expert for each token, then picks the top-k. The experts are trained jointly with the router; the router's job is to route around the parts of the network that aren't useful for a given token. The switch from dense to MoE changes the capacity story but not the architecture shape.

Mixtral 8x7B is the reference point most tutorials use, and its ratio of roughly 3.6:1 (12.9B active, 46.7B total) is what most people mean by "small MoE." Mixtral 8x22B keeps the same ratio if you scale up: 39B active, 141B total. Qwen's Qwen3-235B-A22B activates 22B of 235B, a ratio just under 11:1. DeepSeek-V3 pushes that further, activating 37B of 671B, roughly 18:1. The trend across model generations is toward higher ratios, driven by memory-optimization techniques like quantization and sparsity.

Model Total params Active params Total-to-active ratio Top-k
Mixtral 8x7B 46.7B 12.9B ~3.6:1 Top-2
Mixtral 8x22B 141B 39B ~3.6:1 Top-2
Qwen1.5-MoE-A2.7B 14.3B 2.7B ~5.3:1 Top-2
Qwen3-235B-A22B 235B 22B ~10.7:1 Top-k (router-selected)
DeepSeek-V3 671B 37B ~18.1:1 Top-k (router-selected)
Switch Transformer (largest) 1.6T 1.2B ~1,333:1 Top-1

Two things stand out. First, most flagship models cluster between 3.6:1 and 11:1. Second, Switch Transformer's ratio is an outlier for a physics reason: top-1 routing pays for each token only once per layer, so a very high ratio keeps compute tractable while memory grows enormously. It's a legitimate design point, not a bug in the ratio theory.

If you're choosing a base model rather than designing one, read the ratio as a memory hint. A 10:1 ratio at 20B active means 200B total, which is roughly 400GB in FP16 β€” server-class only. A 3.6:1 ratio at 12B active means 46B total, which is practical on a single high-end GPU with quantization. The ratio tells you what hardware class you're in before you read a single benchmark.

How the Ratio Changes With Scale, From 7B to Trillion-Parameter Models

Small MoE models tend to use lower ratios, and there's a mechanical reason. At 7B active, a 5:1 ratio gives 35B total, which memory-wise is already at the edge of a single consumer GPU with 8-bit quantization. Push to 10:1 and you're at 70B total β€” multi-GPU territory. So smallMoE models stay between 3:1 and 6:1 because the total size hits a hardware wall before the ratio gets interesting.

Mid-sized models can afford higher ratios. In the 20B-40B active range, a 10:1 ratio (200B-400B total) still fits on an 8-GPU server with quantization. Memory becomes the planning variable, not compute. That's the band where most 2024-2025 flagship MoE models live, and it's why Qwen3-235B-A22B and DeepSeek-V3 sit where they do.

At the trillion-parameter scale, ratios balloon because the total parameter count is the only way to keep sparse capacity growing. Switch Transformer's 1.6T total with 1.2B active is the extreme case, but the ratio is driven by the same logic: with top-1 routing, the compute per token stays fixed while the model's capacity per token grows with the number of experts. Whether that capacity converts to quality is a separate question.

The practical rule: pick the ratio to match the hardware you actually have, not the ratio that sounds most impressive. A 3.6:1 ratio at 12B active is more useful than a 10:1 ratio at 12B active if you only have one GPU. If you're renting an 8-GPU node, the higher ratio buys you quality without paying for compute you don't need.

Matching the Ratio to Your Compute Budget and Memory Wall

Start from active parameters. That number determines your compute per token and, in combination with the ratio, the total memory requirement. A 20B-active model at a 10:1 ratio is 200B total; in FP16 that's 400GB, in 4-bit roughly 100GB. The same 20B-active model at 3.6:1 is 72B total; in 4-bit that's around 36GB, which fits on a single 48GB GPU. The active size is the same, so throughput per token is nearly identical; the memory is not.

Compute budget follows the opposite curve. For a fixed total parameter count, higher ratios mean less active compute per token, which is faster inference but lower per-token quality. For a fixed active size, higher ratios cost more memory but deliver more total capacity. There's no free lunch; the ratio is a dial that trades memory for capacity at constant compute.

Here's the worked calculation for a real planning case:

1: Pick your active target (e.g., 15B). 2: Pick your ratio band (3.6:1 to 10:1 for a 15B active model). 3: Compute total params: 15B Γ— 3.6 = 54B, or 15B Γ— 10 = 150B. 4: Compute memory: 54B Γ— 2 bytes (FP16) = 108GB, or 54B Γ— 0.5 bytes (4-bit) = 27GB; 150B in 4-bit is 75GB. 5: Check the hardware: 27GB fits on an A6000 (48GB) or two 24GB cards with tensor parallelism; 75GB needs four 24GB cards or one 80GB H100. 6: Choose the ratio your hardware supports. If the 10:1 model needs four cards you don't own, the 3.6:1 model is the correct answer.

The failure case here is real. A team I know of planned a 10:1 ratio at 30B active β€” 300B total β€” assuming "we'll quantize." The quantization brought it to 150GB, still too big for their four-GPU node, and they had to retrain at a lower ratio before serving. The ratio decision is a memory budgeting decision made before you train.

If your active target is fixed and your GPU count is fixed, the ratio is forced. Work it backwards from the memory ceiling, not forwards from the ratio you like.

The Failure Mode: What a Bad Ratio Actually Costs in Money and Quality

The worst-kept secret in MoE planning is that a fatter ratio doesn't guarantee better quality. Switch Transformer's own paper reported that the 1.6T model's gains over smaller models shrank as the ratio grew; the capacity-to-quality curve flattens. What you pay for in a high ratio is memory and the engineering cost of making the router route usefully at scale.

Memory cost is the blunt one. A 4-bit quantized 10:1 model at 20B active is 100GB; at 3.6:1 it's 36GB. The extra 64GB of GPU memory, at typical cloud rental prices, is a material recurring cost. If the higher-ratio model isn't producing measurably better outputs for your workload, you're paying memory rent for nothing.

Quality cost on the other side: a ratio that's too low (under 2:1) leaves very little total capacity relative to active compute, and the model loses the sparse capacity advantage that MoE was supposed to provide. The router still has to learn something, and with too few parameters spread across too many experts, the routing signal gets thin. In practice, ratios below 2:1 look like dense models with extra routing overhead β€” the wrong end of the trade.

The edge case is top-1 routing. If your router picks a single expert per token, you can push the ratio very high (Switch Transformer reached ~1,333:1) because compute per token stays at one expert's worth. Top-2 or top-k routing multiplies the effective active compute per token, so the same ratio costs more. The ratio you can afford depends on k, and the ratio you should choose depends on whether k is fixed by your router design. Top-1 routing permits extreme ratios; top-2 and above push the usable band back toward 3.6:1 to 16:1.

The practical takeaway: a bad ratio shows up as either a memory bill you can't justify or a model that behaves like a dense model wearing a fancier name. Either way, the ratio is the wrong place to have economized.

Expert Granularity: Why 8 Experts at Ratio 10 Looks Different From 64 Experts at Ratio 10

Two models with the same ratio but different expert counts can behave very differently. Consider a 10:1 ratio at 10B active: 100B total. With 8 experts and top-2 routing, each expert holds ~12.5B parameters. With 64 experts and top-2, each expert holds ~1.5B. The 64-expert model has a finer-grained routing decision, and in principle better specialization β€” but the router has to learn to discriminate among 64 options instead of 8.

Mixtral's 8-expert design and Qwen3's 128-expert design both use top-2 routing, but the effective ratio tells you the total size, not the granularity. Mixtral 8x7B's ~3.6:1 ratio comes from 8 experts at ~12.5B total each with about 12.9B active. Qwen3-235B-A22B's ~10.7:1 ratio comes from 128 experts at ~1.8B each with 22B active. The ratios differ, but so does the expert granularity; you can't infer granularity from the ratio alone.

Expert count does have a memory bandwidth cost. More experts means more weight matrices to load from memory per token, even if only two are used, because the router's top-k selection changes per token and the weight-loading pattern is less predictable. For a fixed ratio, more experts is usually slightly slower at inference unless the runtime has been optimized for sparse weight loading.

The rule of thumb: choose expert granularity so each expert is large enough to learn useful specializations. For most workloads, that means 1B-15B total parameters per expert. Below 1B, expertise tends to dissolve into noise; above 15B, the router gets one big expert per token and high granularity becomes moot. The ratio tells you the size trade; the expert count tells you the granularity trade; you have to choose both.

Training Dynamics: When the Ratio Is Set and When It Can Drift

The ratio is fixed at training time by the architecture β€” expert count times per-expert size, divided by active selection. You can't change it after training by rewiring the router; the expert weights were trained to be selected together, and changing which experts activate will break the model. This is why the ratio decision is so consequential: it's irreversible once the training run starts.

Expert load balancing is the reason the ratio can't be chosen purely on paper. The router will tend to overload a few experts unless balanced, and the balance mechanism (auxiliary load-balancing loss, or capacity-based routing) effectively determines which experts get used. If the loss pushes toward uniform routing, more experts distribute load more evenly; fewer experts concentrate it. In practice, load-balancing behaves differently at 8 experts than at 64, and the ratio interacts with that balance.

A model designed at a 3.6:1 ratio and trained with top-2 routing will stay near that ratio. A model trained with a top-1 router and then adapted to top-2 will behave as a denser model than its ratio suggests, because the active compute doubled while the total stayed fixed. Ratio changes after training are effectively re-architecture, not tuning.

If you're fine-tuning an existing MoE, the ratio is a given. You can adjust top-k, quantization, and serving strategy, but the ratio is baked in. That's why choosing the right base model matters more than choosing the right hyperparameters: the ratio is the one knob you can't turn after the weights exist.

Choosing by Use Case: Single-GPU, Embedded, and Server Deployments

The ratio you want depends on where the model runs, and the three common deployment contexts have different answers.

Deployment Typical GPU memory Practicable active size Ratio window Watch out for
Single consumer GPU 16-48GB 7B-13B 3:1 to 5:1 Quantization to 4-bit becomes mandatory above 40B total
Small server (2-4 GPUs) 96-192GB 15B-30B 5:1 to 10:1 Tensor parallelism overhead; routing latency across GPUs
Large server (8+ GPUs) 640GB+ 30B-70B 8:1 to 16:1 Interconnect bandwidth; expert weights must be sharded carefully

For a single consumer GPU, a 3.6:1 ratio at 12B active is the sweet spot. It fits in 4-bit on a 24GB card, and inference speed is close to dense. Higher ratios at the same active size blow the memory budget; lower ratios leave capacity on the table. The failure case is an 8:1 ratio at 13B active pushing 104B total and forcing a multi-GPU setup for a model you wanted to run locally.

For embedded or edge deployment, the answer is more conservative than most tutorials admit. A 7B-active model at a 3.6:1 ratio is 25B total, which is still too big for most embedded memory. The real embedded MoE play is under 10B total, meaning a 2B-3B active model at a 3:1-4:1 ratio. Anything fatter stops being embedded hardware and starts being a server.

For server deployments, ratios in the 8:1 to 16:1 range are common because the memory is there. DeepSeek-V3's ~18:1 ratio at 37B active is a server-class design. A team rebuilding a flagship-class model on 8 H100s can afford a ~10:1 ratio at 20B-30B active. A ratio of 16:1 or above should trigger a memory check: 20B active Γ— 16 = 320B total, which in 4-bit is 160GB and fits only on a well-provisioned node.

The Calculation in Practice: A Worked Ratio Decision

Start from the workload, not the ratio. Suppose you have a 24GB GPU and want a chat model that runs locally with acceptable latency. The latency budget gives you an active parameter target: 12B active is the practical ceiling at 4-bit on 24GB, allowing room for KV cache and overhead. That's the first constraint.

Next, the total parameter ceiling. A 24GB card with 4-bit quantization holds about 48B total parameters (24GB divided by 0.5 bytes per parameter, minus overhead for activations and KV cache). The realistic ceiling is 30B-36B total. A 3.6:1 ratio at 12B active gives 43B total β€” slightly over budget. A 3:1 ratio at 11B active gives 33B total β€” inside budget. The arithmetic forces a 3:1 ratio at a slightly lower active size.

Test the ratio choice against the tokens-per-second target. At 4-bit, a dense 11B active model on a 24GB card typically produces 20-40 tokens per second depending on the GPU generation (check the maker's spec sheet for your card; the range is broad and hardware-specific). The MoE's inference cost is dominated by active parameters, not total, so the ratio choice doesn't change throughput much β€” it changes whether the model fits.

The failure case: a team picks a 5:1 ratio at 12B active (60B total) assuming quantization will save them, gets 30GB in 4-bit, and finds the model doesn't fit on their 24GB cards. They then either upgrade hardware (capital cost) or drop to a lower-active model (quality cost). The ratio arithmetic, done before training, would have caught it.

A reasonable band for local deployment is 3:1 to 5:1. For small servers, 5:1 to 10:1. For flagship-class servers, 8:1 to 16:1. The band is a heuristic, not a law, but it's derived from the memory arithmetic that determines what will actually run.

FAQ

What is the optimum number of MoE for a given LLM?

There's no single number β€” the ratio of total to active parameters is the design lever, and most published MoE models cluster between 3.6:1 and 16:1. Mixtral 8x7B sits near 3.6:1, Qwen3-235B-A22B near 10.7:1, and DeepSeek-V3 near 18:1. The optimum is the ratio your hardware can hold at the active size your latency budget allows.

Is more experts always better?

No. At a fixed active size, more experts adds granularity but not necessarily quality, and it makes inference slower at the same ratio because more weight matrices must be loaded per token. Below 1B total parameters per expert, expert specialization tends to dissolve into noise. Granularity is worth choosing deliberately but shouldn't be maxed out for its own sake.

Why do Mixtral and DeepSeek have such different ratios?

Mixtral 8x7B uses a 3.6:1 ratio at a smaller total size (46.7B) with 8 experts, targeting a deployment class where a lower ratio fits more hardware. DeepSeek-V3 uses an ~18:1 ratio at a massive total size (671B) with 256 experts, targeting server-class deployment where the memory exists. The ratio difference reflects the deployment tier, not a disagreement about MoE theory.

Can the ratio be changed after training?

No. The ratio is set by the architecture and the expert weights that the router was trained to select. Rewiring the router after training breaks the learned selection, and increasing active experts changes the model's effective density. Ratio changes are re-architecture, not tuning, which is why choosing a base model at the right ratio matters more than tweaking hyperparameters.

What ratio is best for a 7B-active model?

Aim for 3:1 to 5:1 β€” roughly 21B to 35B total parameters. A 3.6:1 ratio gives 25B total, which fits in 4-bit on a 24GB card. Higher ratios push the total toward 70B and beyond, which is a multi-GPU deployment. The 7B-active target is a local-deployment constraint, and the ratio should follow the memory, not the other way around.

Does top-1 routing allow a higher ratio?

Yes. Top-1 routing activates one expert per token, so the compute per token stays fixed as the total parameter count grows. That's why Switch Transformer could reach a ~1,333:1 ratio at 1.6T total with 1.2B active. Top-2 and top-k routing activate more experts per token, which raises the effective active size and pulls the workable ratio back toward the 3.6:1-16:1 band.

What's the cheapest ratio to deploy?

The one that fits the hardware you already own. A 3:1 ratio at a smaller active size is cheaper than a 10:1 ratio at the same active size, because the total memory footprint is roughly a third. The saving is in memory, not compute β€” throughput per token is similar for the same active count β€” which makes the ratio a memory cost decision more than a compute cost decision.