Local Deployment of Trillion-Parameter MoE Models: Memory Requirements and Low-Cost Practices

    As large language models scale toward trillions of parameters, the Mixture of Experts (MoE) architecture has become the mainstream approach for overcoming compute bottlenecks. But deploying trillion-parameter models locally raises hard questions about hardware requirements and cost. This article uses a representative 2.8-trillion-parameter MoE model as a case study to break down what local deployment actually demands, and explores practical low-cost alternatives built on heterogeneous GPU-CPU inference.

    1. What a Trillion-Parameter MoE Actually Demands from Hardware

    To understand deployment costs, you first need to understand how the MoE (Mixture of Experts) architecture works. The 2.8T-parameter model in question contains 896 expert networks, but for every token, only 16 experts are activated—an activation ratio of roughly 1.79%.

    This leads to a common misconception: that a low activation ratio means lower memory requirements. In reality, memory usage for MoE deployment must be calculated based on total parameters; the activation ratio only affects compute consumption during inference. Before the model runs, all 896 experts must be fully loaded into storage, and at inference time, the routing mechanism pulls the required 16 experts for computation.

    Architecturally, the model combines Delta Attention with Attention Residuals and integrates a Gated MLA component. This shared attention module is compute-intensive and places extreme demands on bandwidth and compute power, while the large pool of sparse experts is memory-bandwidth-bound and accounts for the vast majority of model storage.

    2. Calculating the Storage Floor Under Quantization-Aware Training

    To reduce storage pressure, the model introduces quantization-aware training at the SFT (supervised fine-tuning) stage, using a mixed-precision scheme of MXFP4 weights with MXFP8 activations.

    So how much storage does 2.8 trillion parameters at 4-bit actually require?

    1. Raw data floor: Converting 2.8T parameters to 4-bit alone yields a theoretical floor of roughly 1400GB.
    2. Scale overhead: Per the relevant specification, MXFP4 attaches an 8-bit scale to every 32 4-bit elements. Working through the math, weights plus scales come to roughly 2.8T × 4.25 bit ÷ 8 ≈ 1487.5GB.
    3. Actual runtime requirements: That 1487.5GB is only the weight body, excluding non-4-bit tensors, metadata, memory alignment, runtime workspace, and the KV Cache generated dynamically during inference. Actual runtime storage needs will far exceed this figure.

    For comparison, a 671B-parameter MoE model in FP8 requires roughly 685GB for main parameters plus MTP parameters; even with AWQ 4-bit quantization, it needs about 335GB of weights plus 37GB of activations—roughly 400GB total—to barely run on 8 high-end accelerators (640GB of total memory). At more than four times that size, the hardware bar for a full deployment of the 2.8T model is thus essentially established.

    3. Supernode Architecture and the Communication Bandwidth Challenge

    With nearly 1500GB of weights, single-node multi-GPU setups are no longer sufficient, making multi-node distributed deployment unavoidable. The official recommendation is a supernode architecture built from 64 or more accelerators.

    Why such a large supernode? Because large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 896 experts distributed across multiple GPUs and even multiple nodes, every token, after passing through the router, must have its activations shipped across cards or nodes to the computing unit hosting the target expert, then shipped back after computation. This frequent inter-node communication introduces substantial network latency and can even eat into raw compute capacity.

    A supernode architecture addresses this by using high-speed interconnects to enlarge the communication domain, ensuring that large-scale data movement stays within a single domain as much as possible and compressing communication latency into an acceptable range. When planning cloud resources, prioritize clusters with RDMA networking and high-speed interconnects to keep MoE routing efficient.

    4. The Low-Cost Compromise: A Heterogeneous “Make It Run” Strategy

    If budget constraints rule out a 64-GPU supernode, is it impossible to run a trillion-parameter model? The answer is to make it run through architectural compromise—specifically, heterogeneous GPU-CPU inference.

    Mature heterogeneous inference frameworks already exist in the open-source ecosystem. The logic is straightforward: keep the shared Attention portion of each MoE layer on the GPU to exploit its high bandwidth for dense computation, and offload all 896 sparse experts—the storage-heavy but rarely-activated components—to CPU memory. As long as the server has enough RAM to hold all the weights, a large-memory server can handle the feed-in computation.

    As a real-world reference from an open-source heterogeneous inference framework: a dual-socket high-performance server CPU paired with a single high-end consumer GPU, running the Q4_K_M quantized version of a 671B-parameter model (about 377GB of memory), achieves over 200 tokens/s in the Prefill phase and roughly 14 tokens/s during Decode, with expert-selection constraints applied.

    While computing experts on the CPU significantly sacrifices decoding speed, for offline inference scenarios with limited budgets and relaxed latency requirements, this heterogeneous approach is a genuinely low-cost way to turn “impossible” into “possible.”

    5. Conclusion

    Deploying a trillion-parameter MoE model is an extremely demanding systems engineering effort. A full deployment means confronting over 1500GB of storage pressure and the communication challenges of very large node clusters, while a low-cost approach requires balancing heterogeneous computing against speed. Before committing, developers should carefully assess their business scenarios and budget constraints, and choose infrastructure and inference frameworks accordingly to make large models work effectively.