Deploying Large-Scale MoE Models On-Premises: Hardware Cost and Capacity Planning
On-premises deployment of very large Mixture-of-Experts (MoE) models is often costed by a single question: how many GPUs are needed to fit the weights? This article explains why that approach falls short. Using a model with roughly 743B total parameters, ~39B active parameters per token, and up to 1M-token context as a reference, it breaks down GPU memory consumption into weights, runtime overhead, and KV cache, distinguishes minimum runnable configurations from stable serving configurations, and outlines a five-step cost estimation workflow plus a pre-purchase decision checklist for production planning.
Deploying Large-Scale MoE Models On-Premises: Hardware Cost and Capacity Planning
First, Define the Deployment Goal: Being Able to Start Is Not the Same as Being Able to Serve
When estimating the cost of deploying a very large Mixture-of-Experts (MoE) model on-premises, the calculation is often simplified to “how many parameters does the model have, and how many GPUs does that require?” That back-of-the-envelope math can only tell you whether the weights physically fit on the hardware. It cannot answer the more important questions: Can the model reliably handle requests at the target context length? Can it support the expected concurrency? And can the service remain available when something fails?
Consider a model with roughly 743B total parameters, about 39B parameters activated per token during computation, and a maximum context window of 1M tokens. For such a model, weight size, compute load, and serving memory requirements are three different concepts. MoE’s sparse activation reduces the per-token compute burden, but the model weights still have to be stored or scheduled somewhere. As contexts grow longer, runtime state such as the KV cache consumes additional memory. So you cannot budget the hardware based on the 39B active parameters just because they are far smaller than the total.
What Makes Up the GPU Memory Bill
1. Model Weights
Weights are the easiest component to calculate — and the one most often mistaken for the entire requirement. The space they need depends mainly on total parameter count and storage precision. Lower precision means fewer bytes per parameter, but real-world deployments must also account for the quantization format, metadata, alignment, and how the inference framework implements loading.
For FP8 weights, a rough starting point is “parameter count × bytes per parameter,” then corrected against the actual model files and loading implementation. This result is only a theoretical floor — it is not the runtime memory requirement. Weights may also need to be sharded across multiple GPUs, and inter-device communication, caching, and framework overhead all reduce usable memory.
2. Inference Runtime Overhead
Once the model is loaded, the inference framework, the CUDA runtime, temporary workspaces, communication buffers, and the intermediate tensors produced by kernel execution all consume resources. Different frameworks, batching strategies, and kernel implementations produce different footprints, which is why statically summing GPU memory capacities is no guarantee the model will start and run stably.
In practice, you should reserve headroom rather than allocating all memory to weights. If the margin is too small, the service may fail at startup, or trigger out-of-memory errors when request lengths or concurrency climb.
3. KV Cache and Context Length
Autoregressive inference must retain the key-value states of the generated sequence. The longer the context and the more concurrent requests, the larger the KV cache. Its actual footprint depends on model architecture, layer count, attention implementation, cache precision, and request length — you cannot derive a fixed memory figure from the capability statement “supports 1M context” alone.
It is especially important to distinguish between “a single request can process a very long context” and “multiple long-context requests can be processed simultaneously.” The former concerns the peak requirement of one request; the latter must also factor concurrency into the budget. If your service targets highly concurrent, ultra-long-context requests, hardware planning will typically be far higher than a configuration that merely proves a single request can run.
From a Minimum Runnable Configuration to a Stable Serving Configuration
Based on the reference estimates, the minimum deployment threshold for the FP8 version is roughly one 8-GPU H200 server, with a budget of about 3.5 million RMB. That figure is best understood as a reference for “having the conditions to start and validate” — not as the total cost of a complete production service.
If you need to stably support the full 1M context on H200s, the reference plan calls for a two-node setup, with a hardware budget of roughly 7.3 to 8 million RMB. The gap between the two budget tiers comes not simply from doubling the GPU count, but from requirements around context capacity, per-node resources, communication, and runtime headroom. A dual-node configuration may also improve resource distribution and failure handling, but the actual benefit depends on the model parallelism strategy, serving architecture, and scheduling policy — node count alone is no guarantee.
When evaluating budgets, therefore, state explicitly what each configuration targets: completing model loading and functional validation, providing long-context capability for a single request, or sustaining service at a specified concurrency level. Comparing prices without these goals makes it easy to mistake an experimental setup for a production one.
A More Reliable Cost Estimation Workflow
Step 1: Define the Request Profile
Start by gathering business-side inputs: input length, output length, peak concurrency, request duration, and availability requirements. The context limit is a maximum — it does not mean every request reaches it. Conversely, if the workload genuinely involves frequent long-document submissions, estimating from average requests will understate peak resource needs.
Step 2: Separate Static and Dynamic Memory
The static portion includes model weights and the necessary runtime environment. The dynamic portion varies with request count, sequence length, and batching, and is dominated by the KV cache and inference intermediates. Estimating the two separately makes it clear whether scaling needs are driven by the model itself or by the workload.
Step 3: Validate the Parallelism and Communication Plan
Large models usually require distributing weights and computation across multiple accelerators. Interconnect bandwidth, cross-node networking, sharding strategy, and load balancing all affect throughput and latency. A hardware list that satisfies capacity requirements does not mean communication overhead will meet service targets, so testing on the target topology is essential.
Step 4: Run Staged Load Tests
First verify the model can load, then gradually increase input length, concurrency, and output length, recording peak memory usage, time to first token, generation speed, error rates, and inter-node communication status. Tests should cover scenarios close to the workload’s upper limits, not just short prompts at low concurrency. Load test results are a key input for correcting the theoretical budget.
Step 5: Include Production Redundancy and Operating Costs
Hardware purchase is only part of the total cost of ownership. Power and cooling, networking equipment, spares, system maintenance, monitoring and alerting, and failure recovery all need budget. If the business requires continuous availability, you must also plan for degraded operation after node failures and decide whether to keep extra capacity during maintenance windows.
A Pre-Purchase Decision Checklist
Before committing to an investment, answer at least the following:
- Is the goal offline validation, internal trial use, or user-facing production service?
- Is the 1M context an occasional ceiling or a common request length?
- How many concurrent long requests must be supported, and are there explicit latency targets?
- Have the weight precision and inference implementation been validated on the target hardware?
- Does the budget include networking, facilities, spares, and ongoing operations?
- How does the service degrade or recover when a node or a single GPU fails?
These questions determine whether a “minimum runnable” setup has any real value. For teams with uncertain workloads, it is reasonable to run a small-scale validation first, gather memory and throughput data, and adjust the deployment spec accordingly. For production workloads with clear context-length and concurrency requirements, plan against peak load and redundancy targets rather than simply minimizing the purchase price.
Conclusion
For very large MoE models deployed on-premises, cost is driven not just by whether the weights fit in GPU memory, but by the combined effect of weights, runtime overhead, KV cache, concurrency, communication, and availability. Using the reference figures, an 8-GPU configuration at roughly 3.5 million RMB serves as an entry-level estimate for FP8 deployment; stably covering the full 1M context calls for a two-node plan budgeted at roughly 7.3 to 8 million RMB. The final plan still needs to be confirmed against real request profiles, the target topology, and load test data. What enterprises should really compare is not “can the model start,” but whether every unit of investment meets specific, verifiable service objectives.
