Cost and Configuration Guide for Deploying Trillion-Parameter MoE Models Locally

    A practical guide to estimating the cost and hardware requirements of locally deploying trillion-parameter sparse MoE models. It covers three deployment tiers—from a basic runnable setup to 10 concurrent users at 25 tokens/s each—along with storage planning, quantization budgets, TCO calculations, and a testing roadmap.

    Cost and Configuration Guide for Deploying Trillion-Parameter MoE Models Locally

    Set the Boundaries First: Before Weights Are Released, Every Number Is an Engineering Estimate

    When discussing local deployment of ultra-large MoE models, the first step is not listing hardware but establishing cost boundaries. Take a sparse MoE model with 2.8 trillion total parameters as an example. Such architectures typically include an attention backbone, gated attention components, and a large pool of sparse experts. A common industry design uses 896 experts with 16 experts activated per token, an expert activation ratio of roughly 1.79%. Two concepts must be distinguished here: the expert activation ratio is not the same as the strict parameter activation ratio. The activation ratio mainly affects compute consumption, while memory and storage for MoE deployment must still be planned according to total parameter scale. During inference, all experts must be addressable in storage; only after routing are the activated experts loaded for computation.

    Quantization deserves the same caution—don’t stop at the words “4-bit.” At 4-bit weights, the raw data floor for 2.8 trillion parameters is about 1400GB. If you use a format where every 32 4-bit elements carry an 8-bit scale factor, weights plus scale factors come to roughly 2.8T × 4.25 bit ÷ 8 ≈ 1487.5GB. This excludes non-4-bit tensors, metadata, alignment padding, runtime workspaces, communication buffers, and the KV cache. In practice, you should reserve 20%–40% headroom, so “addressable weight storage” should be planned at the 2TB level rather than hugging the 1.5TB floor.

    As a reference point, a certain class of 671B models requires about 685GB at 8-bit floating point for main parameters plus multi-token prediction parameters; after 4-bit quantization, that’s roughly 335GB of weights plus 37GB of activations—about 400GB total, which fits on 8 high-end accelerators with 640GB of aggregate memory. A 2.8-trillion-parameter model is more than four times that size, so the deployment floor is naturally much higher. Before asking “how much will it cost,” you should first define your target throughput and concurrency—otherwise any hardware list is meaningless.

    Three Deployment Tiers, Three Very Different Cost Structures

    Tier 1: Just Make It Run, Speed Irrelevant

    The goal here is to fit nearly 1.5TB of weights into addressable storage and steadily produce tokens, even at single-digit tokens per second. The most direct route is heterogeneous GPU-CPU inference: keep the compute-intensive, relatively small attention backbone on the GPU, and offload the sparse experts—which dominate storage but only activate a few experts at a time—to large CPU memory on a high-memory server.

    The key variables in this tier are not GPU count but CPU memory capacity, memory bandwidth, and fast SSD storage. With raw weights at about 1.5TB, and accounting for scale factors, runtime overhead, and filesystem overhead, plan for 2TB–3TB of CPU memory. Use fast SSDs for the system and model drives, with at least 2–4TB reserved. Only a few high-end GPUs are needed for attention and routing computation; the exact number must be determined through benchmarking. For self-built setups, large-capacity ECC memory and fast storage may dominate costs; for rentals, it shows up as high-memory instances plus a small number of GPU hours. This tier suits correctness verification, quantization calibration, and interface integration—not production concurrency.

    Tier 2: Single-User Output at 25 tokens/s

    25 tokens/s means decoding produces one token roughly every 40ms, which places demands on single-request latency, memory bandwidth, and expert routing communication. You cannot rely entirely on CPU offloading here, or shuffling expert weights between CPU memory and GPU will significantly inflate tail latency. A more reasonable approach is: keep weights in GPU memory as much as possible, or adopt a “hot experts resident on GPU, cold experts tiered cache” strategy; reserve dedicated memory for the KV cache; and keep routing and all-to-all communication within a high-speed interconnect domain.

    Estimating 1.5TB of weights plus runtime headroom: with 80GB-class accelerators, you need at least 20 just to hold the weights; factoring in the KV cache, workspace, and redundancy, 24–32 cards is safer. If you use a supernode of 64 or more accelerators, the communication domain is larger and all-to-all traffic doesn’t cross slow networks—but costs rise significantly. The cost formula for this tier should read: accelerator count × per-card hourly or depreciation cost + high-speed interconnect + large memory + fast storage + operations. A single user at 25 tokens/s does not mean “one card will do it”—the distribution of MoE experts requires multi-card cooperation.

    Tier 3: 10 Concurrent Users, Each Above 25 tokens/s, Quantization No Lower Than 4-bit

    Ten concurrent users each at 25 tokens/s means total decoding throughput of at least 250 tokens/s. Here the bottleneck shifts from single-request latency to batch scheduling, KV cache capacity, expert parallelism communication, and continuous batching efficiency. You need larger batches to amortize weight reads, but larger batches push up KV cache and communication buffer demands. With 896 experts distributed across many cards, every token requires its activations to be moved to the cards hosting its routed experts, computed, then moved back—all-to-all bandwidth directly eats into compute.

    For this tier, start with a supernode of 64+ accelerators or multi-node high-speed interconnect, applying standard optimizations: expert parallelism, prefill-decode separation, continuous batching, and tiered KV cache management. Quantization no lower than 4-bit means you must carefully validate post-quantization accuracy retention, scale-factor alignment, and outlier handling. For self-built deployments, accelerators and high-speed interconnect typically dominate TCO; for rentals, costs scale linearly with card count × hours × duration, plus time reserved for stress testing and redundancy. If demand peaks are pronounced, rent first to validate, then decide whether to build.

    Cost Accounting: Don’t Just Ask “How Much Is One Card”

    The total cost of ownership for local deployment breaks into five parts: hardware depreciation, power and cooling, network and facility, software adaptation and labor, and operations and failure recovery. A three-year self-built TCO can be approximated as:

    1. TCO_3yr = total hardware purchase price
    2. + 3 × annual power cost
    3. + 3 × operations labor
    4. + network/facility/spare parts
    5. + adaptation and stress-testing costs
    6. Annual power cost ≈ total system power (kW) × 24 × 365 × electricity price × PUE

    Rental costs are approximately:

    1. Monthly rental cost = Σ(instance hourly price × quantity × monthly hours)
    2. Cost per token = total monthly cost ÷ (measured throughput tokens/s × 3600 × 24 × 30 × utilization)

    So “how much will it cost” has no single answer: Tier 1 may only require upgrading memory and storage on an existing server; Tier 2 needs a multi-GPU server or on-demand multi-GPU instances; Tier 3 reaches supernode scale, where networking and operations take a visibly larger share. Before the weights are released, avoid locking in purchases—use on-demand resources for small-scale validation first. For short-term validation, on-demand GPU instances, high-memory instances, and high-speed networking categories from cloud providers such as Baidu AI Cloud can be provisioned as needed, with decisions driven by actual stress-test results.

    Stress Testing and Implementation Roadmap

    Before going live, record at minimum: time-to-first-token (TTFT), time per output token (TPOT), single-request tokens/s, total throughput at 10 concurrent users, P99 latency, peak memory usage, CPU memory usage, all-to-all bandwidth utilization, and accuracy differences before and after quantization. The recommended path is: first get loading and correctness working with a heterogeneous setup; then benchmark a single user at 25 tokens/s; then add concurrency and observe routing hotspots and communication bottlenecks; finally, apply expert parallelism, continuous batching, KV cache management, and quantization calibration. The following pseudo-config expresses the capacity boundaries:

    1. deploy:
    2. model: 2.8T sparse MoE
    3. quantization: 4bit weight + 8bit activation
    4. experts: 896
    5. active_experts_per_token: 16
    6. weight_storage: >=1.5TB raw, 2TB-level with margin
    7. cpu_memory: >=2TB if expert offload
    8. gpu_memory: aggregate >= weights + KV cache + workspace
    9. interconnect: high-bandwidth domain for all-to-all
    10. target_tier1: runnable, no speed guarantee
    11. target_tier2: single request >=25 tokens/s
    12. target_tier3: 10 concurrent, each >=25 tokens/s

    The conclusion: “just run it,” single-user 25 tokens/s, and 10 concurrent users at 25 tokens/s are not simply a matter of “adding memory” or “adding cards”—they require a rebalancing of four resource classes: storage, GPU memory, interconnect, and scheduling. Before the weights are released, the safest approach is to split your budget into a “validation budget” and a “production budget,” run real benchmarks on on-demand resources first, then decide on the scale of self-built infrastructure versus rentals.