Local Deployment Costs for Ultra-Large Mixture-of-Experts Models: A Detailed Breakdown

    This article explains why local deployment costs for ultra-large Mixture-of-Experts (MoE) models extend far beyond buying accelerators. Using a 2.8-trillion-parameter, 896-expert model with 16 experts activated per token as an example, it examines weight memory, activation memory, KV cache, communication buffers, interconnect requirements, parallelization strategies, three-stage cost planning, power and infrastructure expenses, and the criteria enterprises should use before building a local cluster. It also shows how low-bit quantization reduces per-parameter storage but does not remove the capacity pressure of the full parameter set.

    1. First, Clarify: Local Deployment “Cost” Is Not Just Buying GPUs

    For ultra-large models, local deployment costs usually consist of several parts:

    1. Accelerator and server node costs;
    2. Accelerator memory, host memory, and local storage required for model weights and runtime;
    3. High-bandwidth interconnect networks and switching equipment;
    4. Racks, power, cooling, and data center infrastructure;
    5. Model loading, parallel inference, monitoring, backup, and operations costs;
    6. Long-term electricity, equipment depreciation, and fault redundancy costs.

    Therefore, deployment cannot be estimated simply by multiplying model parameter count by per-GPU memory. For very large models using a Mixture-of-Experts architecture, the parameter activation ratio mainly affects the amount of computation per token. It cannot be used to directly shrink total memory requirements by the same ratio.

    2. What 2.8 Trillion Parameters Mean for Memory

    Assume the target model has about 2.8 trillion total parameters and uses a Mixture-of-Experts architecture with 896 experts, where each token is routed to only 16 experts for computation. The expert activation ratio for a single inference pass is approximately:

    16 ÷ 896 ≈ 1.79%

    This number shows that each token does not need to pass through all experts for computation, which reduces compute. However, before inference, all expert weights still need to be available in local storage, host memory, or the accelerator memory system. The routing mechanism determines which experts the current token uses; it does not mean the other experts can remain completely unloaded.

    In other words:

    • Compute is mainly related to the number of activated experts;
    • Weight capacity is mainly related to total model parameter count;
    • Peak memory is also affected by activations, KV cache, communication buffers, and runtime workspace.

    This is why ultra-large MoE models can have relatively manageable compute per token while still having very high deployment barriers.

    3. Low-Bit Weights Do Not Mean Parameter Capacity Can Be Ignored

    If all 2.8 trillion parameters were stored at an ideal 4-bit format, the theoretical lower bound would be approximately:

    2.8 trillion × 4 bit ÷ 8
    ≈ 1.4×10¹² bytes
    ≈ 1400 GB

    This is only the mathematical lower bound for bare weights. Actual deployment usually must also account for scale factors in the quantization format, grouping information, alignment overhead, and tensors that are not stored in low-bit formats.

    For example, with block-level quantization where every 32 4-bit elements share one 8-bit scale value, each parameter requires on average:

    4 bit + 8 bit ÷ 32
    = 4.25 bit

    Based on this, the estimate is:

    2.8 trillion × 4.25 bit ÷ 8
    ≈ 1487.5 GB

    This still does not include:

    • Non-quantized layers or layers retained at higher precision;
    • Router, normalization, and output layer parameters;
    • Tensor alignment and memory allocation fragmentation;
    • Temporary buffers used by the runtime framework;
    • Communication buffers and expert scheduling space;
    • KV cache;
    • Extra space for multiple replicas, fault tolerance, and hot upgrades.

    Therefore, actual deployment should not be rigidly planned around 1500 GB of accelerator memory. For stable operation, a sufficient margin is usually needed on top of this baseline.

    4. Why Quantization-Aware Training Matters for Deployment

    Quantized deployment of very large models cannot rely only on directly converting weights during inference. Low-bit formats affect numerical precision, routing stability, attention computation, and long-context behavior. If the model has already been adapted to the target quantization format during training or fine-tuning, it is usually easier to reduce accuracy loss.

    A common design is:

    • Weights use approximately 4-bit block-level floating-point or integer representation;
    • Activations use an approximately 8-bit format;
    • Critical layers retain higher precision;
    • More stable data types are used for scale factors, normalization, and routing computation.

    The advantage of such an approach is that it significantly reduces weight storage pressure while preserving generation quality as much as possible. However, quantization only reduces storage per parameter and part of the compute cost; it does not change the total parameter scale of the model. Nor does using 4-bit mean that a model originally requiring dozens of accelerators can run directly on a small number of devices.

    5. How to Estimate Memory Configuration

    The following rough formula can be used for initial planning:

    Total memory requirement ≈ weight memory + activation memory + KV cache + communication buffers + runtime headroom

    Where:

    1. Weight memory

    This is the largest part. For 2.8 trillion parameters with average quantized weights of about 4.25 bit, theoretical weight capacity is about 1.49 TB. Actual deployment should plan for a higher value depending on quantization coverage, framework format, and weight sharding.

    1. Activation memory

    Activation memory depends on batch size, sequence length, hidden layer size, number of concurrent requests, and whether intermediate tensors are recomputed. Larger batches and longer contexts increase activation usage.

    1. KV cache

    During autoregressive generation, each request stores the keys and values of historical tokens. KV cache is usually related to:

    • Context length;
    • Number of concurrent requests;
    • Number of layers;
    • Number of KV heads;
    • KV data type;
    • Whether grouped-query or multi-query attention is used.

    In long-context, high-concurrency scenarios, KV cache can change from a secondary overhead into a primary bottleneck. Therefore, device count should not be decided only by weight capacity.

    1. Communication and runtime headroom

    Expert parallelism requires exchanging tokens between different devices. The runtime also needs to reserve space for routing indices, send and receive buffers, pipeline caches, and memory fragmentation. If all devices are filled with weights, the model may load successfully but crash during actual requests due to insufficient temporary memory.

    6. Why Dozens of High-End Accelerators Are Usually Needed

    Assume each accelerator has 80 GB of effective memory available for model inference. Ignoring other overheads, 1500 GB of weights requires at least:

    1500 ÷ 80 ≈ 18.75 accelerators

    That means at least 19 devices are needed in theory. But this is a very idealized calculation, because actual deployment must also consider:

    • Memory cannot be used 100% for weights;
    • Each device needs to store some common layers;
    • Expert sharding may be imbalanced;
    • KV cache and activations require additional space;
    • Communication requires buffers;
    • Some layers may not be fully converted to low-bit formats;
    • Production environments require fault redundancy and capacity elasticity.

    As a result, actual scale usually starts at dozens of devices. For longer context, higher concurrency, and stable production serving, a high-bandwidth cluster with 64 or more accelerators is more reasonable. “64 or more” is not a fixed answer; it is intended to leave room for weights, communication, cache, and business fluctuations.

    7. Interconnect Between Devices Is as Important as Per-GPU Memory

    Inference for ultra-large MoE models is not just about “putting the weights in.” Each routing decision may require sending tokens to the devices that host the target experts, generating a large amount of cross-device communication.

    Common parallelization methods include:

    1. Tensor parallelism

    A layer or matrix is split across multiple devices. This allows devices to jointly complete single-layer computation, but communication is frequent and demands high interconnect bandwidth and low latency.

    1. Expert parallelism

    Different experts are distributed across different devices or nodes. This helps hold large-scale expert weights, but token routing creates cross-device exchange.

    1. Pipeline parallelism

    Different layers of the model are distributed across different device groups. This can reduce memory pressure on each group, but it requires handling pipeline bubbles and request scheduling.

    1. Data parallelism

    Multiple device groups process different requests separately, mainly to improve throughput. It does not fundamentally reduce the weight capacity required for a single model replica.

    In practice, multiple parallelization methods usually need to be combined. If devices rely only on ordinary networking, communication overhead may offset the benefits of quantization and sparse activation. Therefore, a high-bandwidth, low-latency interconnect network is a necessary condition for deploying such models.

    8. Cost Estimation Can Be Divided into Three Stages

    The first stage is validation.

    The goal is to confirm whether the model format, quantization quality, inference framework, and parallel strategy are feasible. Remote compute resources or a small-scale device setup can be used for sharded loading, without pursuing full production throughput. Costs mainly come from compute resource rental, storage, and engineering time.

    The second stage is pilot operation.

    A multi-node, multi-GPU environment capable of fully loading the model needs to be built to validate long context, concurrent requests, failure recovery, and monitoring and alerting. This stage usually requires dozens of high-memory accelerators, along with high-speed networking, larger memory, and fast local storage.

    The third stage is production.

    A production environment cannot deploy only one replica that barely runs. It must also consider:

    • At least one standby replica or failover capability;
    • Degradation strategy after device failure;
    • Model version rollback;
    • Weight and configuration backup;
    • Traffic peaks;
    • Multi-tenant isolation;
    • Logging, monitoring, and alerting;
    • Power and cooling redundancy.

    Therefore, production cost may be several times the pilot cost, especially in scenarios requiring 24/7 service and high availability.

    9. Electricity and Infrastructure Costs Cannot Be Ignored

    High-end accelerator clusters usually have significant continuous power consumption. In addition to the accelerators themselves, the calculation must include:

    • Host processor and memory power;
    • Network switching equipment power;
    • Storage device power;
    • Fan and liquid cooling system power;
    • Power conversion losses;
    • Data center cooling power.

    Annual electricity cost can be estimated with the following formula:

    Annual electricity cost ≈ average power × operating hours × electricity price

    If the cluster runs at full load for long periods, a power usage effectiveness coefficient should also be used to correct for additional data center energy consumption. Actual costs also include equipment depreciation, maintenance, spare parts, rack leasing, and dedicated network lines.

    10. Criteria for Deciding Whether Local Deployment Is Worth It

    Before making a procurement decision, enterprises should answer the following questions:

    • Does the business must use the full-scale model?
    • Is a smaller model or distilled model acceptable?
    • What are the daily request volume and peak concurrency?
    • What are the average input length and output length?
    • Is ultra-long context required?
    • Is it mandatory that data never leaves the internal network?
    • Does the organization have high-bandwidth cluster and professional operations capabilities?
    • Can device utilization remain at a reasonable level over the long term?

    If request volume is low, purchasing a large cluster directly may lead to insufficient utilization. In that case, remote compute can be used for validation first, or compression, distillation, hierarchical routing, and caching can be used to reduce costs. A full cluster is suitable only when data compliance, latency, throughput, or long-term total cost of ownership demonstrate that local deployment has an advantage.

    11. Summary

    For a Mixture-of-Experts model with about 2.8 trillion parameters, a low expert activation ratio does not mean memory requirements are also only about one percent of the total parameter count. Deployment still requires preparing all expert weights. Low-bit quantization reduces storage per parameter, but it cannot eliminate the baseline capacity pressure caused by ultra-large parameter scale.

    At an actual average storage cost of about 4.25 bit, the weights alone are close to 1.5 TB. After adding activations, KV cache, communication buffers, runtime space, and production redundancy, dozens of high-memory accelerators are usually required, along with a high-bandwidth interconnect network. For stable enterprise-grade service, power, cooling, storage, monitoring, backup, and operations must also be included in the budget.

    Therefore, local deployment of such models should not ask only “how many GPUs are needed.” It should evaluate the complete system: model capacity, parallelization approach, business workload, infrastructure, and long-term operating cost. Only after these calculations are complete can a reliable deployment plan and budget conclusion be reached.