How Much Does It Cost to Deploy a Trillion-Parameter LLM On-Premises?
This article breaks down the real cost of self-hosting a ~2.8 trillion-parameter sparse MoE model. It explains why VRAM is sized by total parameters rather than the 1.79% expert activation ratio, calculates the 4-bit weight footprint down to the bit (~1,488 GB), and shows why a high-bandwidth super-node of 64+ accelerators is a hard requirement. It also provides a cost checklist, practical estimation order, and cost-reduction options including cloud on-demand capacity.
1. First, a Common Misjudgment: VRAM Follows Total Parameters, Not the Activation Ratio
A sparse Mixture-of-Experts (MoE) model with roughly 2.8 trillion total parameters is often summarized as “896 experts, only 16 activated per token, an activation ratio of about 1.79%.” From there, some people extrapolate that the VRAM requirement is only a few percent of the full model. That inference is wrong.
Two concepts need to be separated. The expert activation ratio describes routing results—which experts a given token is assigned to. The parameter activation ratio must also account for the parts that always participate in computation: the attention backbone, shared layers, routing, and normalization. The two are not equivalent. More importantly, the activation ratio affects compute consumption, while VRAM usage depends on the total weight volume that must stay resident in storage.
The reason is straightforward: routing is dynamic, and any expert may be selected for the next token. You cannot predict the future, so you must load all 896 experts into storage and then pull the corresponding weights into computation according to routing during inference. For a deployment team, this means VRAM (or unified memory) capacity is planned against total parameters, while the compute budget is planned against the activated scale.
The backbone structure also affects engineering implementation. Models of this kind generally use a hybrid skeleton of linear attention and standard attention, and introduce components such as residual accumulation and gated compressed attention. The impact of the hybrid structure on VRAM falls mainly on the KV cache: the state of the linear attention portion is a fixed-size recurrent state that does not grow linearly with context length, while the standard attention portion still needs to cache keys and values by sequence length. For capacity planning, these two parts must be modeled separately rather than summarized with a vague “KB per token” figure.
2. How Much 4-Bit Weights Actually Take: Doing the Math Down to the Bit
Assume the model uses quantization-aware training from the supervised fine-tuning stage, with 4-bit floating-point weights and 8-bit floating-point activations. Under the OCP microscaling specification, every 32 4-bit elements share one 8-bit scale factor, so the effective bit width per weight is:
4 + 8/32 = 4.25 bit2.8e12 × 4.25 / 8 ≈ 1487.5 GB
Ignoring the scale factors, the raw data lower bound is about 1400 GB; including them, about 1488 GB. And this is still only the weights themselves, not yet including:
- Unquantized tensors: embedding layers, the output head, and some normalization parameters usually stay at higher precision;
- Metadata and alignment overhead: tensor descriptors, shard information, memory alignment padding;
- Runtime workspace: dequantization buffers, temporary activations, communication send/receive buffers;
- KV cache and the increments from batch concurrency.
In engineering practice, 15%–30% headroom is usually reserved on top of this, so the planned usable storage capacity for a single cluster should be well above 1500 GB.
As a horizontal reference, another industry model with about 671B parameters plus an approximately 14B multi-token prediction head has 8-bit floating-point weights of about 685 GB; converted to 4-bit, the weights are about 335 GB, and with activations and runtime overhead the total is about 400 GB—just fitting into 8 accelerator cards with 80 GB each (640 GB combined). The sample model is more than four times that size, which is where the cost curve for “full-scale on-premises deployment” begins.
3. The Hard Threshold: Why a High-Speed Interconnect Super-Node Is Required
Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. The 896 experts are split across multiple accelerator cards, and every token goes through the full chain of “route → move activations to the card hosting the target expert → compute → move back.” If the communication domain spans nodes and relies only on ordinary Ethernet, transfer latency will directly eat the compute gains, showing up as throughput that will not scale and per-card utilization that stays low over time.
Therefore, the recommended lower bound is a super-node of 64 or more accelerator cards with high-bandwidth intra-domain interconnect between cards. The value of this topology is to make the communication domain large, so that the vast majority of expert transfers happen within the same high-speed interconnect domain. The capacity check is also clear: 64 cards at 192 GB unified memory each total about 12 TB, ample redundancy against the 1.5 TB of weights, supporting higher concurrency and longer context.
4. Cost Checklist: Where the Money Goes
| Cost Item | Description | Magnitude Driver |
|---|---|---|
| Accelerator cards | 64 cards to start, with matching memory | VRAM lower bound × redundancy factor |
| High-speed interconnect | Intra-domain high-bandwidth links, switching equipment | Expert distribution density, all-to-all frequency |
| Hosts and storage | Weight loading needs high-throughput parallel file/object storage | 1.5 TB cold-start load time |
| Network | Separate management and storage networks | Cluster size |
| Power and cooling | The main long-term OPEX | Card count × utilization |
| Operations staff | Topology tuning, fault replacement | Cluster size and SLA |
A practical estimation order is: first set the VRAM lower bound from the weight volume, then multiply by the redundancy factor to get the number of accelerator cards, then derive interconnect and power from the card count, and finally add storage and staff.
5. Cost-Reduction Paths and Alternatives
- Quantization and precision trade-offs: More aggressive 4-bit weights are already the current mainstream lower bound; going further requires evaluating accuracy loss.
- Shared prefixes and state reuse: The fixed linear attention state is favorable for reuse across long sessions.
- Elastic concurrency scheduling: Configure compute by activated scale rather than total parameters to avoid over-provisioning compute.
- On-demand cloud instead of self-building: If a 64-card high-speed interconnect domain is not available, you can use a cloud provider’s container platform and high-performance computing instances, load weights with object storage, and use monitoring and alerting services to observe throughput and utilization, turning CAPEX into OPEX.
- Distilled smaller models: Most business scenarios do not need the full-scale model; distilled small and medium models can run on a single machine with multiple cards or even a single machine, cutting costs by one to two orders of magnitude.
6. Conclusion
The cost of deploying a trillion-scale sparse model on-premises is not determined by “1.79% activation,” but by 1.5 TB-class 4-bit weights, a 64-card high-speed interconnect super-node, and long-term power and operations. Calculating VRAM first, then interconnect, and finally OPEX is the only reliable path to avoid budget overruns; and on-demand capacity from cloud platforms such as Baidu AI Cloud offers a lighter entry point for teams that cannot build their own high-speed interconnect environment.
