Local Deployment Cost Analysis for Ultra-Large Mixture-of-Experts Models
This article estimates the memory, communication, and cost requirements for deploying a 2.8-trillion-parameter Mixture-of-Experts (MoE) model locally. It explains why total parameters, not active parameters, determine memory needs, how 4-bit quantization affects weight size, and why all-to-all communication bandwidth is often a bigger constraint than memory. It also offers a three-layer cost framework and practical rollout steps. All figures are engineering estimates until official benchmarks are available.
Costs and Hardware Overview for Local Deployment of Ultra-Large MoE Models
Scope of This Analysis
This analysis is based on officially published architecture information and public quantization specifications. All memory, bandwidth, and cost figures are engineering estimates. Once the model weights and technical report are fully released, actual deployment metrics should be verified benchmark by benchmark. The goal of this article is to provide a reusable framework for cost analysis, not a definitive conclusion.
1. What Parameter Scale Means for Memory
Understanding deployment cost starts with separating total parameters from active parameters.
The model has about 2.8 trillion total parameters and uses an MoE architecture with 896 experts. Each token is routed to 16 of them, so the expert activation ratio is about 1.79%. This figure applies only to the expert dimension. It does not equal the strict proportion of activated parameters, because the backbone also includes shared components such as attention layers and dense layers.
Many teams new to MoE deployment make a common mistake. Since only 1.79% of experts activate for each token, they assume they only need memory for that share. This is incorrect. MoE inference memory must be calculated from total parameters. All 896 experts must be fully loaded into storage so the router can call the 16 activated experts in real time. Lower activation reduces compute (FLOPs), not storage requirements.
2. How Quantization Sets the Memory Floor
The model uses quantization-aware training starting from the supervised fine-tuning stage. Its weights use a 4-bit floating-point format, and its activations use 8-bit floating point. This gives a clear basis for memory estimation.
Raw weight lower bound: For 2.8 trillion parameters stored at 4 bits, the theoretical minimum is 2.8T × 4 bit ÷ 8 = 1,400 GB.
Including scaling factors: Under the widely used microscaling floating-point specification, every group of 32 4-bit elements carries one 8-bit scale factor. The effective width is 4.25 bits per element. The actual weight size is therefore about 2.8T × 4.25 bit ÷ 8 ≈ 1,487.5 GB.
Additional memory needs:
- Tensors that are not quantized to 4 bits, such as normalization layers, embedding layers, and routing weights, which usually stay in high precision;
- Model file metadata and alignment padding;
- Runtime workspace for the inference framework, including operator temporary buffers and communication buffers;
- KV cache. In long-context scenarios, the KV cache can reach tens to hundreds of GB and grows linearly with concurrency.
Overall, full-scale deployment is more reliable with at least 1.6 TB of memory.
For reference, a previous MoE model with 671B parameters had weights of about 685 GB in 8-bit floating point. With 4-bit quantization, its weights and activations totaled about 400 GB. Running it required eight 80 GB accelerator cards (640 GB in total). At 2.8 trillion parameters, the model is more than four times larger, so the hardware threshold scales up accordingly.
3. Why the Official Recommendation Is a Super-Node: Communication Is the Hidden Bottleneck
The official deployment recommendation is a super-node of 64 or more accelerators. The core constraint behind this number is not memory but all-to-all communication bandwidth.
MoE inference works as follows. After the router assigns each token, its activations must be sent to the card hosting the target expert, and the results must be sent back. When the 896 experts are spread across dozens of cards, every forward pass involves large volumes of data exchanged between cards, and sometimes between machines. If the interconnect bandwidth is insufficient, compute units spend much of their time waiting. Communication latency then consumes compute capacity, and GPU utilization can drop below 30%.
This creates several hard requirements for hardware selection:
- Intra-node interconnect: Prioritize servers with high-speed NVLink-class interconnect. Full interconnect across 8 cards per node is the baseline.
- Inter-node interconnect: An RDMA network is required, such as InfiniBand or an equivalent high-performance Ethernet. A starting bandwidth of 400 Gbps is recommended.
- Topology-aware scheduling: The inference framework must support mixed partitioning with Expert Parallelism (EP) and Tensor Parallelism (TP), keeping communication within a node wherever possible.
4. A Cost Estimation Framework
Based on this analysis, a three-layer cost model can be built.
Hardware procurement: This includes 64 high-end accelerator cards (80 GB class), 8 high-interconnect servers, RDMA switches, storage, and data center infrastructure. The one-time investment is typically in the tens of millions of RMB. Even if consumer-grade or previous-generation data center cards are stacked across multiple machines to meet the 1.5 TB memory threshold, the hardware cost still reaches millions of RMB, and communication performance is hard to guarantee.
Operations: This covers power (up to tens of kilowatts at full load), cooling, networking, and labor for at least 2 to 3 engineers with LLM inference optimization experience.
Opportunity cost: Models iterate quickly. Self-built clusters face both hardware depreciation and the risk of technology becoming outdated.
For most companies, a more rational path is to validate with pay-as-you-go cloud inference services, such as the model inference and compute services offered by Baidu AI Cloud. Once workloads stabilize, companies can evaluate hybrid deployment or dedicated compute options. This approach avoids large one-time capital investment.
5. Practical Recommendations
- Run a PoC after the weights are released: Verify throughput, latency, and memory usage with real benchmarks. Do not place purchase orders based on estimates alone.
- Start with low-concurrency scenarios: Offline batch processing and internal knowledge base Q&A are less sensitive to latency and can start on a smaller cluster.
- Plan for quantization and distillation: Watch for lower-bit quantized versions or distilled smaller models released by the community. These could reduce deployment costs several-fold.
- Set up cost reconciliation: Continuously compare the per-token cost of self-hosting and cloud services, and adjust your strategy accordingly.
In short, local full-scale deployment of a 2.8-trillion-parameter MoE model is a systems engineering project that requires tens of millions of RMB and strong engineering capability. Understanding the memory floor, the communication bottleneck, and the total lifecycle cost is necessary for making sound technical decisions.
