The Cost of Self-Hosting Large-Scale MoE Models Locally
A practical breakdown of the real cost of running a large-scale MoE model on-premises, covering VRAM sizing for weights, runtime overhead and KV cache, quantization trade-offs, throughput versus concurrency, hidden operating costs, and a capacity-planning checklist.
1. Break the Cost Question into Three Computable Layers
Asking “how much does it cost to self-host locally” produces wildly different answers because the question usually blends three separate layers: can it run at all, can it run a full context window reliably, and can it handle real business concurrency. The budgets for these three layers can differ by three to five times.
Using the model from the original case as a reference point: it follows a Mixture-of-Experts (MoE) architecture, with roughly 743B total parameters, about 39B parameters actually activated per generated token, and native support for a 1M context window. These three numbers determine the VRAM floor, the compute requirement, and KV cache pressure respectively, and they are the starting point for every cost estimate that follows.
One point deserves emphasis: MoE’s sparse activation reduces compute cost only, not VRAM usage. Every expert weight must either stay resident in VRAM or be swappable in quickly, so VRAM planning has to be based on total parameters, not activated parameters.
2. The VRAM Bill: Weights Are Only the Tip of the Iceberg
Local deployment consumes VRAM in at least four ways:
- Model weights: at FP8 precision, 743B parameters need on the order of 743GB of VRAM. The weights alone already exceed the usable capacity of a single 8-GPU server with 96GB-class cards (about 768GB), before any framework overhead is deducted.
- Inference framework and runtime: CUDA contexts, communication buffers, operator workspaces, graph capture caches and similar typically take anywhere from a few GB to a dozen-plus GB.
- KV cache: grows linearly with context length and concurrency, and is the main variable in long-context scenarios.
- Redundancy and fault-tolerance headroom: tensor parallelism and expert parallelism across multiple GPUs never split perfectly evenly, so reserve roughly 10% as buffer.
A handy formula for a quick self-check:
VRAM per GPU ≈ weight shard + framework overhead + (layers × 2 × KV heads × head dim × context length × concurrency × bytes per element) / GPU count + headroom
The conclusion is straightforward: FP8 weights that “just barely fit” on one 8-GPU machine can only support validation-style workloads with low concurrency and short contexts. Delivering a stable, full 1M context service requires planning for two nodes and multi-machine, multi-GPU setups, which naturally moves the budget from entry-ticket level into the multi-million range for a complete deployment.
3. Quantization Choices: The Three-Way Trade-off Between Precision, Context, and Concurrency
Three routes are common in engineering, each with clear boundaries on where it applies:
- FP8 weights + FP8 KV cache: minimal precision loss and simple to implement, but the highest VRAM footprint. Suited to well-funded scenarios that prioritize output quality.
- W4A8-class low-bit weights + higher-precision activations/KV: weight footprint drops to roughly one quarter, and the VRAM saved can go entirely into the KV cache pool, buying longer context or higher concurrency on the same hardware.
- W4A16-class schemes: weights compress substantially, but activations stay at higher precision, compute pressure rises, and throughput gains are limited.
The selection principle is not “lower bits is always better,” but converting saved VRAM explicitly into business metrics. For example, an all-in-one system with a 1TB-class VRAM pool can, after running a low-bit quantized build, reach a KV cache pool on the order of millions of tokens; with a sensibly configured batching window, that reliably supports small-to-mid scale coding-assistant workloads. This is the typical payoff of trading VRAM for concurrency.
4. Throughput and Concurrency: Don’t Look Only at Single-Stream Peaks
Figures like “tens of tokens/s at concurrency 1, hundreds of tokens/s at a dozen-plus concurrent requests” from the case point to a frequently overlooked fact: single-stream peak speed and actual business throughput are not the same metric. The variables that drive the latter include:
- Batching strategy: continuous batching delivers several times the throughput of static batching;
- Context length distribution: a few very long requests can consume the entire KV cache pool;
- Speculative-decoding-style acceleration: enabling multi-token prediction noticeably improves single-stream speed at low concurrency, but the benefit is diluted at high concurrency;
- Request shape: agent workloads are mostly multi-turn short requests with high prefix repetition, where prefix cache reuse cuts cost substantially.
For capacity planning, work backward from P99 time-to-first-token and P99 output rate to derive the maximum stable concurrency, rather than making commitments based on peak numbers.
5. Hidden Costs That Are Easy to Miss
Hardware procurement is often only part of total cost of ownership. Also account for: data center space, power and cooling; networking and parallel storage; engineering investment in the inference framework and scheduling layer; monitoring, alerting and logging services; model evaluation and regression testing; and operations headcount. Running on a cloud container platform with elastic resources converts one-time capital expenditure into on-demand spending, and auto-scaling absorbs traffic peaks, but unit cost under sustained heavy load is usually higher than self-built infrastructure.
6. Decision Checklist
- Determine whether the business need is “validate feasibility” or “production-grade high concurrency,” and choose a single-node or multi-node architecture accordingly;
- Load-test with real request samples first, and measure actual peak KV cache usage;
- Where quality is acceptable, prioritize low-bit weight quantization and convert VRAM into context length and concurrency;
- Enable prefix caching and continuous batching to optimize cost per token;
- Build a capacity model constrained by both latency and throughput, and reserve 20% headroom for growth.
In one sentence: open source does not mean low cost. For private deployment of a large-scale MoE model, the real barrier is VRAM and concurrency capacity planning, not obtaining the weights themselves.
