Trillion-Parameter MoE Deployment: Hardware Requirements and Costs

    Self-hosting a trillion-parameter mixture-of-experts model requires more than enough accelerator memory to hold its weights. This article explains how to estimate weight storage, KV cache capacity, expert communication, and operating costs, and compares memory-heavy offloading with accelerator-resident deployment for production inference.

    Deploying an extremely large mixture-of-experts (MoE) model on premises is rarely a matter of finding one sufficiently large accelerator. The real challenges are keeping all weights addressable, preventing expert communication from leaving compute resources idle, and accounting for KV caches and runtime workspaces.

    Before pricing hardware for self-hosted inference, separate the requirements into storage, compute, interconnect, and operations.

    This article uses an illustrative model with roughly two trillion total parameters, several hundred to nearly a thousand experts, and only a small subset of experts activated for each token. It does not assume a specific commercial model.

    1. Total Parameters Determine Storage; Active Parameters Drive Compute

    An MoE model distributes feed-forward computation across many expert subnetworks. During inference, a router selects a few experts for each token. This makes the required computation much smaller than it would be if every parameter participated in every forward pass.

    Memory requirements do not shrink by the same proportion. Inactive expert weights must still be available in addressable storage so that subsequent routing decisions can access them. Activating roughly 2% of the experts indicates sparse computation—not permission to store only 2% of the expert weights.

    The attention backbone is generally shared across experts and remains a denser computational component. Its placement can be planned separately from expert storage: high-bandwidth accelerators can handle attention and frequently used experts, while large host memory holds less frequently used experts.

    This heterogeneous arrangement is a deployment strategy, not a reduction in the model’s total parameter count.

    2. Estimating Low-Bit Weight Storage

    Some very large MoE models use quantization-aware training in later training stages to make 4-bit weights and 8-bit activations acceptable in terms of accuracy. Whether this applies must be checked against the model’s training configuration and released weights.

    The theoretical storage floor for raw 4-bit weights is straightforward:

    1. Weight bytes = Parameter count × 0.5 bytes

    Real formats rarely use exactly four bits per parameter without overhead. Microscaling-style formats, for example, may attach an 8-bit scale factor to each block of 32 low-bit elements. That yields an effective width of 4.25 bits per parameter:

    1. Weight bytes ≈ Parameter count × 4.25 ÷ 8

    The exact parameter count matters here. At exactly two trillion parameters, these formulas give approximately 1.0 TB for raw 4-bit weights and 1.06 TB with the illustrated scaling overhead, using decimal units. A 1.4–1.5 TB weight estimate therefore represents a larger parameter count within the broader trillion-parameter scale, rather than the direct result for exactly two trillion parameters.

    Even a correctly calculated weight estimate includes only weight elements and their scale factors. It does not cover:

    • Unquantized or higher-precision embeddings, normalization tensors, routers, and other components.
    • Tensor alignment, indexing, and parallel-partition metadata.
    • Framework runtime memory, communication buffers, and temporary activations.
    • KV caches, which grow with sequence length and concurrency.

    Treat a weight-only estimate as a lower bound, not the complete system memory requirement.

    For comparison, smaller dense models or medium-scale MoE models can require hundreds of gigabytes at 8-bit precision, with lower requirements at 4-bit precision. Multiplying the parameter count increases the storage floor almost proportionally, potentially pushing both accelerator count and host-memory requirements into a different hardware tier.

    3. Why Communication Changes the Hardware Calculation

    When experts are distributed across accelerators, token activations must travel to the devices holding the selected experts and return after computation. This is typically an all-to-all communication pattern, making it highly sensitive to latency and bandwidth.

    With many experts and multiple expert selections per token, communication can become substantial. If frequent exchanges cross nodes over ordinary Ethernet, transfer and synchronization delays may exceed expert computation time. The result is low accelerator utilization, even when the weights fit.

    A practical design keeps frequent expert exchanges inside a high-bandwidth, low-latency interconnect domain. Transfers within a tightly connected supernode use its fast internal links, while communication between supernodes is limited to necessary aggregated results.

    For full-performance, low-latency inference at this scale, deployments commonly involve supernodes containing dozens or more high-bandwidth accelerators—not loosely connected collections of cards.

    The required count depends on:

    • Memory capacity per accelerator.
    • Weight-partitioning strategy.
    • Target concurrency.
    • Latency requirements.

    No fixed accelerator count is a universal answer.

    4. Two Deployment Targets: Generating Tokens vs. Delivering a Usable Service

    Tier 1: Correct Inference Without Interactive-Speed Requirements

    The first priority is making the complete weight set addressable.

    A common approach combines accelerators with high-memory servers. Shared attention components remain on accelerators, while sparse experts are offloaded by layer to host memory. Host-memory bandwidth then supplies the selected experts.

    Performance depends on memory bandwidth, expert-loading strategy, batch size, and parallel execution. Decode rates of a few to a little over ten tokens per second are possible in this class of deployment, but results are highly implementation-dependent.

    The cost structure is dominated by high-capacity memory servers. Fewer accelerators may be sufficient, but throughput and concurrency remain limited. This tier is better suited to validation, offline processing, and internal trials than to a responsive multiuser service.

    Tier 2: Stable Time to First Token and Decode Performance

    For predictable response times, weights should remain in accelerator memory wherever possible. KV cache capacity must be reserved for the intended context length and concurrency, and expert communication should stay within a fast interconnect domain.

    The largest expenses shift toward accelerators, high-speed networking, and facility power rather than host-memory capacity alone.

    Prefill and decode also have different bottlenecks:

    • Prefill, which processes the prompt, places heavier demands on compute and attention.
    • Decode, which generates tokens incrementally, places heavier demands on memory bandwidth and cache access.

    Buying accelerators solely by dividing weight size by memory capacity can leave too little room for KV caches. A system that loads successfully may still support only single-digit concurrency.

    5. What Belongs in the Cost Model?

    Without verified quotations, specific monetary figures would be misleading. The useful starting point is a breakdown of cost categories and their relationships.

    1. Weight Residency

    Calculate the weight-only storage requirement from the exact parameter count and format, then add higher-precision tensors, alignment, and operating headroom.

    If weights reside entirely on accelerators, aggregate accelerator memory must cover weights, caches, and runtime overhead. With host offloading, host memory must accommodate expert weights plus operating-system and staging requirements, while accelerators still need room for attention and frequently accessed data.

    2. KV Cache

    KV cache size is approximately proportional to layer count, cached dimensions, sequence length, concurrency, and element precision.

    Long contexts and multiple concurrent agent workloads can make cache memory comparable to, or larger than, a substantial portion of the weight footprint. Model it separately rather than estimating total memory as “weights × 1.1.”

    3. Interconnect

    Include high-speed links within supernodes, bandwidth between machines, and switch ports.

    If the fast communication domain is too small, adding accelerators may increase idle capacity rather than useful throughput.

    4. Power and Cooling

    The sustained power draw of dozens of accelerators and high-memory servers determines electricity consumption and rack density. These are recurring total-cost-of-ownership expenses.

    5. Engineering and Redundancy

    Budget for drivers, inference runtimes, parallel partitioning, monitoring, alerting, failover, and model-update windows.

    Staffing and downtime can cost more than the difference between competing hardware quotations.

    6. Realized Utilization

    Expert scheduling, batching, and quantization-related accuracy constraints affect usable throughput.

    Estimating cost per million tokens by multiplying peak token throughput by 24 hours, without discounting for real utilization, produces systematically optimistic results.

    The procurement budget is the sum of applicable equipment and infrastructure quotations; recurring expenses complete the ownership-cost model.

    For the same weight footprint, a high-memory, low-throughput offloading system and an accelerator-resident, high-throughput cluster can differ in cost by more than an order of magnitude. Compare them at the same concurrency, context length, and latency target.

    6. Pre-Deployment Checklist

    Before committing to hardware:

    • Calculate the weight-storage floor from parameter count, bit width, and scale-factor overhead, and list tensors that remain at higher precision.
    • Estimate KV cache capacity at maximum sequence length and target concurrency; determine how it compares with weight storage.
    • Map expert all-to-all traffic and verify whether it remains within one high-speed interconnect domain.
    • Set separate prefill and decode performance targets rather than relying on a single tokens-per-second metric.
    • Match the quantization format to the training configuration or official weight release. Do not change bit width without evaluating accuracy.
    • Reserve capacity for alignment, communication buffers, and operation during failures.
    • Include electricity, rack costs, and operational staffing in recurring expenses—not just equipment prices.

    A simplified capacity calculation is:

    1. Weight bytes ≈ Parameter count × Effective bits per parameter ÷ 8
    2. Cache bytes ≈ Layer count × Cached dimensions × Sequence length
    3. × Concurrency × Bytes per element × Implementation factor

    The implementation factor accounts for how cached tensors are represented—for example, separate key and value storage.

    Add weights and caches, account for replication introduced by parallel partitioning, and include runtime overhead to estimate the capacity the system must address.

    On the compute side, estimate demand from the number of active experts, computation per expert, and target token rate. Include the shared attention workload rather than treating expert sparsity as a reduction in all model computation. Total parameter count alone is not a suitable multiplier for inference throughput requirements.

    7. When Full-Performance Local Deployment Is Unnecessary

    If concurrency is low and latency is not critical, heterogeneous offloading may be enough for functional validation. Investment can focus on memory capacity and bandwidth rather than a large accelerator cluster.

    For multiple users, long contexts, and predictable latency, the capital expense and operational complexity of an on-premises supernode rise quickly.

    A more reliable decision process is to calculate the minimum capacity and interconnect requirements first, then compare local ownership costs with recurring managed-inference fees. Compare equivalent precision, context length, and concurrency. Single-digit decode performance in a demonstration environment is not a production service metric.

    Object storage is useful for maintaining weight versions. Containers, logging, and monitoring support deployment and troubleshooting. These complete the operational workflow, but they cannot replace accelerator memory or a fast interconnect.

    Conclusion

    Sparse expert activation reduces compute requirements, not the need to store the full weight set. Low-bit quantization lowers that storage requirement, but the result must be calculated from the exact parameter count and format—and it remains only the first line of the infrastructure budget.

    KV caches, expert communication, and power requirements determine whether the result is an experimental system that can generate tokens or an inference cluster that can deliver a usable service. Calculate those requirements before treating a hardware price as meaningful.