How to Budget for On-Premise Deployment of a Very Large MoE Model

    Deploying a very large Mixture-of-Experts (MoE) model locally is not just about fitting the weights into memory. This article breaks deployment costs into three target tiers — "just runs," "25 tokens/s for a single user," and "10 concurrent users at 25+ tokens/s each" — and provides a cost estimation framework covering weight storage, KV Cache, runtime workspace, compute, and interconnect, with concrete budget ranges and a pre-purchase verification checklist.

    How to Budget for On-Premise Deployment of a Very Large MoE Model

    Key Takeaway: Cost Is Determined by Three Target Tiers, Not Parameter Count Alone

    The most common mistake when estimating the cost of running a very large MoE model locally is to calculate only the weight file size. Weights are just the lower bound — the real budget drivers are target throughput, concurrency, quantization precision, communication topology, and runtime workspace. Requirements fall into three tiers:

    1. It just needs to run, speed doesn’t matter: The goal is to fully load the model and steadily generate tokens, even at single-digit tokens per second. A heterogeneous setup — GPU plus large-capacity memory plus fast local storage — works here, offloading sparse experts to memory while the GPU keeps only the compute-intensive shared attention components.
    2. Single-user output at 25 tokens/s: “Fitting the model” is no longer enough; per-token latency during the decode phase must stay controlled. This requires stronger single-card compute, higher memory bandwidth, and more effective expert caching and prefetching.
    3. 10 concurrent users, each still outputting 25+ tokens/s, with quantization no lower than a specified low-precision format: Total throughput must reach roughly 250 tokens/s. Communication, batch scheduling, KV Cache management, and expert parallelism become the main bottlenecks, typically requiring multiple cards with high-speed interconnects, or even a supernode configuration.

    So the budget question isn’t “how many GPUs?” but rather: where do the weights reside, how are activations moved, where does the KV Cache live, how is concurrency scheduled, and how large is the communication domain?

    The Cost Model: Weights, KV Cache, Workspace, Communication, and Supporting Infrastructure

    A usable estimation framework:

    1. Total cost ≈ weight storage cost
    2. + runtime workspace and KV Cache cost
    3. + compute and interconnect cost
    4. + memory / local storage / power / cooling / facility cost
    5. + software adaptation and benchmarking cost

    Weight estimation can be written as:

    1. Weight lower bound ≈ total parameters × effective bits per weight ÷ 8

    Note that for MoE models, memory footprint must be calculated based on total parameters, not the per-token activated fraction. Consider a model with 2.8 trillion total parameters, 896 experts, 16 experts activated per token, and an expert activation ratio of about 1.79%. That 1.79% is only the expert activation ratio — not a strict parameter activation ratio. At inference time, all 896 experts must still be resident in addressable storage; routing then selects 16 of them per token for computation.

    With 4-bit weights, the raw data lower bound is:

    1. 2.8T × 4 bits ÷ 8 ≈ 1400GB

    But low-precision floating-point formats typically carry scales. Using the common scheme of “one 8-bit scale per 32 4-bit elements”:

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

    This still excludes non-4-bit tensors, metadata, alignment padding, runtime workspace, KV Cache, and communication buffers. In practice, plan for 1.6TB to 2TB or more for weights and runtime footprint, not a round 1400GB.

    For scale reference: a roughly 670-billion-parameter MoE reference model needs about 685GB in FP8 for its main parameters plus multi-token prediction parameters; after 4-bit quantization, about 335GB of weights plus 37GB of activations — roughly 400GB in total — fits within 8 accelerator cards of 80GB each, i.e., 640GB of total memory. The target model is over 4× that size, which sets the deployment lower bound.

    Three Deployment Tiers and Budget Ranges

    The table below is an order-of-magnitude estimate, excluding facility, power, operations, software adaptation, and spares; actual prices fluctuate with the market.

    Tier Target Typical Hardware Budget Range Main Risks
    Tier 1 Just runs, speed irrelevant 1–2 high-memory GPUs, large-capacity memory, fast local storage ~¥200K–500K (roughly $30K–70K) Low memory bandwidth; decode may be only single-digit tokens/s
    Tier 2 Single user at 25 tokens/s 8–16 accelerator cards with large memory and fast interconnect ~¥1M–3M (roughly $140K–420K) Expert routing and all-to-all communication eat into compute
    Tier 3 10 concurrent users, each 25+ tokens/s 32–64 accelerator cards in a supernode or equivalent high-speed interconnect domain ~¥8M–20M+ (roughly $1.1M–2.8M+) Communication domain, batch scheduling, KV Cache, and stability

    Tier 1: Just Make It Run — Heterogeneous Offloading Is the Main Strategy

    The most direct approach is GPU–CPU heterogeneous inference: each MoE layer has a shared attention backbone that is compute-intensive and stays on the GPU to exploit high bandwidth; the 896 sparse experts dominate storage but only 16 are activated at a time, so they can all be offloaded to CPU memory on a large-memory server.

    At this tier, the key factors are not GPU count but:

    • Memory capacity large enough to hold ~1.5TB of weights plus metadata;
    • Multi-channel memory bandwidth, as high as possible;
    • Local storage capable of swapping cold experts in and out;
    • An inference engine that supports expert caching, prefetching, and on-demand loading.

    The advantage is a relatively low budget; the drawback is obvious: CPU memory bandwidth and disk bandwidth become bottlenecks, and long-context and concurrency capability are weak. This tier suits validation, offline generation, and low-frequency tasks — not interactive services.

    Tier 2: Single User at 25 tokens/s — Per-Token Latency Becomes the Battle

    25 tokens/s per user means a per-token end-to-end latency budget of about 40ms. Simply parking experts in memory is no longer enough; hot experts must stay in GPU VRAM or a high-speed cache, while cold experts spill to memory or disk. Key concerns:

    • Expert cache hit rate;
    • Locality of routing results;
    • Transfer overhead between GPU VRAM and CPU memory;
    • KV Cache paging and reuse;
    • Kernel efficiency at batch size 1.

    This tier typically requires 8–16 accelerator cards, with sensible partitioning of shared attention, routing, and expert computation. If the communication domain is too small, all-to-all latency will directly consume compute, producing the familiar situation of “plenty of cards but throughput won’t go up.”

    Tier 3: 10 Concurrent Users at 25 tokens/s — Communication Becomes the #1 Bottleneck

    10 concurrent users at 25 tokens/s each means roughly 250 tokens/s of total throughput. Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth: 896 experts are spread across multiple cards, and after routing, each token’s activations must be moved to the cards hosting its target experts, then moved back after computation. Communication latency directly eats into compute.

    Tier 3 therefore usually requires 32–64+ accelerators in a supernode, using high-speed interconnects to enlarge the communication domain so expert transfers stay within a single domain. Costs go beyond accelerator cards to include high-speed switches, topology design, power and cooling, and fault recovery. Quantization precision can’t be lowered arbitrarily either: if precision must stay at or above a specified low-precision format, you can’t cut costs with aggressive 2-bit/3-bit compression — scale overhead and accuracy validation must be preserved.

    Quantization and Precision: You’re Saving Storage, Not Getting a Free Lunch

    If the target model uses quantization-aware training from the SFT stage onward — say, 4-bit weights with 8-bit activations — deployment requires distinguishing three things:

    1. Weight storage: calculated from total parameters and effective bits, with scales not negligible;
    2. Activations and workspace: routing, normalization, and attention intermediates still occupy memory;
    3. Accuracy acceptance: post-quantization benchmarking on a task suite is mandatory — perplexity alone is not enough.

    A rough estimation script:

    1. P = 2.8e12
    2. weight_bits = 4.25 # 4-bit weights + scale amortization
    3. weight_gb = P * weight_bits / 8 / 1e9
    4. kv_gb = 2 * layers * hidden * seq_len * batch * bytes_per_elem / 1e9
    5. runtime_gb = weight_gb * 0.10
    6. total_gb = weight_gb + kv_gb + runtime_gb
    7. print(weight_gb, kv_gb, total_gb)

    The runtime_gb value here is illustrative only; in practice you must benchmark each component against your inference engine, parallelism strategy, and context length.

    A Pre-Purchase Verification Checklist

    1. Are the weights fully released? Architecture, technical report, weight format, and quantization format should be consistent.
    2. VRAM/memory lower bound: calculate from total parameters, not the activation ratio; reserve at least 20–30% headroom.
    3. Per-token latency: test prefill and decode with realistic input lengths, not just short prompts.
    4. Concurrency scaling curve: stress-test at 1, 2, 4, 8, and 10 concurrent users, watching whether all-to-all becomes the bottleneck.
    5. Expert cache hit rate: do hot experts stay resident, and do cold-expert swaps cause tail latency?
    6. KV Cache management: with long contexts, is it paged, reusable, and does it crowd out weight storage?
    7. Quantization accuracy acceptance: compare against the original precision on your business task suite and confirm it stays above an acceptable threshold.
    8. Total cost of ownership: factor in power, cooling, facilities, operations, spares, and software adaptation.

    Conclusion

    The cost of on-premise deployment for a very large MoE model can be summarized as: Tier 1 buys memory and storage to get the model running; Tier 2 buys VRAM and bandwidth to push single-user latency to 25 tokens/s; Tier 3 buys high-speed interconnects and supernodes to sustain 10-user concurrent throughput. The ~1.5TB of weights is only the starting point — plan for 1.6TB–2TB or more in practice; MoE memory must be sized by total parameters, with the activation ratio only affecting compute consumption; and the size of the communication domain often decides Tier 3 success more than adding a few more cards. Define your target tier first, then verify each item with benchmarks — that’s how you spend the budget on the real bottlenecks.