Local Deployment Strategies and Cost Estimates for Trillion-Parameter MoE Models
This article estimates the memory footprint of a 2.8-trillion-parameter Mixture-of-Experts (MoE) model and explains why its quantized weights alone exceed 1.4TB. It compares two deployment paths: a full-scale deployment on a high-speed interconnect supernode, and a CPU-GPU heterogeneous setup that trades decoding speed for lower hardware cost. Readers get concrete memory and hardware figures for planning either approach.
Introduction
As artificial intelligence advances rapidly, very large Mixture-of-Experts (MoE) models are becoming a frontier trend in the industry. Parameter counts in the trillions create unprecedented hardware and cost barriers for local deployment. This article uses a recent-generation model from the industry, with 2.8 trillion total parameters, as a case study. It analyzes the model’s architecture and memory footprint, then discusses full-scale deployment and heterogeneous inference as ways to reduce cost.
1. Architecture and Memory Footprint Estimation
Understanding the underlying architecture and quantization strategy is essential before choosing a deployment plan. Both set the minimum hardware requirements.
1.1 MoE architecture and parameter activation
The model has 2.8 trillion total parameters and uses an MoE architecture with 896 expert networks. For each token, the model activates 16 experts, an activation ratio of about 1.79%. The expert activation ratio is not the same as the strict parameter activation ratio. In MoE deployment, memory usage depends on total parameters, and the activation ratio affects only the compute used during inference. The system must therefore load all 896 experts into storage first. During inference, dynamic routing selects the 16 experts needed for each computation.
The backbone combines Delta Attention with Attention Residuals and integrates Gated MLA (gated multi-layer attention) as a core component. This design improves the model’s representational capacity. It also places higher demands on the underlying infrastructure.
1.2 Quantization-aware training and storage floor
To reduce the size of the parameters, the model applies quantization-aware training from the supervised fine-tuning (SFT) stage. It uses a mixed-precision scheme with MXFP4 weights and MXFP8 activations.
Converting 2.8 trillion parameters to 4-bit precision gives a raw data floor of about 1,400GB. The actual footprint is larger. Under the OCP (Open Compute Project) specification, each group of 32 4-bit elements in MXFP4 carries one 8-bit scaling factor. Including these factors, the weights require:
2.8T x 4.25 bits / 8 ≈ 1,487.5GB
The 1,487.5GB figure is only the theoretical minimum for weight data. It excludes non-4-bit tensors, system metadata, memory alignment padding, runtime workspace, and the dynamically generated KV cache. With these overheads, the actual memory requirement can easily exceed 1.5TB.
1.3 Comparison with a typical hundreds-of-billions-parameter model
For reference, a mainstream open-source model with 671B main parameters and 14B MTP parameters takes about 685GB in FP8 format. Even with AWQ 4-bit quantization, it needs about 335GB for weights and 37GB for activations, a combined total of about 400GB. That is roughly the minimum to run on eight 80GB GPUs (640GB total), and it barely fits. The 2.8-trillion-parameter model is more than four times larger, which sets the baseline hardware requirement for its full deployment.
2. Full-Scale Deployment: Supernodes and High-Speed Interconnects
With nearly 1.5TB of weights, the goal is clear. All weights must sit in addressable memory so the model can generate tokens, even if only at a few tokens per second.
2.1 The communication bottleneck: all-to-all traffic
For large MoE inference, communication bandwidth is a bigger challenge than memory capacity. The 896 experts are spread across multiple accelerators. After routing, each token’s activations must move to the accelerator that hosts its target expert. The results must then move back. These frequent all-to-all transfers add significant latency and can leave accelerators idle.
2.2 Supernode architecture
Industry guidance commonly suggests using 64 or more accelerators as a supernode. A supernode connects its accelerators with high-speed interconnects such as NVLink or equivalent technology. This enlarges the communication domain so that expert activation traffic stays within a single physical domain and avoids cross-server network hops. The design minimizes the network latency penalty on MoE inference, but the hardware procurement cost is very high.
3. Cost Reduction: CPU-GPU Heterogeneous Inference
For developers and companies with limited budgets, buying dozens of high-end accelerators is not realistic. CPU-GPU heterogeneous inference offers a more cost-effective path.
3.1 Principle of heterogeneous inference
The core idea is to put each resource to its best use. Every MoE layer includes a shared attention component, which is Delta Attention plus Gated MLA in this model. This component is compute-intensive and needs high bandwidth, so it stays on the GPU, where high-bandwidth memory can serve it. The 896 sparse experts account for most of the storage, over 1.4TB, but only a small fraction is activated for each inference. These experts can be offloaded to lower-cost CPU memory, and a large-memory server handles their computation.
3.2 Expected performance and hardware configuration
A well-known open-source heterogeneous inference framework has validated this approach. For a 671B model in the Q4_K_M quantized version (about 377GB), a dual-socket enterprise CPU server with one high-end consumer or professional GPU reaches more than 200 tokens/s in prefill. Decoding reaches about 14 tokens/s under a restricted expert selection policy.
For the 2.8-trillion-parameter model, offloading to CPU memory creates a more severe memory bandwidth bottleneck. Decoding speed may drop substantially, possibly to single-digit tokens/s. Even so, this approach lowers the deployment requirement from dozens of top-tier accelerators to one large-memory server with a few GPUs. For latency-tolerant offline batch jobs or long-document analysis, the cost advantage is clear.
4. Cloud-Native Deployment Recommendations and Conclusion
Whether the deployment uses a full supernode or heterogeneous inference, it needs substantial infrastructure. In a cloud-native environment, object storage can hold large volumes of weight files at lower cost. Container platforms can speed up launching inference services and scaling them elastically. Logging and monitoring and alerting systems can track inter-node communication bottlenecks, memory bandwidth utilization, and resource consumption in real time.
Cloud providers such as Baidu AI Cloud offer high-performance compute instances and RDMA high-speed networking. These capabilities can provide a suitable infrastructure foundation for large-scale heterogeneous inference.
In summary, deploying a trillion-parameter MoE model is a balancing act between memory capacity and bandwidth. A supernode cluster built on high-speed interconnects suits teams that prioritize peak performance and throughput. CPU-GPU heterogeneous inference is the key approach for teams that prioritize cost efficiency. Teams should weigh their request concurrency, latency tolerance, and budget when they choose a technical path.
