Deploying a 2.8T MoE Model: How to Calculate Weight Size and GPU Memory Requirements
A practical guide for developers deploying 2.8T-parameter MoE models. Learn how total vs. active parameters affect deployment, how to estimate weight footprint and VRAM needs at different precisions, how KV Cache memory scales, and how quantization and offloading can lower the hardware bar. This article does not cite specific model configurations from unofficial sources; always refer to the official model card for exact details.
This article is aimed at developers planning to deploy a 2.8T-parameter MoE model. Since the source material provides model names, expert counts, layer counts, and context lengths without official references, this article avoids citing those figures. Where specific configurations are involved, defer to the official model card.
1. Total Parameters and Active Parameters Are Not the Same Thing
MoE (Mixture of Experts) models split the feed-forward network into multiple experts, and each token passes through only the few experts selected by the router. The total parameter count determines model capacity and the size of the weights; the active parameter count determines the compute cost of a single inference pass. The larger the gap between the two, the lower the per-inference compute cost—but the higher the memory pressure, because all expert weights must reside somewhere in order to be invoked by the router at any time.
Understanding this explains why a model with only tens of billions of active parameters can have a deployment footprint comparable to a dense model in the hundreds of billions.
2. What 1.56TB of Weights Tells Us
If 2.8T parameters were stored in BF16, each parameter takes 2 bytes, giving roughly 5.6TB of weights. In FP8 or INT8, that drops to about 2.8TB; fully INT4, about 1.4TB. The actual released weight size of 1.56TB works out to roughly 4.5 bits per parameter, indicating the weights are not stored at a uniform precision but combine quantization and mixed precision, with some layers possibly kept at higher precision. The exact breakdown depends on the official quantization notes.
The source material mentions the weights are split into 96 safetensors files. The safetensors format executes no arbitrary code during loading and supports on-demand memory mapping, making it well suited for large models. The actual number of shards should be verified against the file list in the repository.
3. How to Calculate GPU Memory Requirements
The lower bound of weight memory can be estimated directly: parameter count multiplied by bytes per parameter. The table below counts weights only—it excludes KV Cache, activations, and framework overhead.
| Precision | Weight size | Minimum 80GB GPUs | Minimum 141GB GPUs | Minimum 192GB GPUs |
|---|---|---|---|---|
| BF16 | 5.6TB | 70 | 40 | 30 |
| FP8/INT8 | 2.8TB | 35 | 20 | 15 |
| INT4 | 1.4TB | 18 | 10 | 8 |
| Actual release (~4.5 bit) | 1.56TB | 20 | 12 | 9 |
Based on the actual released weights, 8× 80GB GPUs provide 640GB total—not even enough for the weights alone. Even 8× 192GB GPUs total 1536GB, still about 24GB short of 1.56TB. So if an official statement claims “8 GPUs minimum,” it likely relies on CPU RAM or NVMe offloading, a specific quantization format, or other conditions not explained in the source. Readers should check the official deployment documentation for GPU models, memory capacity, offloading configuration, and precision—don’t go by GPU count alone.
4. How Much Memory Does KV Cache Use?
The KV Cache bytes for a single sequence can be estimated with this formula:
KV Cache bytes per sequence = 2 × number of layers × number of KV heads × head dimension × sequence length × bytes per element
The factor of 2 accounts for both K and V caches. Models using Grouped Query Attention (GQA) or Multi-head Latent Attention (MLA) have far fewer KV heads, which significantly reduces memory pressure.
A hypothetical example: 60 layers, 8 KV heads, 128 head dimension, BF16, and 100K context would require roughly 2 × 60 × 8 × 128 × 100000 × 2 bytes per sequence—about 24.6GB. These figures are for demonstration only and are not the actual configuration of any specific model. The more concurrent requests, the larger the KV Cache footprint, so capacity planning must account for both concurrency and maximum context length—not just the weights.
5. Lowering the Bar with Quantization and Offloading
Quantization methods such as INT8 and INT4 reduce weight size, but first confirm that your inference engine supports the chosen quantization format. CPU offloading keeps part of the weights in host memory and moves them over on demand during inference. This adds latency due to PCIe bandwidth, making it suitable for scenarios where throughput is not critical. When combining both approaches, benchmark time-to-first-token and tokens per second before going live.
6. Security Requirements When Downloading Weights
Multi-threaded downloads and mirror nodes can solve network interruption issues, but mirror sources are not always trustworthy. After downloading, do the following:
- Verify the hash of each shard against the SHA256 values provided on the official release page.
- Use only the official repository or trusted mirrors, and verify the domain and publisher.
- Never execute loading scripts from unknown origins. If you need to enable options like
trust_remote_code, review the code carefully first.
