COMMUNITY HUB Independent Local MoE Inference Guides, Hardware Blueprints & Benchmarks for Strata LLM
SL
STRATA LLM
Models & Quantization • 8 min read • Updated 2026-11-24

How Mixture-of-Experts (MoE) Routing Works: Active vs Total Parameters Explained

Clear engineering breakdown of sparse Mixture-of-Experts (MoE) LLMs: gating routers, top-k expert selection, shared experts, and why 125B MoE runs faster than 70B dense.

By StrataLLM Editorial Team • Published 2026-11-20

Key Technical Takeaways

  • MoE replaces a single massive feed-forward network (FFN) in each transformer block with N specialized expert FFNs plus a lightweight router.
  • Only top-k experts (e.g., 2 to 8 out of 64) are activated per token, decoupling knowledge capacity (total parameters) from compute cost (active parameters).
  • Many modern MoE models (DeepSeek, Qwen) also include "shared experts" that fire on every token, making them ideal candidates to pin permanently in GPU VRAM.
  • Because expert activation follows strong temporal locality within a topic (e.g., Python coding), hot-expert caching achieves high hit rates on 12GB–24GB GPUs.

1. Dense Transformers vs Sparse MoE Transformers

In a standard dense transformer like Llama-3.3 70B, every single token passes through every single weight in the model. Doubling the model’s knowledge capacity roughly doubles both the memory required and the floating-point operations (FLOPs) needed for every generated word.

Mixture-of-Experts breaks that 1:1 coupling. Inside each layer, the attention mechanism remains shared across all tokens, while the dense feed-forward network is split into dozens of smaller expert sub-networks. A small linear layer called the router scores each expert for the current token and activates only the top-k highest-scoring experts.

Compute & Memory Profile: Dense 70B vs Sparse 125B MoE (Q4_K_M)
Property70B Dense Model125B Sparse MoE (14B Active)
Total Weight Size (Q4_K_M) ~40 GB ~70 GB
Weights Touched Per Token 100% (~40 GB) ~11% (~7.8 GB)
Compute Cost Per Token High (70B FLOPs) Low (~14B FLOPs — 5x less compute)
Suitability for 12GB GPU Offload Slow (must stream 30GB/token) Fast (attention + hot experts cached in VRAM)

2. Why Expert Locality Makes Consumer GPU Caching Work

You might assume that a 64-expert model picks experts uniformly at random on every token. In practice, token-to-expert routing exhibits strong domain locality: when you are writing TypeScript or debugging SQL, the router repeatedly favors a concentrated subset of code-specialized experts alongside always-on shared experts.

Sparse inference engines exploit this statistical skew by keeping shared experts and the hottest routed experts resident in GPU VRAM, while streaming rare "long-tail" experts over PCIe DMA only when needed.

3. What This Means When Choosing Models

When browsing Hugging Face for a local model to run on a 12GB–24GB workstation, always check two numbers on the model card: Total Parameters (which dictates your system RAM requirement) and Active Parameters per Token (which dictates your interactive decode speed and GPU VRAM floor).

Size Your Hardware Before Downloading

Calculate exact VRAM, system RAM offload, and KV cache limits — or inspect our Benchmark methodology →

Open VRAM Calculator →