Trillion-Parameter MoE Local Deployment: Estimating VRAM, Communication, and Cost
This article uses a publicly documented 2.8-trillion-parameter MoE model to explain how to estimate local deployment requirements. It covers a full-parameter VRAM baseline, All-to-All communication volume, hardware configuration and RMB cost estimates, CPU offload and quantization limits, a deployment validation checklist, and a local-versus-cloud decision framework, with assumptions stated so teams can verify each number.
When model parameters exceed the trillion mark, local deployment is no longer a matter of simply buying more GPUs. Using a publicly documented 2.8-trillion-parameter MoE model as an example, this deployment challenge spans VRAM capacity, cluster communication, storage bandwidth, and the inference engine. This article starts from total parameter count and provides estimation methods for VRAM, communication, and cost, while stating the assumptions behind each number so teams can verify them independently.
1. VRAM Requirements: Calculate from Full Parameters
An MoE model activates only a subset of experts, but that does not mean VRAM can be scaled by the activation ratio. During inference, all expert weights must be loaded into VRAM at service startup. The activation ratio affects only the computation per token (FLOPs). Therefore, the baseline for VRAM planning is total parameters, not active parameters.
The model configuration is: 896 routed experts, with each token routed to 16 experts. The ratio between the two is about 1/56, but the VRAM baseline remains 2.8 trillion parameters. As a comparison, DeepSeek-V3 has 671B total parameters, 256 routed experts, and activates 8 routed experts plus 1 shared expert per token. The two models differ in expert count and routing method, so their parameters cannot be applied interchangeably.
Quantized Storage Formula
The model uses quantization-aware training, with MXFP4 weights and MXFP8 activations. Storage is estimated as follows:
- Raw weight capacity = parameter count × element bit width ÷ 8
- MXFP4 shares one 8-bit scale for every 32 4-bit elements, so the average bit width per parameter is 4 + 8/32 = 4.25 bit
Substituting the numbers:
- Pure 4-bit raw payload: 2.8T × 4 ÷ 8 ≈ 1400 GB
- Including scales: 2.8T × 4.25 ÷ 8 ≈ 1487.5 GB
This formula does not include non-quantized tensors such as Embedding and the output head. Those must be calculated separately in BF16 and are not included in this article.
After reserving 15% to 20% for KV cache, CUDA context, and runtime buffers, the baseline VRAM requirement for the deployment is: 1487.5 GB × 1.15 to 1.20 ≈ 1710 to 1785 GB, or about 1.7 to 1.8 TB.
Using a 671B Model as a Reference
DeepSeek-V3 has official FP8 weights of about 685 GB. With AWQ 4-bit quantization, weights are about 335 GB. Adding about 37 GB of dynamic activation memory and about 40 GB of KV cache gives about 420 GB in total. These numbers are an illustrative estimate and depend on the framework and concurrency settings.
The 2.8T model is about 4.2× the 671B model (2800 ÷ 671). Using the same strategy, full deployment would require about 420 GB × 4.2 ≈ 1760 GB, consistent with the result above.
2. Communication Overhead: Calculate the Total First, Then Convert per GPU
Large-scale MoE inference depends on All-to-All communication. After routing, each token’s activation vector must be sent to the GPU hosting the target expert, and the result is sent back after computation.
Using hidden dimension 7168 and 16 activated experts per token, with round-trip FP32 transmission:
7168 × 16 × 2 × 4 bytes = 917,504 bytes ≈ 917 KB/token
This is the total transmission volume per token, not the amount received by a single GPU. If FP8 is used for dispatch and BF16 for return, the data volume drops noticeably.
With 64 GPUs and uniform expert load:
- Average per token per GPU: about 917 KB ÷ 64 ≈ 14.3 KB
- With 1024 concurrent tokens, total transmission per step is about 1024 × 917 KB ≈ 0.94 GB, or about 14.7 MB per GPU on average
When routing is uneven, GPUs hosting hot experts carry more traffic. If peak traffic is estimated at 2× the average, each GPU handles about 29 MB per step. This multiplier is an assumption and must be measured against the real routing distribution.
Communication at this scale usually requires super-node-class high-speed interconnect, such as NVSwitch-class solutions. Link latency and synchronization waits often become bottlenecks earlier than compute capacity.
3. Full Deployment: Hardware Configuration and Cost
1. Hardware Configuration
Using an 8-GPU server as the unit, 8 servers total 64 GPUs:
| Component | Per server (8-GPU) | 8 servers total |
|---|---|---|
| GPU (80 GB) | 8 | 64 |
| CPU (dual 64-core) | 2 | 16 |
| Memory (DDR5) | 1 TB | 8 TB |
| 400 Gbps RDMA NIC | 8 | 64 |
| NVMe SSD | about 30 TB | about 240 TB |
64 × 80 GB cards provide about 5.12 TB of VRAM, above the 1.8 TB baseline. A single 8-GPU server has only 640 GB of VRAM and cannot host the model independently; the model must be distributed across machines.
2. Cost Estimates
Purchase model:
- GPU: about RMB 22,000 each (based on public industry average estimates) × 64 ≈ RMB 1.41 million
- Network switches and cables: about RMB 180,000 (one-time)
- Subtotal: about RMB 1.59 million
Quotes for non-GPU server components (CPU, memory, SSD, chassis) are not available in this article and must be added after inquiry. Therefore, the previously estimated range of RMB 2.6 million to RMB 4.0 million has not been itemized and verified, and should not be used directly for project approval.
Hosted rental model:
- Full-server rental: about RMB 120,000 per server per year × 8 ≈ RMB 960,000 per year
- Electricity and cooling: about RMB 80,000 per year (assumptions must be reviewed against actual power consumption and electricity prices)
- Total: about RMB 1.04 million per year, with operations labor separate
4. Low-Cost Paths: CPU Offload and Quantization Compression
1. CPU Offload
Keep the 20% most frequently accessed experts resident on GPU and place the remaining experts in CPU memory or NVMe, swapping them in on demand.
- GPU-resident weights: 1487.5 GB × 20% ≈ 298 GB
- Remaining weights: 1487.5 GB × 80% ≈ 1190 GB
The latter exceeds 1 TB. The original 1 TB host memory is insufficient, so more than 1.2 TB of memory is needed, or NVMe must supplement it.
Performance numbers require a separate caveat. With an average expert size of about 1.66 GB (1487.5 GB ÷ 896) and PCIe 5.0 x16 theoretical unidirectional bandwidth of about 64 GB/s, moving a whole expert takes at least about 26 ms. Therefore, the original estimate of 3 to 5 ms per-token switching and throughput dropping to 40% to 50% of the full deployment holds only when most experts hit the GPU, the switch volume is small, and the batch is large enough to amortize switching overhead. With a low hit rate or small batch, performance degrades significantly. These numbers are illustrative assumptions, not general conclusions.
2. Boundaries of Precision Compression
A previous claim stated that keeping experts in MXFP4 and raising only Attention to BF16 would reduce VRAM to 1.2 TB. This claim does not hold. Expert weights alone already occupy about 1.49 TB, exceeding 1.2 TB.
To fit all weights within 1.2 TB, the average bits per parameter must be below about 3.4 bit (1200 GB × 8 ÷ 2.8T ≈ 3.43 bit), lower than MXFP4’s 4.25 bit. This requires additional quantization, and the accuracy risk must be measured.
Hardware count also needs to be calculated. Eight H200 GPUs provide 1128 GB in total, below 1.2 TB, and are insufficient to host the full weights. Based on 1.8 TB with MXFP4 plus redundancy, 141 GB cards require at least 13 units; deployments often use 16 to support power-of-two parallel partitioning.
5. Deployment Validation Checklist
After the weights are officially released, validate in the following order:
- VRAM measurement: after loading, actual MXFP4 usage should fall between 1413 and 1562 GB (1487.5 GB ± 5%). If outside this range, check Embedding, output head, and non-quantized tensor usage.
- KV cache growth ratio: at 128K context, compare measured cache with the theoretical value (2 × layers × KV heads × head dimension × bytes × sequence length × concurrency), and record results at different batch sizes.
- Communication efficiency: use an All-to-All benchmark tool on the 64-GPU cluster, testing both uniform routing and hotspot routing. Target bandwidth utilization is above 90% of theoretical bandwidth.
- Quantization quality: compare MXFP4 with BF16 on a fixed test set. The recommended perplexity increase relative to BF16 should be within 1% to 2%, while also comparing accuracy drops on downstream tasks such as MMLU and GSM8K. This threshold is an example; teams should set it according to business tolerance.
6. Decision Guidance: Local Deployment or Cloud API
The unit cost of local deployment is determined by the following formula:
Unit cost = (annual hardware amortization + annual electricity and cooling + annual operations cost) ÷ annual output tokens
Annual hardware amortization depends on purchase price and depreciation period. GPU utilization determines annual output tokens. Both require measurement, and this article does not provide fixed values. Cloud pricing is per token, and unit cost depends on the selected model and price tier.
| Dimension | Local full deployment | Cloud API |
|---|---|---|
| Upfront investment | Complete server quotes still needed; one-time hardware no less than RMB 1.59 million | None |
| Unit cost | Depends on GPU utilization and amortization period | Depends on model and price tier |
| Data control | Fully private | Subject to provider terms |
| Suitable scenarios | High-frequency production, data-sensitive workloads | Low-frequency validation, PoC testing |
For most teams, purchasing a cluster directly before the weights have been validated is not advisable. A safer approach is to run the workflow on the cloud or at 8-GPU scale first, obtain real throughput, VRAM, and communication data, and then decide whether to invest a million-RMB budget. The maturity of the MoE framework and the level of custom operator optimization often affect actual throughput more than hardware specifications.
