Trillion-Parameter MoE Local Deployment: Cost Drivers and Three Deployment Tiers

    This article explains how to estimate local deployment costs for trillion-parameter MoE models. It separates the problem into three targets—runnable inference, single-user 25 tokens/s, and 10 concurrent users at 25 tokens/s—and examines the weight-storage, runtime-memory, interconnect, and power/operations cost ledgers. It also provides capacity calculations, a reusable cost-estimation formula and pseudocode, guidance for expert parallelism and KV cache tuning, and an acceptance checklist for deployment.

    Trillion-Parameter MoE Local Deployment: Cost Drivers and Three Deployment Tiers

    Before weights and technical reports are fully public, discussing “how much local deployment costs” cannot rely only on model parameters or the memory capacity of a single accelerator. For a trillion-parameter Mixture-of-Experts (MoE) model, cost is determined by four ledgers: weight storage, runtime memory, interconnect communication, and power/operations. Using a general technical background of a 2.8-trillion-parameter MoE, 4-bit weights, 8-bit activations, and sparse expert activation, this article divides deployment goals into three levels and provides a reusable estimation method and engineering path. All specific prices should be treated as order-of-magnitude judgments; final budgets should be based on actual quotes, benchmarks, and business context lengths.

    1. Clarify Three Targets: Can Run, Single-User 25 tps, and 10 Concurrent Users at 25 tps

    The first tier is “as long as it can run, speed does not matter.” The core issue here is not compute, but fitting roughly 1.5TB of weights into addressable storage and letting the model stably emit tokens. Even if it produces only single-digit tokens per second, as long as routing, attention, and sampling pipelines work, it has validation value. At this stage, heterogeneous GPU-CPU inference can be used: the attention backbone and gating compression components are compute-intensive and remain on accelerators; many sparse experts account for most storage but only a small number are activated per token, so they can be offloaded to CPU memory supplied by a large-memory server. Cost mainly comes from memory capacity, local high-speed storage, and a small number of accelerators, typically ranging from tens of thousands to hundreds of thousands of RMB, depending on whether memory is fully populated at once and whether high-speed local disks are used for tiered caching.

    The second tier is “single-user output speed reaches 25 tps.” 25 tps means generating 25 tokens per second during decoding, which requires weight reads, expert routing, KV cache management, and batch scheduling to all meet the target. Feeding experts only from CPU memory is unlikely to achieve this stably. The attention backbone, hot experts, and KV cache need to reside or semi-reside in accelerator memory, while cold experts can still be tiered and offloaded. At this point, the number of accelerators, memory bandwidth, and inter-card interconnect quality become primary costs, and whole-system cost usually enters the hundreds of thousands to low millions of RMB range. With longer contexts and larger concurrent batches, KV cache further increases memory requirements.

    The third tier is “10 concurrent users, each at 25 tps or higher, with quantization no lower than 4-bit.” This is not simply the second tier multiplied by 10. The total throughput target for 10 concurrent users is 250 tps. After expert parallelism, the activated values for each token must be moved between multiple cards according to routing, and all-to-all communication latency directly consumes compute. Multiple accelerators need to form a high-speed interconnect domain so that expert distribution, batch scheduling, and communication overlap can be completed within the same topology. Cost usually starts at millions of RMB and rises further if long context, low tail latency, and high availability are required.

    2. Memory and Storage Ledger: 4-bit Does Not Mean “Exactly 1.4TB”

    For 2.8 trillion parameters stored at 4-bit, the lower bound for raw data is approximately:

    1. 2.8e12 × 4 bit ÷ 8 ÷ 1e9 ≈ 1400GB

    However, block quantization usually attaches an 8-bit scaling factor for every 32 4-bit elements. Converted using common block-quantization overhead, this is equivalent to about 4.25 bits per weight:

    1. 2.8e12 × 4.25 bit ÷ 8 ÷ 1e9 ≈ 1487.5GB

    This still does not include non-4-bit tensors, metadata, alignment padding, runtime workspace, and KV cache. In engineering practice, capacity should be reserved at 1.6TB to 2.0TB or even higher, rather than sized to the 1400GB boundary. The key point of MoE deployment is that memory footprint is calculated based on total parameters. The activation ratio only affects compute consumption, not the fact that “all experts must have somewhere to reside.” Of 896 experts, each token activates 16, giving an expert activation ratio of about 1.79%, but inactive experts still need to remain in the storage hierarchy and be fetched according to routing during inference.

    A comparison helps illustrate the scale: a hundred-billion-parameter MoE already requires hundreds of GB for weights at 8-bit, and after 4-bit compression it still requires hundreds of GB of weights plus tens of GB for activations and workspace. A trillion-parameter model is several times larger, which determines the lower bound for full deployment. If weights are placed in ordinary memory or local disks, first-token latency and expert swap-in/swap-out overhead must be accepted. If stable 25 tps is required, hot paths must be kept in high-bandwidth memory as much as possible.

    3. Three Deployment Tiers and Cost Magnitudes

    Tier 1: heterogeneous inference with a large-memory server and a small number of accelerators. Weights are stored in 4-bit block-quantized format on local high-speed storage or in large-capacity memory. The CPU side hosts sparse experts, while the GPU side hosts the attention backbone, routing, and sampling. Advantages include a relatively low hardware barrier and the ability to validate accuracy, routing, and interfaces. Disadvantages include decoding speed affected by memory bandwidth and expert swapping, as well as complex KV cache management for long contexts. Cost magnitude: tens of thousands to hundreds of thousands of RMB, with the main variables being memory capacity, storage media, and accelerator count.

    Tier 2: multiple accelerators plus CPU memory tiering. The attention backbone, gating components, hot experts, and KV cache reside in accelerator memory, while cold experts are offloaded to CPU memory as needed. Continuous batching improves per-card throughput, and expert cache hit rate reduces cross-tier movement. At this stage, attention should be paid to memory bandwidth, inter-card interconnect, and the CPU-to-GPU data path. Cost magnitude: hundreds of thousands to low millions of RMB. If long context or higher hit rates are required, both memory and accelerator memory must be increased.

    Tier 3: multi-card high-speed interconnect supernode plus expert parallelism. The 896 experts are distributed across multiple cards. After each token is routed, activated values are moved to the card hosting the target expert, computed, and then moved back. The larger the communication domain and the more hops across domains, the more obvious tail latency becomes. High-speed interconnect should be used to limit the expert-parallel group to a single communication domain, with compute-communication overlap, expert-affinity scheduling, and batch peak shaving. Cost magnitude: starting at millions of RMB, including accelerators, switching and interconnect, power and cooling, racks, and operations. Ten concurrent users at 25 tps each means total throughput of 250 tps, and any communication bottleneck will be amplified by concurrency.

    4. Cost Estimation Formula and Pseudocode

    Cost should not be calculated only from card prices. Use the following formula for budgeting:

    1. Total cost =
    2. number of accelerators × price per accelerator
    3. + CPU memory capacity (TB) × price per TB of memory
    4. + local high-speed storage capacity (TB) × price per TB of storage
    5. + high-speed interconnect ports and switching equipment
    6. + power, cooling, and racks
    7. + operations and spare parts
    8. + tuning and benchmarking labor

    For capacity, use:

    1. weight storage ≈ total parameters × effective bits ÷ 8 × safety factor
    2. runtime memory ≈ hot expert weights + attention backbone + KV cache + workspace
    3. KV cache ∝ concurrency × context length × layers × hidden dimension × precision bytes

    Below is estimation pseudocode that is not tied to specific products:

    1. def estimate_cost(params_total, eff_bits=4.25, safety=1.25,
    2. gpu_count=8, gpu_price=0.0,
    3. mem_tb=2.0, mem_price_per_tb=0.0,
    4. storage_tb=4.0, storage_price_per_tb=0.0,
    5. fabric_cost=0.0, infra_cost=0.0):
    6. weight_gb = params_total * eff_bits / 8 / 1e9
    7. reserved_tb = weight_gb * safety / 1024
    8. hardware = (
    9. gpu_count * gpu_price
    10. + mem_tb * mem_price_per_tb
    11. + storage_tb * storage_price_per_tb
    12. + fabric_cost
    13. + infra_cost
    14. )
    15. return {
    16. "weight_gb": round(weight_gb, 1),
    17. "reserved_tb": round(reserved_tb, 2),
    18. "hardware_cost": hardware,
    19. }
    20. # Price parameters must be replaced with actual quotes; example values are not a quote.
    21. print(estimate_cost(2.8e12, eff_bits=4.25, safety=1.3,
    22. gpu_count=8, gpu_price=0,
    23. mem_tb=2.0, mem_price_per_tb=0,
    24. storage_tb=4.0, storage_price_per_tb=0))

    The value of this code is that it separates “parameters—quantization—capacity—price.” As long as unit prices and quantities are replaced, it becomes possible to quickly compare the marginal costs of “adding memory,” “adding cards,” and “adding storage.”

    5. Performance and Communication Tuning: 25 tps Is Not a Single-Card Metric

    Single-user 25 tps depends on the decoding stage. Each generated token requires reading weights, performing routing, computing attention, and updating the KV cache. MoE sparsity reduces per-token compute but does not reduce weight residency requirements. The optimization order is usually: first ensure expert cache hit rate, then improve batching, and then optimize communication.

    For 10 concurrent users, distinguish between “25 tps per stream” and “250 tps total throughput.” The former is sensitive to tail latency, while the latter is sensitive to throughput efficiency. Continuous batching can combine decoding steps from different requests into batches, paged KV cache management can reduce fragmentation, expert-affinity scheduling can make tokens in the same batch hit the same group of experts as much as possible, and compute-communication overlap can hide all-to-all overhead. If experts are distributed across multiple cards, routing hotspots must be monitored: a small number of experts being activated frequently can cause single-card congestion, which needs to be mitigated through expert replication, load balancing, or routing constraints.

    When quantization is no lower than 4-bit, the accuracy performance after quantization-aware training must also be verified. 4-bit weights with 8-bit activations can significantly reduce storage, but block scaling factors, non-4-bit tensors, and dequantization overhead affect actual speed. Before launch, three benchmarks should be run: short-context single-user 25 tps, long-context single-user 25 tps, and 10 concurrent users at 25 tps each. At the same time, record first-token latency, decoding tail latency, peak memory usage, memory swap-in count, and interconnect utilization.

    6. Acceptance Checklist and Implementation Recommendations

    The acceptance checklist should include: whether weights can be fully loaded; whether the 4-bit quantization format matches the runtime; whether expert routing is stable; whether single-user short context reaches 25 tps; whether single-user long context still reaches 25 tps; whether 10 concurrent users each reach 25 tps; whether KV cache growth is controllable; whether all-to-all communication stays within a single high-speed interconnect domain; whether failure degradation can fall back to a low-throughput mode; and whether cost includes power, cooling, and operations.

    The implementation path is recommended in three steps. First, complete “can run” validation in a single-machine heterogeneous environment, recording weight load time, memory usage, and expert swap frequency. Then stress-test single-user 25 tps in a multi-card environment to identify hot experts and the KV cache limit. Finally, run a 10-concurrent-user stress test and adjust expert parallelism and batching strategy according to communication bottlenecks. For cloud-based pre-validation, general container platforms, object storage, monitoring, and alerting services can handle environment orchestration and observability, but the core cost remains accelerators, memory, and interconnect.

    Returning to “how much does it cost”: Tier 1 is validation cost in the tens of thousands to hundreds of thousands of RMB range; Tier 2 is performance cost in the hundreds of thousands to low millions of RMB range; Tier 3 is concurrency and communication cost starting at millions of RMB. A real budget should use the formulas above as a skeleton, replace unit prices with actual quotes, and replace estimates with benchmarks. Once weights are released, get it running before discussing speed, and measure tail latency before discussing concurrency. This is how to avoid the deployment trap of “the parameters fit, but the business does not run stably.”