Local Deployment Strategies and Cost Estimation for Ultra-Large-Scale MoE Models
As large language models scale toward trillion-parameter sizes, Mixture-of-Experts (MoE) architectures offer a path to maintain strong expressiveness while controlling per-inference compute costs through sparse activation. However, locally deploying such models introduces severe challenges in storage, compute, and communication bandwidth. This article examines a 2.8-trillion-parameter MoE model as a case study, analyzing deployment strategies and cost trade-offs across three performance tiers—from minimal usability with CPU offloading to high-concurrency enterprise clusters—along with precise VRAM estimation formulas for 4-bit quantized weights.
As large language models push past the trillion-parameter mark, Mixture-of-Experts (MoE) architectures have become a key approach for balancing expressiveness with computational efficiency. By activating only a sparse subset of parameters per token, MoE models reduce per-inference compute significantly. Yet deploying such models locally imposes stringent demands on storage capacity, compute resources, and inter-device communication bandwidth. This article explores deployment strategies and associated cost considerations using a 2.8-trillion-parameter MoE model as a concrete reference point.
Architectural Fundamentals and VRAM Estimation
Before planning any deployment, it is essential to understand the underlying design of the MoE architecture. The 2.8T-parameter model in question employs 896 expert networks, with only 16 experts activated per token during inference—an activation ratio of roughly 1.79%. While this drastically reduces compute intensity during decoding, it creates a storage bottleneck: because routing is dynamic and nondeterministic, all 896 experts must reside permanently in addressable storage, ready to be invoked at any moment.
Quantization Strategy and Minimum VRAM Floor
The model has been trained with quantization-aware supervision (SFT), natively supporting mixed-precision computation using MXFP4 weights and MXFP8 activations. For a 2.8-trillion-parameter model converted directly to 4-bit format, the raw data floor is approximately 1,400 GB. However, under the OCP specification, MXFP4 requires an additional 8-bit scaling factor for every 32 4-bit elements. The actual weight memory footprint is therefore:
Weight VRAM = total parameters × (4 bits + 4 bits / 32) ÷ 8 = 2.8T × 4.25 bits ÷ 8 ≈ 1,487.5 GB
This figure accounts for weights alone. It excludes non-4-bit tensors, system metadata, memory alignment overhead, runtime workspaces, and the ever-growing KV cache. In practice, the total VRAM required for real deployment will substantially exceed 1,500 GB.
Three Deployment Tiers: Requirements and Hardware Planning
Depending on the target use case, deployment needs can be grouped into three progressive tiers, each with distinctly different hardware architectures and cost profiles.
Tier 1: Minimal Usability (Throughput Not a Priority)
Goal: Get the model to produce tokens, even at single-digit tokens per second.
Approach: CPU-GPU Heterogeneous Inference
For developers on a tight budget, the most straightforward path is heterogeneous CPU-GPU inference. In an MoE layer, the shared attention components—such as Delta Attention and Gated MLA—are compute-intensive and bandwidth-hungry, so they should remain on the GPU. The 896 sparse experts, which account for the bulk of the model’s storage footprint but are only fractionally activated per token, can be offloaded to CPU memory. A large-memory server can feed the experts to the GPU on demand.
Open-source heterogeneous inference frameworks have already validated this pattern. For a 671B-parameter MoE model quantized to 4-bit (weights approximately 377 GB), a dual-socket high-performance server CPU paired with a single consumer-grade high-end GPU achieves roughly 200+ token/s during prefill and about 14 token/s during decode, under specific expert-selection strategies.
Scaling this to the 2.8T model, one would need a server motherboard with over 1.5 TB of system memory alongside a single high-end GPU. Decode speed may drop to single digits, but the hardware investment is minimized—making this the most cost-effective option for experimentation and development.
Tier 2: Single-User Output at 25 token/s
Goal: Smooth single-user conversational experience with a sustained output speed of 25 tokens per second.
Approach: Full GPU Memory Residency with Scaled Compute
At 25 token/s, CPU memory bandwidth becomes an insurmountable bottleneck. All weights must reside in GPU memory. Based on the earlier calculation, roughly 1,500 GB of weights means at least 19 professional GPUs with 80 GB VRAM each (e.g., H100/A100-class) are needed just to hold the model. Factoring in KV cache and runtime overhead, a minimum of three 8-GPU servers (24 GPUs total) is required to form a basic cluster.
At this scale, All-to-All communication latency across experts becomes the dominant challenge. With 896 experts distributed across many GPUs, each token’s activated values must be dispatched to the GPU hosting the target expert, computed, and then returned. This cross-card transfer latency directly erodes throughput gains. Therefore, intra-node high-speed interconnect—such as NVLink or equivalent—is crucial to keep the communication domain large and minimize cross-node transfers.
Tier 3: 10 Concurrent Users, ≥25 tps Each, ≥4-bit Quantization
Goal: Enterprise-grade concurrency with sustained low latency.
Approach: Supernode Clusters and Elastic Cloud Compute
Supporting 10 concurrent requests at 25 token/s each demands an aggregate throughput of at least 250 token/s. With a model over four times the size of a 671B-parameter model, a full deployment requires a supernode cluster of at least 64 accelerators to satisfy the VRAM floor.
At this magnitude, high-bandwidth inter-node networking—such as InfiniBand or RoCE—becomes just as critical as intra-node bandwidth. For most enterprises, building and maintaining such a large GPU cluster in-house is financially prohibitive. A more practical route is to leverage public cloud high-performance computing services. For example, Baidu AI Cloud offers high-performance compute instances, object storage, and high-speed network fabrics that allow enterprises to provision large accelerator clusters on demand. This approach provides elastic scaling to absorb traffic peaks while eliminating the hardware depreciation and operational overhead of self-managed data centers.
Best Practices for Deployment Architecture
Deploying ultra-large-scale MoE models is fundamentally an exercise in balancing three constrained resources: storage capacity, compute throughput, and communication bandwidth.
- Storage: Always plan capacity based on total parameter count, not activated parameter count. Account for quantization scaling factors and KV cache growth explicitly.
- Compute: Leverage quantization-aware training to safely use 4-bit or lower precision. This can reduce VRAM pressure by multiples while preserving accuracy.
- Communication: As GPU count scales, All-to-All communication overhead grows exponentially. Whether on-premises or in the cloud, the hardware topology must provide high-bandwidth, low-latency interconnect.
Conclusion
From “good enough to run” heterogeneous inference to high-concurrency, low-latency supernode clusters, locally deploying ultra-large-scale MoE models is not a one-size-fits-all endeavor. It requires careful cost engineering tailored to the specific performance envelope of the target application. Developers should first define their bottom-line requirements for latency and throughput, then choose between CPU offloading, single-node multi-GPU configurations, or cloud-based superclusters accordingly—finding the optimal balance between technical feasibility and commercial cost.
