Capacity Planning and Cost Estimation for Ultra-Large MoE Local Deployment
Deploying trillion-parameter Mixture of Experts (MoE) models locally requires a shift in decision-making logic, driven primarily by terabyte-level weight storage constraints rather than just compute power. This article breaks down the capacity model for ultra-large MoE models, outlines hardware planning for three deployment tiers—from basic inference to concurrent multi-user serving—and details the true costs of on-premises deployment. It also explores when transitioning to elastic cloud inference, such as Baidu AI Cloud, is more practical than building a dedicated data center.
Once ultra-large Mixture of Experts (MoE) models enter the trillion-parameter tier, the decision logic for local deployment differs entirely from the approach used for small models that run on one or two cards. The first reaction might be to gather a set of high-end accelerator cards, but the real determining factor for feasibility is whether all weights can fit into device memory. Secondary factors include single-user latency and multi-user aggregate throughput. This article abstracts the problem into a calculable capacity model, provides hardware planning strategies for three target tiers, and explains when it is more appropriate to pivot to elastic cloud inference rather than forcing a self-built data center.
Breaking Down the Scale: Total Params, Active Params, and Precision
A common design for trillion-scale MoE models is having massive total parameters, but only activating a subset of experts per token. This significantly reduces single-step computation but barely reduces the “must-reside” weight volume. During inference, all expert weights must be placed in accessible storage tiers; otherwise, frequent swapping in and out will cause throughput to drop off a cliff.
If the model is officially trained and released using a low-bit weight format (such as native 4-bit quantization), the weight volume can be estimated using the formula: (Number of Parameters × Bits per Parameter) ÷ 8. For example, with approximately 2.8 trillion total parameters at 4-bit precision, the weights alone approach the 1.4TB level. It is crucial to emphasize that this is the volume at the official precision path, not a temporary workaround of forcing half-precision down to 4-bit. The latter often incurs additional de-quantization overhead and requires precision loss evaluation.
Weights alone are not enough. At runtime, you must also reserve memory for: activation intermediates, inference-essential workspaces, attention or state-space KV caches, and framework and communication buffers. For a single user with a medium context length, empirical data suggests leaving an extra margin of about 10% beyond the weights. Therefore, a rough calculation to “fit the model” usually lands around 1.5TB of device memory. Specific numbers must be retested based on context length, batch size, and parallelization strategy; numbers from a blog post should not be treated as universal constants.
Why Consumer Workstations Are Rarely Sufficient
Consumer-grade accelerator cards typically have a capacity of tens of GB per card. Even if you scale up to dozens of cards, you must simultaneously satisfy three conditions: total capacity covering the 1.5TB level, sufficient inter-card bandwidth to support expert and tensor parallelism, and chassis power and cooling capable of sustained full load. Standard workstations struggle to meet these three requirements in terms of power supply, PCIe topology, and rack density. Therefore, even if the goal is just “to run, regardless of speed,” the project attributes are closer to a server cluster than a desktop experiment.
It is also important to match precision with instruction sets. If the current generation of accelerator cards cannot natively execute the model’s low-bit kernels, the runtime must de-quantize to higher precision before calculation. “Fitting it in memory” does not mean “running efficiently”: de-quantization consumes compute and bandwidth, worsening both latency and energy consumption. When selecting hardware, priority should be given to verifying: the weight format, native kernel support, and the maturity of collective communication libraries.
Three Target Tiers: From Bare Inference to Serviceable
Below, the same capacity constraints are applied to three common targets. The numbers are order-of-magnitude estimates; production stress testing with real context lengths is mandatory before going live.
Tier 1: Inference only, speed is not a concern.
Theoretically, it takes over a dozen 80GB cards or about ten 140GB cards to stack terabyte-level VRAM. However, if these cards cannot natively execute 4-bit kernels, the actual experience may be far worse than what is on paper. A more realistic approach for the current generation is to adopt a single-node, 8-card server configuration with higher per-card capacity and native support for low-bit inference. Public industry deployment practices also generally use an “8-card parallel” topology as the starting point: expert parallelism to split weights, and tensor parallelism to split the compute graph. The conclusion is clear—the minimum viable configuration is rack-level, not a workstation with a few cards inserted.
Tier 2: Single-user interactive at tens of tokens per second.
The bottleneck remains the 1.4TB-level weights that must reside in memory; you cannot cut the card count down to two or three just because there is only one user. An 8-card, high-capacity solution is still the hardware baseline. The common throughput for single-path large model inference is in the “tens of tokens per second” range, so planning for 25 Token/s for a single user is reasonable. However, it must be stated: without real testing tailored to your context length, stable achievement cannot be guaranteed. Long contexts amplify KV cache usage, which may force a reduction in batch size, thereby dragging down Token/s.
Tier 3: ~10 concurrent users, each requiring ~25 Token/s.
The aggregate output must stabilize at around 250 Token/s. This usually requires more than just “squeezing the same 8 cards.” It demands adding replicas, increasing expert parallelism, or introducing continuous batching and cache reuse. Memory must not only hold weights but also allocate space for each session’s KV cache; interconnects must scale from single-node high-speed links (like NVLink) to multi-node networks. The cost curve steepens significantly at this tier: you are paying for more than just cards—you need switches, optical modules, rack power, and operations staff.
How to Estimate Costs Beyond GPU Prices
Self-built costs include at least five components: accelerators and servers, high-speed interconnects and racks, power and cooling, software engineering (parallel strategies, quantization kernels, monitoring), and fault redundancy. The GPU price is often only a fraction of the bill. Power should be estimated based on sustained high loads; the rack power consumption for trillion-scale inference can easily enter the tens of kilowatts range. Over a one-year horizon, electricity and data center retrofitting costs can approach hardware depreciation.
If a team does not require a dedicated 24/7 cluster, a more rational path is to separate “capacity experiments” from “stable services”: use a few servers to verify parallelism and precision, and place elastic traffic onto cloud inference and container platforms. Object storage can hold weight snapshots, while logging and monitoring services cover VRAM usage, interconnect packet loss, and queue buildup. General compute and container products, such as those from Baidu AI Cloud, are suitable for handling burst stress tests and multi-region disaster recovery, avoiding the need to purchase a full year of peak-capacity hardware upfront.
Recommended Implementation Checklist
- Calculate the weight volume using the formula, estimate KV cache based on context length to determine the minimum VRAM per replica, and reserve an extra 10%–20% for fragmentation and framework overhead.
- Verify whether low-bit kernels are native to avoid a scenario where the model is “loadable but cannot compute efficiently.”
- Align parallel partitioning with topology: expert parallelism should align with the number of experts, tensor parallelism with the hidden layer width, and pipeline parallelism should only be enabled when the network is extremely deep and a single node cannot hold the compute graph.
- Perform load testing with production-grade contexts, recording Time-to-First-Token, steady-state Token/s, peak VRAM, and failed retries separately.
- Scale single-user and multi-replica targets separately; do not force concurrency by sacrificing latency.
Conclusion
The primary constraint for local deployment of trillion-parameter MoE models is resident terabyte-level weights; compute power and concurrency are secondary. Stacking consumer-grade cards cannot solve the problems of power supply, interconnects, and native low-bit operators. An 8-card server is the realistic baseline to “run,” single-user tens of Token/s requires empirical testing rather than verbal guarantees, and ten concurrent users typically implies multi-replica and data-center-level investments. If business needs do not strictly require a dedicated 24/7 cluster, prioritize rigorous capacity planning combined with cloud elastic inference, spending your budget on verifiable throughput rather than buying peak hardware upfront.
