How Much Does It Cost to Self-Host a Trillion-Parameter MoE Model On-Premises?

    This article explains the real cost of self-hosting a trillion-parameter Mixture-of-Experts (MoE) model. It clarifies why MoE memory usage is determined by total parameters rather than activated experts, estimates memory requirements for a 2.8-trillion-parameter 4-bit QAT model, and examines all-to-all communication, high-bandwidth interconnects, supernodes, hardware, power, and operations. It also provides a practical decision checklist and compares self-hosting with cloud-based elastic deployment.

    Cost Breakdown for Self-Hosting a Trillion-Parameter MoE Model

    1. Trillion-Parameter MoE: Separate “Size” from “Compute”

    When a Mixture-of-Experts (MoE) model reaches the trillion-parameter scale, the first question is not simply performance. It is necessary to separate two cost items: storage/memory footprint and compute cost.

    The core of MoE is to split parameters into many parallel expert subnetworks. During inference, a router selects only a small subset of experts for each token. In a trillion-scale example, the expert pool may contain nearly 1,000 experts, and a single token usually activates only about a dozen of them.

    A common misunderstanding is that the expert activation ratio equals the parameter activation ratio. For example, an expert activation ratio of 16 / 896 ≈ 1.79% only shows what percentage of experts are selected. It does not mean that only 1.79% of the parameters are used. Each expert is still a dense, large matrix. Although only a minority of experts are activated, their parameter volume remains substantial.

    The key conclusion is that MoE memory/storage must be calculated based on total parameters. The activation ratio affects compute—floating-point operations per token—and memory-access bandwidth, but it does not reduce the weight volume that must remain resident in memory. The reason is straightforward: it is impossible to know which experts the next token will require, so all experts must be stored and ready. During inference, the selected experts are then moved to the compute units according to the routing result. This is the essence of MoE: it saves compute, but it does not save memory.

    Architecturally, these models often introduce efficient attention improvements, such as incremental or linearized attention, residual connections, and low-rank latent attention, to reduce long-sequence inference overhead. These are operator-level optimizations and do not change the basic rule that storage is determined by total parameters.

    2. Memory Estimate: From Raw Weights to a Deployable Total

    Assume a trillion-scale model uses 4-bit quantization-aware training (QAT), where the model is made aware of quantization error during training to reduce accuracy loss.

    Step 1: Raw data lower bound

    • 2.8 trillion parameters × 4 bits ÷ 8 ≈ 1,400 GB.

    This is the ideal minimum, assuming no additional overhead.

    Step 2: Scale overhead in block-level quantization formats

    Common low-precision floating-point formats use block-level micro-scaling: a group of 32 elements shares one scale factor. If each group of 32 4-bit elements has an 8-bit scale, the effective size per element is about 4.25 bits.

    • 2.8T × 4.25 bits ÷ 8 ≈ 1,487.5 GB.

    Step 3: Additional components required for actual deployment

    Actual deployment must continue adding the following:

    • Unquantized tensors: attention layers and embeddings often retain higher precision.
    • Metadata and alignment padding: tensor headers, routing tables, and padding.
    • Runtime workspace: activation buffers, temporary tensors, and communication buffers.
    • KV cache: grows linearly with context length and concurrency. In long-context scenarios, it may require tens to hundreds of additional GB.

    Comparison for scale

    A 600-billion-parameter open-source MoE model may require about 650 GB for FP8 weights. Even with 4-bit quantization, its weights are about 335 GB. After adding activations and workspace, the total system requirement is about 400 GB. This can just fit into eight high-end 80GB accelerators, totaling about 640 GB of memory.

    A trillion-scale model is different. Its weights approach 1.5 TB, roughly 3–4 times larger. One 8-accelerator node with about 640 GB total memory cannot fit it. This directly determines that deployment must follow a multi-node, multi-accelerator approach with high-bandwidth interconnect.

    3. Why Supernodes Are Needed: Communication Is the Hidden Bottleneck

    Even if memory is sufficient, large-scale MoE inference has another hidden cost: all-to-all communication.

    When nearly 1,000 experts are distributed across dozens of accelerators, every token must go through routing, transferring the activation vector to the accelerator hosting the selected expert, computation, and transferring the result back. This is manageable within a single accelerator. Once experts are spread across accelerators—or even across machines—the transfer becomes cross-node all-to-all communication. Latency can directly consume the compute benefit.

    MoE inference is extremely sensitive to inter-accelerator bandwidth. This is a hard constraint, not an optional optimization.

    For this reason, such models often require dozens of high-end accelerators—for example, 64 or more—to form a supernode. High-speed interconnect, with high bandwidth and low latency, can expand the communication domain and keep routing transfers inside a high-bandwidth domain instead of falling back to a slower cross-machine network. Common engineering methods include:

    • Hybrid expert parallelism and data parallelism.
    • Tensor parallelism to split individual experts.
    • Computation and communication overlap to hide transfer latency.

    4. Cost Breakdown: Where the Money Goes

    The central question is how much it costs to self-host such a model locally. Cost is not a single dimension. It is made up of several parts:

    1. Accelerator cards themselves (the largest item)
      Memory requirements determine the minimum number of cards. With about 1.5 TB of weights plus KV cache and workspace, memory should be at least about 2 TB. This corresponds to more than 20 high-end accelerators with 80GB each. Considering the splitting efficiency and redundancy of expert parallelism and tensor parallelism, actual deployments often move toward 32–64 cards, or even supernode scale. This is the main cost driver.

    2. High-speed interconnect and networking
      Inter-accelerator and cross-machine high-bandwidth, low-latency networks are essential for supernodes. They are not cheap, and their share becomes significant when scaling across multiple machines.

    3. Storage and supporting infrastructure
      Weight loading and model repositories require large-capacity, high-speed storage. Racks, power, and cooling are also hidden costs. High-density compute often requires liquid cooling.

    4. Power and operations
      Full-load inference power can reach tens of kilowatts. Long-term electricity and operations staff costs cannot be ignored.

    5. Elastic cloud alternative
      If a private deployment is not required to remain permanently resident, renting large-scale accelerator instances in the cloud can be more economical. It follows a pay-by-hour model, avoids building racks and networks, and is suitable for validation and peak-demand scenarios. For long-term high-load scenarios or cases with strong data-compliance requirements, the amortized cost of a self-built supernode may be more cost-effective.

    In summary, the entry threshold for full-scale local deployment of a trillion-parameter MoE model is essentially determined by memory lower bound, accelerator unit price, and interconnect/supporting infrastructure. It is a typical heavy-asset investment.

    To reduce costs, there are three main areas to consider:

    • Evaluate whether accuracy after quantization meets business requirements. Compared with higher precision, 4-bit quantization can save more than half of memory.
    • Improve single-card throughput through inference optimizations such as KV cache management, speculative decoding, and continuous batching, thereby reducing unit cost.
    • Use hybrid orchestration between self-built infrastructure and cloud elasticity based on the workload curve.

    5. Pre-Deployment Decision Checklist

    • Calculate the memory requirement first: total parameters × bit width ÷ 8, then add scale overhead, KV cache, and workspace to obtain the real memory lower bound.
    • Check interconnect capability: confirm whether the target environment has high-bandwidth inter-accelerator or cross-machine interconnect. Otherwise, communication will become the bottleneck.
    • Choose the right deployment form: use cloud elastic instances for validation, and consider a self-built supernode for stable, high-load periods.
    • Use inference optimizations to reduce cost: quantization, batching, cache reuse, and expert-parallel scheduling are all necessary.
    • Consider total operational cost: power, cooling, especially liquid cooling, and stability of high-density compute should all be included in total cost of ownership.

    What truly determines cost is not the moment the model starts running, but the cost structure defined by three factors: memory lower bound, interconnect topology, and inference efficiency. If these three accounts are calculated clearly, deployment decisions will not spiral out of control.