The Cost of Deploying a Trillion-Parameter MoE Model Locally
This article breaks down the real cost of running a trillion-parameter MoE model on your own hardware across three practical targets: simply loading it, serving one user at 25 tokens/s, and serving 10 concurrent users at 25 tokens/s each. It explains why a low expert activation ratio cuts compute but not memory, how to calculate the weight memory floor, and which bottlenecks—storage capacity, memory bandwidth, or compute plus interconnect and KV Cache—define each tier, with capacity-planning formulas and a cost comparison to help you choose.
The Cost of Deploying a Trillion-Parameter MoE Model Locally
1. Define the target first: three tiers, three cost structures
“How much does local deployment cost?” is hard to answer because “getting it running” is not a single technical metric. In practice, the goal usually falls into one of three tiers:
- Just runs: output speed does not matter, as long as the model loads and keeps generating tokens;
- Usable by one user: decode speed of roughly 25 tokens/s for a single user;
- Shared by multiple users: with 10 concurrent streams, each stream still sustains more than 25 tokens/s, at a quantization level no lower than 4-bit.
The cost across these tiers does not scale linearly; it jumps in steps. The first tier is constrained by storage capacity, the second by memory bandwidth, and the third by three constraints at once: compute + interconnect bandwidth + KV Cache capacity. Ignoring this distinction is the main reason budgets spiral out of control.
One caveat up front: apart from public architecture details and official recommendations, the speed, memory, and configuration figures below are engineering estimates based on public information. Once the official weights are released, every number must be re-verified with benchmarks.
2. Architecture drives cost: a low activation ratio does not mean cheap
This new generation of models typically uses an ultra-sparse mixture-of-experts (MoE) structure: roughly 2.8 trillion total parameters, about 896 experts, and only 16 experts routed and activated per token—an expert activation ratio of about 1.79%.
The key takeaway: memory usage is determined by total parameters; the activation ratio only reduces compute consumption. You must first load all experts into addressable storage, then during inference move each token’s activations to the location of its target experts based on routing results, and move them back after computation. A low activation ratio means “less computation,” not “less to load.”
The backbone is typically a gated Delta attention combined with attention residuals, of which gated multi-head latent attention is one component. This kind of structure is friendlier to KV Cache compression, but it does not change the lower bound for loading weights.
3. Calculating the memory floor: 1400GB is only the starting point
From pre-training through post-training, the model already uses quantization-aware training, and the mainstream combination is 4-bit weights with 8-bit activations. Estimating from 2.8 trillion parameters:
- Pure 4-bit raw data floor: about 1400 GB;
- Including one 8-bit scale factor per 32 4-bit elements (4.25 bit/element): 2.8T × 4.25 ÷ 8 ≈ 1487.5 GB;
- Not yet included: non-4-bit tensors (embeddings, normalization, routing gates), metadata, memory alignment, runtime workspace, communication buffers, and KV Cache.
For comparison, a model in the 671-billion-parameter class needs about 685GB for 8-bit weights; after 4-bit quantization, about 335GB of weights plus about 37GB of runtime overhead, roughly 400GB in total—just enough to run on 8 80GB accelerator cards (640GB). The model discussed here is more than four times that size, which is where the cost curve for “full-power local deployment” begins.
For capacity planning, use the following formula:
Total demand ≈ weights (incl. scales) × 1.05 (alignment and metadata)+ KV_Cache (concurrency × context length × per-layer per-head dimension × bytes per precision)+ runtime workspace (~20–40GB)+ communication buffers (scales with parallelism)
4. Tier 1: just getting it to run
The most direct technical route is GPU + CPU heterogeneous inference: keep the compute-intensive shared attention part on the GPU, and offload the expert layers—which take up most of the storage but activate only a few experts per token—to CPU memory, fed by a large-memory server.
- Typical configuration: a dual-socket server-grade CPU + 1–2 consumer or professional accelerator cards + more than 1.5TB of DDR5 memory;
- Cost structure: memory and the overall platform dominate; the accelerator cards are comparatively cheap;
- Expected performance: single-digit to tens of tokens/s for prefill, single digits for decode;
- Reference point: similar setups on a 671-billion-parameter 4-bit model, with a dual-socket CPU and a single consumer GPU, can reach over 200 tokens/s prefill and about 14 tokens/s decode, usually with strategy constraints such as expert selection.
The point of this tier is to validate the pipeline, not to be production-ready.
5. Tier 2: 25 TPS for a single user
A decode speed of 25 tokens/s is fundamentally a memory bandwidth problem. During decoding, every generated token requires reading the weights of the activated experts once, so:
Single-user TPS ≈ effective memory bandwidth ÷ bytes actually read per token
Since each token reads only about 1.79% of the experts, the actual read volume is far below 1500GB, but CPU memory bandwidth (typically hundreds of GB/s per socket) is still the bottleneck. Practical measures:
- Increase the number of CPU memory channels; prefer platforms with 8 channels or more;
- Apply NUMA affinity binding for expert layers to avoid cross-node access;
- Increase GPU memory capacity to keep the attention layers and hot experts resident;
- Use 4-bit and avoid stacking excessive runtime dequantization overhead.
This tier usually does not require a 64-card super node; a high-memory-bandwidth dual-socket platform plus a few accelerator cards is worth trying, but it must be validated by measurement.
6. Tier 3: 10 concurrent streams at 25 TPS each
This tier requires full GPU deployment + high-speed interconnect, for two reasons:
- Communication sensitivity: with 896 experts spread across multiple cards, every token requires all-to-all movement after routing, and latency directly eats into compute. The official recommendation of a super node with more than 64 accelerators exists precisely to use high-bandwidth interconnect to enlarge the communication domain so that movement stays within a single domain.
- KV Cache amplification: at 10 concurrency, KV Cache and runtime overhead grow several-fold, so a 10%–20% margin must be reserved.
Configuration essentials:
- A single 8-card node (640GB) is not enough; start with 2 nodes and 16 cards total (1280GB), where cross-node bandwidth becomes critical;
- For parallelism, prioritize expert parallelism, use tensor parallelism for the attention layers, and add pipeline parallelism if needed;
- If cross-node bandwidth is insufficient, fall back to a tiered “GPU cluster + CPU memory pool” scheme, trading capacity for bandwidth, at the cost of lower concurrency.
7. Cost ranges and decision guidance
| Target | Main bottleneck | Key investment | Relative cost |
|---|---|---|---|
| Just runs | Storage capacity | Large-memory server | Low |
| Single user, 25 TPS | Memory bandwidth | Multi-channel platform + a few accelerators | Medium |
| 10 concurrent, 25 TPS | Compute + interconnect + KV Cache | Multi-node super node | High |
If the budget is limited but the goal is to serve multiple users, a more economical approach is to hand deployment over to general-purpose cloud compute: provision a container platform on demand to host the inference service, use object storage for the weights, track throughput and latency with monitoring and alerting, and consolidate call traces with a log service, replacing a one-time heavy-asset purchase with elastic scaling.
Final reminder: all estimates should be re-run as benchmarks with a unified script after the weights and official technical report are released—measuring load time, prefill throughput, decode TPS, and the concurrency degradation curve—and procurement should be tiered accordingly.
