Cost Breakdown for Local Deployment of Trillion-Scale MoE Models

    A practical cost and capacity analysis for running trillion-parameter MoE models locally: how much GPU memory you actually need, what hardware tiers make sense, and what budget to expect at cloud GPU rates.

    Let’s start with the conclusion: a Mixture of Experts model with trillions of total parameters—even one that activates only around a hundred billion parameters per token—is not something you can “run locally” on a few consumer GPUs. This is first a GPU memory capacity problem, and only then a matter of compute, throughput, and cost. This article doesn’t chase the trendiest hardware; instead, it uses a reproducible capacity estimation method to explain what three deployment tiers—“it runs,” “usable by one person,” and “multi-user concurrent”—actually mean, and roughly where the budget lands.

    To be clear, the analysis below uses a hypothetical case: 2.8 trillion total parameters, native 4-bit weights, and roughly 104 billion parameters activated per token. All dollar figures are examples for a cost model only, not commitments from any vendor. Actual prices must be quoted per GPU model, memory, interconnect, storage, reservation term, and region.

    1. Start with VRAM: Weights Are Only the First Hurdle

    Memory usage for large model inference includes at least four components: model weights, activations, runtime overhead, and KV cache / state cache. The weight estimation formula is straightforward:

    1. Weight VRAM ≈ parameter count × bits per parameter ÷ 8

    For our hypothetical case:

    1. 2.8T × 4 bits ÷ 8 ≈ 1.4TB

    Note that 1.4TB is a decimal approximation; in binary units it would be slightly smaller. But in engineering terms, you can’t buy “just barely enough” capacity, because you also need headroom for activations, runtime buffers, communication buffers, and the KV cache. A realistic starting point for a single-user deployment is about 1.5TB of GPU memory, with an extra 10%–30% margin to prevent out-of-memory errors caused by long contexts, batching, or fragmentation.

    A quick pseudo-code estimate:

    1. def estimate_vram_tb(params, bits, overhead=0.1):
    2. weights_tb = params * bits / 8 / 1e12
    3. total_tb = weights_tb * (1 + overhead)
    4. return weights_tb, total_tb
    5. weights, total = estimate_vram_tb(2.8e12, 4, 0.1)
    6. print(weights, total) # ~1.4TB of weights, ~1.54TB as the total VRAM starting point

    The key point: native 4-bit weights are the official design precision, not 16-bit weights forcibly compressed to 4 bits. The former reduces dequantization overhead; the latter typically requires restoring precision at runtime, consuming both memory and compute. If the hardware generation cannot natively execute 4-bit weights, the model may technically “fit” but perform poorly.

    2. Three Deployment Tiers: From “It Runs” to “10 Concurrent Users”

    1. It runs, speed doesn’t matter

    Based on capacity alone, you’d need about 19 × 80GB cards or about 11 × 141GB cards. But these are only theoretical “it fits” numbers. Older-generation cards without native 4-bit execution require runtime dequantization, which worsens both peak memory and performance. A more realistic minimum configuration is 8 next-generation, large-memory data center cards with roughly 192GB or more per card, totaling over 1.5TB of VRAM. Only then can you fit weights, runtime, and some cache simultaneously.

    So even “it runs” is a server-grade project, not a workstation project. An 8-GPU node is the realistic starting point, but you must validate high-speed intra-node interconnect, parallelism strategies, and stability under long contexts.

    2. Single user at 25 tokens/second

    For a single user at 25 tokens/second, the hardware starting point is still an 8-GPU large-memory node. The reason isn’t insufficient compute—it’s that 1.4TB of weights must fit first. You can’t shrink the server down to two or three cards just because there’s only one user. Whether an 8-GPU node can sustain 25 tokens/second can’t be guaranteed by capacity math alone; it must be stress-tested at your actual context lengths. Single-stream inference on a model this size typically lands in the “tens of tokens per second” range, so 25 tokens/second is a reasonable target, but long contexts, uneven expert routing, and batch scheduling all affect the outcome.

    3. 10 concurrent users, each at 25 tokens/second

    This means aggregate output of at least 250 tokens/second. The memory configuration doesn’t necessarily need to double right away: with moderate context lengths, a single 8-GPU node may have capacity to host dozens of concurrent requests—10 concurrent users don’t automatically force a second server. The real question is whether each of the 10 streams can sustain 25 tokens/second when generating simultaneously. That’s a throughput and scheduling question, and it must be measured: first-token latency, per-token latency, P99 latency, peak VRAM, and degradation behavior. You can’t extrapolate this from memory capacity alone.

    3. Cost Model: GPU-Hours Are Only the First Layer

    Data center GPUs are typically priced per GPU-hour. Assume a certain class of large-memory card has an on-demand reserved rate of about $4.80 per card per hour, making an 8-GPU node roughly $38.40/hour. Running continuously:

    1. Daily cost ≈ 4.8 × 8 × 24 ≈ $921.6
    2. Monthly cost ≈ 921.6 × 30 ≈ $27,600
    3. Annual cost ≈ 4.8 × 8 × 24 × 365 ≈ $336,000

    At an estimated $5 per card-hour, the annual cost is around $350,000. This excludes storage, networking, public bandwidth, backups, monitoring, and operations staff. If you choose general-purpose GPU instances from a provider like Baidu AI Cloud, you should still request itemized quotes based on GPU model, memory capacity, intra-node interconnect, storage, and reservation term. The numbers here only serve to build a budget formula and aren’t tied to any specific pricing.

    Self-hosting isn’t as simple as “buying GPUs” either. You also need to budget for servers, high-speed interconnect, switching network, parallel file storage, data center power, cooling, spares, depreciation, and operations. Consumer GPUs generally fall short on memory capacity, interconnect bandwidth, and sustained stability for this class of deployment and can’t serve as a serious production option.

    4. Pre-Launch Stress Testing and Selection Checklist

    At minimum, cover the following:

    1. Fixed context lengths: test separately at 4K, 32K, 128K, and longer scenarios.
    2. Concurrency gradients: ramp from 1 to 10 to 40 streams, observing throughput and tail latency.
    3. Metrics: first-token latency, per-token latency, aggregate throughput, P99, peak VRAM, OOM events, and degradation behavior.
    4. Parallelism strategies: validate tensor parallelism, pipeline parallelism, expert parallelism, and sequence parallelism against your node’s interconnect.
    5. Service governance: access-layer rate limiting, queue scheduling, tenant quotas, log auditing, monitoring and alerting, and key management.
    6. Cost review: calculate GPU-hour costs based on actual utilization to avoid “affordable to buy, unaffordable to run.”

    In summary, the core judgment for locally deploying a hyper-scale MoE model is: first confirm whether 1.5TB-class GPU memory can hold it, then check whether an 8-GPU node can meet your target throughput, and finally calibrate the budget with stress tests at real context lengths and concurrency levels. This suits teams with clear data boundaries, sustained high workloads, and dedicated ops capability. For most individual developers, the more sensible path is to start with small-scale validation on cloud GPU instances before committing to server-grade investment.