The Cost of Running a Trillion-Parameter MoE Model Locally
This article breaks down the hardware and cost requirements for self-hosting a trillion-parameter Mixture-of-Experts (MoE) model. It explains why all weights must stay resident in memory regardless of sparse activation, why roughly 1.4TB of capacity is the hard floor, and how runtime overhead pushes practical planning closer to 1.5TB. Three configuration tiers are covered, from simply booting the model to serving 10 concurrent users at 25 tokens/s each, along with a benchmarking script. The cost section compares cloud rental rates for 8-card nodes and concludes that this is an annual infrastructure budget for a mid-sized project, not a hobbyist expense. The article ends with practical optimization and deployment recommendations.
1. The Bottom Line First: This Is Not a Consumer GPU Project
Running a Mixture-of-Experts (MoE) model with a total parameter count in the trillions on your own hardware means giving up one illusion right away: that a high-end workstation is enough. Even if only a small subset of expert parameters is activated per token, all weights must still stay resident in VRAM or host memory. The capacity requirement does not shrink because activation is sparse. This discussion covers hardware and cost only, not supply channels.
2. The VRAM Math: 1.4TB Is the Hard Floor
2.1 How the weight footprint is calculated
Assume 2.8 trillion total parameters and an official design precision of 4-bit floating point (native low-precision weights, not high-precision weights compressed to 4-bit afterward):
Weight VRAM ≈ 2.8e12 × 4bit ÷ 8 ≈ 1.4 TB
The key term here is “native.” Native low precision means the numeric range and scaling factors were fixed during training, so inference needs no extra dequantization step to reconstruct high precision. Post-hoc quantization, by contrast, requires runtime conversion that consumes both compute and bandwidth.
2.2 Don’t forget runtime overhead
Real usable capacity must account for three additional items: activations, the framework runtime, and the context cache (KV Cache or state-space cache). In practice, engineers reserve 5%–15% headroom, so for a single user with a single request, about 1.5TB of VRAM is the safer planning figure. The longer the context and the higher the concurrency, the tighter this margin becomes.
3. Three Configuration Tiers: From “It Boots” to “Multiple Users”
Tier 1: Just getting it to run
Working backward from capacity alone, you need roughly 19 data-center cards in the 80GB class, or about 11 cards in the 141GB class. But neither hardware generation fully supports native 4-bit low-precision formats and requires runtime dequantization. Fitting the model into memory is not the same as running it well—bandwidth and conversion overhead will drag decode speed down.
A more realistic minimum starting point is an 8-card node of a newer generation of accelerators (192GB VRAM class), which also matches the official deployment reference from mainstream inference frameworks: 8-card tensor parallelism. In other words, “just running it” is already a server-class project.
Tier 2: 25 tokens/s for a single user
The starting point is still an 8-card node, because the bottleneck order matters: first make it fit, then make it fast. The 1.4TB of weights will not shrink just because there is only one user, and two or three cards cannot substitute.
Whether 8 cards can sustain tens of tokens per second depends on inter-card interconnect bandwidth, the parallelism sharding strategy, and context length. The official documentation provides no directly citable benchmark numbers, so the responsible approach is to stress-test with your target context length before going live rather than copying capacity-based estimates.
Tier 3: 10 concurrent users at 25 tokens/s each
Aggregate output must stay above 250 tokens/s. Interestingly, VRAM does not necessarily double: a single 8-card node can typically hold dozens of requests at moderate context lengths, so 10 concurrent users will not force you to buy a second machine. The real challenge is scheduling—when multiple streams decode simultaneously, whether each one holds 25 tokens/s is a throughput and fairness metric that can only be verified by testing.
Suggested benchmarking pseudocode:
for ctx in [4096, 32768, 131072]:for conc in [1, 4, 10, 20]:run_benchmark(prompt_len=ctx, concurrency=conc, duration="10min")report(tokens_per_second_per_stream, p99_latency, gpu_mem_used)
4. The Cost Math: Rent by the Hour, Don’t Buy by the Card
Data-center-class accelerators are essentially available only through cloud rental. Using one cloud provider’s annual reserved pricing as an example, a single card costs about $4.76/hour and an 8-card node about $38.08/hour—roughly $27,800 per month (at 730 hours) and about $330,000 per year. On-demand billing typically runs 30%–100% higher.
For comparison, in the domestic Chinese cloud market, monthly reserved pricing for an 8-card node of a newer generation of accelerators generally falls in the range of RMB 50,000–80,000, roughly on par with overseas rates. The conclusion: the cost magnitude of this configuration is a mid-sized project’s annual infrastructure budget, not a personal hobbyist expense.
5. Optimization and Deployment Recommendations
- Quantify before you buy: Confirm the target precision is native low precision, so runtime dequantization does not eat the gains.
- Tier contexts: Route long-context requests to a separate instance so they do not slow down short requests.
- Rent rather than buy: Models iterate fast, and renting avoids hardware depreciation risk.
- Use general cloud capabilities: Object storage for weights, container platforms for elastic scaling, and monitoring/alerting to watch VRAM and throughput.
- Run a small-scale validation on a platform such as Baidu AI Cloud: First run the benchmarking script on an on-demand instance for 1–2 hours, then decide on an annual commitment and avoid a long-term lock-in.
