The Real Cost of Self-Hosting Large-Scale MoE Models
A practical cost breakdown of self-hosting a large-scale MoE model, covering why open weights do not mean low cost, how VRAM is actually consumed beyond weights, three budget tiers from a minimum viable setup to full 1M-context serving, and the hidden costs of power, engineering, operations, and iteration that determine long-term TCO.
1. Start With the Model: Why “Open Source” Does Not Mean “Cheap”
When teams evaluate on-premise deployment, the first instinct is often “the model is already open source, so the main cost is electricity.” That judgment overlooks a basic fact: open source solves “can we obtain the weights,” while self-hosting has to solve “can we continuously serve inference at an acceptable quality of service.” The gap between the two is where most of the cost comes from.
Take the class of ultra-large-scale mixture-of-experts (MoE) models discussed here. Three parameters matter most:
- Total parameters of roughly 743B, which sets the floor for weight loading and VRAM occupancy;
- Roughly 39B parameters actually activated per generated token, which determines compute consumption and latency characteristics;
- Native support for a 1M context, which determines peak KV Cache occupancy.
The “sparse activation” property of MoE is often misread as “compute demand is only 1/20 that of a dense model.” In reality, fewer activated parameters only shrink the matrix multiplication size per token, but all expert weights must still stay resident in VRAM. Otherwise every inference step has to swap weights in and out from storage or host memory, and latency degrades to the point of being unusable. So: total parameters determine VRAM, activated parameters determine compute, and context length determines VRAM fluctuation. These are the three main threads of any cost estimate.
2. The VRAM Bill: Weights Are Not the Only Consumer
A common estimation mistake is “the weights are FP8, so VRAM demand equals the parameter count.” Actual occupancy includes at least four parts:
- Model weights: 743B parameters at FP8 is on the order of 743GB, which alone exceeds a single card’s capacity;
- Framework and runtime overhead: the inference engine, operator libraries, communication buffers, CUDA contexts, and so on typically require tens of GB more;
- KV Cache: roughly linear in context length, concurrency, layer count, and number of attention heads, and the main variable in long-context scenarios;
- Redundancy and fault-tolerance headroom: space reserved for uneven parallel partitioning, expert load skew, and failover.
A rough estimation logic is enough to grasp the order of magnitude (order-of-magnitude reference only, not an exact formula):
Usable VRAM per card ≈ card capacity × (1 - runtime overhead ratio)Required card count ≈ ceil(weight VRAM / (usable VRAM per card × tensor parallelism utilization))KV peak ≈ KV bytes per token × context length × concurrent requests
The key point: weights are a static cost, KV Cache is a dynamic cost. Procuring hardware based on weights alone will expose a capacity shortfall the first time you run a long-context, high-concurrency load test.
3. Three Budget Tiers: From “It Runs” to “It Serves”
Tier 1: Minimum Viable (about RMB 3.5 million)
The FP8 version theoretically needs a single 8-card high-bandwidth-VRAM server (roughly 141GB of VRAM per card) to load the weights and complete basic inference. This tier is positioned for functional validation: getting precision alignment working, verifying prompt behavior, and running a small internal trial.
Its limits are equally clear: little VRAM remains for KV Cache, so a 1M context can only run at low concurrency or a single stream, and there is no node-level redundancy, meaning any hardware or driver fault takes the service down. Treating this tier as production is a classic budget trap.
Tier 2: Stable Support for the Full 1M Context (about RMB 7.3–8 million)
To keep usable concurrency at the full 1M context, you need to plan for two nodes: two 8-card high-bandwidth-VRAM nodes, combined through high-speed interconnect into a unified inference resource pool. The budget doubles not because you are “buying two servers,” but because you are buying four capabilities at once:
- Peak KV Cache capacity and concurrency headroom;
- Cross-node communication bandwidth for tensor parallelism and expert parallelism;
- Node-level high availability and rolling upgrades;
- Redundancy for load testing, tuning, and canary releases.
Only this tier qualifies for serving external traffic.
Tier 3: Full Production Setup (requires separate costing)
A real production environment adds general infrastructure such as storage, networking, monitoring and alerting, and logging services, plus the additional engineering effort from optimizations like model quantization, speculative decoding, and prefix caching. This usually does not appear in a hardware quote, yet it determines long-term total cost of ownership.
4. Four Hidden Costs That Are Easy to Miss
- Power and cooling: an 8-card high-power node draws significant power under full load, and data-center cooling is an ongoing expense that must be amortized annually into TCO;
- Engineering headcount: tuning parallel strategies, balancing expert load, and load-testing long context often require weeks of senior engineer time;
- Operations and observability: without metrics collection and alerting, time-to-diagnosis multiplies;
- Iteration cost: model version upgrades and quantization changes both require re-running precision and performance regressions.
5. Recommendations for Decision Makers
- Define the service target first, then the budget: fix the target context length, concurrency, and latency ceiling, then work backward to VRAM and node count, rather than buying hardware first and looking for a use case;
- Treat RMB 3.5 million as a validation budget: it suits feasibility validation, not production traffic;
- Invest in observability and elasticity first: container platforms, monitoring and alerting, object storage, and other general cloud capabilities can substantially reduce operations headcount;
- Trade engineering optimization for hardware budget: prefix cache reuse, request batching and scheduling, and tiered context storage are often more cost-effective than simply adding cards.
The conclusion is clear: open-sourcing ultra-large-scale MoE models lowered the barrier to acquiring them, but not the barrier to serving them. RMB 3.5 million is the entry ticket; RMB 7.3–8 million is the starting point for stably serving the full long context, and real cost advantage comes from the systematic capability of architecture design and engineering optimization.
