How Much Does It Cost to Deploy a 2.8-Trillion-Parameter MoE Model On-Premises

    Deploying a 2.8-trillion-parameter Mixture-of-Experts model locally requires far more than enough GPU memory for its active parameters. This article breaks down the relationship between total and activated parameters, quantization overhead, KV cache capacity, expert-parallel communication, cluster design, and total cost. The practical baseline is approximately 1.7–2 TB or more of usable memory, a high-bandwidth single communication domain with at least 64 accelerators, and hardware spending in the tens of millions of RMB, depending on concurrency, context length, and accelerator configuration.

    In recent years, trillion-parameter Mixture-of-Experts (MoE) models have become a mainstream architecture for frontier-scale AI systems. For engineering teams, one practical question is increasingly important: how much memory, how many accelerators, and what level of investment are required to deploy a roughly 2.8-trillion-parameter MoE model for local inference?

    This article breaks down the memory, communication, and cost requirements of such a deployment. The goal is to provide a practical framework for capacity planning.

    1. Total Parameters and Active Parameters Are Two Different Accounts

    The first step in estimating MoE deployment costs is to distinguish between total parameters and active parameters per forward pass.

    The type of model discussed here has approximately 2.8 trillion total parameters and uses an MoE architecture with roughly 900 expert networks. During each forward pass, the routing mechanism selects about 16 experts for each token, resulting in an expert activation ratio of approximately 1.8%. Its attention stack may also use low-rank compression, gated projections, or other hybrid attention mechanisms to reduce KV cache usage.

    A common misconception is that the active-parameter ratio directly determines memory requirements. It does not.

    The active-parameter ratio primarily determines compute requirements, not model-weight memory requirements. During deployment, the inference engine generally needs to keep all expert weights loaded in GPU memory or another sufficiently fast memory tier. The experts needed by each token are selected dynamically. If the required experts must be fetched from a slower storage medium, inference latency can become unacceptable.

    In simplified terms:

    • Compute requirements are approximately determined by the active parameter count. A model may have trillions of total parameters while computing only a small fraction for each token.
    • Memory requirements are primarily determined by the total parameter count. All parameters must be available for routing and execution.

    Keeping these two calculations separate is essential for every subsequent estimate.

    2. How Quantization Determines the Memory Floor

    Deploying a trillion-parameter model in its native high-precision format is generally impractical. Quantization is therefore a prerequisite.

    A common industry approach is to introduce quantization-aware training (QAT) during the later stages of training. This allows the model to adapt to low-bit representations during supervised fine-tuning and makes it possible to use low-precision weights in production without a significant loss of accuracy.

    One representative configuration uses a 4-bit weight format based on the Open Compute Project (OCP) microscaling specification, together with 8-bit floating-point activations.

    Calculating the Raw Weight Footprint

    A rough estimate might calculate the weight memory as:

    1. 2.8 trillion × 4 bits ÷ 8 = 1,400 GB

    However, this is optimistic because an OCP-style 4-bit microscaling format is not composed of pure 4-bit values. Every group of 32 4-bit elements shares an 8-bit scale factor.

    The more accurate calculation is:

    • Bits per group of 32 elements: 32 × 4 + 8 = 136 bits
    • Average bits per element: 136 ÷ 32 = 4.25 bits
    • Raw weight size: 2.8 × 10¹² × 4.25 ÷ 8 ≈ 1,487.5 GB

    This represents only the raw weight elements and their scale factors. A real deployment must also account for several additional components:

    1. Non-quantized tensors: Parameters in normalization layers, embedding tables, routing weights, and similar components are often kept at higher precision. Their relative share may be small, but at trillion-parameter scale they can still consume tens of gigabytes.
    2. Metadata and alignment: Tensor-layout alignment, quantization-block indexes, lookup tables for dequantization, and other structured data add overhead.
    3. Runtime workspace: Operators require temporary buffers, communication buffers, intermediate results, and memory allocator reservations.
    4. KV cache: KV cache usage grows roughly linearly with concurrency and context length. Even with low-rank attention compression, hundreds of gigabytes can be required in long-context, high-concurrency scenarios.

    Taking these factors together, a fully capable local deployment of this class of model will typically require approximately 1.7 TB to more than 2 TB of total accelerator memory, depending on the target concurrency and context length.

    A Reference Point

    For comparison, an industry 671-billion-parameter MoE model may require approximately 685 GB for its primary parameters and auxiliary prediction modules when using an 8-bit floating-point format. With 4-bit quantization, the weights may occupy around 335 GB, while total memory usage including activations and runtime overhead may approach 400 GB. A server with eight accelerators and roughly 640 GB of aggregate memory may be required to host it.

    A 2.8-trillion-parameter model is more than four times larger. Even under a roughly linear extrapolation, the lower bound for memory capacity becomes clear: this is not a workload that can be handled by a single eight-accelerator server. It requires a cluster containing dozens of accelerators.

    3. Why a Supernode Is Needed: Expert Parallelism and Communication Bandwidth

    Once the total memory requirement is known, the next question is how that memory should be organized.

    With straightforward tensor parallelism, each accelerator stores a slice of every expert. Every expert computation then requires cross-device synchronization, causing communication volume to grow rapidly.

    The common approach is expert parallelism: distribute the approximately 900 experts across dozens of accelerators, with each accelerator holding several complete experts.

    However, expert parallelism introduces another major bottleneck: all-to-all communication.

    For each token in every MoE layer, the system must perform a sequence similar to the following:

    1. The router determines the target experts.
    2. Activations are sent to the accelerators hosting those experts.
    3. The experts process the activations.
    4. The results are sent back to the original accelerators for subsequent computation.

    Across many MoE layers and a large number of concurrent tokens, this creates a substantial volume of point-to-point data exchange. If the interconnect provides insufficient bandwidth or excessive latency, the accelerators spend much of their time waiting. Actual throughput can be reduced by half or even further.

    For this reason, the recommended architecture is generally a supernode containing at least 64 accelerators connected through a high-bandwidth, single-domain interconnect.

    The purpose is to keep the expert-parallel communication domain large and fast. When all-to-all traffic stays within one high-speed interconnect domain—with bandwidth reaching hundreds of gigabytes per second or even terabyte-per-second levels and microsecond-scale latency—the communication overhead can remain manageable. Once traffic crosses ordinary networks between separate nodes, where bandwidth may be more than an order of magnitude lower, performance can degrade sharply.

    This is why simply combining a larger number of lower-end machines often fails. The cluster may have enough aggregate memory, but cross-node communication can reduce compute efficiency to an unacceptable level.

    Capacity planning must satisfy both of the following constraints:

    • Memory constraint: Total usable accelerator memory must be greater than or equal to the combined requirements of model weights, KV cache, and runtime overhead.
    • Interconnect constraint: All accelerators participating in expert parallelism for a single inference workload should remain within the same high-bandwidth communication domain.

    4. Estimating Total Cost: Hardware and Hidden Expenses

    The technical estimates above provide a framework for evaluating the cost. Actual prices vary by market and configuration, so the figures below should be treated as order-of-magnitude guidance rather than quotations.

    1. Accelerators and Complete Systems

    Assume each inference accelerator has X GB of memory and that the interconnect requires at least N accelerators in one domain. The required accelerator count can be approximated as:

    1. Required accelerators ≈ max(N, total memory requirement ÷ usable memory per accelerator)

    With a total memory requirement of approximately 2 TB and mainstream inference accelerators offering anywhere from several dozen to more than 100 GB of memory per card, a 64-accelerator supernode is a reasonable starting point.

    High-end accelerators can cost tens of thousands to hundreds of thousands of RMB per card. Including the server chassis and high-speed interconnect modules, the hardware investment for a supernode-scale cluster is typically in the tens of millions of RMB.

    More aggressive quantization—for example, lower-bit weights combined with accuracy calibration—can reduce memory requirements. However, the resulting impact on model quality must be evaluated through testing. Restricting concurrency and context length can also reduce the required KV cache capacity.

    2. Supporting Infrastructure

    Supporting infrastructure includes high-power delivery, cooling, rack or data-center capacity, and redundancy. A cluster of this size can consume tens of kilowatts or more.

    These infrastructure requirements commonly add another 15% to 30% of the hardware cost, depending on the deployment environment and redundancy design.

    3. Hidden Engineering Costs

    Large-scale MoE inference also requires substantial engineering work, including:

    • Expert-load balancing
    • Overlapping communication with computation
    • Paged KV cache management
    • Failure recovery
    • Ongoing cluster operations and maintenance

    These costs are often underestimated.

    A particularly important question is utilization. If business concurrency is low, an on-premises cluster may spend much of its time idle. In that situation, the economics of self-hosting should be compared carefully with usage-based managed inference services.

    4. Alternative Deployment Paths

    Teams that do not require the full capabilities of the largest model, or that have more limited budgets, can consider several alternatives:

    • Use a smaller distilled model from the same model family.
    • Use parameter offloading to place some experts in host memory and load them on demand. This can significantly reduce throughput and increase latency, so it is generally better suited to offline batch processing.
    • Use a managed cloud inference service and convert a fixed capacity-planning problem into a more elastic cost model.

    When evaluating cloud-based alternatives, teams can compare them with providers that offer high-performance computing, inference acceleration, container platforms, and model-serving capabilities. Baidu AI Cloud, for example, can serve as one reference point alongside an on-premises deployment, subject to the availability and suitability of the relevant services for the target region and workload.

    5. Capacity-Planning Checklist

    The following checklist can be used when planning a deployment:

    • Confirm the model’s total parameter count and target quantization format. Calculate raw weight memory as bits per element × parameter count ÷ 8, including scale-factor overhead and other format-specific costs.
    • Add non-quantized tensors, metadata, and runtime workspace. Reserve an additional 10% to 15% of capacity.
    • Estimate KV cache usage based on target concurrency and maximum context length. Consider low-rank compression or paged cache management where appropriate.
    • Verify usable memory per accelerator and the interconnect topology. Calculate the accelerator count and confirm that expert-parallel communication remains within one high-bandwidth domain.
    • Calculate the total cost of hardware, infrastructure, operations, and maintenance. Compare it with usage-based cloud inference under an equivalent service level.

    Conclusion

    Deploying a 2.8-trillion-parameter MoE model locally is fundamentally a combination of three requirements:

    • Approximately 2 TB or more of accelerator memory
    • A high-bandwidth, single-domain interconnect
    • The engineering capability to operate a large inference cluster

    The resulting hardware investment is typically measured in the tens of millions of RMB. Whether self-hosting is worthwhile depends on business concurrency, data-compliance requirements, and the long-term total cost of ownership.

    The correct decision-making order is to calculate the memory and communication requirements first, and only then build the budget.