Trillion-Parameter MoE Model Local Deployment Cost Breakdown

    This article breaks down the real cost drivers of deploying trillion-parameter Mixture-of-Experts (MoE) models locally. It explains why the bottleneck is memory capacity and interconnect bandwidth rather than peak compute, how to calculate the 4-bit capacity floor (including scaling factors and KV cache), and why large communication domains are essential due to all-to-all traffic. Three deployment tiers are analyzed with their budgets, followed by a three-step validation plan to avoid over-investing in the wrong hardware.

    1. The Bottom Line: Cost Differences Across Three Tiers Come from “Capacity,” Not “Compute”

    Before discussing specific configurations, one easily confused premise needs to be cleared up: the bottleneck for local deployment of trillion-parameter Mixture-of-Experts (MoE) models is usually memory capacity and interconnect bandwidth, not peak floating-point compute. The reason is simple: MoE memory usage is calculated based on total parameters, and the activation ratio only affects the number of multiply-accumulate operations executed per forward pass. In other words, even if each token activates only a tiny fraction of the experts, you must first load all expert weights into storage, then move them at runtime according to routing results.

    As a result, the cost curves for the three tiers look roughly like this:

    • Tier 1 (just get it running, speed not a concern): Cost is almost entirely determined by “does it fit,” with a floor of weight storage capacity plus minimum viable runtime overhead.
    • Tier 2 (25 tokens/s for a single user): On top of capacity, this adds memory bandwidth and operator efficiency requirements, requiring a multiplied increase in total memory bandwidth.
    • Tier 3 (10 concurrent users at 25+ tokens/s each, quantization no lower than 4-bit): Capacity, bandwidth, interconnect topology, and scheduling framework all become tight simultaneously, and cost jumps in a step-like fashion.

    2. How to Calculate the Capacity Floor: 4-bit Is Not Simply “Divide by Four”

    Take a typical configuration with 2.8 trillion total parameters, 896 experts, and 16 experts activated per token. The expert activation ratio is about 16/896 ≈ 1.79%, but note that this is the expert selection ratio, which is not the same concept as a strict parameter activation ratio and cannot be directly used for memory conversion.

    The raw data floor for 4-bit quantization is 2.8T × 4 bit ÷ 8 ≈ 1400GB. However, mainstream 4-bit schemes (such as the MX series microscaling formats) attach an 8-bit shared exponent factor to every 32 4-bit elements, which effectively works out to 4.25 bits per parameter:

    1. weight elements + scale = 2.8e12 × 4.25 / 8 ≈ 1487.5 GB

    But this 1487.5GB is still only the “weight body itself.” A real deployment must also add:

    1. Unquantized tensors (normalization layers, routing gates, embedding and output layers usually kept at higher precision);
    2. Tensor metadata, alignment padding, and framework-side descriptors;
    3. Runtime workspace (temporary buffers, communication send/receive areas, operator workspace);
    4. KV cache, which grows linearly with context length and concurrency and is the most easily underestimated part.

    For reference, a model with 671B main parameters plus about 14B auxiliary prediction parameters takes about 685GB under FP8, and about 335GB for 4-bit weights plus about 37GB of activations, totaling about 400GB to be runnable on 8 80GB-class accelerators (640GB). A 2.8-trillion-parameter model is more than four times that size, which determines the capacity floor for a full deployment: a single-node 8-card configuration is not viable capacity-wise, and a multi-node supernode route is required. The official recommendation of 64 or more accelerators forming a single communication domain stems from this fundamental reason.

    3. Why a Large Communication Domain Is Mandatory: All-to-All Is the Hidden Bill

    Large-scale MoE inference is extremely sensitive to all-to-all communication. After 896 experts are sharded across multiple cards, every token goes through a complete chain of “route → move activations to the card hosting the target expert → compute → move back.” If the communication domain is split by ordinary networking, cross-node round-trip latency directly eats into compute gains, showing up as “the cards are all bought, but throughput won’t go up.”

    There are typically three engineering responses:

    • Use high-bandwidth in-domain interconnect (NVLink or equivalent solutions) to bring as many cards as possible into a single communication domain;
    • Combine expert parallelism with data parallelism so that frequently hit experts land in the same communication domain as much as possible;
    • Adopt scheduling strategies with compute-communication overlap and batched route aggregation to merge scattered small packets into effective bandwidth.

    4. Three Tiers of Configuration and Budget Breakdown

    Tier 1: Just Get It Running

    • Capacity strategy: 4-bit weights + as short a context as possible + disable gain features like speculative decoding.
    • Key metric: whether an end-to-end inference can complete, not tokens/s.
    • Cost structure: mainly storage and whole-machine depreciation; speed is not an acceptance criterion.

    Tier 2: 25 tokens/s for a Single User

    25 tokens/s means the end-to-end latency per token must be pushed down to around 40ms, from which network and scheduling overhead must be deducted. At this point, the ceiling is determined by total memory bandwidth and the number of weight bytes that must be read per step, which can be estimated simply as:

    1. minimum latency per step ≈ weight bytes read per token / available memory bandwidth

    Since activated experts account for only about 1.79%, the actual read volume per token is far smaller than the full weights, which is why MoE remains usable in bandwidth-constrained scenarios. But once concurrency rises, the union of expert sets across multiple tokens expands rapidly, and the bandwidth benefit quickly diminishes.

    Tier 3: 10 Concurrent Users at 25+ tokens/s Each, 4-bit Precision or Higher

    This tier must simultaneously satisfy: capacity headroom (KV cache × 10), aggregate bandwidth, low-latency interconnect, and an inference framework that supports continuous batching and paged caching. The cost increment comes mainly from supernode whole machines, high-speed interconnect fabric, and supporting general cloud components such as object storage, logging services, and monitoring/alerting (if a hybrid deployment is used).

    5. Implementation Advice: Validate in Three Steps, Don’t Bet Everything at Once

    1. Before weight release: Use a smaller model with the same architecture and quantization route to validate framework compatibility and quantization accuracy loss, and confirm that 4-bit is acceptable on your business corpus.
    2. First week after weight release: Run only capacity and correctness benchmarks, checking memory peaks, per-token read volume, and routing distribution entropy item by item.
    3. From the second week onward: Run concurrency stress tests, observe the throughput-latency curve inflection points at 1/2/4/8/10 concurrency, and decide based on that whether to add cards or change the sharding strategy.

    Overall, local deployment of trillion-parameter MoE is not an arithmetic problem of “how many cards to buy,” but a joint optimization problem of capacity, bandwidth, and interconnect. Calculate the capacity floor accurately, make the communication domain as large as possible, and get the validation order right, and your budget won’t be spent on the most expensive yet least useful things.