Cost Breakdown for Locally Deploying a Trillion-Parameter MoE Model

    Deploying a trillion-parameter Mixture-of-Experts (MoE) model locally raises one question above all: how much hardware does it actually take? This article walks through the memory math behind a ~2.8T-parameter MoE model, explains why expert sparsity reduces compute but not storage, and estimates costs across three deployment tiers—from a barely-functional heterogeneous setup, to single-user 25 tokens/s inference, to a 10-concurrent-user production cluster—with practical advice on validation and cloud-based alternatives.

    Cost Estimates for Locally Deploying a Trillion-Parameter MoE Model: Three Deployment Tiers

    1. First, Understand the Model’s Physical Footprint

    Before discussing deployment costs, you need to understand the model’s parameter structure. Take a recently high-profile ultra-large-scale Mixture-of-Experts (MoE) model as an example: roughly 2.8 trillion total parameters, 896 experts, with only 16 experts activated per token during inference—an expert activation ratio of about 1.79%.

    There’s a critical point here that is easily misunderstood: the activation ratio affects compute, not storage. The memory requirement for MoE deployment is determined by the total parameter count—you must first load all 896 experts into addressable memory, and only then can the router dynamically invoke 16 of them based on each token’s features during inference. In other words, “only 1.79% activated” absolutely does not mean “only 1.79% of the weights need to be loaded.”

    1.1 The Floor for Quantized Weights

    This model used quantization-aware training during supervised fine-tuning, with weights in a 4-bit floating-point format and activations in 8-bit floating point. A rough estimate for raw weights: 2.8T parameters × 4 bits ÷ 8 ≈ 1400 GB.

    But the actual overhead doesn’t stop there. Under the industry-standard microscaling floating-point convention, every 32 four-bit elements require an additional 8-bit scaling factor, so actual weight storage is:

    1. 2.8T × 4.25 bit ÷ 8 ≈ 1487.5 GB

    That still excludes tensors stored at higher precision (such as normalization layers and embeddings), metadata, memory alignment, runtime workspace, and the KV cache. Taken together, the floor for loading a full-fidelity deployment is above 1500 GB.

    1.2 An Intuitive Size Reference

    For comparison, a well-known 671B-parameter MoE model in the industry occupies roughly 685 GB in FP8 format for main and auxiliary parameters. With 4-bit integer quantization, the weights shrink to about 335 GB, and even with activation overhead bringing the total to ~400 GB, it only barely fits across eight 80 GB accelerator cards (640 GB total, requiring memory optimization techniques). The target model discussed in this article is more than four times that size, and deployment difficulty grows non-linearly.

    1.3 Official Recommendations and Communication Bottlenecks

    The officially recommended deployment form is a supernode of 64 or more accelerators. The reason: large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 896 experts distributed across many cards, every routed token must have its activations moved to the card hosting the target expert, then moved back after computation. If this crosses nodes over a conventional network interconnect, communication latency will swallow the compute gains. Only by expanding the communication domain with high-speed intra-node interconnects (such as in-chassis direct buses) can you keep data movement within a single communication domain.

    With these prerequisites established, let’s break down the costs at three tiers.

    2. Tier One: Just Get It Running, Speed Doesn’t Matter

    2.1 Goal and Technical Approach

    The goal at this tier is singular: fit nearly 1500 GB of weights into addressable memory and get the model to emit tokens, even at single-digit tokens per second. The most direct approach is heterogeneous GPU–CPU inference, for which open-source inference frameworks already exist.

    The core idea is layered offloading:

    • The shared attention portion of each MoE layer (compute-intensive but small in parameters) stays on the GPU, computed in high-bandwidth memory.
    • The 896 sparse experts—which account for the bulk of storage, with only 16 activated at a time—are fully offloaded to CPU memory on a large-memory server.

    2.2 Hardware Configuration and Cost Estimate

    Following this approach, a minimal viable configuration looks roughly like:

    Component Specification Estimate
    Memory ≥1.5 TB DDR5 (to hold all expert weights) Tens of thousands of CNY
    GPU 1–2 accelerator cards with 24–80 GB VRAM (attention + scheduling) Tens of thousands to 100k+ CNY
    CPU Multi-socket, high-core-count server CPUs with as many memory channels as possible Tens of thousands of CNY
    Storage ≥2 TB NVMe SSD (cold weight loading) A few thousand CNY

    Total investment lands in the range of roughly 100,000–250,000 CNY. The bottleneck is not compute but memory bandwidth: generating each token requires reading 16 experts’ weights from memory, and DDR5 bandwidth is typically in the hundreds of GB/s. Expect inference speeds of only 1–5 tokens per second, suitable solely for validation, debugging, and offline batch processing.

    3. Tier Two: Single User at 25 Tokens/s

    3.1 Where Does Speed Come From?

    Token generation speed during decoding is fundamentally determined by “how much weight data can be moved per unit of time”—i.e., it’s memory-bandwidth-bound. A simplified estimate:

    1. Activated parameters read per token ≈ total params × expert activation ratio × quantization bit-width
    2. ≈ 2.8T × 1.79% × 4.25 bit ÷ 8
    3. ≈ 26.6 GB (excluding shared attention and other resident parameters)

    To sustain 25 tokens/s, the per-second weight read volume is roughly 26.6 GB × 25 ≈ 665 GB/s. Adding KV cache reads/writes, attention computation, and system overhead, the practical requirement points to over 1.5 TB/s of effective aggregate memory bandwidth, with weights residing in VRAM as much as possible.

    3.2 Configuration Options

    CPU memory bandwidth can no longer meet this demand; a full-GPU deployment is required:

    • Total VRAM must be ≥1600 GB (weights + KV cache + workspace).
    • Based on 80 GB of VRAM per card, at least 20–24 data-center-grade accelerator cards are needed.
    • With 141 GB or higher-VRAM card models, 12–16 cards suffice, with better inter-card interconnect efficiency.

    On cost, data-center-grade accelerators typically run 100,000–300,000+ CNY per card. Including servers, power delivery, cooling, and high-speed interconnect backplanes, total investment is roughly 3–6 million CNY. At this scale, intra-chassis direct-bus interconnect is strongly recommended at minimum, so expert-routing all-to-all communication never crosses a conventional network.

    For teams without their own data centers, another option is renting cloud GPU compute. In the general GPU cloud server category, renting a 16-card high-VRAM instance by the hour can keep monthly spending at the tens-of-thousands-of-CNY level during single-user R&D validation. Major cloud platforms such as Baidu AI Cloud offer this kind of elastic capacity—useful for on-demand benchmarking right after weights are released, avoiding a one-time heavy capital outlay.

    4. Tier Three: 10 Concurrent Users, Each at 25+ Tokens/s

    4.1 What Concurrency Changes

    Ten concurrent users does not mean simply multiplying costs by ten—batching amortizes weight reads across multiple requests, and GPU compute utilization actually improves. But concurrency introduces three new pressures:

    1. KV cache growth: with 10 concurrent streams of long context, the KV cache can consume hundreds of additional GB of VRAM, squeezing the space available for weights.
    2. Compute threshold: as batch size grows, the bottleneck shifts from bandwidth toward raw compute, requiring higher aggregate FLOPS to maintain per-request decode speed.
    3. Multiplied communication pressure: more tokens being routed simultaneously means all-to-all traffic grows linearly.

    4.2 Configuration and Cost

    A sound approach is to move toward the officially recommended supernode form: 32–64 high-VRAM accelerator cards interconnected via high-speed intra-chassis links into a single communication domain, paired with an inference engine supporting continuous batching, expert parallelism, and paged KV cache management. Quantization should stay at or above the native 4-bit weight / 8-bit activation scheme to preserve output quality.

    Total hardware investment runs roughly 8–20 million CNY, plus data-center power (clusters of this class can draw tens of kilowatts), networking, and operations—firmly enterprise-grade spending. By comparison, calling the official API on a per-token basis, at publicly known pricing levels for comparable models, typically costs far less per month for workloads in the tens of millions of tokens than the depreciation-plus-operations cost of a self-built cluster. Unless you have strict data-compliance requirements, sustained high utilization, or deep customization needs, production scenarios above 10 concurrent users are generally more economical via API or elastic cloud capacity.

    5. Summary and Recommendations

    Costs across the three tiers span from the hundreds of thousands to tens of millions of CNY—fundamentally a ladder of “bandwidth and VRAM”:

    • Just get it running: CPU memory carries the weights, GPU handles attention; 100,000–250,000 CNY; single-digit token speeds.
    • Single user at 25 tokens/s: full-VRAM deployment, 12–24 cards; 3–6 million CNY.
    • 10 concurrent users at 25 tokens/s each: supernode form, 32–64 cards; starting at 8 million CNY.

    Two final reminders. First, until the model weights and technical report are officially released, all figures above are estimates based on public information—any real deployment must be validated item by item with benchmarks covering throughput, time-to-first-token, and concurrency stability. Second, before purchasing hardware, it’s advisable to run a feasibility study on elastic GPU instances from platforms such as Baidu AI Cloud: validate quantization, parallelism strategies, and stress-testing workflows at minimal cost before committing to heavy capital investment, avoiding sunk costs from estimation errors.