Local Deployment of a 2.8T Open-Weight MoE Model: How to Calculate VRAM
This article uses a hypothetical 2.8T-parameter open-weight MoE model with about 104B active parameters and a 1.56TB weight footprint to explain how to estimate VRAM for local deployment. It covers MoE parameter concepts, weight download and verification, weight and KV cache memory calculations, inference framework configuration, monitoring, and a self-hosted versus hosted API decision framework.
Local Deployment of a 2.8T Open-Weight MoE Model: How to Calculate VRAM
1. Confirm Two Prerequisites First
The parameter scale of open-weight models continues to grow. This article uses one example model throughout: about 2.8T total parameters, about 104B parameters activated per token, a weight file footprint of about 1.56TB, and nearly one hundred safetensors shards. The numbers here are used to demonstrate the calculation method. For an actual deployment, use the parameter table and file manifest published on the model’s official release page.
Two prerequisites should be confirmed first. First, most open models use custom licenses that impose specific requirements on commercial scale, redistribution, and naming of derivative models. Second, 2.8T parameters mean inference must use multi-GPU parallelism; a single machine will have difficulty hosting the full model.
2. MoE Architecture: Three Concepts That Are Easy to Confuse
The example model uses a sparse-activation mixture-of-experts (MoE) structure. Assume its configuration is approximately 900 routed experts, with a gating network selecting 16 experts per token; a small number of shared experts handle general knowledge; and the model has more than 90 Transformer layers.
When evaluating the deployment, distinguish three concepts:
- Total parameters (about 2.8T) determine the weight file size and VRAM footprint.
- Active parameters (about 104B) determine the compute per token, or FLOPs. This is in the hundreds-of-billions range, far above the tens-of-billions range.
- VRAM usage is determined by total parameters and does not correspond directly to active parameters.
Lower compute does not mean lower VRAM. Each token uses only 104B parameters, but all 2.8T weights must remain resident in VRAM or be swapped in quickly. If experts must be read from disk on demand, single-request latency will rise sharply.
The model is natively multimodal and fused text and visual inputs early in training. During deployment, the inference framework must handle the image input pipeline. If the application relies on function calling or retrieval augmentation, tool-call formats should be handled consistently at the gateway layer, and the model’s output stability in long-chain tasks should be tested.
3. Weight Acquisition: Download, Verification, and Storage
A 1.56TB download requires dedicated handling. The following steps are recommended.
- Use a download tool that supports resume and multiple connections. For example, with aria2,
-cenables resume, while-xand-sset the number of concurrent connections. - Before downloading, obtain the official SHA256 value for each shard. After downloading, verify each one, for example with
sha256sum -c SHA256SUMS.txt. A shard that fails verification must be downloaded again separately and must not be used for loading. - Use NVMe SSD storage. Weight loading speed is limited by sequential disk read throughput. For 1.56TB, if the disk sustains 3GB/s, a full read takes about 9 minutes; if throughput drops to 200MB/s, it takes more than 2 hours.
- Record the download source, version number, and verification records for future traceability.
License review should focus on four items: whether commercial use is free and what threshold conditions apply; whether distillation and fine-tuning for external service are permitted; attribution and naming requirements for derivative models; and the list of prohibited uses. Enterprises should have legal or compliance staff complete the review before committing engineering resources, and should record the version of the terms reviewed.
4. VRAM Estimation: Calculate Weights First, Then Add Cache
Weight VRAM equals parameter count multiplied by bytes per parameter. Using this method, the results are as follows:
| Precision | Bytes per Parameter | Weight VRAM (Estimated) |
|---|---|---|
| BF16 | 2 | About 5.6TB |
| INT8 | 1 | About 2.8TB |
| 4bit | 0.5 | About 1.4TB, or about 1.5TB including quantization scales and other overhead |
| 2bit | 0.25 | About 0.7TB, or about 0.8TB including overhead |
With 4bit quantization, the weights require about 1.5TB of VRAM. Eight 80GB accelerators provide 640GB in total, which cannot hold these weights, so that is not a viable starting point. To host 1.5TB of weights, two common configurations are:
- 24 × 80GB cards, 1920GB total, leaving about 400GB of headroom.
- 8 × 192GB cards, 1536GB total, with almost no headroom, suitable only for short context or low concurrency.
Multi-node deployment across machines introduces network bandwidth bottlenecks and must be evaluated separately.
KV Cache is the part most often underestimated in long-context scenarios. The formula is:
KV Cache bytes per token = 2 × number of layers × number of KV heads × head dimension × bytes per element
Total KV Cache = bytes per token × context length × number of concurrent requests
Using the assumed parameters: 90 layers, 8 KV heads, head dimension 128, and BF16 storage (2 bytes per element). Each token takes about 368,640 bytes, or about 0.37MB. With a context length of 128K (131,072 tokens), a single request needs about 48GB of KV Cache, and 10 concurrent requests need about 480GB.
For models using compressed attention mechanisms such as MLA, the KV Cache calculation method is different. Refer to the official documentation.
5. Inference Frameworks and Starting Configuration
Deployment requires an inference framework that supports tensor parallelism (TP) and expert parallelism (EP). Mainstream open-source engines such as vLLM and SGLang provide relevant options. For specific parameter names and versions, refer to each project’s documentation.
The starting process is as follows:
- Pin the framework version and CUDA version in the container to avoid environment drift.
- Choose a quantization format that matches the hardware, and calibrate it with a small batch of samples. Compare task metrics before and after quantization to confirm that accuracy loss is acceptable.
- Set the parallelism scale. In a single-machine setup, the tensor parallel size usually matches the number of GPUs on the machine; expert parallelism determines how experts are partitioned across devices. Specific values should be determined based on the VRAM calculation results.
- Before startup, check that the weight shards are complete and confirm that verification has passed.
- After the service starts, record VRAM usage, first-token latency, and throughput at idle and at full load, then compare them with the estimates.
Monitoring should cover VRAM level, time to first token (TTFT), output tokens per second, and request queue time. If VRAM remains close to the limit for a long time, first reduce the context limit or concurrency rather than immediately adding more cards.
6. Decision: Self-Host or Managed
Before starting, answer three questions.
- Is data residency a hard compliance requirement? If not, calling a hosted API is usually a lower-risk starting point.
- How should costs be compared? Let A be the total annual cost of the self-hosted option, including hardware depreciation, power, data center space, operations labor, and spare parts; let p be the API price per million tokens; and let V be annual call volume in millions of tokens. When p × V exceeds A, self-hosting is more cost-effective.
- Does the business really need the capability ceiling of a 2.8T-class model? In most scenarios, an open model in the hundreds-of-billions parameter range, combined with retrieval augmentation and well-designed prompts, can meet requirements, and deployment cost is usually an order of magnitude lower.
Conclusion
The evaluation comes down to three points: whether compliance requirements are mandatory, where the cost break-even point lies, and whether the capability ceiling is truly necessary. Once all three are clear, decide whether to invest in hardware.
