Deploying a 2.8T-Parameter MoE Model On-Premises: Estimating VRAM and Cost
This article provides a technical framework for estimating the GPU memory, interconnect bandwidth, and infrastructure costs required to deploy a 2.8-trillion-parameter Mixture-of-Experts (MoE) model locally. It breaks down weight memory calculations for MXFP4 quantization, compares requirements against a 671B-parameter model, explains why All-to-All communication dominates hardware choices, and outlines a cost comparison between on-premises deployment and cloud-based options.
Deploying a 2.8-trillion-parameter Mixture-of-Experts (MoE) model on-premises requires a clear understanding of three interconnected factors: GPU memory (VRAM), interconnect bandwidth, and total cost. All figures presented in this article are based on explicit assumptions; you can substitute your own parameters to recalculate for your specific environment.
How Much VRAM Does a 2.8T MoE Model Require?
Total Expert Count Sets the VRAM Baseline
The model in question contains 896 expert networks. Each token activates 16 experts, yielding a routing ratio of 16/896, or approximately 1.79%. This ratio describes the proportion of selected experts relative to the total, not the overall activation ratio of the entire model. Parameters in the attention layers and shared experts participate in every inference pass. The actual activation ratio should be derived from real parameter statistics; this article does not provide a definitive figure.
The routing ratio affects per-token compute volume. VRAM, however, must be calculated based on total parameters. Any token may be routed to any expert, so all expert weights must remain resident in memory at all times. Estimation cannot rely on the activation ratio alone.
Weight Footprint Under MXFP4 Quantization
The model adopted quantization-aware training starting from the supervised fine-tuning phase. Weights use MXFP4 and activations use MXFP8. Under the OCP specification, MXFP4 shares a single 8-bit scaling factor across every 32 4-bit elements, averaging 4.25 bits per parameter.
- Theoretical 4-bit lower bound: 2.8T × 4 bits ÷ 8 = 1400 GB
- Weight footprint including scaling factors: 2.8T × 4.25 bits ÷ 8 = 1487.5 GB (using decimal conversion)
The 1487.5 GB figure above excludes non-quantized tensors, metadata, alignment padding, runtime workspace, and KV Cache. Accounting for these overheads, actual VRAM requirements are estimated to approach or exceed 1600 GB.
Comparing with a 671B Model: Standardize the Quantization Basis
The table below places both models under the same comparison framework. All estimates follow the assumptions stated in this article.
| Item | 671B MoE, FP8 | 671B MoE, AWQ 4-bit | 2.8T MoE, MXFP4 |
|---|---|---|---|
| Total parameters (incl. MTP) | ~685B | ~685B | 2.8T |
| Weight footprint | ~685 GB | ~335 GB | ~1487.5 GB |
| Estimated total memory usage | 685 GB+ | ~372 GB (incl. ~37 GB activation tensors) | ~1600 GB+ |
| Minimum number of 80 GB GPUs (based on total usage only) | 9 | 5 | 20 |
At 2.8T parameters—roughly 4.1 times the size of 685B—the weight footprint scales by approximately 4 times at the same precision. Note that AWQ 4-bit (671B model) and MXFP4 (2.8T model) are different quantization schemes; the comparison serves as an order-of-magnitude reference only, not a direct one-to-one comparison.
Additionally, 8 H100 GPUs provide 640 GB of total VRAM. The 671B MoE in AWQ 4-bit fits within this limit at ~372 GB. The FP8 version, at ~685 GB of weights alone, exceeds 640 GB and cannot be deployed on 8 GPUs.
For the 2.8T model, weights alone require approximately 20 GPUs with 80 GB each. KV Cache, inference engine context management, and memory fragmentation will further increase usage, so the actual GPU count will be higher. A single 8-GPU server is insufficient; a multi-node cluster is required.
Choosing a Supernode: Interconnect Bandwidth Matters More Than GPU Count
Why All-to-All Communication Is the Bottleneck
With 896 experts distributed across multiple accelerators in the cluster, each token traverses the backbone network, and the gating network selects 16 target experts. Tokens must be sent to the accelerators hosting those experts, then results are gathered and merged. This send-and-receive cycle is the All-to-All communication pattern.
If inter-accelerator bandwidth is insufficient, communication time may exceed expert computation time. In that case, the sparse-compute advantage of MoE is negated by communication overhead, resulting in poor accelerator utilization.
The Role of a Supernode
A supernode uses NVLink or equivalent high-speed interconnects to group multiple servers into a larger communication domain. All-to-All traffic stays within this domain as much as possible, reducing traffic through slower network switches.
For the purposes of this article, a baseline configuration of 64 accelerators is assumed. This is an assumption-based estimate, not a vendor recommendation. The actual scale required depends on model version, quantization method, context length, concurrency, and service-level agreements (SLAs). Validate with real measurements.
Key Checklist for Hardware Selection
- Does the number of accelerators within a single communication domain meet the baseline scale derived from the assumptions above?
- Can the intra-domain interconnect bandwidth and latency sustain All-to-All traffic? Test with real workloads.
- For cross-domain networking using InfiniBand or RoCEv2, evaluate bandwidth headroom and congestion control capabilities.
- Is VRAM headroom sufficient to accommodate KV Cache and peak traffic?
On-Premises vs. Cloud: How to Compare
Initial Investment for On-Premises
Based on current market conditions, a single high-end 8-GPU server (including GPU, CPU, memory, and motherboard) costs approximately RMB 2.5 to 3 million. Eight servers would total roughly RMB 20 to 24 million in hardware procurement. Prices fluctuate with market conditions and procurement volume; actual quotes take precedence.
Beyond servers, high-power racks, UPS systems, liquid cooling or high-density air cooling, and InfiniBand or RoCEv2 switches are required. These costs depend on data center conditions and cannot be derived from this article’s assumptions. The actual initial investment may exceed RMB 20 million; a project-specific quote is essential.
Cloud-Based Approach
Cloud providers such as Baidu AI Cloud offer HPC instances or bare-metal servers. This approach converts upfront hardware costs into pay-as-you-go or reserved operating expenses, with more flexible scaling.
Cloud costs depend on several factors:
- Instance billing model (on-demand, reserved, or spot)
- Utilization rate, i.e., actual compute hours
- Data transfer, storage, and networking fees
- Data compliance and residency requirements
Evaluation Framework
Two annual cost formulas provide a rough comparison:
- On-premises annual cost ≈ hardware depreciation + electricity + data center and networking + operations staff
- Cloud annual cost ≈ instance hourly rate × annual usage hours + data transfer and storage
When utilization is consistently high, on-premises typically yields lower per-unit compute costs. With volatile workloads, on-demand cloud resources offer better cost control. In either case, plug in actual quotes and real load curves before making a decision.
Inference Runtime Optimizations
Once hardware is determined, runtime optimization directly affects cost and stability.
- KV Cache management: Use PagedAttention to allocate KV Cache in blocks, reducing memory fragmentation.
- Batching: Combine dynamic batching with continuous batching to improve throughput. Tune maximum batch size and maximum wait time to balance throughput against time-to-first-token latency.
- Expert load monitoring: Track token counts per expert, observe per-GPU memory peaks, and record All-to-All latency as a percentage of total time. Routing skew can cause some accelerators to run out of memory while others sit idle. When skew is detected, adjust expert placement or set a capacity factor to limit per-expert load.
Conclusion
Deploying a 2.8-trillion-parameter MoE model on-premises requires three sequential calculations: VRAM determines the minimum GPU count, interconnect bandwidth determines whether those GPUs can coordinate efficiently, and cost determines whether on-premises or cloud is the better fit. Replace the assumptions in this article with your own concurrency levels, load volatility, and compliance requirements, using actual quotes and measured data for the final decision.
