VRAM and Cost Analysis for Locally Deploying a Trillion-Parameter MoE Model
As the open-source community keeps releasing Mixture-of-Experts (MoE) models with trillions of parameters, many teams are asking: can these models run on-premises, and how much would it actually cost? This article analyzes an open-source MoE model with roughly 2.8 trillion total parameters, walking through VRAM requirements and hardware costs layer by layer to provide a reusable estimation methodology. It explains why sparse activation saves compute but not memory, why 4-bit quantized weights still demand around 1.5TB of VRAM, why all-to-all communication forces a 64+ GPU "supernode" with high-speed interconnects, and how to decide between cloud APIs, distilled variants, and full self-hosting.
VRAM and Cost Analysis for Locally Deploying a Trillion-Parameter MoE Model
As the open-source community keeps releasing Mixture-of-Experts (MoE) large models with trillions of parameters, “can we run it on-premises or in our own data center, and how much would it cost?” has become one of the most pressing questions for many teams. This article takes an open-source model with roughly 2.8 trillion total parameters and an MoE architecture as its analysis sample, working from the architectural mechanics to estimate VRAM and hardware costs step by step, helping readers build a reusable estimation methodology.
1. Understanding MoE Architecture First: Activation Ratio ≠ Memory Ratio
Before discussing deployment costs, we must clear up the most common misconception: the “sparse activation” of MoE models saves compute, not memory.
This model has about 2.8 trillion total parameters and uses an MoE architecture with 896 expert networks. During inference, only 16 experts are routed and activated per token—an expert activation ratio of about 1.79%. Note that this is the “expert activation ratio,” which is not strictly equivalent to the “parameter activation ratio”—the model’s attention backbone (which uses an incremental attention mechanism combined with an attention residual structure, with gated multi-head latent attention as a key component) is densely computed and participates in every step.
Many beginners see “only 1.79% activated” and assume that loading tens of gigabytes of weights is enough for inference. This is completely wrong. A fundamental requirement of MoE inference is: the weights of all 896 experts must be fully resident in the storage medium. During inference, activations are routed to the devices hosting the target experts for computation. A low activation ratio means less computation per step and faster inference; but memory footprint is always calculated based on total parameters—no different from a dense model in this regard.
2. The Quantized Weight Floor: ~1.5TB Is Just the Starting Point
The model introduced quantization-aware training during supervised fine-tuning: weights use a 4-bit floating-point format, and activations use an 8-bit floating-point format. Based on this, we can estimate the theoretical lower bound of weight storage:
- Pure 4-bit raw data: 2.8T × 4 bit ÷ 8 = 1400GB;
- However, this 4-bit format follows industry conventions: every 32 4-bit elements carry an additional 8-bit scaling factor, so the actual figure is 2.8T × 4.25 bit ÷ 8 ≈ 1487.5GB.
That’s not all. A real inference engine also consumes memory for:
- Non-quantized tensors: normalization layers, embedding layers, routing gates, etc., typically remain in higher precision and are excluded from 4-bit quantization;
- Metadata and alignment padding: block-aligned tensor storage introduces some overhead;
- Runtime workspace: intermediate operator results and communication buffers;
- KV cache: in long-context scenarios, the KV cache can easily reach hundreds of gigabytes, growing linearly with concurrency and context length.
Taken together, weight loading alone requires over 1.5TB of high-speed VRAM. With a 20%–30% engineering margin, actual capacity planning should target the 2TB VRAM range.
3. A Reference Point: What Smaller Models Already Require
A better-known comparison case helps build intuition. A previous 671B-parameter MoE model required about 685GB in FP8 for its main parameters plus an auxiliary prediction module. Even with 4-bit weight quantization, the weights take about 335GB, plus roughly 37GB of activations and cache—around 400GB total—which barely fits into eight 80GB accelerator cards (640GB total).
The model discussed here is more than four times that size. A simple linear extrapolation puts the VRAM requirement for a full-scale quantized deployment at over 1.6TB—consistent with the step-by-step estimate in Section 2. In other words, conventional 8-GPU or 16-GPU servers are ruled out by total VRAM alone. It’s not a matter of speed—the model simply doesn’t fit.
4. Why a “Supernode” Is Needed: Communication Is the Hidden Bottleneck
Even if you assemble enough total VRAM, ultra-large MoE inference faces a second killer: all-to-all communication.
The MoE routing mechanism means every token “moves house” at every layer: activations are sent from the current device to the device hosting the target expert, then sent back after computation. With 896 experts spread across dozens of GPUs, this transfer happens dozens of times per forward pass. If cross-device communication runs over slow links, communication latency directly erases the compute advantage—manifesting as plummeting per-GPU utilization and poor throughput.
This is why the official recommendation is to deploy on a “supernode” of 64 or more accelerators. The core value of a supernode is using high-speed chip-to-chip interconnects (such as NVLink-class interconnect technology) to bring as many GPUs as possible into a single high-bandwidth communication domain, keeping expert-to-expert activation exchanges inside that domain and avoiding slow network interconnects. This is also why you can’t simply substitute “multiple 8-GPU machines stitched together over a regular network”—that approach might provide enough total VRAM, but cross-machine all-to-all communication would push inference latency to unusable levels.
5. Cost Estimation and Practical Recommendations
Based on the conclusions above, here is a rough cost profile (actual prices fluctuate with the market; this is only an estimation framework):
- Hardware: roughly 64 high-memory data-center-grade accelerators plus a full-rack solution with high-speed interconnects; upfront investment typically reaches the tens of millions of RMB (millions of US dollars) scale;
- Facilities: supernodes draw heavy power and demand stringent cooling; liquid cooling or high-density air cooling and power capacity upgrades are hidden costs;
- Operations: deploying and tuning multi-GPU inference frameworks, validating quantization accuracy, and managing KV cache and concurrency scheduling all require a dedicated engineering team.
For the vast majority of enterprises and individual developers, a more realistic path is tiered decision-making:
- Validation and lightweight use: call a cloud LLM API service directly, billed per token, with zero hardware investment. Major cloud providers such as Baidu AI Cloud offer LLM inference and foundation-model service categories that let you quickly integrate and validate business logic;
- Mid-scale self-hosting: if data compliance requires privatization, consider a smaller distilled variant of the same architecture, compressing VRAM requirements into a range a single 8–16 GPU server can handle;
- Full-scale self-hosting: only worth the supernode-level cluster investment when inference traffic is large enough that long-term amortized costs undercut API fees, and you have the facilities and operational capability.
6. Conclusion
For locally deploying a 2.8-trillion-parameter MoE model, there are really only two core ledger items. First, memory: even with 4-bit weights from quantization-aware training, you still need upwards of ~1.5TB of VRAM, and activation sparsity does nothing to help. Second, communication: all-to-all exchange across 896 experts dictates a high-speed-interconnected supernode of 64+ GPUs, not ordinary multi-machine stacking. Understand the principle that “activation saves compute, not memory,” then estimate layer by layer in the order of “weight floor → cache and workspace → communication topology → total cost of ownership,” and you can make a clear-eyed judgment about the deployment feasibility of any ultra-large MoE model—avoiding order-of-magnitude mistakes at the hardware procurement stage.
