Why a Large Sparse Model Can Run Faster Than a Small Dense One

Open model names have grown suffixes that confuse newcomers. A model is described as 35B with A3B, or 120B with A12B, and people trying to set one up on their own NVIDIA hardware ask sensible questions. Does it need memory for 35 billion parameters or for 3? Why does it generate faster than a dense model a third its size? And is it really as smart as its total size suggests?
These are mixture-of-experts models, and the second number is the count of active parameters: the weights actually used to compute each token. Understanding the difference between total and active parameters is now essential for choosing a model and hardware, because the two numbers drive different resources.
This article explains how mixture-of-experts works in practical terms, what each number tells you about memory, speed and quality, how these models behave on different hardware, and what to watch for when you run one.
Frequently asked questions
What is a mixture-of-experts model?
It is a model where some layers contain many parallel sub-networks, called experts, and a small router picks a few of them for each token. Only the selected experts run, so each token uses a fraction of the model's total weights.
What do total parameters measure?
Total parameters count every weight in the model, including all experts. This number decides how much memory you need to store the model, because any expert might be chosen for the next token.
What do active parameters measure?
Active parameters count the weights used for a single token: shared layers plus the experts the router selected. This number mostly decides compute per token and, for single-user generation, how many bytes must be read from memory per step.
How does a sparse model differ from a dense one in speed?
A dense model reads all its weights for every token. A sparse model reads only active weights, so generation can be much faster than a dense model of the same total size and often comparable to a dense model the size of its active parameters.
Is a sparse model as capable as a dense model of the same total size?
Usually not quite. A common rough intuition is that a mixture-of-experts model performs somewhere between a dense model of its active size and one of its total size. Training quality matters a lot, so compare models on your own tasks.
Which hardware suits sparse models best?
Systems with plenty of memory but moderate bandwidth, such as large unified-memory machines, benefit most. They can hold the full model, and the small active set keeps generation speed acceptable.
Can part of a sparse model live in system RAM?
Yes. Some engines can keep expert weights in system memory and shared layers on the GPU. Because only a few experts are read per token, the slowdown is smaller than with a dense model offloaded the same way.
How routing works in plain terms
Picture a large office with many specialists. When a question arrives, a receptionist reads it and sends it to two or three relevant specialists instead of the whole staff. The office has a lot of expertise in total, but each question only takes a few people's time.
In a mixture-of-experts model, the receptionist is a small router network inside each expert layer, and the specialists are feed-forward blocks. For each token, the router scores all experts and activates the top few. Attention layers and some shared components run for every token, as in a dense model.
Experts are not topic specialists
Despite the name, experts rarely map to human topics like "maths" or "history". They specialise in patterns the training process found useful, which often look arbitrary. The benefit comes from capacity, not from neat categories.
Shared experts
Some designs include one or more experts that every token uses, alongside routed ones. They hold common knowledge, while routed experts add specialised capacity. Shared experts count toward active parameters.
Reading the names
Model names often combine the two numbers. A label such as 35B-A3B means about 35 billion total parameters with about 3 billion active per token. A label like 120B-A12B means 120 billion total with 12 billion active. Not every release uses this format, so check the model card for both figures.
When only one number is given, it is usually the total. A sparse model described only by its total size can look intimidating; a glance at the active count shows whether it will be quick on your hardware.
Ratios tell the story
A model with roughly a tenth of its parameters active is very sparse and should generate quickly relative to its size. A model with a third active is closer to dense behaviour.
- Total parameters: what you must store.
- Active parameters: what you compute and read per token.
- Number of experts and experts per token: how sparse the model is.
- Context length and attention type: how large the KV cache grows.

