Deploying a Trillion-Parameter MoE Model on Two Domestic AI Accelerator Servers

    This article documents an end-to-end deployment of a trillion-parameter MoE model on two domestic AI accelerator servers. It covers resource discovery, parameter network planning, large weight distribution, the TP16 × PP2 parallel strategy, instance launch, health validation, and stress testing. The deployment uses 32 compute dies across two nodes, W4A8-quantized weights of about 1.47 TB, and a world size of 32. Results from 836 stress-test requests show stable operation across random, 80K long-context, and 200K ultra-long-context workloads, with no timeouts, OOM errors, or protocol failures. The article summarizes reusable engineering practices for memory budgeting, communication domain partitioning, weight distribution, and layered validation.

    Deploying a Trillion-Parameter MoE Model on Two Domestic AI Accelerator Servers

    1. Background and Objectives

    As open-source large models move into the trillion-parameter range, single-server deployment can no longer meet inference requirements. Consider a recently released native multimodal MoE model: its total parameter count is about 2.8 trillion, with roughly 100 billion activated parameters per forward pass and a context window on the order of one million tokens. Even with W4A8 quantization, the weight volume remains close to 1.5 TB, placing extremely high demands on memory capacity, inter-card interconnect bandwidth, and the distributed capabilities of the inference framework.

    This article records a complete deployment and validation practice on two domestic AI accelerator servers. Each server provides 16 compute dies, and each die has 64 GiB of memory, for a total of 32 dies across the two servers. We used a combined strategy of intra-node tensor parallelism TP16 plus cross-node pipeline parallelism PP2 to launch one inference instance with a world size of 32. Multiple stress tests with random workloads and long-context agent workloads verified its stability. The following sections cover environment preparation, parallel strategy, weight distribution, deployment and launch, and stress-test validation.

    2. Test Environment Overview

    Item Configuration
    Compute nodes 2 domestic AI accelerator servers, 16 dies per server (64 GiB per die), 32 dies in total
    Inter-node interconnect Accelerator-specific high-speed interconnect bus for cross-node communication
    Parallel strategy Intra-node TP16, cross-node PP2, world size 32
    Model weights Community-released W4A8 quantized version, 346 weight shards, about 1.47 TB
    Inference runtime Official image of a mainstream open-source inference engine adapted for the domestic accelerator
    Deployment method Templated deployment through the compute scheduling platform; stress traffic reaches the instance through the platform gateway

    One important point is the platform’s access model: both the control plane and the node agent are static single binaries. The node-side agent actively connects outbound to the control plane, and control commands, monitoring data, logs, and inference traffic share the same tunnel. This means the onboarding process for domestic accelerator nodes is identical to that for GPU nodes. An administrator generates an installation command in the console and executes it on the target machine. The node then automatically comes online with information about accelerators, NICs, and storage topology, without maintaining two separate operations and maintenance systems for different hardware.

    3. Three Preparation Steps Before Deployment

    3.1 Node Onboarding and Resource Discovery

    Generate an installation command on the “Compute Nodes” page of the compute scheduling platform and execute it on both servers. The platform automatically identifies the 16 accelerator dies on each machine, along with their memory specifications, and reports topology information such as NICs and disks. The key benefit of this step is automatic discovery of resource topology: the subsequent arrangement of the parallel strategy—which dies form a TP group and where the cross-node boundary is drawn—depends on this topology data.

    3.2 Parameter Network Planning

    Multi-node inference is highly sensitive to cross-node communication quality. For this type of domestic accelerator, multi-node scenarios should use the accelerator-specific interconnect network rather than a regular Ethernet network. In practice, the interconnect ports of the two nodes should be placed into the same logical “parameter network” group in the platform’s network management module. The platform then performs inter-card connectivity checks, including link reachability and basic bandwidth probing, and automatically selects nodes according to that network topology during scheduling. This step translates physical cabling into scheduling constraints, preventing the instance from being placed on a node combination with an inadequate communication path.

    3.3 Obtaining and Distributing Large Weights

    The 1.47 TB weight set is the most time-consuming part of the entire process. Downloading directly from a public model repository was measured at about 50–57 MB/s, and a complete pull takes several hours. Two reusable optimization methods are available:

    1. Download from the public network only once: Download the weights to the first node, then use the platform’s direct node-to-node transfer capability (“Copy to”) to copy them from the first node to the second. The measured direct transfer rate was about 490 MB/s, nearly an order of magnitude faster than the public network.
    2. Pin versions: Both weights and inference images should be locked to specific revisions/digests rather than floating tags. A trillion-parameter model can have hundreds of weight shards, and any version mismatch in any shard may cause loading failure or numerical anomalies. Pinning versions is a prerequisite for ensuring consistency across the two nodes.
    1. # Illustrative: core idea of direct node-to-node transfer, equivalent to a point-to-point high-speed copy
    2. # Weight directory on the source node -> same path on the target node over the high-bandwidth node-to-node link
    3. gpuctl model copy --from node-a --to node-b \
    4. --model-path /data/models/large-moe-w4a8

    4. Rationale for the Parallel Strategy

    Why use TP16 × PP2 instead of pure tensor parallelism with TP32? This is one of the most important questions to think through in multi-node inference deployment.

    • Tensor parallelism (TP) generates a large amount of communication. Every layer requires AllReduce, which places strict demands on interconnect bandwidth. Intra-node inter-card bandwidth is much higher than cross-node links, so TP groups should be kept within a single server as much as possible. In this case, TP16 exactly matches the number of dies in one server, making it the natural choice to confine TP communication entirely within the node.
    • Pipeline parallelism (PP) generates less communication. It only passes activations at pipeline stage boundaries, making it suitable for slower cross-node links. PP2 splits the model layers into two segments, one on each server, minimizing cross-node traffic.
    • The memory budget must balance. When 1.47 TB of weights is spread across 32 dies, each die holds about 46 GB of weights. Adding KV cache and activations, 64 GiB of memory is sufficient but not generous. W4A8 quantization is not optional here but mandatory—with FP8 or BF16 weights, 32 dies would not be able to hold the model.

    This leads to a general principle: first determine the TP upper bound based on the number of cards per server, then use PP to cross node boundaries, and layer EP (expert parallelism) on top of TP depending on framework support. For MoE models, the combination of expert distribution and tensor splitting significantly affects AllToAll communication overhead. Before deployment, confirm that the inference engine version in use has officially validated EP support for the target model.

    5. Instance Launch and Health Validation

    In the templated deployment workflow, after selecting the corresponding model profile and specifying the parameter network and the two nodes, the platform completes orchestration according to topology constraints, and the 32 dies launch a single inference instance as TP16 × PP2. Once the instance is ready, three types of capabilities need to be validated one by one:

    1. Basic conversation: Confirm that generation quality and streaming output are normal, and rule out missing or incorrect weight loading.
    2. Reasoning process output: For models with chain-of-thought output, verify that the reasoning segment is parsed and passed through correctly.
    3. Function calling: A core capability for agent scenarios; verify protocol compatibility for structured output.

    Only after all checks pass should stress testing begin.

    6. Stress Test Design and Results

    Stress tests were initiated from the platform side and reached the instance through the gateway, covering three typical workloads:

    • Random workload: 2048 input tokens and 512 output tokens, simulating general conversation and summarization traffic.
    • Long-context agent workload (80K level): Simulating single-turn analysis of very long documents and multi-tool orchestration.
    • Ultra-long-context agent workload (200K level): Approaching the KV cache capacity boundary to examine throughput degradation and memory usage under long sequences.

    A total of 836 requests across the three stress tests all succeeded, with no timeouts, no OOM, and no protocol errors. These results indicate two things: first, the TP16 × PP2 topology keeps communication overhead controllable under real workloads; second, the memory freed by W4A8 quantization is sufficient to support KV cache requirements at the 200K-token level.

    7. Lessons Learned

    1. Memory first: Deployment planning for a trillion-parameter MoE model must work backward from the memory budget to determine parallelism, and the quantization level determines the hardware threshold.
    2. Partition communication domains: Keep TP within nodes and use PP across nodes. This is a basic pattern aligned with the hardware interconnect topology.
    3. Engineer the weights: Download from the public network only once, use direct node-to-node transfer, and pin all versions. These three practices can speed up the slowest step by nearly tenfold and eliminate consistency risks.
    4. Validate in layers: Basic conversation → reasoning output → function calling → stress testing, progressing layer by layer. If any layer fails, do not proceed to the next.

    Domestic compute for frontier open-source models is no longer a question of whether it can be done, but whether the engineering details are handled properly. We hope the path described in this article provides a reusable reference for similar deployments.