Local Deployment of Ultra-Large MoE Models: VRAM Evaluation and Heterogeneous Inference Guide

    As large language models scale toward trillions of parameters, the Mixture of Experts (MoE) architecture has become the industry standard due to its excellent sparse activation characteristics. However, deploying these massive models locally presents significant technical and hardware challenges. This article uses a 2.8-trillion-parameter MoE model as a case study to analyze core hardware requirements, communication bottlenecks, and viable cost-reduction deployment strategies, including CPU/GPU heterogeneous inference and cloud-based elastic deployment.

    As large language models push toward the trillion-parameter mark, the Mixture of Experts (MoE) architecture has emerged as the industry mainstream due to its excellent sparse activation characteristics. However, deploying the latest generation of trillion-parameter models locally presents significant technical and hardware challenges. This article uses a recent ultra-large MoE model (approximately 2.8 trillion total parameters) as an example to deeply analyze the core hardware metrics, communication bottlenecks, and viable cost-reduction deployment strategies.

    1. Architecture Analysis and Parameter Activation Mechanism

    To evaluate deployment costs, we must first understand the underlying architecture. This ultra-large model adopts a typical MoE architecture with a total of approximately 2.8 trillion parameters. It contains 896 expert networks, but during inference, the routing mechanism activates only 16 experts per input token, resulting in an expert activation ratio of about 1.79%.

    It is important to note that the “expert activation ratio” does not equal a strict “parameter activation ratio.” In actual MoE deployment, VRAM consumption is calculated based on total parameters; the activation ratio only affects the computational power required during inference. In other words, you cannot load only the 16 activated experts into VRAM. Instead, all 896 experts must be fully loaded into the storage medium, and the router dynamically retrieves the required 16 experts for computation during inference.

    For the main backbone architecture, the model uses an innovative combination of attention mechanisms, featuring Delta Attention and Attention Residuals, and integrates Gated MLA as a key component. This complex attention mechanism poses dual challenges to VRAM bandwidth and compute density.

    2. Quantization Strategy and VRAM Lower Bound

    For ultra-large models, full-precision (e.g., FP16/BF16) deployment is virtually impossible without quantization. This model considered this during its design, introducing Quantization-Aware Training (QAT) during the SFT (Supervised Fine-Tuning) stage, ultimately adopting MXFP4 format weights paired with MXFP8 format activations.

    So, how much storage is required for 2.8 trillion parameters converted to 4-bit?

    • Raw data lower bound: 2.8T parameters × 4 bit ÷ 8 bit/Byte ≈ 1400GB.
    • Actual footprint calculation: According to OCP specifications, in MXFP4 format, every 32 4-bit elements are accompanied by an 8-bit Scale factor. Therefore, the average bit width for the weights plus the Scale is 4 + (8/32) = 4.25 bits.
    • Actual lower bound: 2.8T × 4.25 bits ÷ 8 bit/Byte ≈ 1487.5GB.

    Note that this 1487.5GB is only the lower bound for the weights themselves, not accounting for non-4-bit tensors, system metadata, memory alignment, runtime workspace, or dynamically generated KV Cache. Therefore, the hard VRAM threshold for a full deployment of this model is set at over 1500GB.

    To put this into perspective, consider a mainstream 671B parameter model: in FP8 format, its main parameters plus MTP parameters require about 685GB; even with AWQ 4-bit quantization, it requires about 335GB for weights and 37GB for activations, totaling around 400GB to run on 8 mainstream high-end accelerators (80GB VRAM per card, 640GB total). In contrast, the aforementioned 2.8-trillion-parameter model is over 4 times its size, highlighting the deployment threshold.

    3. Super-node Architecture and Communication Bandwidth Bottleneck

    Once the storage capacity issue is addressed, the next challenge is the communication bottleneck of large-scale MoE inference. Official recommendations suggest deploying such models using a super-node architecture consisting of 64 or more accelerators.

    Why is such a massive cluster necessary? The fundamental reason is that MoE inference is extremely sensitive to all-to-all communication bandwidth. When 896 experts are distributed across different nodes and accelerator cards, after routing calculation for each token, its activation values must be moved across cards and nodes to the card hosting the target expert for computation, and then moved back.

    This frequent cross-node data transfer creates massive communication latency that directly consumes accelerator compute power. The core purpose of the super-node architecture is to use high-speed interconnect technologies (such as mainstream proprietary interconnect protocols or RoCE networks) to expand the communication domain as much as possible, ensuring that the aforementioned data transfers remain within a single super-node communication domain and avoiding the exponential latency increase caused by cross-domain networks.

    In extreme cases, our goal is simply to fit the nearly 1500GB of weights into addressable storage space so the model can output tokens, even if the generation speed is only single digits per second.

    4. The Breakthrough: CPU/GPU Heterogeneous Inference

    For developers or small institutions unable to afford a cluster of 64 high-end accelerators, is there a low-cost local deployment option? The most straightforward approach is CPU and GPU heterogeneous inference.

    In the MoE architecture, each layer has a shared Attention component (in this model, Delta Attention plus Gated MLA). This part is compute-intensive and requires high bandwidth, making it suitable to remain on the GPU to leverage its high-bandwidth VRAM for acceleration. Conversely, the 896 sparse experts occupy the vast majority of the storage space but only require 16 to be invoked per inference. This creates conditions for “trading compute for storage”: offloading all experts to the large-capacity CPU memory of a standard server and using CPU multi-core compute power to feed the calculations.

    Open-source heterogeneous inference frameworks in the industry have successfully implemented this. Taking the deployment of a 671B model’s Q4_K_M quantized version (approximately 377GB) as an example, the framework uses a dual-socket high-performance server CPU paired with a single high-end consumer GPU. With expert selection strategy limits in place, its Prefill speed can reach 200+ Token/s, and the Decode speed is about 14 Token/s. While the decoding speed still has room for improvement, for low-concurrency, localized testing scenarios, this is a highly cost-effective compromise.

    5. Cloud-Based Elastic Deployment and Cost Optimization

    For enterprises with some budget but unwilling to build heavy hardware infrastructure, relying on cloud-native capabilities is a more rational choice. Enterprises can leverage heterogeneous compute instances and container platforms provided by mature cloud providers like Baidu AI Cloud to rent super-node clusters with high-speed interconnects on-demand, or configure large-memory CPU instances paired with GPUs.

    By combining object storage with elastic compute resources, enterprises can quickly spin up compute clusters with hundreds of gigabytes of VRAM when inference is needed, loading the model weights into node memory and VRAM. Resources can be released when idle, significantly reducing hardware depreciation and daily operational costs. Furthermore, by integrating cloud monitoring and alerting services, all-to-all communication latency and VRAM utilization can be observed in real-time, allowing dynamic adjustment of routing strategies and batch sizes to find the optimal balance between compute power and cost.

    In summary, the local deployment of ultra-large MoE models is a balancing act surrounding “VRAM capacity, communication bandwidth, and compute power.” Whether pursuing the ultimate performance of a super-node cluster or the cost-effectiveness of a CPU/GPU heterogeneous solution, developers must accurately evaluate hardware overhead and expected returns based on actual business scenarios and budget constraints.