A Cost Guide for Local Deployment of Trillion-Parameter MoE Models
Locally deploying a trillion-parameter Mixture of Experts (MoE) model requires far more than just downloading the model weights. It demands a comprehensive understanding of addressable storage, compute power, and interconnect bandwidth. This guide provides a practical cost analysis framework, covering memory estimation, hardware configurations across three performance tiers, and the often-overlooked costs of quantization and communication. By offering actionable calculations and deployment strategies, this article helps engineers avoid common budgeting pitfalls and accurately plan for large-scale MoE inference.
A Cost Guide for Local Deployment of Trillion-Parameter MoE Models
The real challenge of locally deploying a trillion-parameter MoE model is not “whether you can download the weights,” but “how much addressable storage, compute power, and interconnect bandwidth are required, and what this resource combination will ultimately cost.” Many budgets only account for the number of accelerators, ignoring weight format overhead, runtime workspaces, KV caches, expert routing communication, and datacenter power. This oversight often leads to substandard speeds post-launch or severe queuing when concurrency increases.
Below is a reproducible cost analysis framework based on a publicly discussed MoE model with approximately 2.8 trillion total parameters, nearly 900 experts, and sparse activation per token. All performance and pricing figures in this article are order-of-magnitude estimates; actual procurement requires item-by-item verification through benchmark testing.
1. Defining the Boundary of “Runnable”
“Runnable” does not equate to “usable.” For trillion-scale MoEs, the minimum goal is to load all expert weights into addressable storage, successfully retrieve activated experts during inference based on the routing mechanism, and stably output tokens—even if the speed is only single digits per second.
A common misconception here is: since MoE only activates a fraction of experts per token, should memory also be calculated based on the activation ratio? The answer is no. During deployment, all experts must reside in storage. The activation ratio only affects compute consumption and partial transmission volume; it does not affect the lower bound of total weight storage. In other words, total parameters dictate the storage lower bound, while the routing activation ratio determines compute and communication patterns.
Take a model with approximately 2.8 trillion parameters as an example. If using 4-bit weights, the raw data lower bound is roughly:
- 2.8 trillion × 4 bits ÷ 8 ≈ 1400GB
- However, microscaling 4-bit formats typically carry an 8-bit scale for every 32 4-bit elements, averaging about 4.25 bits per weight
- Calculating with this: 2.8 trillion × 4.25 bits ÷ 8 ≈ 1487.5GB
This calculation does not include non-4-bit tensors, metadata, alignment padding, runtime workspaces, KV caches, and parallel redundancy. Therefore, actual addressable storage should be provisioned at 1.8 to 2TB or more. As context length increases or concurrency scales, KV cache will further drive up memory requirements.
2. Three Tiers of Targets Corresponding to Three Hardware Form Factors
1. Just Run It: Large-Memory Heterogeneous Single Node or Small-Scale Multi-GPU
The first tier prioritizes the ability to load the model completely and output tokens, regardless of speed. The most straightforward approach here is heterogeneous CPU and GPU inference: retaining the compute-intensive shared attention backbone on accelerators while offloading the storage-heavy sparse experts to CPU memory, utilizing large-memory servers to host the weights.
The cost of this solution consists of three main parts:
- Large capacity memory: At least 1.5 to 2TB of addressable memory, with a recommended 20% to 30% margin.
- A small number of accelerators: To host the attention backbone, routing computations, and some hot experts.
- High-speed local storage: For storing weight files, quantized copies, and logs.
Hardware procurement costs for this tier typically range from tens to hundreds of thousands of USD, depending on the number of accelerators, memory capacity, and interconnect configuration. The advantage is a relatively low barrier to entry, but the downside is that decode speed is bottlenecked by memory bandwidth and expert offloading. A single user might only see single to low double-digit tps, with very weak concurrency support.
2. Single User 25tps: Requires Stronger Compute and Stable Memory Access Paths
The second tier targets a single-user output speed of 25tps or higher, while maintaining a quantization level of at least 4-bit with high activation precision. Relying solely on large-memory offloading is often insufficient here, as each token during the decode phase must pass through multi-layer routing and expert computation. Memory bandwidth, inter-GPU communication, and batch scheduling all become bottlenecks.
A more practical form factor is multi-GPU parallelism: distributing experts across multiple accelerators, using tensor or pipeline parallelism for the shared attention components, and expert parallelism for the expert layers. If using 80GB-class accelerators, the weights alone require a theoretical capacity of about 19 cards. Factoring in runtime workspace, KV cache, and redundancy, this usually scales to 24 to 32 cards or more.
Hardware costs for this tier typically enter the hundreds of thousands of USD range. The cost extends beyond just the accelerators to include high-speed interconnect switches, parallel file systems, redundant power, and cooling. If interconnect bandwidth is insufficient, the all-to-all communication required for expert routing will consume compute resources, resulting in a situation where you have many GPUs but speeds remain stagnant.
3. 10 Concurrency, Single User 25tps: Supernodes and Communication Domain Design
The third tier is the most easily underestimated: 10 concurrent users at 25tps each implies a total output throughput of at least 250tps. At this level, KV cache grows linearly with concurrency and context length, and expert routing communication volume increases alongside batch size. Common recommendations in public discussions suggest using 64 or more accelerators to form a supernode. By utilizing high-speed interconnects to expand the communication domain, expert offloading is kept within a single communication domain as much as possible.
Hardware costs for this tier typically range from hundreds of thousands to millions of USD, excluding datacenter power, cooling, network cabling, and operational personnel. For laboratory validation, you can first conduct short-term elastic stress tests using cloud-based general-purpose GPU computing, object storage, logging, and monitoring. For example, you can perform benchmark tests on cloud platforms like Baidu AI Cloud and then extrapolate the results for local procurement models. However, local production deployment should still prioritize owned hardware and long-term operational costs.
3. The VRAM Ledger: Weights are Just the First Item
A complete capacity budget should include at least the following:
- Weight storage: Total params × average bits per weight ÷ 8
- Quantization scale and metadata: Extra overhead from microscaling formats
- Non-quantized tensors: Normalization, bias, routing tables, etc.
- KV cache: Grows with layers, hidden dimensions, context length, and batch size
- Runtime workspace: Temporary activations, communication buffers, operator workspaces
- Parallel redundancy: Replication or slicing margins introduced by tensor and pipeline parallelism
- Safety margin: It is recommended to reserve 20% or more to avoid OOM and memory fragmentation
The following pseudocode can be used for initial estimation:
weights_gb = total_params * avg_bits_per_weight / 8 / 1e9scale_gb = total_params / 32 * 8 / 8 / 1e9kv_gb = batch * context_len * layers * kv_width * bytes_per_elem / 1e9runtime_gb = weights_gb * 0.15 + kv_gb * 1.2total_gb = (weights_gb + scale_gb + kv_gb + runtime_gb) * 1.25
Here, 1.25 is an example safety margin, not a fixed value. Scaling context from 8K to 32K, or concurrency from 1 to 10, can cause KV cache to multiply; this must be stress-tested independently.
4. Quantization Bit-Width: Lower is Not Always Cheaper
4-bit weights significantly reduce storage, but lower quantization levels carry higher risks of precision loss, routing instability, and long-context degradation. For MoE models, expert routing is particularly sensitive to numerical perturbations. After quantization, you must verify the following using your business dataset:
- Single-user first token latency
- Single-user decode tps
- P95 latency under 10 concurrent users
- Output consistency with long contexts
- Whether expert load is skewed
- Whether communication buffers become a bottleneck
Cutting quantization too aggressively to save money might require adding more cards to compensate for precision and stability issues, ultimately driving up total costs. It is recommended to treat “quantization level no lower than 4-bit, retaining high activation precision” as a hard constraint, and optimize parallelism strategies and batch processing within that constraint.
5. Communication is a Hidden Cost and a Performance Watershed
Large-scale MoE inference is extremely sensitive to all-to-all communication. After routing, each token’s activations must be moved to the device hosting the target expert, and then moved back after computation. The more dispersed the experts, the more communication hops are required, and the more easily latency will consume compute power. Supernodes use high-speed interconnects to expand the communication domain, essentially paying a premium for “expert transportation.”
The budget should explicitly list:
- High-speed interconnect ports and switch equipment between accelerators
- Cross-node communication networks
- Parallel file systems or high-performance local storage
- Power, cooling, and rack load-bearing modifications
- Monitoring, logging, alerting, and spare parts for fault replacement
Many projects spend heavily on GPUs but compress the budget for interconnects and storage, ultimately leading to acceptable prefill speeds but severe jitter during the decode phase.
6. Cost Magnitudes and Decision Recommendations
Divided roughly by the three target tiers:
- Just run it: Large-memory heterogeneous single node or small multi-GPU setup. Hardware costs range from tens to hundreds of thousands of USD. Suitable for validation, offline generation, and low-concurrency scenarios.
- Single user 25tps: Multi-GPU expert parallelism, usually requiring 24 to 32 80GB-class accelerators or equivalent compute. Hardware costs in the hundreds of thousands of USD.
- 10 concurrency, 25tps per user: Supernodes with 64+ accelerators are more reliable. Hardware costs range from hundreds of thousands to millions of USD, excluding datacenter and operational costs.
The final cost can be recalculated using the following formula:
Total Cost = Number of accelerators × Unit price+ Memory capacity × Unit price+ High-speed interconnect port and switch costs+ Storage costs+ Power, cooling, and rack modification costs+ Three-year operations and spare parts costs
It is recommended to start with small-scale benchmark tests to confirm single-user tps, P95 latency under 10 concurrent users, and long-context KV cache footprint, and then reverse-engineer the required number of cards and interconnect scale. Do not purchase a full hardware suite before optimizing, and do not draft a budget based solely on weight volume. The local deployment cost of a trillion-parameter MoE is fundamentally the product of “storage lower bound + compute lower bound + communication lower bound + operations lower bound.” Underestimating any one of these factors will be exposed the moment concurrent traffic goes live.