Memory: total parameters rule
Because any expert can be needed for the next token, all of them must be available. For full-speed inference, that means the whole model in GPU or unified memory. A 35B sparse model at 4-bit needs about as much memory for weights as a 35B dense model at 4-bit.
That surprises people who expect sparse models to be small. They save compute and bandwidth, not storage. The article on fitting a model to your hardware shows how to estimate the full memory budget, including cache.
Expert offloading
Some engines let you keep experts in system RAM and load selected ones on demand, or keep the most frequently used experts on the GPU. This makes large sparse models usable on modest GPUs, at a cost in speed that depends on PCIe bandwidth and how often the active experts change.
Quantizing experts
Expert weights are often quantized more aggressively than attention layers, because they make up most of the size. Model publishers and community converters frequently offer mixed-precision versions that use this trick.
Speed: active parameters rule
For one user, generation speed is roughly memory bandwidth divided by bytes read per token. A sparse model reads only active weights plus shared layers, so a 35B-A3B model can generate several times faster than a dense 35B model on the same hardware, all else being equal.
That is why people running agents on unified-memory boxes often choose sparse models. The box holds the full model, and the small active set keeps generation brisk enough for interactive work.
Batching is less efficient
With many users at once, different tokens choose different experts, so a batch touches more of the model than a single stream. Throughput still grows with batching, but less smoothly than with dense models.
Prompt processing behaves differently
During prefill, many tokens are processed together and collectively touch most experts. Prefill cost tracks active compute per token, but memory traffic grows toward the full model size, so the speed advantage over dense models is smaller in that phase. The prefill explainer covers this phase in detail.

Quality: somewhere in between
Sparse models get extra knowledge capacity from their total size while paying compute only for the active part. In practice, a well-trained sparse model often beats a dense model of its active size by a clear margin, while falling short of a dense model of its total size.
That rule of thumb has many exceptions. Training data, training length, fine-tuning and quantization matter as much as architecture. Treat parameter counts as a starting filter and decide with your own prompts.
Fine-tuned versions add another variable. Community fine-tunes of sparse models sometimes adjust only some layers or experts, and the effect on routing is hard to predict. A fine-tune that is excellent for creative writing may be weaker at code, or the reverse. When you compare a base sparse model with a fine-tune, use the same quantization and the same prompts so that the comparison isolates the training change rather than the conversion.
Reasoning and long tasks
Some users find small-active models less consistent on long multi-step reasoning than dense models of similar total size. Others see no difference for their work. Run your hardest prompts before committing.
Running a sparse model well
Users sharing their setups for a sparse model on a single AI box typically tune a few settings: a quantization that leaves room for context, a maximum model length that matches their real needs, a GPU memory utilisation limit, and prefix caching for agent workloads. Those choices apply to any engine.
A few points are specific to mixture-of-experts. Make sure your engine version has optimised kernels for the architecture; early support is sometimes slower than later releases. Check whether the engine supports the model's routing details, such as shared experts. And watch memory usage during long runs, since expert caches and the KV cache compete for the same pool.
Re-test after engine updates
Performance for new sparse architectures often improves meaningfully in the weeks after release, as kernels are optimised. Updating the engine image can raise generation speed without any change to your model.
Watch for routing imbalance
Some quantized conversions or fine-tunes shift router behaviour. If quality drops sharply after quantization, try a different conversion before blaming the base model.
# illustrative vLLM launch for a sparse model on one GPU or unified-memory box
vllm serve <org>/<sparse-model> \
--max-model-len 32768 \
--gpu-memory-utilization 0.85 \
--enable-prefix-caching \
--max-num-seqs 8
Which hardware suits which model type
A simple guide follows from the two numbers. If you have fast memory but limited capacity, such as a single consumer GPU, a dense model that fits completely often gives the best results. If you have lots of capacity but modest bandwidth, such as a unified-memory box, a sparse model with few active parameters makes better use of it.
Multi-GPU systems sit in between. They can run large dense models with tensor parallelism and large sparse models with expert parallelism, depending on interconnect speed. The comparison of bandwidth against capacity looks at this trade from the hardware side.
Laptops and small cards
With limited VRAM and decent system RAM, sparse models with experts offloaded to RAM can be a pleasant surprise. Speed will not match a desktop, but larger total capacity becomes accessible.
Trying a mid-sized model without setup
If you want to feel what a mid-sized open-weight model can do before configuring a sparse one locally, a hosted endpoint is a quick way. The keyless API on this site serves free-ai, an independent open-weight model of about 35B parameters, over an OpenAI-compatible interface at https://api.apifreenvidia.com/v1.
It is not an NVIDIA model, and APIFreeNVIDIA is not affiliated with NVIDIA. Treat it as a reference point for answer quality in that size range, not as a benchmark of how a specific sparse model will behave on your machine. Commercial frontier models remain clearly stronger on complex reasoning and multimodal tasks.
Compare like with like
When comparing a local sparse model against any hosted model, use the same prompts, system message and sampling settings. Differences in defaults explain many surprising results.

Send a prompt from the chat box on the home page: no key, no account and no card, just a quick look at how free-ai answers.