Local Deployment of Ultra-Large MoE Models: GPU Memory Requirements and Cost Analysis
This guide covers the GPU memory footprint, quantization effects, all-to-all communication bottlenecks, supernode architectures, and cost planning for deploying a 2.8-trillion-parameter Mixture-of-Experts (MoE) model on local hardware. It also discusses cloud-based alternatives.
1. Baseline GPU Memory Requirements for a 2.8T-Parameter MoE Model
Mixture-of-Experts (MoE) architecture splits a model into many expert subnetworks and activates only a small subset of them for each token. Take a typical 2.8-trillion-parameter MoE model as an example. Its backbone includes a specific attention residual module, and the model contains 896 experts in total. Each token activates 16 of them, an expert activation ratio of about 1.79%.
The activation ratio affects compute, not storage. During deployment, all 896 experts must be fully loaded into GPU memory (VRAM). During inference, the gating router selects which 16 experts run each forward pass. No matter how low the activation ratio is, memory usage depends on the total parameter count. With 2.8 trillion parameters, the memory requirement far exceeds what a single standard machine can hold.
2. Low-Precision Quantization and Realistic Memory Usage
To fit more parameters onto limited hardware, the industry widely uses low-precision quantization. This 2.8T model uses quantization-aware training from the supervised fine-tuning stage onward. It stores weights in 4-bit floating point (MXFP4) and activations in 8-bit floating point (MXFP8).
In theory, storing 2.8 trillion parameters at 4 bits requires a raw minimum of about 1,400 GB. However, common low-precision practice attaches one 8-bit scaling factor to every group of 32 4-bit elements. This raises the effective precision to about 4.25 bits per weight. Recalculated, the weights alone require:
2.8T × 4.25 bits ÷ 8 ≈ 1,487.5 GB
This 1.5 TB covers only the static weight storage. It does not include tensors that are not quantized to 4 bits, system metadata, memory alignment overhead, the inference engine’s runtime workspace, or the dynamically generated KV cache. In multi-turn conversations with long context, KV cache memory grows linearly with sequence length, which adds further pressure on GPU memory.
For comparison, consider the widely used 671B-parameter MoE model. In FP8 format, its main parameters and prediction head parameters together require about 685 GB of GPU memory. Even with AWQ 4-bit quantization, the model needs about 335 GB for weights and about 37 GB for activations, about 372 GB in total. That fits only on eight 80 GB accelerators (640 GB combined). The 2.8T model is more than four times the size of the 671B model, which sets the minimum hardware requirement for full-capability deployment.
3. Communication Bottlenecks in Large-Scale Distributed MoE Deployment
Memory capacity is only the first hurdle. In multi-GPU distributed setups, communication latency is a less obvious performance bottleneck. Large-scale MoE inference is highly sensitive to the bandwidth of the full interconnect between devices.
With 896 experts spread across multiple accelerators, each token must be routed to the device hosting its target expert, and the activations travel over the network. After that expert computes, the results must travel back to the original device. This process is called all-to-all communication. On conventional Ethernet or PCIe topologies, transferring large volumes of tokens across devices creates substantial latency. That latency consumes much of the accelerators’ compute capacity, and inference throughput drops significantly. If communication cannot keep pace with computation, adding hardware does not produce a proportional gain in inference performance.
4. Supernode Architecture and Cluster Deployment
To address both memory and communication challenges, the industry generally recommends deploying such models on supernode architectures built from 64 or more high-performance accelerators.
A supernode depends on very high bandwidth and very low latency, both between nodes and within a node. These systems are typically built on NVLink or similar high-speed interconnect protocols, so all-to-all communication can run at speeds close to memory bandwidth.
In practice, enterprises can use Baidu AI Cloud’s high-performance computing cluster instances and container platform to build such supernodes. Cloud-native GPU scheduling lets teams quickly launch large inference clusters with dozens of accelerators. The cloud platform’s high-speed RDMA network reduces cross-device communication latency. Object storage can distribute model weights quickly, and log service and monitoring and alerting tools can track GPU memory utilization and network throughput on each node in real time. Together, these tools can significantly reduce the operational complexity of a distributed inference cluster. For current service details, refer to the relevant official documentation.
5. Cost Estimate and Conclusion
How much does it cost to deploy a 2.8T MoE model? Based on the 1,487.5 GB lower bound for weights alone, and assuming 80 GB per accelerator, at least 19 cards are needed to hold the weights. Once KV cache and runtime overhead are included, a single 8-card node (640 GB) cannot meet the requirement.
To maintain communication efficiency, a cluster of 64 or more cards is required. At current purchase prices for high-performance accelerators, building such a cluster in-house would require an initial capital expenditure in the millions of yuan (RMB). That figure excludes high-speed network switches, data center power supply, and cooling infrastructure. Depreciation and operating costs over time would add significantly more.
In summary, deploying an ultra-large MoE model locally is not only a contest over memory capacity. It is also a demanding test of network communication and cluster scheduling engineering. For most organizations, buying a supernode cluster outright is not cost-effective. Renting compute on demand from established cloud providers, such as Baidu AI Cloud, with large-scale compute clusters and distributed inference frameworks, may be the most practical way to validate business logic and balance performance against cost at this stage.
