Local LLM Deployment: Choosing Between Dense and MoE Architectures
More developers now want to run large language models locally instead of relying entirely on hosted APIs. Once available VRAM is capped at something like 16 GB, a familiar puzzle appears: a model with a larger *total* parameter count can generate tokens faster than a model with fewer parameters, and can also produce better Chinese output. From this, people conclude that "parameter count doesn't matter" or that "models built in China can't be any good." Those conclusions usually rest on a misunderstanding of model architecture. To make a rational choice, two things have to be settled first: **how a model's parameters are organized**, and **what actually constrains inference performance**.
1. The starting point: the “parameter paradox” on consumer GPUs
More developers now want to run large language models locally instead of relying entirely on hosted APIs. Once available VRAM is capped at something like 16 GB, a familiar puzzle appears: a model with a larger total parameter count can generate tokens faster than a model with fewer parameters, and can also produce better Chinese output. From this, people conclude that “parameter count doesn’t matter” or that “models built in China can’t be any good.”
Those conclusions usually rest on a misunderstanding of model architecture. To make a rational choice, two things have to be settled first: how a model’s parameters are organized, and what actually constrains inference performance.
2. How the two architectures differ
Dense
A dense model activates all of its parameters for every token it generates. Both its VRAM footprint and its compute cost scale directly with the total parameter count. The structure is simple and the inference path is predictable.
Sparse (Mixture of Experts, MoE)
A sparse model splits the feed-forward layers into several “expert” subnetworks and adds a routing (gating) mechanism. For each token, the router selects only a few experts to compute with. As a result, two numbers matter:
- Total parameters: determine how much VRAM is needed to load the weights;
- Activated parameters: determine how much computation actually runs per token.
This is exactly where the “parameter paradox” comes from. A MoE model may have several times the total parameters of a dense model while activating only a small fraction of them on each step, which creates the appearance of “huge model, cheap inference.”
3. What actually constrains performance: three separate dimensions
Evaluating a local model on parameter count alone is not enough. Split the analysis into three dimensions:
- VRAM footprint, driven mainly by total parameters. Whether or not an expert is activated, its weights must stay resident in VRAM (or be streamed in somehow). So the bar for whether an MoE model “runs” depends on whether it fits inside 16 GB in the first place.
- Compute per token (FLOPs), tied to activated parameters. Fewer activated parameters means lighter matrix operations per step, in principle.
- Memory bandwidth bottleneck. When generating token by token on a consumer GPU, performance is usually bandwidth-bound rather than compute-bound: the limit is how fast activated parameters can be read out of VRAM. A model with fewer activated parameters is more likely to be fast in this regime.
Three common misconceptions can now be corrected:
- “More total parameters always means slower” — inaccurate. If activated parameters are small and the weights fit fully in VRAM, a sparse model can be faster.
- “Sparse models always save VRAM” — the opposite. Total parameters are larger, so VRAM pressure is often higher, and a model that does not fit ends up slower.
- “Fast means capable” — speed and capability are two independent curves and need to be measured separately.
4. How to evaluate a local model’s Chinese capability properly
Set aside any marketing claims and build your own evaluation loop:
- Build a domain-specific test set: 30–50 real Chinese questions from your own work (including technical terminology, long sentences, and multi-turn context) as a fixed evaluation set, scored manually or semi-automatically. This is far closer to your scenario than any public leaderboard.
- Separate capability types: test instruction following, long-document summarization, logical reasoning, and mixed code/Chinese work as separate items rather than drawing conclusions from a single score.
- Watch for stability: sample the same question multiple times and observe whether outputs drift, repeat, or truncate. This often says more about day-to-day usability than average quality.
- Record speed metrics: use time-to-first-token (TTFT) and tokens generated per second, and note the concurrency conditions, or the numbers are not comparable.
Below is an illustrative sketch of how to measure throughput (pseudocode, independent of any specific tool) so you can build your own data table:
def benchmark(prompt, warmup=3, runs=10):# warmup: rule out jitter from the first load/compilefor _ in range(warmup):_ = generate_once(prompt)latencies, throughputs = [], []for _ in range(runs):start = now()first_token_time, tokens = None, 0for tok in stream_generate(prompt):if first_token_time is None:first_token_time = now()tokens += 1latencies.append(first_token_time - start) # TTFTthroughputs.append(tokens / (now() - start)) # generation speedreturn {"ttft_ms": median(latencies),"tokens_per_sec": median(throughputs),}
The key discipline: fix the inputs, fix the sampling parameters, and fix the VRAM conditions. Without that, any comparison is meaningless.
5. Selection strategy for a consumer GPU
Combining the principles above, here is a decision path for a 16 GB-class card:
- First check whether the model fits in VRAM at all. Quantization (4-bit or 8-bit) reduces weight footprint and is the key lever on consumer hardware. A model that does not fit will constantly swap weights in and out, and speed drops off a cliff.
- Among the candidates that do fit, prioritize activated parameters and your measured throughput, rather than being intimidated by the total parameter count.
- Let your Chinese test set make the capability call. Think in terms of a “primary model plus a supplementary model”: the primary one covers high-frequency tasks, while the other fills specific gaps (long context, a particular kind of reasoning).
- Weigh quantization precision carefully. More aggressive quantization saves VRAM and improves speed but may cost accuracy; verify on your own test set whether the quality difference before and after quantization is acceptable.
6. Common pitfalls and best practices
- Pitfall 1: parameter count as the only criterion. Parameters are only an indirect indicator; VRAM, activated size, quantization, and memory bandwidth together determine the actual experience.
- Pitfall 2: leaderboards as the only criterion. Public evaluations often diverge from your real Chinese-language workloads, so a self-built test set is not optional.
- Pitfall 3: ignoring context cost. Long context substantially raises both VRAM usage and latency, so evaluations must include inputs close to your real lengths.
- Best practices:
- Keep a reproducible “model comparison table,” with one row per model recording: VRAM usage, quantization scheme, TTFT, generation speed, and scores for each capability item.
- Use containerization or a pinned environment so comparisons are fair and not polluted by differences in the runtime environment.
- Treat selection and tuning as an ongoing iteration rather than a one-off decision.
7. Conclusion
In a local deployment context, broad claims that “one class of models is simply better than another” almost never hold up. What really determines the experience is the interaction between architecture, total parameters, activated parameters, quantization scheme, and hardware constraints. Once you can separate the VRAM, compute, and bandwidth dimensions, and measure Chinese capability and speed independently with your own test set, you can step out of the intuition trap that “bigger parameters always mean more capable or faster,” and pick a primary model on your own consumer hardware that both runs and feels good to use. This methodology is worth far more, over the long run, than memorizing a verdict about any single model.
