How Much Does It Cost to Deploy a 743B MoE Model Locally?

    This article breaks down the hardware and memory costs of locally deploying a 743B-parameter MoE model with 39B activated parameters and native 1M-token context. It covers weight memory, runtime overhead, KV cache, interconnect costs, FP8 and mixed-quantization options, context and concurrency trade-offs, three-year TCO, and when cloud inference may be the better choice.

    Local Deployment of a 743B MoE Model: Cost Breakdown and Key Trade-offs

    1. Start with the Model: Total Parameters Set the Memory Floor

    Information published for an open-source MoE model shows a total parameter count of about 743B, with roughly 39B parameters activated per token, and native support for a 1M context. The direct benefit of MoE is lower compute volume: each layer only routes to a subset of experts, so inference FLOPs are far lower than for a dense model of the same scale.

    But there is a common misunderstanding here: fewer activated parameters does not mean lower deployment cost.

    The MoE “gated routing” mechanism means any expert may be selected, so all expert weights must remain resident in memory. Even if only 39B parameters are activated per token, the server still needs to reserve storage for 743B parameters. In other words:

    • Compute cost is mainly determined by activated parameters;
    • Memory cost is mainly determined by total parameters;
    • The larger the total parameter count, the harder it is to fit the model into a single machine.

    This is why local deployment of a hundred-billion-scale MoE model starts not with “can it run?” but with “is there enough memory to hold it?”

    2. Where Does Memory Go on an Inference Server?

    For local deployment, memory usage is not just model weights. The full cost can be split into four parts:

    2.1 Model Weights

    Weight memory can be estimated directly:

    1. def weight_memory_gb(total_params_b, bits):
    2. return total_params_b * bits / 8
    3. # Total parameters: 743B
    4. print(weight_memory_gb(743, 8)) # FP8 weights: about 743 GB
    5. print(weight_memory_gb(743, 16)) # FP16/BF16 weights: about 1486 GB
    6. print(weight_memory_gb(743, 4)) # INT4 weights: about 371.5 GB

    This is only a theoretical value. Actual loading also involves quantization scaling factors, temporary dequantization buffers, memory allocation alignment, and other overhead, which usually adds tens of GB.

    2.2 Inference Framework and Runtime Overhead

    The inference framework itself needs substantial space for operators, schedulers, communication buffers, and memory pools. Multi-GPU environments also need temporary buffers for cross-device communication. Compared with a single multi-GPU machine, dual-machine multi-GPU setups further increase communication state and cache overhead. This part is often ignored in budget estimates, but in production it can take tens of GB or more.

    2.3 KV Cache

    KV Cache is the “memory killer” in long-context inference. When a Transformer generates each new token, it must cache the Key and Value of all historical tokens for later attention computation. The longer the context and the higher the concurrency, the faster KV Cache grows.

    A general formula can estimate the KV Cache scale:

    1. def kv_cache_gb(layers, kv_heads, head_dim, context_len, batch_size, dtype_bytes=2):
    2. # Each token needs K and V cached per layer
    3. per_token_bytes = layers * 2 * kv_heads * head_dim * dtype_bytes
    4. return per_token_bytes * context_len * batch_size / (1024 ** 3)
    5. # Estimate scale with a common configuration
    6. # 80 layers, 8 KV heads, head dimension 128, FP16 precision
    7. print(kv_cache_gb(80, 8, 128, 1_000_000, 1))

    Under the above configuration, a single 1M-context request with batch=1 requires about 305GB of KV Cache. With 16 concurrent requests, KV Cache would exceed 4.8TB. This is why “native support for 1M context” is extremely expensive in actual deployment.

    2.4 High-Speed Interconnect and Multi-Node Communication

    When the model exceeds single-machine memory, multi-machine distributed inference becomes necessary. MoE experts are usually distributed across multiple GPUs or machines, and each routing decision may trigger cross-device communication. Therefore, in addition to GPU costs, multi-node solutions also include high-speed interconnect networks, switches, NICs, and other infrastructure. These costs are often underestimated.

    3. FP8 Option: The Distance from “Can Run” to “Can Serve”

    At FP8 precision, 743B weights require about 743GB. If using a single machine with 8 high-end GPUs, total memory is about 1.1TB. After deducting framework and runtime overhead, the remaining memory can support a certain amount of KV Cache.

    At current market prices, the approximate hardware budget for this type of single-node 8-GPU solution is about RMB 3.5 million. It can indeed load the FP8 model and complete inference, but it is difficult to support the full 1M context with high concurrency. The reason is simple:

    • Model weights take about 743GB;
    • Runtime and communication buffers take tens of GB more;
    • If the remaining memory only fits one or a few long sequences, it is not a production-grade service.

    So RMB 3.5 million is only an entry ticket, not a stable service plan.

    If you need stable support for the full 1M context and moderate or higher concurrency, you usually need to prepare for dual nodes. Two nodes with 16 GPUs in total provide about 2.2TB of memory. After deducting weights and framework overhead, there is enough KV Cache space for long contexts and concurrent requests. The budget for this type of solution is roughly RMB 7.3 million to RMB 8 million.

    If high availability, failover, and hot standby nodes are also required, the budget will rise further. In actual deployment, data center space, power, cooling, operations, and high-speed interconnect are also significant one-time or ongoing expenses.

    4. Cost Reduction Paths: Quantization, Context Control, and Concurrency Optimization

    If the budget is limited, the following directions can help reduce costs.

    4.1 Mixed Quantization: 4-bit Weights + 8-bit Activations

    A common approach is W4A8C8-style mixed quantization, which compresses weights to 4-bit while keeping activations at 8-bit and channel-wise scaling. In this way, 743B weights can drop to roughly 370–450GB, saving nearly half the memory compared with FP8.

    Some practitioners have run a usable service with about 200K context and 20 concurrent requests on a single machine with 8 GPUs and 96GB memory per GPU using mixed quantization. This shows that “cannot run the full 1M context” does not mean “cannot provide service.” If the business scenario does not need 1M context at all, keeping only 200K may be a very cost-effective choice.

    Larger single-machine memory solutions, such as a machine with 1TB total memory, can also build a KV Cache pool approaching millions of tokens. By properly setting batch size and maximum concurrency, it is possible to deliver stable service at a cost that may be lower than a multi-node FP8 solution.

    4.2 Context Length: Configure on Demand

    A 1M context sounds attractive, but its cost propagates linearly to KV Cache. If actual business contexts are often within tens of K, there is no need to pay for 1M. Before deployment, perform a load analysis and measure the context length distribution of real requests. This can often save half or more of the budget.

    4.3 Concurrency and Batching: Trade Throughput for Memory

    Higher concurrency increases KV Cache usage; but if the batch is too small, GPU compute is wasted. Production environments usually use dynamic batching, setting two thresholds in the inference framework: “maximum concurrency” and “maximum KV Cache utilization,” so the system can balance automatically.

    For agent-style workloads, requests often include many tool calls, code generation, and multi-turn reasoning, resulting in long single-request contexts. In this case, concurrency does not need to be extremely high, but per-request generation speed is critical. Optimizations such as multi-token prediction can improve overall throughput without reducing quality, especially for long-context, moderate-concurrency scenarios.

    5. One-Time Hardware Investment Is Not the Full Lifecycle Cost

    Local deployment cost should not be judged only at the moment of buying servers. Over a three-year usage period, the following items should all be included:

    Cost Item Description
    Hardware GPU servers, CPU, memory, storage, high-speed interconnect
    Infrastructure Racks, power, cooling, UPS, network upgrades
    Software and operations Inference framework, scheduling platform, monitoring and alerting, logging, security
    Labor Model deployment, tuning, troubleshooting, version upgrades
    Power consumption High-load GPU servers consume a lot of power, and long-term electricity costs are significant

    In typical estimates, power, operations, and data center facilities may reach 30% to 50% of hardware purchase cost over three years. The higher the load, the larger the share. Therefore, “RMB 7 million to buy machines” and “RMB 10 million total cost over three years” are often not equivalent.

    6. Local Deployment or Cloud Rental?

    If the upfront investment is under pressure, or the business is still in an early validation stage, you can choose public cloud GPU bare metal, containerized inference services, or pay-as-you-go inference instances. This allows you to:

    • Avoid one-time capital expenditure of millions;
    • Scale elastically based on actual request volume;
    • Validate model quality, concurrency, and cost before deciding whether to build locally;
    • Leave operations, monitoring, and security to the cloud provider.

    But if there are strict data compliance requirements, or the business requires long-term high-frequency calls with high compute utilization, local deployment remains the more controllable choice. The two models are not mutually exclusive; a hybrid path of “validate on cloud + scale locally” is also possible.

    7. Conclusion: Clarify the Scenario Before Placing the Order

    Back to the original question: how much does it cost to deploy a hundred-billion-scale MoE model locally?

    The answer is: a minimum runnable setup costs about RMB 3.5 million, stable production costs about RMB 7 million–8 million, and a truly highly available production environment costs even more.

    But budget is not the only variable. Model weights, KV Cache, context length, concurrency, quantization strategy, and multi-node architecture jointly determine the final solution. Open-source models reduce software costs, but they do not reduce hardware costs. Eye-catching parameters such as 743B total parameters, 39B activated parameters, and 1M context ultimately translate into a concrete procurement list.

    Before spending money, it is advisable to do three things:

    1. Measure the context length and concurrency peak of real business workloads;
    2. Run small-scale stress tests with FP8 or mixed quantization;
    3. Include all memory overhead and three-year operations costs in the budget.

    Only by looking at model capabilities, business scenarios, and the hardware bill together can you make a truly rational deployment decision.