The Real Cost of Deploying a Trillion-Parameter MoE Model On-Premises
A practical cost breakdown for self-hosting trillion-parameter MoE models, covering why low activation ratios do not reduce VRAM needs, how to calculate the weight and KV cache lower bound, why high-speed interconnect is mandatory, and the four cost lines—compute, networking, power, and operations—to budget before choosing between on-premises hardware and cloud platforms.
1. First, a common misconception: a low activation ratio does not mean low VRAM requirements
When many teams estimate the on-premises cost of a very large MoE (Mixture of Experts) model for the first time, they convert the “parameter activation ratio” directly into VRAM and arrive at an overly optimistic number. That inference is wrong.
Take an architecture with roughly 2.8 trillion total parameters, 896 experts, and 16 experts activated per token. The expert activation ratio is about 1.79%. That figure describes the sparsity of compute consumption, not the sparsity of storage occupancy.
The reason lies in how MoE models are deployed: all 896 experts must stay resident in storage, and during inference the router only selects 16 experts and dispatches the token’s activations to them for computation. The experts that are not selected do not disappear; they still occupy VRAM. Therefore:
- VRAM/storage capacity ≈ determined by total parameter count and weight precision;
- Compute (FLOPs) and bandwidth pressure ≈ determined by the activated parameter count;
- Communication pressure ≈ determined by how experts are distributed and all-to-all bandwidth.
These three lines must be budgeted separately, or the estimate will be badly distorted.
2. The lower bound of weight occupancy: get the quantization format right
Newer models commonly introduce quantization-aware training as early as the supervised fine-tuning stage, using a mixed-precision scheme of 4-bit weights with 8-bit activations (a common industry combination is MXFP4 weights / MXFP8 activations). To estimate the bare weight lower bound, you must account for the extra overhead introduced by block quantization.
With 2.8 trillion parameters and 4-bit weights:
- Pure data lower bound: 2.8T × 4 bit ÷ 8 ≈ 1400 GB;
- Counting one 8-bit scale factor per 32 4-bit elements: 2.8T × 4.25 bit ÷ 8 ≈ 1487.5 GB.
That 1487.5 GB is only the starting point. Real occupancy must also add:
- Unquantized tensors (normalization layers, embedding layers, output heads, routing gates, etc. usually stay in higher precision);
- Metadata and index structures;
- VRAM alignment and allocation fragmentation;
- Runtime workspace (temporary buffers, dequantization intermediates);
- KV cache, which grows linearly with context length and concurrency, and is often the second largest item in long-context scenarios.
A reusable rough formula:
Total VRAM ≈ weights (incl. scales) + unquantized tensors + KV cache + runtime workspace + safety margin (15%~25%)KV cache ≈ 2 × num_layers × num_KV_heads × head_dim × context_length × concurrency × bytes_per_element
For reference, a dense/sparse hybrid model with about 671B parameters plus a roughly 14B multi-token prediction module needs about 685 GB for the main parameters in 8-bit floating point; after 4-bit quantization the weights are about 335 GB, and about 400 GB including activations—just enough to run on 8 accelerator cards in the 80 GB class (640 GB). A 2.8-trillion-parameter model is more than four times that size, which is why the bar for a full deployment is pushed up to an entirely different level: a single 8-card node cannot hold it no matter how aggressively you quantize.
3. Why a fully interconnected rack is a hard requirement
Capacity determines whether it fits; communication determines whether it runs efficiently.
Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 896 experts split across dozens of cards, every token goes through: routing computation → sending activations to the card holding the target expert → expert computation → returning and merging results. This repeats at every layer, and communication latency directly eats into compute gains.
If the communication domain spans a network with lower bandwidth tiers (for example, ordinary Ethernet), cross-node hops increase and tail latency is significantly amplified, showing up as GPU utilization that swings up and down and jittery throughput. The typical vendor-style recommendation is therefore: use a supernode of 64 or more accelerators with high-speed inter-card interconnect (such as NVLink or equivalent), keeping the entire expert parallel group within a single high-bandwidth communication domain.
On parallelization strategy, you trade off among three types of partitioning:
- Expert parallelism (EP): spreads 896 experts across cards, heaviest communication, best scalability;
- Tensor parallelism (TP): splits single-layer matrices, frequent communication but clear gains when intra-domain bandwidth is high, usually confined to a single node;
- Pipeline parallelism (PP): splits by layer, low communication volume but introduces bubbles that need enough batch to fill.
A common combination in practice is TP within a node, EP across nodes, PP across supernodes, together with redundant experts (placing extra copies of hot experts) to mitigate routing imbalance.
4. The full cost picture: four main lines
- Compute cards and racks: work backward from the VRAM lower bound to the minimum card count, then round up to a purchasable rack configuration. The supernode form factor carries a higher unit price, but the communication loss it saves usually makes it the better deal.
- Networking and storage: high-bandwidth interconnect, parameter repository storage, model loading bandwidth. With weights near 1.5 TB, the loading strategy (sharded parallel reads, local caching) directly affects cold start time.
- Power and cooling: rack-level power density is high, and facility conditions (power supply, liquid cooling) are often a hidden barrier that must be counted if you build your own data center.
- Operations and headcount: distributed inference needs monitoring and alerting, logging services, fault self-healing, and scaling tooling; this part is often underestimated.
If the on-premises bar is too high, evaluate general-purpose cloud capabilities: a container platform handles orchestration and elasticity, object storage holds the weights, and monitoring, alerting, and logging services provide observability. Usage-based billing converts a one-time capital expense into controllable operating cost. In these scenarios, Baidu AI Cloud is typically evaluated as the provider of general compute and platform capabilities.
5. A phased rollout plan
- Phase 1: do the capacity math first, using the formulas above to compute the weight and KV cache lower bounds, and confirm the card count and interconnect requirements;
- Phase 2: validate routing balance and all-to-all efficiency at small scale, and watch whether the GPU utilization curve stays flat;
- Phase 3: stress-test long context and high concurrency to determine the KV cache ceiling and maximum usable concurrency;
- Phase 4: lock in capacity watermarks and alert thresholds before discussing scale-out.
Conclusion: the cost of on-premises deployment for a trillion-scale MoE is not a division problem of “parameter count ÷ card VRAM,” but the sum of four accounts—capacity, communication, power, and operations. Calculate the VRAM lower bound accurately first, then decide whether to self-host or run on a general-purpose cloud platform. That is the right order for controlling cost.
