Large-Scale MoE Model Deployment: On-Premises Costs and Architecture

    This article examines the hardware requirements, deployment architectures, and budget considerations for running a 2.8-trillion-parameter mixture-of-experts model on premises. It explains weight storage, quantization overhead, CPU–GPU offloading, memory bandwidth, and expert-routing communication, then compares three deployment targets: basic inference, 25 tokens per second for one user, and 10 concurrent users. All performance and cost figures are engineering estimates that require benchmark validation.

    Large-Scale MoE Model Deployment: On-Premises Costs and Architecture

    Deploying a mixture-of-experts (MoE) model with trillions of parameters on premises is not simply a question of how many GPUs to buy. Whether it can run—and at what cost—depends on GPU memory capacity, memory bandwidth, interconnect topology, quantization precision, concurrency scheduling, and operational overhead.

    This article uses a publicly discussed MoE configuration as an example: 2.8 trillion total parameters, 896 experts, and 16 experts activated per token. Its expert activation ratio is approximately:

    1. 16 / 896 ≈ 1.79%

    This is the expert activation ratio, not necessarily the exact proportion of parameters activated. MoE weight-storage requirements must still be estimated from total parameters. Sparse activation primarily affects compute requirements and the communication patterns associated with expert routing.

    All memory, performance, and cost figures below are engineering estimates. They must be validated through benchmarks once the complete weights and technical report are available.

    1. Start with Weight Storage, Quantization, and Runtime Overhead

    The fundamental storage requirement is straightforward: all 896 experts must be available in addressable storage, even though routing selects only 16 for each token. A low expert activation ratio does not mean that GPU memory can be sized using only the active parameters.

    For 2.8 trillion parameters stored at 4 bits per weight, the raw storage lower bound is:

    1. 2.8e12 × 4 bits / 8 ≈ 1,400 GB

    However, microscaling 4-bit quantization does not necessarily use exactly 4 bits per parameter. If each group of 32 four-bit elements has an additional 8-bit scale factor, the average storage becomes approximately 4.25 bits per element:

    1. 2.8e12 × 4.25 bits / 8 ≈ 1,487.5 GB

    This excludes tensors stored at other precisions, metadata, alignment padding, runtime workspaces, expert caches, and the KV cache. A practical budget should allow roughly 20–40% above the weight-storage estimate, making 1.8–2.1 TB of addressable system or accelerator memory a safer starting point.

    At 8-bit weight precision, weights alone require approximately 2.8 TB. Higher-precision activations or a larger KV cache increase the budget further.

    For comparison, another MoE example with approximately 671 billion parameters requires about 685 GB for primary and auxiliary parameters in FP8. A 4-bit configuration uses approximately 335 GB for weights and 37 GB for activations, with a roughly 400 GB total budget sufficient to run on eight 80 GB-class accelerators providing 640 GB of combined GPU memory.

    The 2.8-trillion-parameter model is more than four times that size. Its full-model deployment requirements therefore move into the range of approximately 1.5 TB of weights, more than 2 TB of system memory, hundreds of gigabytes of accelerator memory, and substantially higher interconnect bandwidth.

    The following Python snippet provides a quick storage estimate. Hardware prices should remain variables rather than being tied to a specific product.

    1. P = 2.8e12 # Total parameters
    2. bits_per_weight = 4.25
    3. weight_gb = P * bits_per_weight / 8 / 1e9
    4. runtime_overhead = 1.3
    5. weight_with_overhead = weight_gb * runtime_overhead
    6. print(weight_gb, weight_with_overhead) # Approximately 1487.5 GB, 1933.8 GB

    2. Three Deployment Targets and Their Hardware Profiles

    Tier 1: Basic Inference with a High-Memory Server and a Few Accelerators

    The first target is simply to make the model run: place nearly 1.5 TB of weights in addressable storage and generate tokens, even if output speed remains in the single digits per second.

    A direct approach is heterogeneous CPU–GPU inference. The shared attention backbone in each MoE layer is compute-intensive and stays on the accelerators. The 896 sparse experts account for most of the storage, but only 16 are activated for each token, so the expert weights can be offloaded to CPU memory.

    In this arrangement:

    • Accelerators handle attention, routing, and a limited cache of frequently used experts.
    • CPUs handle expert matrix multiplications and memory transfers.
    • System memory stores the full expert set.

    The hardware priorities are memory capacity and bandwidth rather than peak compute performance. A starting configuration would include:

    • 2–3 TB of system memory
    • 4–8 TB of local SSD storage for weights and checkpoints
    • At least several hundred gigabytes of accelerator memory for shared attention, the KV cache, and hot-expert caching

    The main costs are high-capacity memory, a multi-socket server platform, power supplies, and storage. Using the source market’s broad pricing estimates, a complete server with 2.5 TB of memory alone may cost more than RMB 100,000. Adding accelerators, storage, power supplies, and a chassis generally puts the total in the low-to-mid hundreds of thousands of RMB.

    These amounts are reference estimates, not international procurement quotes. Doubling memory capacity or choosing a higher-bandwidth platform raises costs further.

    For a system drawing 1–2 kW, the source estimate places annual electricity costs at approximately RMB 7,000–15,000 using industrial electricity rates. Cooling and allocated facility costs are not included; local electricity rates must be used for an actual budget.

    Tier 2: 25 Tokens per Second for One User

    The second target is an output rate of 25 tokens per second for a single user. The bottleneck shifts from storing the model to supplying data quickly enough.

    Transfers of expert weights from CPU memory to accelerators, KV-cache reads and writes, and routing-related all-to-all communication all contribute to latency.

    A candidate configuration typically includes:

    • 4–8 accelerators with roughly 80 GB of memory each
    • 2–3 TB of CPU memory for cold experts
    • High-bandwidth CPU–accelerator connectivity

    Shared attention, the routing network, some hot experts, and the KV cache remain resident in accelerator memory. The software stack needs expert prefetching, tiered caching, NUMA-aware placement, huge pages, and continuous batching.

    The estimated cost is several hundred thousand RMB to around RMB 1 million, with accelerators, high-speed interconnects, the high-memory platform, and SSDs accounting for most of the budget.

    For a single-request target of 25 tokens per second, reducing concurrency, expanding the hot-expert cache, and shortening the retained context can help approach the goal. Longer contexts increase KV-cache usage and therefore accelerator-memory requirements.

    With a microscaling configuration using 4-bit weights and 8-bit activations, weight storage remains approximately 1.5 TB, and all experts must still be addressable. Moving to 8-bit weights increases storage to approximately 2.8 TB and substantially raises memory and bandwidth costs.

    This hardware profile is an estimate, not a guarantee that 25 tokens per second will be achieved.

    Tier 3: More Than 25 Tokens per Second per User at 10 Concurrent Users

    The third target is 10 concurrent users, each receiving more than 25 tokens per second. The ideal aggregate throughput is approximately 250 tokens per second.

    This is not a workload that can easily be solved by adding cards to a conventional single server. Large-scale MoE inference is highly sensitive to all-to-all communication bandwidth.

    When 896 experts are distributed across accelerators or nodes, token activations must be sent to the devices hosting the selected experts, then returned after computation. Communication latency directly reduces effective compute throughput.

    For this tier, the proposed engineering approach is a tightly interconnected supernode with 64 or more accelerators. A large, high-speed communication domain helps keep expert-related transfers within the same domain.

    The deployment also requires:

    • Multi-node expert parallelism
    • Request-level scheduling
    • Expert load balancing
    • Paged KV-cache management
    • Quantized inference
    • Monitoring and alerting

    Estimated costs range from several million RMB to roughly RMB 10 million, depending on accelerator count, high-speed switching, storage throughput, redundancy, and facility requirements.

    As concurrency grows, costs may rise approximately linearly, but interconnect bottlenecks and expert hotspots can make the actual curve steeper. Ten concurrent requests cannot be treated as a simple multiplication of single-request throughput. Load testing must validate P99 latency and expert-load skew.

    3. Why Communication and Memory Bandwidth Drive Costs

    For MoE inference:

    • Weight storage scales with total parameters.
    • Compute demand depends on the activated experts.
    • Communication depends on routing decisions.

    With 16 experts activated per token and hundreds of tokens generated per second across concurrent requests, routing patterns change continuously. Expert hotspots can overload some accelerators while leaving others underutilized.

    Possible optimization measures include expert-parallel groups, replicated experts, capacity-factor adjustments, request reordering, continuous batching, expert-cache warm-up, and tiered storage. Without a sufficiently fast interconnect, adding accelerators may simply increase time spent waiting.

    CPU memory bandwidth is equally important. CPU-side expert inference is memory-bandwidth-intensive. Too few memory channels can prevent a system from reaching the 25-token-per-second target, regardless of its nominal compute capability.

    Relevant measures include:

    • Multi-channel memory configurations
    • NUMA-aware process and memory placement
    • Huge pages
    • Asynchronous prefetching

    Store the weight repository on local SSDs, use memory mapping, and load weights by layer where appropriate to avoid a full startup copy.

    Budget the KV cache separately. For long-context workloads, it may occupy tens to hundreds of gigabytes and should not be hidden inside the weight-storage estimate.

    4. Deployment Architecture and Optimization Priorities

    A tiered architecture separates storage, expert execution, accelerator workloads, and serving controls:

    Layer Responsibility
    Local SSD storage Quantized weights and checkpoints
    High-capacity system memory Full expert set and hot-expert cache management
    Accelerators Shared attention backbone, routing network, and KV cache
    Serving layer Request queues, rate limits, batching, timeouts, monitoring, and alerts

    Before procurement, run a small-scale benchmark covering:

    • Weight-loading time
    • Time to first token
    • Single-request output tokens per second
    • Aggregate throughput at 10 concurrent requests
    • P99 latency
    • All-to-all bandwidth utilization
    • CPU memory-bandwidth utilization

    The recommended optimization sequence is:

    1. Quantization: Start with a microscaling scheme using 4-bit weights and 8-bit activations. The calibration dataset should represent the target workload.
    2. Heterogeneous offloading: Keep shared attention on accelerators and cold experts in CPU memory.
    3. Expert caching: Adjust cache contents dynamically based on expert-access frequency.
    4. Batch scheduling: Control batch size to prevent the KV cache from exhausting accelerator memory.

    During early validation, rented GPU instances, object storage, and monitoring services can support small-scale benchmark sampling before committing to on-premises hardware. Service availability should be checked for the intended deployment region. This approach can reduce the risk of a large upfront purchase.

    5. Cost Breakdown and Budget Formula

    Total deployment cost includes more than the initial hardware purchase:

    1. Total cost = hardware
    2. + electricity
    3. + allocated facility costs
    4. + operations labor
    5. + software adaptation

    Hardware includes memory, accelerators, SSDs, high-speed interconnects, switches, power supplies, and the server chassis or complete system.

    A variable-based estimate can be written as:

    1. total = mem_gb * price_mem_gb
    2. + gpu_count * price_gpu
    3. + nvme_tb * price_nvme_tb
    4. + network_cost
    5. + chassis_power_cost
    6. + annual_power_kw * 8760 * electricity_price * years
    7. + ops_cost

    Here, annual_power_kw represents the system’s average power draw in kilowatts for the annual electricity calculation. Facility allocation and software-adaptation costs should also be included in the final budget.

    The three deployment tiers can be summarized as follows:

    Deployment target Indicative hardware profile Source-market cost estimate
    Basic inference 2–3 TB system memory, at least 4 TB local storage, and several hundred GB of accelerator memory Low-to-mid hundreds of thousands of RMB
    One user at 25 tokens/s 4–8 80 GB-class accelerators, high-speed connectivity, and 2–3 TB system memory Several hundred thousand RMB to around RMB 1 million
    10 concurrent users at more than 25 tokens/s each Supernode with 64 or more accelerators and multi-node scheduling Several million RMB to roughly RMB 10 million

    All figures are order-of-magnitude estimates. Actual budgets depend on procurement quotes, local facility and electricity costs, and measured performance.

    6. Deployment Acceptance Checklist

    Once the weights are available, validate at least the following:

    • Actual weight-storage size
    • Accuracy loss after quantization
    • Single-request time to first token
    • Single-request output tokens per second
    • Aggregate throughput and P99 latency at 10 concurrent requests
    • Expert-routing hotspot distribution
    • CPU memory-bandwidth utilization
    • Accelerator-memory usage
    • KV-cache growth as context length increases
    • Failure-recovery time
    • Long-running stability

    A deployment budget is not validated merely because the weights fit in memory. It becomes credible only when the required performance, accuracy, resource usage, recovery behavior, and operational stability have all been demonstrated.