How Much Does It Cost to Deploy a Large MoE Model Locally? A Practical Budget Breakdown

    This article breaks down the main costs of deploying a large-parameter Mixture of Experts (MoE) model on your own hardware. It covers GPU memory requirements, including KV cache, two hardware configurations with approximate budgets, hidden costs such as power and operations, and a framework for choosing between cloud services and self-hosting.

    1. Open Source Does Not Mean Free

    Many teams see open weights and assume self-hosting will save money and give them full control. In practice, the weights are only the starting point of the cost. For MoE models with hundreds of billions of parameters, the budget is driven by GPU memory, interconnect bandwidth, power and cooling, and ongoing operations.

    Consider a typical high-end MoE model with about 743B total parameters. Its MoE architecture activates about 39B parameters per token, and it natively supports a context window of 1M tokens. These three numbers map to three core costs: weight storage, inference compute, and KV cache capacity. The sections below cover each one.

    2. GPU Memory Goes Beyond the Weights

    A common mistake in budget estimates is to count only the size of the model weights. In a real deployment, GPU memory covers at least the following:

    1. Model weights: At FP8 precision, 743B parameters need about 743GB of memory (1 byte per parameter). At BF16, the requirement doubles to about 1.5TB.
    2. CUDA context and runtime overhead: The process context and resident runtime alone can take several GB on each card.
    3. Inference framework overhead: This includes the scheduler, communication buffers for tensor and expert parallelism (AllReduce and AllToAll), and temporary space during weight loading. Plan to reserve roughly 5% to 10% for these.
    4. KV cache: This is the most underestimated component. KV cache size ≈ 2 × number of layers × hidden dimension × context length × bytes per element × number of concurrent requests. At a 1M-token context, the KV cache for a single request can reach tens of GB. Supporting multiple concurrent requests multiplies the memory needed.

    A simplified estimation approach:

    1. Total memory requirement ≈ weight memory + framework overhead (about 10%) + concurrency × per-request KV cache
    2. Reserved safety margin ≥ 15% (to prevent fragmentation and peak-usage overflow)

    3. Hardware Selection: From Running the Model to Serving It

    1. Entry-Level: A Single 8-Card Node

    Each flagship data center accelerator card provides 141GB of memory, so an 8-card node offers about 1,128GB in total. After framework overhead and the safety margin are subtracted, the FP8 weights (about 743GB plus overhead) just barely fit. The whole machine costs roughly RMB 3.5 million.

    This configuration has clear limits. Fitting the model does not mean it can serve well. The remaining memory is very tight, so the 1M-token KV cache has almost no room. As a result:

    • It cannot support a full 1M-token context under high concurrency.
    • Long-context requests may trigger frequent swapping or fail outright.
    • It is better suited for functional validation, evaluation, and low-concurrency internal testing.

    2. Production-Grade: A Dual-Node Setup

    If the business needs stable support for the full 1M-token context and reasonable concurrency, a single node does not have enough memory. Scaling across nodes becomes necessary. A dual-node setup with 16 flagship cards provides about 2.2TB of total memory. After overhead, it leaves more than 1TB for the KV cache, which can support long contexts and moderate concurrency.

    Cross-node deployment adds costs for a high-speed interconnect (RDMA network cards and switches), racks and power distribution, and tuning of the communication software between nodes. The total budget for this tier is roughly RMB 7.3 million to 8 million.

    3. Hidden Costs: Power, Facilities, and Staffing

    Beyond hardware purchases, budget for the following: power and cooling upgrades (a single machine can draw power on the order of 10 kW), data center hosting fees, professional operations staff, and the cost of iterating as the model is upgraded. These costs typically equal 15% to 30% of the hardware cost.

    4. How MoE Architecture Affects Deployment Cost

    MoE’s sparse activation reduces inference compute, since only about 39B parameters are active per token. However, it does not reduce memory use, because the weights of all experts must stay resident in GPU memory. Two points follow for deployment:

    • Prioritize memory capacity over compute: When selecting hardware, ensure enough total memory first. Adding raw compute alone does not solve the problem.
    • Expert parallelism and communication tuning: When experts are distributed across cards or nodes, AllToAll communication becomes a throughput bottleneck. This requires high-speed interconnects and mature framework support.

    5. Cost Decision Framework: Rent Compute or Build Your Own?

    The table below offers a practical way to decide:

    Scenario Recommendation
    Low daily call volume, mainly for validation Use a cloud inference service billed on demand to avoid fixed asset investment
    Sensitive data, private deployment required, stable and high call volume A self-hosted dual-node setup may be more cost-effective over a 3 to 5 year period
    Between the two Consider a hybrid approach: run sensitive data on a small private deployment and route general traffic to a cloud API

    You can also rent flagship GPU capacity on demand through the container services and GPU instances of major cloud platforms. This converts a one-time capital expenditure of roughly RMB 7 million or more into operating expenses that scale with usage, which eases cash flow and reduces the cost of trial and error.

    6. Conclusion

    For an MoE model with about 700B total parameters and a 1M-token context window, open weights greatly reduce licensing costs. Private deployment still has a high entry barrier. Roughly RMB 3.5 million buys only a single machine that can run the model. Stable, full-length long-context service requires a dual-node investment of RMB 7.3 million to 8 million, plus ongoing power and operations spending.

    The key decision is not whether you can deploy the model, but which way of using it is most cost-effective. Cost planning should move beyond “how many cards to buy” to a broader view: how many concurrent requests to serve, how much context to support, and which business workloads to cover. That broader view leads to a more rational technology investment decision.