Trillion-Parameter MoE Deployment: Estimating On-Premises Costs
Estimating the cost of running a trillion-parameter mixture-of-experts model requires more than adding up accelerator memory. This article explains how to account for weight storage, quantization overhead, expert-routing communication, KV cache, redundancy, and operating expenses, then validate the estimate against throughput, latency, and cost per effective output token.
Deploying a mixture-of-experts (MoE) model with roughly a trillion total parameters is not simply a matter of buying enough accelerator memory. The real bill depends on keeping all expert weights available, moving activations between accelerators, expanding the context cache as concurrency grows, and providing the redundancy and operations support needed for reliable service.
The following framework turns those requirements into an auditable cost estimate, rather than a single number detached from its assumptions.
Separate Storage Requirements from Active Compute
MoE models activate only a small subset of experts for each token. Compute therefore scales with the active parameters, rather than increasing linearly with the model’s total parameter count.
Deployment has a different constraint: every expert must be stored somewhere accessible to the router. Routing determines which experts perform computation for a particular step—not which experts can be omitted from the deployment.
This means:
- Minimum accelerator and host-memory capacity depends on total parameters, precision, and runtime overhead.
- Compute requirements and some communication traffic depend on the experts activated per token.
- A low activation ratio reduces forward-pass computation, but does not imply a proportionate reduction in weight storage.
Interpreting “about 2% of experts are activated” as “only 2% of the memory is needed” can produce a configuration that fails before inference even starts. Experts can be distributed across multiple accelerators and nodes, but the complete set must remain available online. Routing tables, weight placement, and communication domains must also be established in advance.
Estimate Weight Storage from Parameter Count
The basic calculation is straightforward:
Weight storage in bytes = parameter count × average bits per weight ÷ 8
For 4-bit quantization, the shorthand “half the parameter count gives the size in GB” assumes that the parameter count is expressed in billions, GB uses decimal units, and each weight occupies exactly four bits with no additional information.
Actual deployment formats usually add storage for scales, zero points, or block statistics. If every 32 low-precision elements share an 8-bit scale, for example, the average storage per weight is slightly above four bits.
Tensors retained at higher precision also matter. Embeddings, some normalization parameters, output layers, routers, and padding for alignment or collective communication can all push the actual footprint above the theoretical minimum.
A more reliable estimate separates memory into five categories:
- Low-precision expert weights, including scales and indices.
- Non-expert parameters retained at higher precision.
- Tensor alignment, sharding metadata, and loading buffers.
- Runtime workspaces, including temporary activations and collective communication buffers.
- Key-value (KV) cache, which grows with batch size, context length, and layer count and has no fixed ratio to weight size.
Only the first category can be estimated reasonably closely from parameter count and bit width alone. Runtime workspaces and KV cache determine whether a system merely holds the weights or can generate tokens reliably at the required concurrency.
When comparing a model with another in the same family that has roughly one-tenth as many parameters, do not assume every capacity requirement shrinks tenfold. Cache, communication buffers, and spare accelerators reserved for availability may scale differently.
Quantization is also not just a switch to flip on deployment day. If training or post-training optimization already accounted for the target low-precision format, using that format during inference generally makes quality loss more manageable than a direct conversion afterward.
Compressing a high-precision checkpoint to four bits may reduce storage requirements, but it can introduce costs for calibration data, quality regressions, and rollback versions. Capacity planning should therefore record three related fields together: weight-file size, runtime precision, and quality acceptance criteria.
Why Large MoE Deployments Often Require a High-Speed Supernode
Large-scale MoE inference is particularly sensitive to the all-to-all communication used in expert parallelism. After routing, activations must reach the accelerators that host the selected experts, and the results must be returned.
With hundreds of experts, this can involve many communication peers and small messages. If these transfers repeatedly cross a slower inter-node network, communication latency can consume the compute savings delivered by sparse activation. Throughput suffers, and each request can occupy more accelerator-hours.
The deployment topology is therefore often not “any collection of machines with enough combined memory.” Instead, it starts with a high-speed interconnect domain. Within that domain, high-bandwidth, low-latency accelerator links handle expert traffic. Outside it, infrastructure handles request ingress, batch scheduling, and result delivery.
The domain must accommodate all expert weights, runtime workspaces, and planned cache capacity, while also allowing for failed accelerators. A configuration that satisfies the arithmetic memory total but scatters experts across ordinary Ethernet can cost more in practice than a configuration with fewer accelerators and adequate internal bandwidth: the same requests keep the hardware busy for longer.
A cost estimate should track three bandwidth requirements separately:
- Bandwidth between accelerators within the domain: determines whether expert all-to-all traffic becomes a bottleneck.
- Bandwidth between host memory and accelerators: determines whether cold experts or cache can be offloaded, and whether the resulting latency is acceptable.
- Bandwidth from storage to memory: determines model-loading, scaling, and recovery times, which affect how much hot standby capacity is needed.
Break the Budget into Additive Cost Categories
An on-premises deployment has both upfront and recurring costs. At a minimum, the budget should include the following categories. Prices vary with hardware generations and electricity rates, so this framework does not replace vendor quotations.
Accelerators and Hosts
Determine the accelerator count from weights, workspaces, cache at target concurrency, and redundancy. Then provision sufficient CPU capacity, host memory, and local storage.
If host memory supports weight offloading or paged cache, choose capacity and memory-channel configuration based on bandwidth as well as GB.
Interconnect
The high-speed interconnect can represent a substantial share of equipment costs. Once the topology is wrong, software often cannot compensate for it.
Treat networking as a capacity requirement on the same level as accelerators, not as a secondary accessory.
Power and Cooling
Estimate electricity costs from expected power consumption, electricity rates, cooling overhead, and planned operating hours.
For an always-on inference service, electricity spending over one to two years can approach a portion of hardware depreciation. Use expected utilization: do not assume peak power throughout the entire period, and do not use idle power to represent a system serving traffic.
Storage and the Data Plane
Multiple model versions, quantization calibration datasets, evaluation logs, and request-audit records all require storage.
Object storage is suitable for checkpoints, while fast local drives are suitable for the version currently being loaded. Supporting rollback usually means retaining more than one copy of the weights.
Staffing and Availability
Scheduling, observability, capacity management, and failure drills require operational effort. Spare accelerators for N+1 redundancy—or additional capacity for active-active service—also belong in the budget.
These costs separate “a model that runs” from “a dependable service.” An experimental deployment may not need hot standby capacity. A service with latency and availability commitments should budget for both standby resources and staged rollout environments.
Quality Assurance
Memory savings from lower precision must be balanced against offline evaluation, production sampling, and, when necessary, fallback to higher precision.
These costs may not appear on a purchase order, but they consume capacity on the same accelerator fleet.
A practical decision sequence is:
- Estimate the minimum weight footprint from parameter count and bit width.
- Add cache requirements for the maximum supported context length and concurrency to establish a domain size that can run the model.
- Load-test against target time to first token and tokens per second to determine whether communication is eroding effective compute capacity.
- Incorporate utilization, power, and redundancy to calculate cost per effective token.
Without the final two steps, comparing accelerator purchase prices divided by parameter count says little about actual service economics.
Use Illustrative Formulas, Not Unqualified Specifications
Let:
- P be the total parameter count.
- b be the average bits per low-precision weight, including scales and other associated storage.
- k be a runtime overhead multiplier greater than one.
The approximate baseline weight footprint is:
Weight memory ≈ P × b ÷ 8 bytes
A simplified planning estimate then applies k to account for higher-precision tensors, alignment, buffers, and planned cache capacity:
Planned memory ≈ (P × b ÷ 8) × k
The multiplier is not universal. For short contexts and low concurrency, roughly 1.1–1.3 may serve as an initial rule-of-thumb estimate. Long contexts or large batches can make it substantially higher because of KV cache growth.
Divide the planned memory by usable memory per accelerator, then round up to a configuration supported by the communication topology. Add failure redundancy afterward.
Active computation requires a separate estimate:
Compute per token is approximately proportional to active expert parameters plus shared parameters.
Communication activity, in turn, depends on expert-parallel scale and routing fan-out.
Both constraints must be satisfied. Planning only for memory can yield a cluster that fits the model but runs slowly. Planning only for active compute can yield a cluster with enough processing capacity but nowhere to store all the weights.
When a Fully Provisioned On-Premises Deployment Is the Wrong Choice
If traffic is low, contexts are short, and queuing is acceptable, it may be more economical to reduce the capacity supported at any one time: lower concurrency, shorter contexts, a smaller cache pool, or routing only some requests to the large model.
These choices do not reduce the weight-storage floor imposed by keeping every expert available. They can, however, reduce cache, power, and redundancy requirements.
For occasional use, low utilization magnifies the depreciation cost of a fully provisioned high-speed domain. Usage-based external inference services may then offer a better cost profile.
Conversely, an on-premises deployment has a better chance of reaching cost parity when data must remain within a controlled environment, latency must be predictable, and daily token volume is high enough to keep the accelerators well utilized.
Compare options using a consistent metric: total cost per 1,000 effective output tokens, including hardware depreciation, electricity, networking, storage, staffing, and unused capacity.
Neither theoretical peak compute nor the ability to fit the weights into memory is a sufficient endpoint for the comparison.
Pre-Deployment Checklist
Before committing to production, verify that:
- The actual weight and scale footprint has been measured in the target format, rather than inferred only from parameter count divided by two.
- All experts are placed within the intended high-speed communication domain, with profiling data for the post-routing transfer paths.
- Cache limits and batch scheduling match the promised context length and concurrency.
- Model loading and failure recovery are acceptable at the available storage bandwidth, and hot standby capacity reflects those recovery times.
- Low-precision outputs have passed evaluations aligned with the business workload, rather than merely loading successfully.
Once these measurements are complete, add hardware quotations, electricity rates, and staffing costs to the budget categories above. That produces a defensible answer to what local deployment will cost.
When the assumptions change, the estimate must change too. There is no single deployment price independent of traffic, latency, and availability requirements.
