Deploying a 2.8T MoE Model Locally: How to Calculate GPU Memory Requirements
A 2.8-trillion-parameter Mixture-of-Experts model may activate only a small fraction of its weights per token, but storing the full model remains a major deployment constraint. This article checks weight-size estimates, provides formulas for GPU memory and expert communication, and explains multi-node deployment, parallelism, load balancing, quantization risks, and agent inference requirements.
When an extremely large open-source Mixture-of-Experts (MoE) model becomes available, the first practical question is whether it can run on your hardware. The answer starts with three numbers: total parameters, bytes per parameter, and active parameters per token.
This article uses the architecture figures reported in the source material to recalculate weight storage and GPU memory requirements. All illustrative assumptions are identified. Before deployment, verify the details against the official model card and inference framework documentation.
1. Check Whether the Parameter Counts and Weight Sizes Agree
The weight sizes reported in the source material are inconsistent with its stated parameter count. At common numerical precisions, a model with 2.8 trillion parameters requires approximately:
| Weight precision | Bytes per parameter | Weight storage for 2.8T parameters |
|---|---|---|
| BF16/FP16 | 2 | 5.6 TB |
| FP8 | 1 | 2.8 TB |
| INT4 | 0.5 | 1.4 TB, excluding quantization scales |
The source reports a weight size of 1.56 TB, also described as approximately 1,597 GB. Dividing 1.56 TB by 2.8 trillion parameters gives roughly 0.56 bytes, or 4.5 bits, per parameter. This does not correspond to a single standard precision. It is more consistent with a mixed-precision release in which most weights use a low-bit format while some layers retain higher precision.
The claim that a 2.8T model occupies “nearly 1.6 TB in BF16” therefore does not hold: BF16 weights alone would require approximately 5.6 TB.
The reported figure of roughly 400 GB after 4-bit quantization is also inconsistent. A complete 2.8T model requires about 1.4 TB in INT4 before quantization metadata. At 4 bits per parameter, 400 GB corresponds to approximately 0.8 trillion parameters.
Also keep decimal TB/GB and binary TiB/GiB consistent when comparing weight files with device capacity. The source’s 1.56 TB and 1,597 GB figures mix these conventions.
Before downloading the model, check the official model card and file manifest for:
- Total parameter count
- Active parameter count
- Weight precision for each module
- Actual combined size of the weight files
Use the file manifest rather than storage conversions quoted in secondary articles.
2. How MoE Changes Memory and Compute Requirements
The distinction between total and active parameters is central to MoE deployment.
The source reports 104 billion active parameters per inference step, approximately 3.7% of the total. This suggests that per-token parameter computation is roughly comparable to a 104B dense model. It does not mean that only 3.7% of the weights need storage.
All expert weights must remain available, either on GPUs or through an offloading mechanism, because the router cannot know in advance which experts the next token will use. Sparse activation reduces computation, not the total amount of weight storage.
The reported architecture includes:
- 896 routed experts, with the top 16 selected for each token
- Two shared experts that are always active
- 93 Transformer layers
- A context window reportedly on the order of 100K tokens
Shared experts handle general-purpose features, while routed experts capture more specialized features. Because every token uses the shared experts, their placement and partitioning require separate consideration when configuring parallelism.
3. GPU Memory Estimation Formulas
A practical memory estimate has three components:
Total GPU memory ≈ Weight storage + KV cache + Activation and communication buffers
Weight storage is straightforward:
Weight storage = Total parameters × Bytes per parameter
For a conventional attention layout, KV cache storage can be estimated as:
KV cache =2 × Number of layers× Number of KV heads× Head dimension× Bytes per element× Sequence length× Concurrent requests
Read the KV cache parameters from the model configuration rather than inferring them from the total parameter count.
For illustration only, assume:
- 93 layers
- Eight KV heads
- A head dimension of 128
- BF16 cache storage
The cache requirement per token is then:
2 × 93 × 8 × 128 × 2 ≈ 0.38 MB
At a context length of 100K tokens, one request requires approximately 38 GB of KV cache. Ten concurrent requests of that length require approximately 380 GB.
If the model uses a compressed attention mechanism such as MLA, actual cache usage can be substantially lower.
Allow an additional 15–20% margin for memory fragmentation, temporary tensors, and communication buffers.
4. Why an Eight-GPU Server Cannot Hold the Weights
Using the reported 1.56 TB weight size as a planning scenario, eight 80 GB GPUs provide 640 GB of aggregate memory—only about 41% of the weight requirement. The weights alone do not fit.
Eight 192 GB GPUs provide 1,536 GB. That is still slightly below the reported weight size, with no room left for KV cache or runtime buffers.
The practical options are:
- Multi-node deployment. Four servers with eight 80 GB GPUs each provide 2,560 GB in total. Using the source’s approximate capacity accounting, weights consume around 62%, leaving space for KV cache and other allocations. Three such servers provide 1,920 GB and could theoretically hold the weights, but leave only about 17% headroom. Long contexts and concurrent requests would be tightly constrained.
- CPU memory or SSD offloading. Offloading can make execution possible, but repeatedly moving weights into and out of GPU memory reduces throughput substantially. It is better suited to offline batch processing or functional validation.
- A platform with more aggregate GPU memory. Size the platform using the full memory formula, not weight storage alone.
These estimates are conditional on the reported 1.56 TB release size. Recalculate them using the actual downloaded weight files and consistent units.
5. Combining Expert and Tensor Parallelism Within Eight GPUs
MoE layers are suited to expert parallelism (EP), while non-MoE components are suited to tensor parallelism (TP).
Expert Parallelism
Distributing 896 routed experts evenly across eight GPUs gives approximately 112 experts per GPU.
After routing, token representations are sent to the GPUs hosting their selected experts through All-to-All communication. The expert outputs are then sent back.
Tensor Parallelism
Attention layers and shared-expert layers can partition matrix operations by rows or columns. These partitions typically require All-Reduce communication.
Combining the Two
A common arrangement within an eight-GPU server is:
- TP = 8 for attention layers
- EP = 8 for routed experts
Configuration names and supported combinations vary by inference framework. Some frameworks require separate settings for tensor-parallel and expert-parallel group sizes. Confirm that the framework supports the intended combination before deployment.
In a multi-node setup, expert-parallel All-to-All traffic crosses the inter-node network, which is much slower than intra-node NVLink. This is often the main performance bottleneck.
6. Estimating All-to-All Communication Volume
Each token is dispatched to 16 experts at every MoE layer, and the results must return. A rough communication estimate is:
Communication per token per MoE layer ≈top_k × Hidden dimension× Bytes per element× 2× (N − 1) / N
Here:
2accounts for dispatch and return traffic.Nis the number of GPUs in the expert-parallel group.(N − 1) / Nestimates the share of traffic sent to other GPUs.
Assume a hidden dimension of 8,192, BF16 communication, and eight GPUs:
16 × 8192 × 2 × 2 × 7/8 ≈ 0.46 MB
If all 93 layers are MoE layers, total communication is approximately 43 MB per token. A prefill pass over 1,024 tokens produces roughly 44 GB of aggregate communication.
The hidden dimension is an illustrative assumption, and the calculation assumes that every layer is an MoE layer. Verify both against the model configuration.
When investigating communication bottlenecks, check:
- Whether expert-parallel groups are kept within the same NVLink domain where possible
- Whether cross-node communication uses RDMA rather than falling back to ordinary Ethernet
- Whether communication overlaps with expert computation, and how much overlap actually occurs
- The fraction of layer execution time spent on communication, and whether it rises significantly with concurrency
7. Load Balancing and the Capacity Factor
Ideally, token assignments are distributed evenly across experts. The average number of assignments per expert is:
Average tokens per expert =Tokens in batch × top_k / Total routed experts
For a batch of 4,096 tokens, top_k = 16, and 896 routed experts:
4096 × 16 / 896 ≈ 73 tokens per expert
With a capacity factor of 1.25, each expert would have approximately 92 token slots.
In implementations that enforce a fixed expert capacity, assignments exceeding those slots may be dropped or rerouted. Either behavior can affect output quality, so track the drop rate at each layer.
Real workloads rarely route perfectly evenly. Popular experts may receive disproportionately many tokens, making their host GPU a bottleneck while other GPUs wait.
Possible responses include:
- Monitoring actual token assignments per expert to identify hotspots
- Adjusting the capacity factor to balance memory use against dropped assignments
- Replicating hot experts across GPUs, if the framework supports it
KV Cache Management
KV cache also needs careful allocation. Paging mechanisms such as PagedAttention divide the cache into fixed-size blocks and allocate them as needed. This can reduce fragmentation and improve throughput. Confirm that the inference framework supports the feature before relying on it.
An OOM Troubleshooting Checklist
If deployment runs out of GPU memory:
- Record peak memory on every GPU, separating weights, KV cache, and temporary buffers.
- Check the configured maximum sequence length and number of concurrent requests.
- Measure token assignments per expert to identify routing hotspots.
- Reduce maximum context length or concurrency and observe how peak memory changes.
- Adjust the capacity factor and record any change in the drop rate.
8. Quantization Risks for Routing Accuracy
The routing network is sensitive to numerical error. Small changes in router scores can alter expert rankings, sending the same token to different experts and changing the output.
A common approach is to retain BF16 or FP32 precision for the router while applying low-bit quantization to expert weights.
After quantization, evaluate the model on your own test set using two kinds of metrics:
- Task accuracy or perplexity: Compare against the unquantized baseline.
- Routing consistency: Measure the overlap between experts selected for the same input before and after quantization.
If routing overlap falls significantly, first check whether the router was quantized. Then consider adjustments to the quantization scheme.
9. Inference Requirements for Agent Workloads
The source describes the model as a native multimodal agent model. If that description is confirmed by the official documentation, the inference system must handle three additional responsibilities.
Multimodal Input Preprocessing
Images and audio require appropriate resolution or sampling-rate normalization and correct alignment with text-token positions. Preprocessing must match the model’s training-time conventions.
Pausing and Resuming Tool Calls
When the model emits a tool request, inference pauses while the external tool runs, then resumes after the result arrives.
To resume correctly, the system must preserve:
- Generated tokens
- KV cache positions
- Tool-call IDs
Multi-Turn State Management
The application can represent the interaction with a simple state machine:
Awaiting input → Running inference → Waiting for tool → Running inference → Complete
A timeout path may look like:
Tool timeout → Retry or return an error → Resume inference or terminate
Every tool call should carry a unique ID. When a tool performs a write operation, such as creating an order or charging a payment, retries must use an idempotent design to prevent duplicate execution.
Conclusion
Plan deployment of an extremely large MoE model in this order:
- Verify the actual weight size and precision.
- Calculate GPU memory requirements, including KV cache and runtime buffers.
- Select the node count and parallelism configuration.
- Measure communication overhead and expert load balance under realistic workloads.
This process lets you assess hardware feasibility before downloading terabytes of weights and reduces the risk of redesigning the deployment after it goes live.
