Fewer Activated Parameters ≠ Smaller VRAM: A Guide to Estimating MoE LLM Deployment Memory

    Many developers mistakenly believe that the low number of activated parameters in Mixture-of-Experts (MoE) models translates to a small VRAM footprint. This article breaks down this misconception by analyzing the memory composition of MoE models. It explains why MoE uses sparse computation but dense storage, provides a practical three-step method for estimating VRAM requirements (including weights and KV Cache), and offers deployment strategies for different scales of use cases.

    1. A Common Misconception: Fewer Activated Parameters, Smaller VRAM Requirements?

    In recent years, the Mixture-of-Experts (MoE) architecture has become a mainstream technical approach for Large Language Models (LLMs). A recently released ultra-large open-source MoE model highlights that while its total parameter scale exceeds hundreds of billions, it only activates around 6 billion parameters per token during inference. Many developers’ first reaction to this number is: with only a few billion parameters activated, a high-end consumer GPU should be able to run it, right?

    The short answer is no. This is a typical conceptual confusion. “Fewer activated parameters” and “smaller VRAM footprint” are two different things. Take the aforementioned model as an example: even using 8-bit floating-point (FP8) quantized weights, loading all weights still requires over 170 GiB of VRAM, far exceeding the capacity limit of any single consumer GPU. Running it locally requires a cluster of multiple high-end data center GPUs. If the goal is simply to experience the capabilities of the new architecture, choosing a more modestly sized Dense model is a much more realistic path.

    This article will systematically break down the technical principles behind this misconception from the perspective of memory composition and provide a reusable method for estimating VRAM.

    2. Why MoE Appears to Save Resources but Actually Consumes More

    2.1 Core Concept: Sparse Computation, Dense Storage

    The fundamental idea of MoE is to replace the Feed-Forward Network (FFN) layers in traditional Transformers with multiple “expert” sub-networks. Each token goes through a routing mechanism that selects only a few experts to participate in the computation. The benefit is that the model’s knowledge capacity (determined by total parameters) can be massive, while the computation volume for a single forward pass (determined by activated parameters) remains low.

    However, a crucial point is often overlooked: MoE introduces sparsity in computation, not in storage. During inference, the router decides which experts each token will use, but all expert weights must reside in VRAM, ready on standby. Because the next token might activate a completely different combination of experts, you cannot predict which weights to load or unload. Adopting a “load on demand” strategy would cause repeated data transfers between system memory and VRAM, creating a fatal performance bottleneck and making inference speed unbearably slow.

    Therefore, remember this basic principle: VRAM consumption is determined by the model’s total parameter count, while inference computation is determined by the activated parameter count.

    2.2 A Concrete Breakdown

    Using the recently released ultra-large MoE open-source model as an example, its weight composition roughly includes:

    • A main model with about 125 billion parameters (MoE structure, activating ~6 billion per token);
    • An N-gram Embedding module with about 51 billion parameters (used to enhance long-context and multi-word prediction);
    • A Multi-Token Prediction (MTP) module with about 4 billion parameters;
    • Additional vision encoder parameters;
    • Native support for ultra-long context up to 256,000 tokens.

    Combining the main model and auxiliary modules, the total parameter count approaches 200 billion. Even if each parameter is stored in FP8 (1 byte), the weights alone require over 180 GB, which roughly matches the actual size of the official weight files (about 173 GiB). If stored in BF16 (2 bytes), the weight footprint doubles to nearly 350 GiB.

    For comparison, current flagship consumer GPUs typically have around 32 GB of VRAM, which is an order of magnitude less than 173 GiB. This is why running the FP8 version on a single card is mathematically impossible.

    2.3 Don’t Forget the KV Cache: The Hidden Cost of Long Contexts

    Weights are only the first part of VRAM consumption. The second part is the KV Cache during inference—the Key and Value vectors for each token in each layer of the attention mechanism need to be cached. For models natively supporting ultra-long contexts, this overhead is significant. For example, extending the context to tens or hundreds of thousands of tokens with high concurrency can consume dozens of GB of VRAM. A rough but useful estimation formula is:

    1. KV Cache VRAM ≈ 2 × num_layers × hidden_dimension × context_length × bytes_per_element × concurrency

    Therefore, when doing capacity planning, the correct formula is: Total VRAM = Total Weights + KV Cache + Runtime Activations & Framework Overhead, rather than “activated parameters × bytes per parameter.”

    3. Pre-deployment VRAM Estimation Methods and Practical Advice

    3.1 Three-Step Quick Estimation

    Step 1: Confirm the model’s total parameter count (not the activated count), including Embeddings, MTP, multimodal encoders, and all other modules. Step 2: Convert the weight volume based on the target precision: estimate about 1 byte per parameter for FP8 or INT8, 2 bytes for BF16/FP16, and 4 bytes for FP32. Reserve an additional 10% to 20% for framework runtime overhead. Step 3: Estimate the KV Cache based on the target context length and concurrency. Add all three together, compare against your hardware VRAM capacity, and leave a safety margin.

    3.2 Quantization is Not a Panacea

    Faced with VRAM pressure, many people’s first reaction is quantization. This path is viable but must be approached rationally. Compressing an ultra-large MoE model from FP8 to 4-bit or lower does reduce the weight volume by more than half, but the accuracy loss in community quantized versions and compatibility with inference frameworks need to be verified independently. Even at 4-bit, a nearly 200 billion parameter model still requires about 100 GB of VRAM, meaning single-card execution is still out of reach. Quantization changes “how many cards you need,” not “whether you can run it on a single card.”

    3.3 More Realistic Selection Strategies

    For most individual developers and small teams, there are three pragmatic tiers to choose from:

    1. Prioritize Local Experience: Choose a modestly sized Dense model (e.g., around 30B) from the same technology generation. A single high-end consumer GPU can run it smoothly after appropriate quantization, allowing quick verification of the new architecture’s capabilities.
    2. Production-grade Private Deployment: Ultra-large MoE models should be planned for multi-card servers or multi-machine clusters. Prioritize official low-precision weight formats combined with distributed inference strategies like Tensor Parallelism.
    3. On-Demand API Calls: If you only need intermittent verification or have unstable business volume, paying per invocation through cloud-based LLM inference services is often more economical than building your own cluster. Mainstream cloud platforms like Baidu AI Cloud and others provide model hosting, elastic scaling, and observability, helping avoid upfront hardware investments.

    3.4 Don’t Forget License Compliance

    Finally, a non-engineering detail easily overlooked: open-source models may use different licenses for their code repositories and model weights. Some models use permissive licenses like Apache-2.0 for the code, while the weight files use custom community licenses. When involving commercial use or redistribution, be sure to read the license terms on the weight page separately. Do not assume that the code license covers the weights.

    4. Conclusion

    The MoE architecture uses “sparse computation” to balance large capacity with low inference costs, but it never promised “low VRAM costs.” To determine if a model can run and how many cards it needs, first look at the total parameter count, second at the precision format, and third at the KV Cache overhead brought by context and concurrency. Once you master this estimation method, you can make reliable deployment feasibility judgments in minutes when facing any new generation of open-source architectures, spending your energy on valuable application validation rather than repeatedly fighting out-of-memory errors.