The Cost of Locally Deploying a Trillion-Parameter MoE LLM
As the Mixture of Experts (MoE) architecture becomes mainstream for ultra-large models, many teams are exploring the feasibility of locally deploying trillion-parameter models. This article discusses deployment strategies and cost estimates across three typical scenarios using a hypothetical 2.8-trillion-parameter MoE model, covering hardware requirements, communication bottlenecks, and hidden operational costs.
As the Mixture of Experts (MoE) architecture becomes the mainstream for ultra-large models, “whether it is possible to deploy a multi-trillion-parameter model in a local environment” has become a common concern for many teams. This article does not target any specific model. Instead, it uses a hypothetical MoE model with a total of approximately 2.8 trillion parameters, 16 experts activated per token, and 896 experts in total, to discuss deployment strategies and cost estimates under three typical objectives. It should be noted that all figures in the text are engineering estimates based on public technical knowledge, and actual values must be subject to benchmarks on target hardware after the weights are released.
1. Calculate Clearly First: VRAM is the Hard Threshold
The first misunderstanding in MoE deployment is confusing “activated parameters” with “VRAM footprint.” The activation ratio only determines the computation volume; the VRAM footprint is calculated based on total parameters—you must first load all experts into addressable storage, and during inference, the router sends the activations to the corresponding experts.
Taking a 2.8-trillion-parameter model as an example, if 4-bit quantization-aware training (quantized weights and corresponding scaling factors) is used, following the industry standard of attaching an 8-bit scale to every 32 4-bit elements, the lower limit of pure weight data is approximately 2.8T × 4.25 bit ÷ 8 ≈ 1487 GB. This does not include non-quantized tensors, metadata, alignment padding, runtime workspace, and KV cache. A comparable rule of thumb is that a ~670-billion-parameter MoE model in 8-bit format requires about 685GB of storage, and even with 4-bit quantization, it needs around 400GB to operate on 8 high-end accelerators (640GB VRAM total). Once the size is quadrupled, the lower limit for a full deployment is determined—typically requiring high-speed interconnected nodes composed of dozens of accelerators.
The second key point is communication. Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth: after routing each token, the activations must be transferred to the card hosting the target expert, computed, and then transferred back. If cross-node communication relies on a low-speed network, the communication latency will directly swallow up the computing power. Therefore, production-grade deployments generally require high-speed interconnects to keep the experts within the same communication domain.
2. Three Levels of Deployment Goals and Costs
Level 1: Just Run It, Regardless of Speed
The goal is simple: load the nearly 1500GB of weights into storage so the model can output tokens, even if it’s only single digits per second.
The most straightforward approach is GPU + CPU heterogeneous inference. The core idea is that the shared attention part in each MoE layer is compute-intensive, so it stays on the GPU processed with high-bandwidth VRAM; the sparse experts, which occupy the bulk of the storage but are only partially activated each time, are offloaded to CPU memory, with the computation handled by a large-memory server.
Typical configuration:
- 1–2 mainstream data center GPUs (48–80GB VRAM is sufficient) for attention layers and scheduling;
- A dual-socket server equipped with 1.5TB or more system memory to host all expert weights;
- High-speed NVMe SSDs for weight loading and swapping.
Cost level: The overall hardware procurement is roughly in the range of 200,000 to 400,000 RMB. If utilizing an existing workstation for modification, this can be further reduced. The trade-off is speed—the generation rate for a single request is typically between a few tokens to a dozen tokens per second, only suitable for capability verification, benchmarking, data cleaning, and other latency-insensitive tasks.
Level 2: Single User, Output Speed Above 25 tokens/s
25 tokens/s is roughly the minimum for smooth interactive reading. To achieve this, the pure CPU path is basically hopeless; more expert computations must be brought back to the GPU. The estimation logic is that the computation required per forward pass is proportional to the activated parameters, and the latency lower bound is constrained by the weight read bandwidth. If the main body of weights remains in memory, constrained by memory bandwidth (typically hundreds of GB/s on dual-socket platforms), the speed is difficult to break out of single digits.
There are two viable engineering paths:
- Moderately increase the quantization compression rate and expand the GPU VRAM pool, such as using a single node of 8 to 16 accelerators to keep all or the vast majority of weights in VRAM, combined with tensor parallelism and expert parallelism;
- Retain the heterogeneous architecture but significantly expand the GPU-side cache, utilizing the locality of expert activation for prefetching and cache hit optimization.
Cost level: A node with 8 high-end data center accelerators typically costs between 1.5 million and 2.5 million RMB. If you choose inference cards with smaller VRAM or previous-generation products, the cost can be compressed to under 1 million RMB, but you must recalculate whether the total VRAM covers the 1500GB threshold. Additionally, power and cooling costs must be reserved—such nodes can consume several kilowatts at full load.
Level 3: 10-Way Concurrency, Single-Path Output Speed Maintained Above 25 tokens/s
Concurrency introduces new variables: KV cache grows linearly with concurrency, and load balancing for expert routing becomes critical. 10-way concurrency means 10 sequences are generating simultaneously at peak. While batching can amortize weight read costs, it imposes higher demands on VRAM capacity and interconnect bandwidth.
Engineering key points include:
- KV cache budget: Estimated by context length, number of layers, and hidden dimensions. Long context plus 10-way concurrency may consume hundreds of GB of additional VRAM, which must be factored into capacity planning;
- Hybrid expert and data parallelism: Distribute experts evenly across multiple cards and perform grouped scheduling for requests to avoid hot expert congestion;
- High-speed interconnect: Cross-card all-to-all communication must remain within the same high-speed communication domain; otherwise, latency will deteriorate immediately as concurrency increases.
Cost level: This tier basically corresponds to “a high-speed interconnected node with 16 or more accelerators,” with an overall investment typically ranging from 3 million to 6 million RMB. Adding data center power, cooling, and operations, the annual comprehensive cost needs to be marked up by 15% to 25%. If concurrency needs to scale further, consider multi-nodes plus a request scheduling layer instead of continuing to stack hardware within a single machine.
3. Easily Overlooked Cost Items
- Storage and loading: The distribution, version management, and loading time of 1500GB weights are real costs. It is recommended to pair high-throughput object storage as a weight repository with local high-speed disks for caching.
- Inference framework and engineering tuning: General optimization techniques such as continuous batching, speculative decoding, and prefix caching often bring several times the actual throughput improvement, a value no less than hardware upgrades.
- Verification costs: Ensuring the quantization level meets the original design requirements is the baseline. Before going live, you must use standard evaluation sets to verify precision regression item by item to avoid “saving VRAM but losing performance.”
4. Alternative Thinking: When Not to Build In-House
If the requirement is only for phased verification, or if the concurrency scale is unstable, the depreciation risk of building hardware in-house is very high. In this case, consider elastically acquiring resources through cloud providers’ computing services. For instance, general products like general-purpose GPU computing, container platforms, and object storage provided by cloud vendors (such as Baidu AI Cloud) can be rented on-demand for stress testing and proof of concept, which can then be used to reverse-derive the necessary in-house scale. For scenarios with high data compliance requirements, a two-stage path of “cloud verification + local deployment” can be adopted.
5. Summary
The cost curve for locally deploying a trillion-parameter MoE model is very steep: just to run it, hundreds of thousands of RMB; for single-user usability, a couple of million RMB; for 10-way concurrency, starting from several million RMB. The key to the decision is not “how many cards to buy,” but first clarifying the target level, then using VRAM capacity, interconnect bandwidth, and quantization precision as constraints to solve the problem, and finally closing the loop with real benchmark tests.
