Deploying a 2.8T Open-Weight Model: How to Calculate VRAM and GPU Count
A practical guide to estimating VRAM and GPU requirements for running a 2.8T-parameter MoE model, covering weight precision, KV Cache overhead, deployment paths, download verification, and common OOM troubleshooting.
1. Downloading the Weights Doesn’t Mean You Can Run Them
This model’s weights are publicly available for download from the official model repository—no application required. The download package contains over a hundred files, with nearly a hundred safetensors shards totaling about 1.56TB. Downloading the weights to local storage only means you have the files. To actually run the model, you also need sufficient VRAM, an inference framework that supports MoE routing, and a clear understanding of the license terms.
This article walks through the process in order: first understanding the parameter structure, then estimating VRAM and GPU count, then choosing a deployment path, and finally covering download verification, startup, and troubleshooting steps.
2. Understanding the Parameter Structure
According to the official model card, the key specifications are:
- Total parameters: 2.8T
- Parameters activated per token: ~104B
- Total experts: 896, with each token routed to 16 experts
- Shared experts: 2, always active for all tokens
- Layers: 93
- Context length: ultra-long-context design
The defining trait of a Mixture-of-Experts (MoE) architecture is that it stores a lot but computes little. Each token only passes through a subset of experts, so compute cost is far lower than an equivalent dense model. However, all expert weights must stay resident in VRAM or system memory, because any expert may be routed to at any time. This is why download size correlates directly with total parameters, while compute correlates only with activated parameters.
This leads to two deployment conclusions. First, VRAM capacity is the primary bottleneck—not compute. Second, when experts are distributed across multiple GPUs, cross-GPU communication affects both latency and throughput.
3. Estimating VRAM: Three Steps to the Minimum GPU Count
Step 1: Determine total weight size. Weight volume varies dramatically by precision:
- BF16: 2.8T parameters × 2 bytes ≈ 5.6TB
- FP8: 2.8T parameters × 1 byte ≈ 2.8TB
- INT4: 2.8T parameters × 0.5 bytes ≈ 1.4TB
Step 2: Determine per-GPU usable VRAM. Deduct system and framework overhead, so use usable memory rather than the rated capacity.
Step 3: Compute the GPU count:
Minimum GPUs ≈ Total weight size ÷ Per-GPU usable VRAM × 1.2
The 1.2 factor is an empirical buffer covering memory fragmentation and some framework overhead. It does not include KV Cache, which is calculated separately below. Applying this method:
| Precision | Total Weight Size | GPUs Needed (192GB each) | GPUs Needed (80GB each) |
|---|---|---|---|
| FP8 | 2.8TB | ~18 | ~42 |
| BF16 | 5.6TB | ~35 | ~84 |
There’s a discrepancy worth checking here. The download size of 1.56TB is significantly lower than the 2.8TB estimated for FP8 storage. This suggests the released weights likely use mixed-precision or low-bit storage—for example, expert weights in 4-bit. The actual footprint should follow the quantization details in the model card. Even estimating at 1.56TB, eight 192GB GPUs provide about 1536GB combined—still less than the weight size. So the commonly cited “8 GPUs minimum” falls short even before accounting for KV Cache and framework overhead, and the number needs to be recalculated based on the actual precision.
4. KV Cache: The Hidden Cost of Long Contexts
KV Cache grows with context length and concurrency. The general estimation formula:
KV Cache ≈ 2 × Layers × Context Length × KV Heads × Head Dimension × Bytes per Element × Concurrency
Assuming a sample configuration: 93 layers, 128K context (131,072 tokens), 8 KV heads, head dimension 128, BF16 (2 bytes), concurrency 1. A single sequence requires:
2 × 93 × 131072 × 8 × 128 × 2 ≈ 49.9GB
At concurrency 8, KV Cache alone needs roughly 400GB. These numbers are only for illustrating the order of magnitude—the actual KV head count and whether compressed attention or sliding windows are used must be confirmed in the model’s config.json. Most inference frameworks also use paged caching, so actual usage depends on the page granularity and should be verified with real measurements.
5. Choosing a Deployment Path
| Option | Hardware Requirements | Best For | Main Limitations |
|---|---|---|---|
| Full-precision multi-GPU | Dozens of data-center-class accelerators | Enterprise inference services | High procurement, facility, and ops costs |
| Quantized deployment | GPU count based on precision, far fewer than full precision | Technical validation, small-scale services | Output quality must be verified |
| CPU + large-memory offloading | RAM must hold the weights, roughly 1.4TB–2.8TB | Extremely slow experimental runs | Far too slow for production |
| Cloud-hosted inference | No local hardware | Most teams and individuals | Cost, compliance, vendor lock-in |
For individual developers and small teams, start with cloud-hosted inference to validate business value before deciding whether to self-host. If local deployment is required, prefer a validated quantized version and benchmark output quality against your own evaluation set.
6. Pre-Deployment Preparation
Disk space. Downloading 1.56TB of weights requires at least 2TB of free space, plus headroom for extraction and temporary files. Use a local NVMe drive—loading shards from a network drive is noticeably slower.
Download and verification. Use the repository’s official download tool. After downloading, verify each shard’s SHA256 against the checksum file in the repository, for example:
sha256sum -c SHA256SUMS.txt
Re-download any shard that fails verification. Never troubleshoot inference issues on weights that failed checksum—that’s a waste of time.
License review. Open the model card and LICENSE file and check each of the following:
- Commercial terms: any restrictions on monthly active users, revenue thresholds, or registration obligations
- Derivative models: whether models further trained or distilled from this one must inherit the license and attribution
- Prohibited uses: restricted use cases listed in the license
- Multimodal content compliance: allocation of content safety and data compliance responsibilities
Defer to the official license text. In practice, have legal or compliance staff review it rather than relying on community summaries.
7. Inference Framework and Startup Steps
Before deploying, confirm that your chosen framework version supports this model architecture, including MoE routing, expert parallelism, and multimodal preprocessing. Common inference engines include vLLM, SGLang, and TensorRT-LLM. Their MoE support levels and parameter names differ, so consult each engine’s version-specific official documentation.
Using vLLM as an example, the following command is for illustration only—adjust parameters according to your version and GPU count:
vllm serve /data/models/<model-dir> \--tensor-parallel-size 8 \--enable-expert-parallel \--max-model-len 32768 \--gpu-memory-utilization 0.90 \--trust-remote-code
Before starting, check the following:
- Tensor parallelism must match the number of available GPUs. Across multiple machines, combine it with pipeline parallelism or Ray.
- Start with a shorter
--max-model-lento verify the service launches, then increase it gradually. - If the GPUs are connected via NVLink or InfiniBand, confirm driver and NCCL versions are consistent across all nodes.
8. Common OOM Errors and Troubleshooting
- OOM immediately at startup. Weight loading exceeds total VRAM. Check that the precision matches expectations, add GPUs, or switch to a lower-precision version.
- OOM during runtime. Lower
--max-model-len, lower--gpu-memory-utilization, or reduce concurrent requests. - Multi-node communication errors. Check network configuration and NCCL versions; set
NCCL_DEBUG=INFOfor detailed logs. - Extremely slow or timed-out loading. Check whether the weights are on a network drive. Move them to a local drive and retry.
- Abnormal or garbled output. Confirm the chat template, tokenizer, and multimodal preprocessing components match the model version.
9. Considerations for Cloud-Hosted Inference
Cloud inference eliminates hardware procurement, but you should still account for the following:
- Cost: Hourly-billed GPU instances vs. token-billed APIs differ greatly depending on workload. Estimate monthly costs for both using your actual request volume.
- Latency: When inference nodes are far from your users, time-to-first-token increases.
- Data compliance: If input data must cross borders or be processed across regions, confirm the provider’s data processing terms.
- Vendor lock-in: Platforms differ in APIs, parameters, and model update cadence. Use standard interfaces where possible and keep a migration plan.
10. Conclusion
Deploying very large open-weight models starts with a clear calculation of VRAM and GPU count, then a decision on the deployment path. Weight size, precision, KV Cache, and framework overhead all factor into that math—get the numbers right before committing to hardware or cloud spend.
