Local Deployment of a Trillion-Parameter MoE LLM: Options and Cost Analysis

    This article examines what it takes to deploy a trillion-parameter Mixture-of-Experts (MoE) model locally. It defines three practical deployment tiers, explains why VRAM requirements must be estimated from total parameters rather than activated parameters, and compares hardware architectures and budget ranges for offline inference, single-user interactive use at about 25 tokens/s, and 10-concurrent production workloads. It also covers the official supernode recommendation, CPU/GPU heterogeneous offloading, quantization limits, KV cache overhead, and the trade-off between private deployment and cloud API services.

    Local Deployment of a Trillion-Parameter MoE LLM: Options and Cost Analysis

    1. Three Deployment Tiers Before Looking at Cost

    Before discussing how much it costs to deploy a trillion-parameter-class MoE model locally, the deployment goal must be defined first. Different goals can lead to hardware designs and budgets that differ by an order of magnitude. In practice, requirements usually fall into three tiers:

    1. It just needs to run: Output speed is not a concern. The model only needs to load, perform inference, and emit tokens, even if throughput is only single-digit tokens per second.
    2. Smooth single-user use: A single user receives about 25 tokens/s, close to normal reading speed, with an acceptable interactive experience.
    3. Production concurrency: The system supports 10 concurrent streams, each at no less than 25 tokens/s, while maintaining a reasonably high quantization level—for example, not lower than a mainstream 8-bit or higher-precision format—to preserve service quality.

    These three tiers involve fundamentally different engineering problems and budget levels. Each is examined below.

    2. Understanding Model Scale: VRAM Estimation Comes First

    2.1 VRAM Logic for MoE Architectures

    Consider a model with 2.8 trillion total parameters using an MoE architecture. It contains about 900 experts, and each token activates only about 16 of them, giving an expert activation ratio of roughly 1.8%. A common misconception should be clarified here: the expert activation ratio is not the parameter activation ratio, and it is certainly not the VRAM occupancy ratio.

    VRAM usage for MoE deployment must be calculated based on total parameter count. The reason is straightforward: routing is dynamic during inference, and any expert may be selected by a token. Therefore, all expert weights must remain resident in addressable storage. The activation ratio affects only compute consumption—each forward pass runs only 16 experts—not storage requirements.

    2.2 Estimating Quantized Weight Size

    Assume the model underwent quantization-aware training (QAT) in late training and uses a microscaling floating-point format: 4-bit weights and 8-bit activations. Under the OCP microscaling format definition, every 32 4-bit elements are accompanied by one 8-bit scale, resulting in an actual storage overhead of about 4.25 bits per element.

    A rough estimation formula is:

    1. Weight size ≈ total parameters × 4.25 bit ÷ 8
    2. ≈ 2.8T × 4.25 / 8
    3. ≈ 1487.5 GB

    This is only the lower bound for bare weights. A real deployment also requires:

    • Non-4-bit tensors: embedding layers, output heads, some normalization layers, and high-precision accumulation buffers;
    • Metadata and alignment overhead: routing tables, expert indices, and memory alignment padding;
    • Runtime workspace: activation buffers and all-to-all communication buffers;
    • KV Cache: proportional to context length and concurrency, often occupying hundreds of GB in production scenarios.

    Overall, the lower bound for weights plus runtime overhead in a full deployment of this class of model is roughly 1.5 TB or more. This is a hard constraint for every hardware design.

    2.3 A Reference Point: Deployment Footprint of a Mid-Sized Model

    For comparison, a 671B-total-parameter MoE model requires about 685 GB for weights plus a multi-token prediction module in FP8 format. With 4-bit weight quantization, it still needs about 400 GB to barely run on eight 80 GB accelerator cards with 640 GB of total VRAM. A 2.8T model is more than four times larger, and this size difference means the two are not in the same deployment difficulty class at all.

    3. Official Recommendation: Supernode Clusters

    The officially recommended deployment approach is a supernode composed of 64 or more accelerators. Why is such a large interconnect scale necessary?

    Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. With 900 experts distributed across dozens or hundreds of cards, each token is routed so that its activations are moved to the card hosting the target expert for computation and then moved back for aggregation. This happens at every layer and for every micro-batch, and communication latency directly consumes compute utilization.

    The core value of a supernode is to use NVLink-class high-speed interconnect to expand the communication domain, so that expert-to-expert transfers do not leave a single high-bandwidth domain. This type of solution offers the best performance but also the highest cost: 64 high-end accelerator cards plus a full rack node and networking typically carry a budget in the tens of millions of RMB. It is mainly considered by cloud providers, leading enterprises, and research institutions. For most readers, this tier serves only as a ceiling reference.

    4. Tier 1: It Just Needs to Run—CPU/GPU Heterogeneous Offloading

    If the goal is simply to make the model emit tokens, the most practical approach is heterogeneous GPU/CPU inference, represented by sparse expert offloading techniques.

    4.1 Core Principle

    MoE models have a natural structural characteristic that can be exploited:

    • The shared attention part of each layer—in this example, a linear attention variant plus gated multi-head latent attention—is compute-intensive and accounts for a small share of parameters. It can remain on the GPU for high-throughput processing.
    • The massive sparse experts account for most of the weight storage but activate only a very small fraction at a time. They can all be offloaded to CPU memory, trading the capacity of a large-memory server for speed.

    During inference, after the GPU computes attention, it passes token representations to the CPU side. The CPU calculates only the dozen or so activated experts according to routing results, then sends the results back to the GPU. Because activated experts account for less than 2%, the actual parameter count involved in computation is not large. The bottleneck shifts from compute to memory bandwidth and expert loading efficiency.

    4.2 Hardware Configuration and Budget

    A typical configuration at this tier includes:

    • A dual-socket server with memory channels fully populated to reach 1.5 TB–2 TB DDR5 memory. The roughly 1500 GB of weights must fit entirely, with headroom for workspace and KV Cache.
    • One or two 24 GB-class consumer or professional GPUs to run attention and scheduling.
    • High-speed PCIe links to reduce CPU-GPU round-trip latency.

    The budget is roughly RMB 200,000–400,000. Expected experience: single-digit tokens per second, and answering a long question may take several minutes. This is suitable for offline batch processing and research validation, not for interactive use.

    4.3 Key Optimizations

    • Expert prewarming and caching: exploit routing locality to cache frequently used experts in GPU VRAM.
    • Batch scheduling: combine expert activations from multiple requests to reduce transfer count.
    • NUMA affinity: keep memory access on the local node as much as possible to avoid cross-socket bandwidth penalties.

    5. Tier 2: Smooth Single-User Use—The 25 tokens/s Threshold

    To achieve a single-user experience of 25 tokens/s, a pure CPU offloading approach is basically hopeless. The bottleneck is memory bandwidth: 1.8% of 2.8T activated parameters must be read from memory at every step, and the aggregate bandwidth of dozens of DDR5 channels cannot sustain this read volume.

    There are two feasible paths:

    Path A: Multi-GPU PCIe cluster plus highly quantized weights. Use 8–16 80 GB-class accelerator cards with 640 GB–1280 GB total VRAM, connected through NVLink bridges, together with an extremely compressed weight format. Even at 4-bit, however, 1500 GB of weights cannot fit into 16 cards, so partial CPU offloading is still required. Whether actual speed can meet the target remains uncertain and must be tested after weights are released.

    Path B: Wait for lower-bit quantized versions. If the community or the official team later releases 2-bit or even 1.58-bit quantized weights, the size could be compressed to 700 GB–900 GB. An NVLink domain of eight flagship cards could then have a chance to hold the full model, and reaching 25 tokens/s through aggregated per-card throughput is a realistic target.

    The budget for this tier is roughly RMB 800,000–2,000,000, depending on card type and count. It represents the upper limit reachable by serious enthusiasts and small research teams.

    6. Tier 3: 10-Concurrent Production—Back to Supernodes

    Ten concurrent streams at no less than 25 tokens/s each means the system must deliver aggregate throughput of more than 250 tokens/s. At the same time, KV Cache must be reserved for 10 concurrent sessions—potentially hundreds of additional GB for long contexts—and all-to-all communication must not become a bottleneck.

    This requirement effectively pushes the solution back to the supernode route: an NVLink domain of at least 64 accelerator cards, plus supporting CPU nodes, storage, networking, and data center conditions. The budget returns to the tens of millions of RMB level.

    For enterprise users, a more rational choice at this point is often to weigh the compliance benefits of private deployment against the cost of cloud API calls. If compliance requirements allow it, using model services from mainstream cloud platforms with token-based billing usually has a much lower total cost over three to five years than building a cluster. Only scenarios with highly sensitive data and long-term stable concurrency have a clear on-paper advantage for self-built infrastructure.

    7. Summary and Recommendations

    Requirement tier Core approach Budget range Suitable scenarios
    It just needs to run CPU/GPU heterogeneous offloading, 2 TB large-memory server RMB 200,000–400,000 Offline validation, research
    Smooth single-user use Multi-GPU NVLink cluster + extreme quantization RMB 800,000–2,000,000 Heavy personal use, small teams
    10-concurrent production 64-card-class supernode Tens of millions of RMB Enterprise private production

    Three final reminders: First, the VRAM and speed figures in this article are estimates based on publicly available architecture information. After the full model weights and technical report are officially released, each item must be verified with benchmarks. Second, the first principles of MoE deployment are: “storage is calculated from total parameters, compute from activated parameters, and communication from expert distribution.” With these three principles, it is possible to make a quick budget judgment whenever a new model is released. Third, unless there are strong compliance constraints, most teams should evaluate cloud API services before building their own infrastructure, spending money on the business rather than on racks.