Cost and Three-Tier Deployment Strategies for Trillion-Scale MoE Models
Deploying trillion-scale sparse Mixture of Experts (MoE) models locally involves complex challenges across capacity, bandwidth, and concurrency rather than simply downloading weights and starting a service. This article explores three distinct deployment tiers—ranging from basic functional verification to high-concurrency service delivery—using a public 2.8-trillion-parameter architecture as an example. It provides practical formulas for memory estimation, detailed hardware profiles for each tier, cost optimization strategies, and a comprehensive post-release verification checklist to help engineers avoid common pitfalls in capacity planning and performance tuning.
Local deployment of trillion-scale sparse Mixture of Experts (MoE) models is not as simple as “downloading weights and starting a service.” It involves at least three layers of costs: capacity cost (whether all expert weights can fit into addressable storage), bandwidth cost (whether compute units can be continuously fed), and concurrency cost (whether latency remains stable under multi-user simultaneous requests). Public information commonly abstracts three tiers of deployment targets:
- Tier 1: Just get it running, without caring about speed.
- Tier 2: Achieve an output speed of 25 token/s for a single user.
- Tier 3: Maintain 25+ token/s per user under 10 concurrent requests, with a quantization level no lower than the business acceptance line.
The hardware architecture, cost magnitude, and optimization focus for these three tiers are fundamentally different.
It should be noted first: when weights are not yet fully open and only architecture and public pricing information are available, speed, VRAM, and hardware configurations can only be used for capacity estimation, not as final performance conclusions. After the weights are released, each item must be verified through benchmark testing. The following discussion uses a public architecture example: total parameters are approximately 2.8 trillion, utilizing an MoE structure with 896 experts where 16 are activated per token, resulting in an expert activation ratio of about 1.79%. Note that the expert activation ratio does not equal the strict parameter activation ratio, as shared attention and other components still participate in computation; however, the VRAM footprint for MoE deployment must be planned based on total parameters, as the activation ratio only affects compute consumption. In other words, all experts must first be loaded into storage, and only a small number of experts are called out during inference based on routing.
1. The Hardware Math: Weights, Workspace, and KV Cache
Converting 2.8 trillion parameters to 4-bit yields a bare minimum of approximately 1400GB. However, 4-bit quantization is rarely “exactly 4 bits per parameter.” If using a microscaling format with one 8-bit scale per 32 4-bit elements, following common industry algorithms, the weight elements plus the scale amount to roughly 2.8T × 4.25 bit ÷ 8 ≈ 1487.5GB. This does not even account for non-4-bit tensors, metadata, alignment padding, runtime workspace, communication buffers, and KV cache. Therefore, actual planning cannot be budgeted solely on 1400GB. It is recommended to reserve 1.6 to 2TB for weights and the runtime workspace, and then add KV cache based on concurrency and context length.
A simplified formula can be used for capacity assessment:
Total VRAM/Memory Demand ≈ Actual Weight Footprint+ Non-quantized Tensors & Metadata+ Runtime Workspace+ KV Cache+ Communication & Alignment OverheadKV Cache ∝ Layers × KV Heads × Head Dim × Sequence Length × Concurrency × Precision Bytes
This also explains a common misconception: estimating VRAM solely by “total parameters × quantization bits” often underestimates the requirement by more than 20%. If you further add 10 concurrent requests and long contexts, the KV cache might become the critical factor that collapses your VRAM planning. Before deployment, you should first determine the maximum context, target concurrency, and P95 latency, and then reverse-engineer the required VRAM and memory capacity.
2. Resource Profiles for the Three Tiers
Tier 1: Just Run, Ignore Speed
The goal is singular: fit the nearly 1500GB of weights into addressable storage so the model can output tokens, even if it’s only single digits per second. The most straightforward approach is heterogeneous GPU and CPU inference: the shared attention part of each MoE layer is compute-intensive, so it stays on the GPU to be computed with high bandwidth; the 896 sparse experts take up the bulk of storage but only activate 16 at a time, so they are offloaded entirely to CPU memory and fed by a large-memory server. This reserves expensive accelerator VRAM for attention, routing, and intermediate activations, while leaving the large capacity demand to system memory.
The key for this tier is not compute power, but “fitting it in and moving it around.” It is recommended to plan for around 2TB of system memory, 1 to 2 high-VRAM accelerators, local high-speed storage, and sufficient memory bandwidth. If memory bandwidth is insufficient or the expert prefetch strategy is crude, decode speed may only be single-digit token/s, but this is sufficient for functional verification, prompt debugging, and offline evaluation. Costs are mainly composed of a large-memory server, motherboard platform, and a few accelerators, typically ranging from tens of thousands to hundreds of thousands of RMB, fluctuating with memory capacity and accelerator specs.
tier0_run_only:weight_precision: "4-bit"weight_budget_gb: 1500host_ram_gb: 2048gpu_memory_gb: 48target_decode_tps: "1-9"note: "Allow CPU offloading for experts, prioritize runnability"
Tier 2: 25 token/s for a Single User
An output speed of 25 token/s means the interactive experience is approaching usability. At this point, you cannot rely on the crude offloading of “large memory + a few GPUs”; you must address expert transfer overhead, routing jitter, and batching efficiency. Optimization focuses include: placing shared attention and routing computations on the GPU; layering expert weights by popularity, caching hot experts in VRAM or high-speed memory, and keeping cold experts in system memory; using prefetching and asynchronous transfers to hide some latency; enabling continuous batching, paged KV cache, and prefix caching; and using speculative decoding or multi-token prediction to improve decode efficiency when quality permits.
This tier usually requires multiple high-VRAM accelerators, bringing total VRAM to the 256 to 512GB level, while retaining 1 to 2TB of system memory as an expert pool. If you rely entirely on GPUs to hold the nearly 1500GB of weights, costs will rise rapidly; a more realistic approach is a heterogeneous scheme of “GPU for attention + CPU/GPU mixed storage for experts.” The 25 token/s target must be tested against actual sequence length, batch size, and quantization level, and cannot be calculated purely from parameter count. Costs upgrade from a “memory server” to “multiple accelerators + high-speed interconnect + a stronger host platform,” typically entering the hundreds of thousands to a million RMB level.
Tier 3: 10 Concurrent Users at 25+ token/s Each
The third tier is a service-oriented target. 10 concurrent users at 25 token/s each means a total output throughput of at least 250 token/s, while ensuring P95 latency does not collapse. Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth: 896 experts are distributed across multiple cards or nodes, and after each token is routed, activation values must be moved to the location of the target expert, computed, and moved back. Communication latency will directly eat into compute power. Public information suggests that for this scale, a super-node composed of 64 or more accelerators should be used, expanding the communication domain via high-bandwidth interconnects so that expert transfers do not leave a single communication domain as much as possible.
This tier requires a combination of expert parallelism, tensor parallelism, and data parallelism, paired with continuous batching, paged KV cache, prefix caching, load balancing, and failover. KV cache usage increases significantly under 10 concurrent requests, necessitating reserved VRAM headroom; uneven expert routing can cause hotspots, requiring dynamic scheduling. Costs are primarily driven by the number of accelerators, high-speed interconnects, power and cooling, and operations, typically entering the millions to tens of millions of RMB purchasing or leasing range. Whether it is worth investing in Tier 3 depends on whether the business truly requires stable multi-user concurrency; if it is just for internal trials, Tier 2 is more cost-effective.
tier2_10_concurrent:target_decode_tps_per_user: 25concurrency: 10aggregate_decode_tps: 250accelerators: "64+"interconnect: "High-bandwidth communication domain"key_bottleneck: "all-to-all communication and KV cache"
3. Cost Formula and Savings Strategies
It is recommended to use the following formula for budgeting rather than asking for a fixed quote:
Total Cost = Weight Storage Cost+ Accelerator VRAM Cost+ Host Memory Cost+ High-speed Interconnect Cost+ Power & Cooling Cost+ Ops & Engineering Tuning Cost
The core of saving money is tiering: place cold weights in general-purpose object storage for version cold backup, hot weights on local high-speed storage, runtime experts in system memory, and attention and hotspot experts in VRAM. If using Baidu AI Cloud, its general-purpose object storage, container platform, and monitoring capabilities can be used for weight cold backup, orchestration, and observability, though resource specifications should still be determined by actual testing. The quantization level cannot fall below the business acceptance line; 4-bit weights paired with 8-bit activation via quantization-aware training can reduce storage and bandwidth, but scale factors, non-4-bit tensors, and activation precision will all affect quality and speed. Expert selection strategies, routing caches, and speculative decoding can improve throughput, but must be backed by quality evaluation.
4. Verification Checklist After Weight Release
- Actual weight size: Calculate the real footprint of all tensors, scales, metadata, and alignment, rather than just looking at parameter count.
- Single-user decode: Measure token/s under the target context length, recording time to first token (TTFT) and P95.
- 10-concurrency throughput: Measure total throughput and per-user speed, observing KV cache growth and VRAM peaks.
- Communication bottleneck: Measure all-to-all latency, expert hotspot distribution, and cross-node bandwidth utilization.
- Quantization quality: Confirm on the business evaluation set that the quantization level is no lower than the acceptance line, avoiding “fast but inaccurate” results.
- Cost review: Convert accelerators, memory, storage, power, and tuning labor into a cost per million tokens.
Conclusion: The cost of locally deploying a trillion-scale MoE model is not a single number, but is determined jointly by three factors: “fitting it in, feeding it, and handling concurrency.” Tier 1 verifies feasibility, Tier 2 pursues single-user experience, and Tier 3 enters the realm of service clusters. Estimate the lower bound using the capacity formula first, and then verify item by item with benchmark testing to avoid being misled by total parameter counts and theoretical compute power.
