How Much Does It Cost to Deploy a Trillion-Parameter MoE Model Locally?

    Self-hosting a trillion-parameter Mixture-of-Experts (MoE) model is less about whether it runs and more about three practical questions: capacity, communication, and cost. Using a ~2.8-trillion-parameter model (896 routed experts, 16 activated per token) as the reference, this article breaks down the capacity ledger (a ~1.5TB addressable-memory floor), explains why high-speed interconnect deployments effectively start at 64 accelerators, and lays out a far cheaper GPU-CPU heterogeneous inference path. It includes memory and bandwidth calculations, throughput estimates across configurations, a cost comparison of four deployment routes, and a pre-deployment checklist—so you can decide whether to buy hardware or rent elastic cloud compute.

    Introduction: What “local deployment” actually means

    As trillion-parameter MoE (Mixture-of-Experts) models open up their weights, more teams are seriously evaluating whether to self-host. The real blockers aren’t “can it run?” but three practical questions:

    • Capacity: Do the ~1.5TB of weights fit?
    • Communication: With hundreds to thousands of experts spread across many cards, can inter-card transfers keep up?
    • Cost: Is building a cluster worth it? And if you only need the model’s capabilities, is there a lighter way?

    The analysis below targets a MoE model with ~2.8 trillion total parameters, 896 routed experts, 16 activated per token, a backbone built from linear attention and attention residuals, and quantization-aware training introduced at the supervised fine-tuning (SFT) stage. Apart from official public information, all speed, memory, and hardware figures here are order-of-magnitude estimates. Once the weights are released, verify each item against benchmarks.

    1. Reading the model first: four traits that decide deployment

    Expert activation ratio ≠ parameter activation ratio

    16 ÷ 896 ≈ 1.79%. This is the share of experts that get selected, and it is often misread as “less than 2% of the parameters are used.” Two reasons that reading is wrong:

    • The dense path every token must pass through cannot be skipped—attention, shared experts (if any), the router, and embeddings.
    • Experts are not all the same size.

    So the true parameter activation ratio is generally higher than the expert activation ratio. It mainly drives compute consumption and, in heterogeneous inference, how many weight bytes must be read per token. Memory or storage footprint, however, is calculated from the total parameters: you must first load all 896 experts into storage, then fetch them one by one at inference time according to the routing decisions.

    The backbone drives long-context cost

    The attention backbone of this class of model is typically built from linear attention operators, attention residual structures, and a gated low-rank latent attention. The last of these works by compressing keys and values into a low-dimensional latent space before computing, which slows the linear growth of the KV cache with context length. The attention portion is dense compute, executed for every token—a compute-bound step that cannot be skipped in local deployment.

    Quantization-aware training from the SFT stage

    The weights use an MXFP4-style 4-bit microscaling float format: every 32 4-bit elements share one 8-bit exponent scale factor, and activations are in an MXFP8-style format. Quantization-aware training lets the model adapt to low-precision representations during training itself, which usually holds accuracy better than post-training quantization (PTQ). It also signals that the official reference implementation is itself built on a “low-precision weights + microscaling” path.

    Three thresholds for MoE deployment

    Capacity threshold. Routing is dynamic—any expert can be selected by any token—so you cannot plan memory around an “average of 2%.” Storage must be addressable, meaning GPU memory (VRAM) or host memory (RAM), not files on disk.

    Communication threshold. Every token goes through a “send—compute—gather” cycle (i.e., two all-to-all-style transfers). This is extremely sensitive to both latency and bandwidth.

    Bandwidth threshold. The decode phase generates tokens one at a time, and for each token the corresponding expert weights must be moved from storage into the compute units. Generation speed is roughly “effective memory bandwidth ÷ bytes read per token” and is almost independent of peak compute.

    2. The capacity ledger: 1.4TB is just the start

    The theoretical floor

    2.8 trillion parameters converted to 4-bit, raw:

    2.8 × 10¹² × 4 ÷ 8 = 1.4 × 10¹² bytes ≈ 1400 GB ≈ 1.30 TiB

    This is an ideal value. In common microscaling float formats, each 32 elements carry one 8-bit scale factor, so the effective bit width becomes 4 + 8 ÷ 32 = 4.25 bits:

    2.8 × 10¹² × 4.25 ÷ 8 ≈ 1487.5 GB ≈ 1.39 TiB

    Still not counted:

    • Higher-precision small tensors, such as normalization layers, the router, and some attention projections;
    • Tensor metadata and VRAM alignment padding;
    • Runtime workspace, including communication buffers, temporary activations, and framework overhead;
    • The KV cache, which grows with concurrency and context length.

    Planning advice: Set the storage floor at 1.5TB and reserve 15%–25% headroom. “Addressable memory” here means the sum of VRAM and host RAM, and in practice running it often takes more.

    1. # Capacity ledger: rough lower bound on resident memory for a trillion-parameter MoE model
    2. TOTAL_PARAMS = 2.8e12 # total parameters
    3. EXPERTS, TOP_K = 896, 16 # number of experts / experts activated per token
    4. UNIT = 2 ** 30 # work in GiB, matching how memory and VRAM capacities are quoted
    5. # Per the OCP microscaling spec: one 8-bit scale factor per 32 4-bit elements
    6. bits_per_element = 4 + 8 / 32 # effective 4.25 bits/element
    7. # If every tensor were stored in this format, this is only an ideal value; small operators like the router usually keep higher precision
    8. weights_gib = TOTAL_PARAMS * bits_per_element / 8 / UNIT # ≈ 1385 GiB
    9. experts_gib = weights_gib * 0.95 # experts ~95%, an illustrative assumption
    10. # 1) Resident weight memory
    11. print(f"Weights lower bound: {weights_gib:.0f} GiB ({weights_gib / 1024:.2f} TiB)")
    12. # 2) Expert activation ratio: this is the share of experts, not the parameter activation ratio
    13. print(f"Expert activation ratio: {TOP_K / EXPERTS:.2%}")
    14. # 3) Expert weight bytes read per token during decode
    15. bytes_per_token = experts_gib * UNIT * TOP_K / EXPERTS
    16. print(f"~{bytes_per_token / UNIT:.1f} GiB of expert weights read per token")
    17. # 4) Theoretical generation speed = effective memory bandwidth / bytes read per token
    18. for eff_bw_gbs in (128, 650): # dual-channel/single-channel DDR5 and dual-socket server memory, illustrative assumptions
    19. print(f"At {eff_bw_gbs:>3d} GB/s effective bandwidth, ceiling ~ "
    20. f"{eff_bw_gbs * 1e9 / bytes_per_token:.1f} token/s")

    A reference point

    A 671B-class model serves as a useful comparison. It likewise uses a sparse MoE backbone, plus a multi-token prediction head to accelerate decoding:

    • FP8 deployment: The 671B main parameters plus the 14B prediction head total about 685GB, which already exceeds an 8-card pool of 80GB accelerators (640GB combined).
    • 4-bit deployment: Weights are about 335GB; adding roughly 37GB of runtime overhead brings the total to about 400GB and up, which fits within an 8-card HBM pool.

    The target model has more than four times its total parameters. Even at 4-bit, the weights alone are more than four times larger, which fixes the hardware threshold for a full deployment.

    3. The communication ledger: why “start at 64 cards”

    After routing, every token of an MoE model must send its hidden state to the device holding the target expert, then gather the result back. When experts are spread across dozens of cards, this degenerates into a very large all-to-all communication: latency adds directly onto every token’s generation path, and when bandwidth is insufficient, communication time eats straight into the compute.

    The official recommendation is a high-speed interconnect node of 64 or more accelerators (often called a “supernode” in the industry). The core idea is to place all 896 experts within a single low-latency, high-bandwidth communication domain:

    • Inside the node, dedicated high-speed inter-GPU interconnects typically form an all-to-all or high-radix switched topology;
    • Per-card isolated bandwidth inside the node can reach hundreds of GB/s to the TB/s range, while inter-node networks are usually an order of magnitude lower;
    • The goal is to keep the vast majority of token routing transfers within the communication domain.
    1. # all-to-all communication lower bound: token data only, excluding handshakes, routing tables, and load-balancing overhead
    2. LAYERS = 61 # illustrative config: approximate the layer count as equal to the number of attention layers
    3. HIDDEN = 7168 # illustrative hidden dimension
    4. FP8 = 1 # activations are 8-bit float
    5. # Decode: per token, per MoE layer, one send and one gather
    6. per_token = 2 * HIDDEN * FP8 * LAYERS
    7. print(f"decode: at least {per_token / 1024**2:.1f} MiB moved per card per token")
    8. # Prefill: scales with batch × sequence length
    9. batch, seq_len = 4096, 4096
    10. prefill = per_token * batch * seq_len
    11. print(f"prefill ({batch} × {seq_len} tokens): at least "
    12. f"{prefill / 1024**3:.0f} GiB moved per card")

    The lower bound on communication volume:

    Decode. About 2 × 7168 B × 61 layers ≈ 0.81 MiB per token. This is manageable within a supernode, but a cross-node network would be crippled by round-trip latency.

    Prefill. At 4096 × 4096 tokens, each card alone must move hundreds of GiB of routing data, which places extreme demands on interconnect bandwidth.

    The long tail. Routing is inherently uneven, so the devices holding hot experts become bottlenecks. Production systems typically combine expert load balancing, communication-compute overlap, and prefetching. On consumer-grade Ethernet, even a small model’s cross-node all-to-all quickly becomes the bottleneck.

    4. The downgrade path: GPU-CPU heterogeneous inference

    If the goal is simply “to run the model in my own hands,” there is a far cheaper route, built on the idea of “separating storage from compute”:

    • GPU: Handles the dense attention and shared portions. These are compute-intensive and mandatory for every token, so they need high compute.
    • CPU + large memory: Stores the sparse experts. They occupy the vast majority of storage, yet only 16 are activated per token.

    This swaps the “TB-scale HBM” threshold for “hundreds of GB of VRAM + TB-scale DDR memory.” A dual-socket server can be configured with 1.5TB or even several TB of memory; a single DDR5 channel runs at roughly 4.8–6.4 GT/s, and a dual-socket 12-channel setup totals hundreds of GB/s.

    Example configuration. A dual-socket server (DDR5-4800, 16 × 96GB modules totaling 1.5TB) plus a single 24GB consumer GPU, running a 4-bit quantized 671B-class model (~377GB). Publicly reported results reach:

    • prefill of 200+ token/s;
    • decode of about 14 token/s.

    The prerequisite is a constrained expert selection strategy, where the subset of experts that cannot fit in VRAM is selectively swapped in and out. It suits interactive Q&A and is not suited to large-batch offline processing.

    Extrapolating to the target model. Per the assumptions above, each token requires reading about 24.8 GiB of expert weights:

    Scenario Effective bandwidth (GB/s) Generation speed ceiling (token/s)
    Dual-channel DDR5 128 ~5.5
    Dual-socket server memory 650 ~27.9
    Single-card HBM 3350 ~143.8

    Counting weight reads only, the first two configurations top out in the low tens of tokens per second at best. Once you add PCIe transfer, constrained expert cache misses, and other factors, real-world figures are more often in the single digits to low teens of tokens per second. That works out to a few minutes to generate 1,000 tokens—the same order of magnitude as the publicly reported ~14 token/s for the smaller model in the 671B-class example above. Add in the fact that expert compute on the CPU side is itself slow, and the interactive experience degrades further.

    Applicability boundaries:

    • Suitable: research validation, offline summarization, long-document analysis, intranet data processing, and other low-throughput scenarios;
    • Not suitable: online serving, high concurrency, real-time interaction.

    In addition, the heterogeneous approach works equally well with routes such as “bf16 weights + activation-aware weight quantization” and “grouped quantization (e.g., one group per 128 elements),” and you can trade off flexibly based on memory capacity.

    5. How much does local deployment actually cost

    Cost cannot be judged by GPU unit price alone. It consists of four parts—procurement, integration, power and space, and labor—and can vary by one to two orders of magnitude depending on the route. The table below builds a budgeting framework; the magnitudes are illustrative estimates, and actual figures follow vendor quotes. (Currency figures are rough USD order-of-magnitude equivalents.)

    Deployment route Typical hardware Expected generation speed (order of magnitude) One-time cost (order of magnitude) Annual recurring cost (order of magnitude)
    High-speed interconnect cluster (full) 64+ high-end accelerators (80–141GB HBM each), high-speed interconnect node Clearly higher than a single node, bounded by interconnect and batching Millions of USD Hundreds of thousands of USD
    Multi-card single node (full) 8×141GB ≈ 1.13TB, or 8×96GB + 1.5TB RAM Single digits to low teens of token/s Hundreds of thousands of USD Tens of thousands of USD
    Heterogeneous inference Dual-socket server (1.5TB DDR5) + 1–2× 24GB GPUs Single digits to low teens of token/s Tens of thousands of USD A few thousand USD
    On-demand cloud Elastic GPU cloud host / high-speed interconnect instance Depends on instance size No fixed upfront cost Grows linearly with usage

    A few points to note:

    1. Bandwidth, not capacity, determines the experience. “Single-node full” and “heterogeneous inference” may produce similar generation speeds, yet their prices can differ by five to ten times. The bottleneck is the expert weights that must be read per token, and a single node—limited by HBM capacity—often can only keep some experts resident while still swapping the rest in and out.
    2. High-speed interconnect pays off at high concurrency. Only when concurrent requests can amortize the per-token weight-reading cost—making throughput the primary constraint—does the cost of a multi-node cluster become worthwhile.
    3. Choose inference cards and training cards separately. In inference, memory capacity and bandwidth matter more than peak compute.
    4. Labor is the biggest hidden cost. Parallelism strategy, communication tuning, quantization accuracy validation, and long-stability testing often require dedicated engineering effort, which in small deployments can exceed hardware depreciation.
    5. Cloud suits elastic validation. On-demand billing means no idle cost; spinning up a multi-card instance on demand with an elastic GPU cloud host—from a provider such as Baidu AI Cloud—is usually more economical than buying equipment first. Storing weight files in object storage also saves you from building a storage array.

    6. Pre-deployment checklist

    1. Capacity: VRAM + RAM ≥ 1.5TB, with headroom reserved per the upper-bound formula, and the KV cache budgeted separately.
    2. Format and operators: Does the inference framework natively support microscaling 4-bit weights, 8-bit activations, and sparse expert kernels? If not, you will need to port or convert the weights yourself, and that cost can exceed the hardware.
    3. Parallelism strategy: Within a high-speed interconnect node, use expert parallelism as the primary approach, combined with tensor and pipeline parallelism, and enable communication-compute overlap.
    4. Single-node route: Split PCIe (x8/x8) directly to two GPUs, populate all memory channels, and enable huge pages and NUMA binding.
    5. Storage: At ~1.5TB of weights and a local NVMe sequential read of 7GB/s, one load takes about 3–4 minutes; network storage will be noticeably slower.
    6. Power and cooling: Estimate 0.5–1kW per card for the whole machine, so about 4–8kW for an 8-card server; a full high-speed interconnect node can reach tens of kilowatts, which ordinary office circuits cannot handle.
    7. Acceptance metrics: Use real business prompts to measure first-token latency, decode speed, long-context behavior, and expert load distribution, and compare each against benchmarks.

    Conclusion

    For trillion-parameter MoE models, local deployment is an account you can actually tally: the storage floor is about 1.5TB, communication must live within a single high-speed domain, and generation speed is determined by effective memory bandwidth. If the goal is “run it, understand it, experiment with it,” a heterogeneous solution ranging from a few thousand to tens of thousands of dollars is enough. If you need to serve external high-concurrency traffic, costs climb into the hundreds of thousands to millions of dollars. Before self-building, first clarify the business’s real requirements for latency, throughput, and data compliance—then decide whether to buy hardware outright or use elastic cloud compute on demand.