Deploying a 2.8T Open-Weight Model Locally: VRAM Sizing and Deployment Options
A recently released open-weight model with 2.8 trillion total parameters — roughly 1.56TB of weight files across more than a hundred shards — offers powerful baseline capabilities but poses serious hardware and engineering challenges. This article uses it as a case study to explain the structure of ultra-large Mixture-of-Experts (MoE) models, and provides practical methods for VRAM estimation, quantization, framework selection, and deployment decisions.
A recently released open-weight model with 2.8 trillion total parameters — roughly 1.56TB of weight files across more than a hundred shards — offers powerful baseline capabilities for enterprises and research institutions, but also demands far more from hardware and engineering teams. Rather than reviewing any specific model, this article uses it as a case study to explain the structure of ultra-large Mixture-of-Experts (MoE) models, and provides practical methods for VRAM estimation, quantization, framework selection, and deployment decisions.
1. Total Parameters vs. Active Parameters
For MoE models, total parameters and active parameters are two different numbers. Taking a model with 2.8T total parameters and roughly 104B active parameters per inference step as an example: each token only passes through a small subset of expert networks. The 104B active parameters represent a compute workload comparable to a hundred-billion-scale dense model — not a ten-billion-scale one.
The two figures affect deployment differently:
- Storage is determined by total parameters. All expert weights must live somewhere — GPU memory, host memory, or disk.
- Per-step compute is determined by active parameters. However, if an expert’s weights are not in GPU memory, they must be fetched from memory or disk, and latency rises sharply.
The first deployment gate, therefore, is GPU memory capacity and memory bandwidth. Whether you can fit all experts into GPU memory — or schedule them between GPU and host memory with acceptable latency — determines whether a given approach is feasible.
2. VRAM Estimation: Start with a Consistent Precision Baseline
The same model estimated at different precisions can require nearly twice as many accelerators. Before estimating, confirm the actual precision of the released weights. Two baselines are considered here:
- File-based: the weight files total about 1.56TB. Dividing by 2.8T parameters gives roughly 4.5 bits per parameter on average, indicating the released weights have already been low-bit stored or use mixed precision.
- FP8-based: at 1 byte per parameter, 2.8T parameters require about 2.8TB.
The following estimates assume 80GB accelerators and count weights only:
| Baseline | Weight Size | Minimum 80GB Accelerators (weights only) |
|---|---|---|
| File-based (1.56TB) | ~1,560GB | 20 |
| FP8-based (2.8TB) | ~2,800GB | 35 |
The table above counts weights only. Real deployments must also account for KV cache, activations, framework overhead, and memory fragmentation. A 10–20% memory headroom is recommended. When planning procurement, use the FP8 baseline as a conservative starting point, then adjust once the model’s official documentation confirms the actual precision.
The minimum VRAM requirement is estimated as:
Minimum VRAM ≈ weight memory + KV cache + activations + framework overhead
The KV cache formula:
KV cache ≈ layers × KV heads × head_dim × 2 × sequence length × batch size × bytes per element
The factor of 2 accounts for both K and V caches. With multi-head attention (MHA), KV heads × head_dim roughly equals the hidden dimension, so the hidden dimension can be used as an approximation. With grouped-query attention (GQA) or multi-query attention (MQA), KV heads are far fewer than attention heads, so use the full formula — otherwise you will overestimate cache usage.
Here is a worked example. These settings are hypothetical values for illustration, not the real configuration of any model: 60 layers, 8 KV heads, head_dim of 128, 128K context length, batch size 1, BF16 (2 bytes per element).
KV cache ≈ 60 × 8 × 128 × 2 × 131072 × 1 × 2 bytes ≈ 32GB
In long-context scenarios, each concurrent request consumes its own KV cache. At a concurrency of 8, cache demand rises to roughly 258GB — already beyond a single 80GB accelerator. Concurrency and context length must always be planned together.
3. Interconnect Bandwidth Determines Throughput
During MoE inference, tokens are routed to experts distributed across multiple devices. Every MoE layer triggers an All-to-All communication, and inter-device bandwidth directly affects per-step latency.
High-speed interconnects like NVLink can support this communication pattern. Consumer-grade cards connected only via PCIe often become the bottleneck in multi-card MoE workloads. For multi-node deployments, a high-bandwidth RDMA network is required. Before committing to a topology, measure actual All-to-All latency on it rather than relying on nominal bandwidth figures.
4. Quantization: Precision Trade-offs and Acceptance Criteria
Quantization is the primary lever for lowering deployment barriers. Three common approaches:
- INT8 or FP8 quantization: halves storage compared to BF16. Accuracy loss is usually small, making it a common choice for large model deployment.
- INT4 group quantization: 2.8T parameters shrink to roughly 1.4TB. Group scaling factors add overhead, and this approach typically needs to be combined with expert offloading, with generation quality evaluated.
- Mixed precision: routing layers and shared experts keep higher precision, while regular experts use more aggressive quantization.
Quantization gains depend on how well the inference framework supports low-precision kernels. Test throughput and memory usage on the target hardware before deployment — don’t rely on theoretical numbers alone.
After quantization, run accuracy regression tests covering:
- Business evaluation set: extract at least 200 samples from real business data, covering the main task types.
- General benchmarks: select public benchmarks close to your business to observe changes in general capability.
- Format compliance checks: measure compliance rates for structured outputs such as JSON and tool calls.
- Example acceptance thresholds: core metrics degrade no more than 2 percentage points versus the baseline (BF16 or FP8), and format compliance stays at or above 99%. Adjust thresholds based on business risk. If targets are missed, fall back to a higher-precision option.
5. Inference Frameworks and Distributed Strategies
Framework selection should focus on the following evaluation dimensions, verified against the official documentation and real measurements of the chosen version, since framework capabilities evolve quickly:
| Dimension | Purpose | How to Verify |
|---|---|---|
| Parallelism (TP, EP, PP, and combinations) | Whether experts fit across devices | Run it on the target topology |
| Low-precision kernels (FP8, INT4) | Whether quantization gains materialize | Compare measured throughput and memory |
| Continuous batching | Throughput under concurrency | Load-test throughput and time-to-first-token at various concurrency levels |
| Paged attention and prefix caching | Long-context support; reuse of shared system prompts | Long-context load tests; measure cache hit rates |
| Expert offloading | Fallback when GPU memory is insufficient | Measure the added latency of loading cold experts |
| New model adaptation cycle | How fast new models can go live | Check the framework’s support history for the model |
Common deployment topologies:
- Single node, 8 cards: tensor parallelism TP=8, experts sharded across cards, routing traffic over the high-speed interconnect, with cold experts offloaded to host memory and loaded on demand.
- Multi-node cluster: TP within nodes, EP or PP across nodes, connected via a high-bandwidth RDMA network.
For caching and scheduling, prefix caching reuses the KV cache of shared system prompts, and dynamic batching increases request-level parallelism. Actual throughput gains depend on how repetitive your traffic is — load-test with real traffic rather than borrowing someone else’s numbers.
6. Alternative Paths
Most teams don’t need to build an ultra-large inference cluster themselves. Three common alternatives:
- API calls: pay per token, no operations burden — suitable for workloads with large demand fluctuations.
- Cloud-hosted inference: public or private cloud platforms typically offer elastic accelerators and model services, letting you spin up inference with container platforms and object storage. Evaluate data compliance requirements, SLAs, egress bandwidth, billing models (reserved vs. on-demand), and cold-start time.
- Distillation and pruning: for fixed business scenarios, distill a ten-billion-scale small model from the open weights and run it on one or two cards. The share of requirements it can cover should be validated with your own business data rather than estimated.
7. Decision and Deployment Checklist
Before deciding on local deployment, answer four questions in order:
- Data compliance: must data stay inside your private network? If not, prefer APIs or cloud-hosted inference.
- Call volume: is daily token volume large enough that the amortized cost of local deployment beats API fees?
- Hardware: do you have 8+ accelerators with high-speed interconnect, plus adequate data center facilities?
- Engineering capability: does the team have distributed inference tuning experience?
Once you decide to self-host, verify each item before launch:
- Capacity: do GPU memory, host memory, and disk cover the combined needs of weights, replicas, logs, and caches, with headroom?
- Interconnect: does measured NVLink or RDMA bandwidth meet All-to-All communication demands?
- Power and cooling: do total system power draw and rack cooling meet requirements?
- Shard verification: check shard counts and checksums to confirm the download is complete.
- Accuracy regression: the quantization scheme passes acceptance thresholds.
- Rollback plan: keep the previous version’s service and weights ready, with a quick switch mechanism.
- Monitoring and alerting: cover GPU memory usage, latency, error rates, and cache hit rates.
There is a significant engineering gap between merely downloading model weights and running a stable, well-tuned service. Working out the card count and precision baseline first, then choosing a quantization scheme and deployment path, is the starting point for controlling both cost and risk.
