The Cost of Deploying Trillion-Parameter MoE Models On-Premises
A practical cost breakdown for self-hosting trillion-parameter Mixture-of-Experts (MoE) models, covering why sparse activation does not reduce VRAM needs, how to calculate the quantized weight floor, why high-speed super-node interconnect is mandatory, and the four cost dimensions that determine the budget.
The Cost of Deploying Trillion-Parameter MoE Models On-Premises
1. First, clear up a common misconception: activation ratio is not a memory discount
When discussing self-hosted deployment of extremely large Mixture-of-Experts (MoE) models, the phrase most often misread is “sparse activation.” Take an architecture with roughly 2.8 trillion total parameters, 896 experts, and 16 experts routed per token. The activation ratio along the expert dimension is about 1.79%. Many people conclude from this that VRAM requirements can be compressed to roughly one percent as well. That does not hold up in engineering terms.
The reason is that the two resources are measured on completely different bases:
- Storage (VRAM) scales with total parameters. Routing is dynamic, and any token may hit any expert, so all 896 experts must stay resident in accelerator memory. Otherwise every inference would require swapping weights in from external storage, and the latency would be unacceptable.
- Compute scales with activated parameters. Sparsity genuinely saves floating-point operations and some bandwidth, not the space needed to keep weights resident.
At the architecture level, the backbone of such models is typically a combination of linear-attention structures (delta-rule variants, for example), residual connections, and gated multi-head latent attention. These components affect the growth curve of the KV cache and the complexity of operator implementations, but they do not change the premise that the full set of weights must be loaded. Treating the activation ratio as a memory discount is the most common systematic bias in the budgeting stage.
2. How to calculate the quantized weight floor
This class of model introduces quantization-aware training as early as the supervised fine-tuning stage, using a 4-bit floating-point format (E2M1-like) for weights and an 8-bit floating-point format for activations. This combination of low-bit weights with higher-bit activations is the mainstream compromise for deploying extremely large models today.
Under the OCP micro-scaling format specification, every 32 4-bit elements share one 8-bit scale factor, giving an effective bit width of 4 + 8/32 = 4.25 bits. The bare lower bound on weight size is therefore:
2.8e12 × 4.25 bit ÷ 8 ≈ 1.49e12 Byte ≈ 1487 GB
This is only the theoretical value for “weight elements plus scale factors.” A real deployment must add:
- Tensors that are not 4-bit (embedding layers, normalization parameters, and some attention projections usually keep higher precision);
- Tensor metadata, shard alignment, and padding fragments;
- Runtime workspace: temporary buffers, communication send/receive areas, and operator workspaces;
- The KV cache, which grows linearly with context length and concurrent batch size;
- Framework and scheduling overhead, plus redundancy reserved for fault tolerance.
In practice, a margin of 15% to 30% above the theoretical floor is usually needed. As a horizontal reference, a 671-billion-parameter dense/sparse model needs about 685 GB for 8-bit weights; after 4-bit quantization, weights take about 335 GB plus roughly 37 GB of activation overhead, for a total of about 400 GB, which sits right at the capacity edge of 8 × 80 GB accelerators (640 GB). 2.8 trillion parameters is more than four times that, and the difference in magnitude directly determines the deployment shape: this is not a scenario a single multi-GPU node can cover.
3. Why super-node interconnect is a hard requirement
The performance bottleneck in large-scale MoE inference is often not compute but all-to-all communication. After routing, each token’s hidden state must be sent to the device holding its target expert and retrieved once computation finishes. When experts are spread across dozens of cards, a single decoding step generates a massive number of small messages, and communication latency directly eats the compute gains.
The deployment shape recommended by the official documentation is therefore a super-node of 64 or more accelerators, using high-bandwidth in-domain interconnect (NVLink or an equivalent solution) to make the communication domain large, so that the vast majority of expert movement happens inside one high-speed domain and cross-domain traffic serves only as a fallback. If this degrades to ordinary Ethernet networking, additional optimizations such as hierarchical all-to-all, expert replication, and topology-aware routing become necessary, and a drop in throughput is the inevitable result.
Simplified illustration:
# Pseudocode: the core idea of hierarchical all-to-alltokens = route(tokens, top_k=16) # pick 16 experts per tokenlocal = tokens[tokens.expert < experts_per_node]remote = tokens[tokens.expert >= experts_per_node]local_out = dispatch_local(local) # high-speed interconnect inside the domainremote_out = all_to_all(remote) # cross-domain, keep this minimalcombine(local_out, remote_out)
4. The four dimensions of cost
1. Hardware purchase or rental. The main items are accelerators, high-speed NICs and switches, plus the accompanying CPUs and memory. In a super-node configuration, interconnect equipment takes a significantly larger share than in a conventional training cluster.
2. Data center and supporting facilities. Rack power density from several kilowatts to tens of kilowatts, liquid cooling or high-airflow cooling, and power redundancy are all ongoing expenses.
3. Software and people. Tuning distributed inference frameworks, adapting quantized kernels, topology-aware scheduling, and building observability all require a team with large-scale parallel experience, and this part is often underestimated.
4. Utilization. Whether fixed costs can be amortized depends on average daily request volume and concurrency stability. Under low load, the per-token cost of self-hosting will be far higher than on-demand cloud calls.
5. Decision guidance
- Start with a capacity calculation: take 1487 GB as the baseline, add the KV cache and runtime margin, and work backward to the minimum card count and interconnect specification;
- Then assess the workload: when average daily call volume is low and peaks fluctuate heavily, prefer on-demand cloud usage; with steady high concurrency and strong data-residency compliance requirements, self-hosting is more cost-effective;
- The cloud path likewise requires general capabilities such as super-node instances of 64 or more cards, object storage, a container platform, and logging, monitoring, and alerting;
- Finally, run a small-scale load test and validate the budget model with measured throughput rather than theoretical peaks.
The conclusion: the on-premises cost of trillion-scale MoE deployment is essentially determined by two hard constraints, full weight residency and a high-speed communication domain, not by the compute discount from sparse activation. Get those two right, and the budget will not be distorted.
