Cost and Hardware Analysis for Local Deployment of Trillion-Parameter MoE Models
This article breaks down what it actually takes to run a trillion-parameter Mixture-of-Experts (MoE) model on your own hardware. It explains why MoE deployment memory scales with total parameters rather than activated ones, estimates the real VRAM footprint of a 2.8T-parameter model after 4-bit quantization (close to 1.5TB), discusses why all-to-all communication makes high-speed interconnects essential, and presents three cost tiers—from a full 64-GPU supernode to a budget GPU+CPU heterogeneous setup—along with practical decision advice for teams weighing self-hosting against cloud inference services.
Cost and Hardware Analysis for Local Deployment of Trillion-Parameter MoE Models
1. A Disclaimer First: All Numbers Here Are Estimates
In discussions about running large models on-premises, the most common mistake is conflating “official API pricing” with “self-hosted hardware cost.” This article is about the latter: if you want to run a trillion-parameter MoE model end-to-end in your own data center, what hardware do you need and how much will it cost?
One important disclaimer up front: apart from officially published architecture parameters and API pricing, every figure in this article—speeds, memory footprints, hardware configurations—is derived from publicly available information. Once the model weights are officially released, each of these numbers must be verified with benchmarks. The value of this article lies in providing a reusable estimation methodology.
2. Architecture Breakdown: Why MoE Deployment Cost Scales with Total Parameters
Take a 2.8-trillion-total-parameter MoE model as an example. Its typical structure: 896 experts, 16 activated per token, an expert activation ratio of roughly 1.79%. Note that this is the expert activation ratio, not a strict parameter activation ratio, because there are also shared attention modules and routing overhead.
Here is the single most important insight for deployment: MoE memory footprint is determined by total parameters; the activation ratio only affects compute. During inference, each token only passes through 16 experts, but you cannot predict which 16 the next token will be routed to. Therefore, all 896 experts must reside in addressable memory, and the runtime fetches them based on routing decisions. In other words, MoE saves you money on compute—not on storage.
Additionally, the backbone of such models is typically a hybrid architecture combining a new type of linear attention with gated attention. This part is compute-intensive but accounts for a small share of parameters, so it should be treated differently from the expert layers in deployment strategy.
3. How Much Memory After Quantization: The Detailed Math
Assume the model underwent quantization-aware training from the SFT stage, with MXFP4 weights and MXFP8 activations. Item by item:
- Raw data floor: 2.8T parameters × 4 bits ÷ 8 ≈ 1400 GB;
- Scale overhead: MXFP4 attaches one 8-bit scale per 32 four-bit elements. Per the OCP specification, weights plus scales come to roughly 2.8T × 4.25 bits ÷ 8 ≈ 1487.5 GB;
- Not yet counted: non-4-bit tensors (e.g., embedding layers, some normalization parameters), metadata, memory alignment, runtime workspace, and the KV cache, which grows linearly with context length.
As a reference point: another industry MoE model at the 671B level requires about 685 GB in FP8 for main parameters plus speculative decoding parameters. Even with 4-bit weight quantization, it needs roughly 335 GB of weights plus 37 GB of activations—about 400 GB total—to barely run on 8 high-end accelerators with 640 GB of combined VRAM. The model discussed here is more than four times that size, pushing the storage floor for a full-fidelity deployment to nearly 1.5 TB.
4. Why Official Guidance Recommends a “Supernode”: Communication Is the Primary Bottleneck
The official recommendation to deploy on a supernode of 64 or more accelerators is not a sales pitch for GPUs—it follows directly from the inference characteristics of MoE models.
Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 896 experts distributed across different cards, each token’s activations must be moved to the cards hosting its target experts after routing, computed, and moved back. This happens at every layer, and communication latency directly eats into compute gains.
The essence of a supernode is using NVLink or an equivalent high-speed interconnect to enlarge the communication domain, so this high-frequency data movement stays within a single domain. With a multi-machine setup over ordinary Ethernet or PCIe, communication overhead can drive effective compute utilization to unacceptable levels. So your budget cannot cover GPU purchase prices alone—it must also include the high-end interconnect network, which often accounts for a significant share of total system cost.
5. The Fallback Option: GPU + CPU Heterogeneous Inference
If the goal is simply “make the model produce tokens, even at single-digit tokens per second,” heterogeneous inference is the most economical path. The representative industry approach is inference frameworks that coordinate GPU and CPU.
The core idea is compute-storage separation that exploits MoE’s structural properties:
- The shared attention component (including the backbone attention and gating modules) is compute-intensive but parameter-light, so it stays on the GPU to take advantage of high memory bandwidth;
- The 896 sparse experts dominate storage but only 16 are activated per token, so all of them are offloaded to CPU memory, with high-memory servers doing the “feeding.”
Reference numbers from public tutorials are roughly as follows: a dual-socket high-end server CPU paired with a single flagship consumer GPU, running a 4-bit quantized 671B model (~377 GB of weights), can reach over 200 tokens/s in prefill and about 14 tokens/s in decode—but only with an expert-selection constraint enabled (sacrificing some routing randomness for memory access locality). Extrapolating to a 2.8T model, decode speed drops further into single-digit tokens per second, and you need more than 1.5 TB of system memory, typically requiring multiple memory expansion nodes.
6. Cost Estimates and Decision Recommendations
Putting it all together, the cost of deploying this class of model locally falls into three tiers:
- Full-fidelity production tier: a supernode of 64+ GPUs including high-speed interconnect—on the order of tens of millions of RMB (millions of USD);
- Workable validation tier: an 8-GPU high-end server with large-scale memory expansion—on the order of millions of RMB (hundreds of thousands of USD), accepting the throughput loss caused by communication bottlenecks;
- Bare-minimum experience tier: a single GPU plus a high-memory CPU cluster running heterogeneous inference—under one million RMB, at single-digit tokens per second, suitable only for offline batch processing or technical research.
For the vast majority of teams, the pragmatic advice is: first validate your business pipeline with a quantized, smaller-parameter model on a heterogeneous setup, while evaluating the cost-effectiveness of cloud inference services (such as general-purpose LLM inference cloud offerings). Once the weights and benchmark data are available, then decide whether to invest in self-built hardware. The real barrier to local deployment has never been “can it run”—it’s whether, once running, your per-token cost actually beats the cloud.
