Practical Guide to Deploying Ultra-Large-Scale MoE Models Locally

    This article breaks down the practical realities of running an open-weight Mixture-of-Experts (MoE) model with roughly 2.8 trillion total parameters, about 104 billion activated parameters per token, and around 1.56TB of weight files. It explains why "8 GPUs" is only a starting point, then covers model structure, memory and bandwidth bottlenecks, parallelism strategies centered on expert parallelism, quantization and offloading, inference optimization, and a four-step path from evaluation to production.

    1. Introduction: Ultra-Large Sparse Models Enter the Local Deployment Conversation

    A recently released open-weight Mixture-of-Experts (MoE) model with roughly 2.8 trillion total parameters and weight files of about 1.56TB has sparked discussion about local deployment. The claim that “you need 8 GPUs to run it locally” describes only a starting point, not the finish line. Whether the model can run, whether it runs smoothly, and whether the cost per token is acceptable are three entirely different levels of questions.

    One common misunderstanding needs to be cleared up first: 2.8 trillion is the total parameter count, while only about 104 billion parameters actually participate in computation for each token. This structure of “huge total parameters, small activated parameters” is the core feature of MoE models and the fundamental reason their inference cost stays relatively controllable. Understanding this is the basis for every deployment decision that follows.

    2. Model Structure Breakdown: How 2.8 Trillion Parameters Are Composed

    According to the public model description, this class of models typically has the following structural features (using a common ultra-large-scale MoE configuration as an example):

    • Sparse expert layers: about 896 experts, with a routing mechanism selecting 16 experts to participate in computation for each token;
    • Shared experts: about 2 additional shared experts to carry general knowledge, avoiding reliance on the sparse path for all capabilities;
    • Network depth: about 93 Transformer layers;
    • Context length: support for long context at roughly the 100K token level;
    • Native multimodal and agentic capabilities: multimodal and tool-calling objectives are introduced during pre-training rather than stitched on afterward.

    The direct consequence of this configuration is: the weights must be resident in full, but computation only touches a small portion. In other words, memory usage is determined by the 2.8 trillion total parameters, while compute consumption is determined by the 104 billion activated parameters. This decoupling is precisely the most counterintuitive aspect of local deployment.

    3. Memory and Bandwidth: Where the Real Bottleneck Lies

    By the industry-standard estimation method, storing only the weights at 16-bit precision requires about 5.6TB of memory; the 1.56TB weight size indicates the publisher has already adopted a low-bit quantization or mixed-precision storage strategy. Even at 1.56TB, 8 mainstream accelerator cards (each typically with around 80GB of memory) total about 640GB, still off by an order of magnitude.

    Therefore, a more realistic interpretation of “running on 8 GPUs locally” is:

    1. 8 GPUs is the single-node configuration within a multi-node, multi-GPU cluster, and actual deployment requires multiple 8-GPU servers forming a cluster;
    2. Or 8 GPUs are used only for a distilled, quantized, or trimmed version, not the full 2.8 trillion parameters;
    3. Or the 8 GPUs handle only one pipeline stage of inference, with the remaining stages handled by other nodes.

    Beyond capacity, memory bandwidth is equally critical. The bottleneck in MoE inference is often not floating-point compute, but moving the activated expert weights from memory into the compute units for every generated token. The more experts there are and the more dispersed the routing, the stronger the memory-access randomness and the greater the bandwidth pressure.

    4. Parallelism Strategy: Expert Parallelism as the Main Line

    For MoE structures, common parallelism approaches in the industry include:

    • Expert parallelism: distributing the 896 experts across different devices, with each card holding only a subset of experts, best matching MoE characteristics;
    • Tensor parallelism: splitting single-layer matrices across multiple cards, with frequent communication, suited to high-speed interconnects within a node;
    • Pipeline parallelism: splitting by layer, so 93 layers can be cut into several stages, reducing per-card pressure but introducing bubbles;
    • Data parallelism: used for throughput scaling, does not solve the single-replica capacity problem.

    In practice, these are usually combined: tensor parallelism within a node, expert parallelism and pipeline parallelism across nodes. The illustrative configuration logic is as follows:

    1. total replicas = tensor parallel degree × pipeline parallel degree × expert parallel degree
    2. per-card weights ≈ total weights / (tensor parallel degree × pipeline parallel degree × expert parallel degree)

    It is worth emphasizing that expert parallelism introduces all-to-subset routing communication. If network bandwidth is insufficient, communication overhead may consume the compute savings brought by sparse activation.

    5. Quantization and Compression: Key Techniques to Fit the Weights

    When capacity is constrained, quantization is the most direct approach. Common ideas include:

    • Weight quantization: compressing 16-bit weights to 8-bit or 4-bit, with size decreasing roughly linearly;
    • Mixed precision: keeping high precision for sensitive layers and low-bit for the rest;
    • Sparse storage: applying different precision strategies to shared experts and routing layers;
    • Offloading: placing temporarily unused experts in host memory or local storage, swapping them in on demand.

    Offloading solves the “cannot fit” problem but introduces swap-in/swap-out latency, which noticeably affects first-token latency. Whether it is acceptable depends on the latency tolerance of the business.

    6. Inference Optimization: Turning Sparsity into Real Gains

    To make the sparse structure deliver value, several engineering efforts are needed:

    1. Routing load balancing: avoiding a few experts being over-activated and creating single-card hotspots;
    2. Batching and continuous batch generation: improving reuse of expert weights and amortizing memory-access cost;
    3. Prefix caching: reusing computed key-value caches in long-context scenarios;
    4. Operator fusion and custom kernels: reducing memory round-trips of intermediate tensors;
    5. Scheduling and prioritization: separating interactive requests from offline batch processing.

    An illustrative throughput estimate can be written as:

    1. effective per-card throughput ≈ (activated parameters × batch size) / (per-token memory access × average routing hops)

    This formula shows that increasing batch size and reuse improves unit cost more effectively than simply adding compute.

    7. Implementation Recommendations: From Evaluation to Launch

    A four-step approach is recommended:

    • Step 1, define the goal: full precision or acceptable quantization, low-latency interaction or high-throughput offline;
    • Step 2, capacity accounting: first calculate weight, key-value cache, and activation memory, then work backward to the number of devices;
    • Step 3, small-scale validation: use a small number of requests to verify routing balance and whether the parallelism split is correct;
    • Step 4, load testing and tuning: observe peak memory, bandwidth utilization, and first-token latency, iterating on batching and caching strategies.

    If local resources are insufficient, evaluate the elastic scaling capability of general-purpose cloud compute resources, such as container platforms, object storage, log services, and monitoring and alerting, to support weight distribution, runtime isolation, and observability.

    8. Conclusion

    2.8 trillion total parameters, 104 billion activated parameters, and 1.56TB of weights together define a new class of deployment challenge: capacity comes from engineering, cost comes from sparsity, and experience comes from scheduling. 8 GPUs are only the entry ticket; what truly determines success is the systematic coordination of parallelism splitting, quantization strategy, and inference tuning.