The Cost of Deploying a Trillion-Parameter MoE Model Locally
This article breaks down the cost of running a trillion-parameter MoE model on your own hardware by defining three deployment tiers, explaining why memory capacity is driven by total parameters rather than the expert activation ratio, and outlining the bottlenecks, optimization levers, and acceptance tests for each tier. All figures are estimates based on public information and should be re-benchmarked once the official weights are released.
1. Define the Goal First: Three Tiers, Three Different Bills
The question “how much does it cost to deploy a trillion-parameter model locally” is hard to answer because it blends three separate concerns: whether the model fits, how fast it runs, and how many users it can serve at once. These map to completely different hardware bottlenecks, and the resulting costs can differ by an order of magnitude. The safer engineering approach is to define the target tier by tier, then work out the cost for each.
- Tier 1: It just needs to run. The model loads successfully and keeps emitting tokens. Speed is not a requirement; single-digit tokens/s is acceptable.
- Tier 2: Usable for a single interactive user. Decode speed reaches roughly 25 tokens/s for one user, close to human reading speed, with no noticeable lag.
- Tier 3: Small-scale concurrent serving. With 10 concurrent streams, each stream still sustains at least 25 tokens/s, and the quantization level is no lower than 4-bit weight precision.
One caveat up front: as of this writing, the full weights and technical report for a model at this scale have not been publicly released, and the official details are expected to follow. So apart from the published structural parameters and the official pricing logic, every speed, memory, and configuration number below is an estimate based on public information. Once the weights are out, each item must be re-validated against measured benchmarks.
2. The Capacity Floor: Why Memory Is Sized by Total Parameters
The target model has roughly 2.8 trillion parameters and uses a mixture-of-experts (MoE) architecture: of 896 experts, only 16 are activated per token, an expert activation ratio of about 1.79%. Here is a point that is very easy to misread: the expert activation ratio is not the parameter activation ratio. It affects compute consumption only, not storage footprint.
The reason lies in how MoE inference works. All expert weights must stay resident in addressable memory. At runtime, the router selects 16 experts per token and moves the activations to wherever those experts live for computation. You cannot predict which expert the next token will hit, so you cannot load only the subset that “might be used.”
The model uses quantization-aware training from the supervised fine-tuning stage onward: 4-bit weights and 8-bit activations. Under the OCP microscaling format specification, each group of 32 4-bit elements carries one 8-bit scale factor, giving an effective bit width of 4.25 bits:
Raw weight floor = 2.8e12 × 4.25 / 8 ≈ 1487.5 GB
That 1.4 TB does not yet include: non-4-bit tensors (normalization layers, embedding layers, and router scoring layers typically stay at higher precision), metadata and alignment padding, the runtime workspace, and the KV cache. Leaving 15%–25% headroom on top is not excessive in practice.
For comparison, a publicly documented 671B-class MoE model needs about 671 GB for its main parameters at 8-bit, or roughly 685 GB with the multi-token prediction head. Converted to 4-bit, the weights come to about 335 GB, plus about 37 GB for activations and buffers, for a total near 400 GB that only just fits on 8 × 80 GB accelerators (640 GB). The target model is more than four times that size, which sets the hardware floor for a full deployment.
A reusable estimation formula:
Total need ≈ total parameters × effective bit width / 8 × (1 + overhead factor) + KV_bytesKV_bytes ≈ 2 × layers × KV heads × head_dim × precision bytes × context length × concurrency
Note that the KV cache grows linearly with concurrency. For Tier 3, the real killer is often not the weights but the cache for 10 long-context streams.
3. Tier 1: Getting 1.4 TB of Weights Moving
The officially recommended deployment shape is a high-speed interconnected supernode of 64 or more accelerators. The constraint is not compute but communication: with 896 experts spread across many cards, every token requires two global permutations (dispatch and combine). When all-to-all bandwidth is insufficient, communication latency eats up the entire compute benefit. A supernode keeps communication inside a single high-bandwidth domain.
If the goal is simply “it runs,” the more economical route is GPU+CPU heterogeneous offloading, for which mature approaches already exist in the industry: keep the compute-intensive shared attention part of each layer on the GPU, and place the sparse expert layers, which dominate storage, in a large-memory server, feeding data over DDR memory bandwidth.
# Pseudocode: split execution devices by layerfor layer in model.layers:hidden = attn_gpu(layer, hidden) # compute-intensive, stays on GPUidx = router(layer, hidden) # only 16/896 hithidden = experts_cpu(layer, hidden, idx) # storage-intensive, served from memory
The key metric at this tier is the number of expert bytes that must be moved per token, not peak compute. A workstation with a single 24 GB GPU and 512 GB or more of memory is enough to start, so the cost is essentially one machine.
4. Tier 2: Where the Bottleneck Moves for 25 tokens/s
25 tokens/s means a budget of 40 ms per token. Decoding is memory-access bound: every step reads the weights of the activated experts, so the bottleneck shifts from “capacity” to “effective memory bandwidth × reuse rate of the activated data.”
Optimization levers, ordered by cost-effectiveness:
- Increase quantization density while keeping 4-bit accuracy from collapsing, reducing the bytes moved;
- Improve expert locality so that a batch of tokens hits experts on the same card as much as possible, reducing cross-domain permutations;
- Use multi-token prediction / speculative decoding to amortize a single weight read across multiple output tokens;
- Pin the KV cache on the high-speed side to avoid recomputing it every step.
This tier typically needs a multi-card high-bandwidth setup in a single machine, with cost concentrated in accelerators and memory capacity.
5. Tier 3: System Design Under 10 Concurrent Streams
Concurrency turns the problem from “runs on one machine” into “a serving system.” The key points: continuous batching to improve expert-hit reuse; a hybrid of expert parallelism and tensor parallelism to control all-to-all traffic; paged KV cache management with prefix reuse to cut redundant computation; and a monitoring and alerting stack to observe per-token latency, batch size, cache hit rate, and interconnect bandwidth utilization.
In the cloud, the common practice is to store model weights in object storage, orchestrate inference instances with a container platform, use logging and monitoring/alerting services for observability, and scale elastically with peaks and troughs rather than buying all the hardware outright.
6. Cost Structure and a Benchmark Checklist
Cost breaks into four parts: accelerators, memory and local storage, network interconnect, and power plus operations. The three tiers do not scale linearly; they jump in steps. Once the weights are released, validate in this order: load success rate → per-token latency distribution (P50/P95) → per-stream TPS at a fixed concurrency → long-context cache footprint → 4-bit accuracy regression. If any item fails, go back to the capacity formula and rebalance rather than blindly adding cards.
