Deploying a Trillion-Parameter MoE Model on a Dual-Node Domestic NPU Cluster
This article details the engineering practice of deploying a 2.8T parameter multimodal Mixture-of-Experts (MoE) model on a dual-node domestic NPU cluster. It covers the parallelism strategy (TP16 × PP2), platform node integration, weight distribution optimization, and tiered stress testing, providing a reusable engineering path for stably and verifiably deploying ultra-large models on multi-node NPU hardware.
Background and Objectives
In the process of deploying large model inference, a recurring engineering challenge is that when the model size reaches the trillion-parameter level, single-node computing power and memory are insufficient, necessitating cross-node distributed inference. This article documents a real-world deployment practice: on a computing scheduling and inference platform, using two domestic NPU servers (each containing 16 acceleration units with 64 GiB memory per unit, totaling 32 compute units) to launch an inference instance of a massive MoE model. This was achieved using a combination of tensor parallelism and pipeline parallelism, followed by stress testing to verify stability and functional integrity.
The target model is a native multimodal MoE model with approximately 2.8T total parameters and 104B activated parameters per step, featuring a context window of up to 1M tokens. To adapt to the domestic NPU ecosystem, W4A8 quantized weights (4-bit weights, 8-bit activations) released by the community were used, resulting in a total size of about 1.47 TB, paired with a dedicated image officially released by the inference engine for this model. It is important to emphasize that this article focuses not on a specific product, but on outlining a reusable engineering path: how to stably and verifiably deploy ultra-large models on domestic multi-node computing power.
Environment Planning and Parallelism Strategy
The first step before deployment is to define the hardware topology and parallelism partitioning method. The two nodes each provide 16 acceleration units, and the total model size is about 1.47 TB. Since a single node’s memory capacity is insufficient to hold the full weights, cross-node parallelism is mandatory. The final strategy adopted was: TP16 (tensor parallelism degree of 16) within the node, and PP2 (pipeline parallelism degree of 2) between nodes, resulting in a global world size of 32.
The engineering logic behind this combination is clear. Tensor parallelism partitions intra-layer computation, resulting in heavy communication that is sensitive to interconnect bandwidth, making it suitable for intra-node placement. The high-speed interconnects within a node (on-chip mesh or full interconnect bus) have much higher bandwidth than cross-machine links, which can absorb the all-reduce communication overhead brought by TP. Pipeline parallelism partitions by layer and only passes activations at stage boundaries, resulting in minimal communication, naturally fitting cross-node links. For a MoE model with around 104B activated parameters, TP16 also ensures that enough experts reside on each compute unit, reducing load imbalance issues caused by expert routing. This principle of “intra-node TP, inter-node PP” is applicable in the vast majority of multi-node inference scenarios and serves as a general selection reference.
Other elements of the test environment include: cross-node communication goes through the accelerator’s dedicated parameter network; the model weights consist of 346 shard files totaling about 1.47 TB, locked by specific version numbers during deployment to ensure reproducibility; the inference image is fixed to a specific digest value rather than a floating tag to avoid behavioral differences introduced by image updates; stress test traffic is initiated from the platform server, reaching the instance through a unified gateway to simulate real-world business access paths.
Node Integration and Platform Management
The node integration process of the computing platform adopts an architecture where a “single-binary agent actively connects out to the server.” Both the server and the agent are statically compiled single-file programs. After executing an installation command on the node, the agent actively establishes a connection to the server. Control commands, monitoring data, logs, and inference traffic multiplex over the same tunnel. The value of this design is twofold: first, no inbound ports need to be opened on the node side, which is friendly for data center machines behind NAT or firewalls; second, the integration method for domestic NPU nodes and GPU nodes is identical. The platform automatically identifies the 16 acceleration units, network cards, and storage information on each node, meaning the operational mental cost does not increase when switching hardware types.
The second prerequisite for multi-node inference is parameter network configuration. Domestic NPU multi-node communication typically relies on dedicated accelerator interconnects rather than general Ethernet. In practice, within the platform’s network management interface, the accelerator interconnect ports of the two nodes need to be assigned to the same parameter network. The platform then performs inter-card connectivity checks. Only after confirming that the cross-machine link is available will the deployment scheduler select a node combination that meets the topology requirements. This pre-check mechanism is worth learning from: it blocks low-frequency but fatal faults like “link down” before deployment, rather than exposing them halfway through model loading.
Weight Distribution: From Public Network to Node-to-Node Direct Transfer
How to quickly and reliably distribute 1.47 TB of weights to two nodes is an often-underestimated phase in such deployments. The approach in practice was divided into two steps: the first node downloads the weights directly from the model hosting platform to local storage; the second node does not repeat the public network download, but instead uses the platform’s “copy to” feature to directly transfer from the first node via the high-speed inter-node link. Measured data showed that public network download speed was about 50–57 MB/s, while direct inter-node transfer was about 490 MB/s, improving efficiency by nearly 10 times and compressing the distribution time of TB-level weights from hours to minutes.
Two details are worth noting. First, upon weight arrival, the platform verifies each file one by one, which is especially necessary at the scale of 346 shards and 1.47 TB. Any silent corruption of a single shard would manifest as a hard-to-locate error during the model loading phase; pre-verification exposes the issue at the data layer. Second, weights are locked by version number (revision) and the image is locked by digest value. Together, they ensure that “deploying successfully today” and “redeploying three months later” yield the exact same artifacts, which is a fundamental requirement for production environment reproducibility.
Deployment Execution and Functional Verification
Once prerequisites are met, the actual deployment action is very lightweight: select the preset template for the corresponding model and hardware tier in the platform’s inference template, click deploy, and the scheduler launches the instance on the two nodes with the TP16×PP2 topology, utilizing 32 compute units in total. The significance of templating is that it solidifies error-prone items like parallelism strategies, environment variables, and startup parameters into verified tiers, allowing users to avoid manually assembling startup commands.
Once the instance is ready, functional smoke testing is conducted first: standard multi-turn dialogue works normally; the model’s chain-of-thought reasoning process outputs completely; and the tool calling (function calling) pipeline works normally. For a multimodal MoE model, these three items cover the three main usage paths of daily services, complex reasoning, and Agent scenarios, all of which are indispensable.
Stress Test Design and Result Interpretation
After functional verification, the stress testing phase begins. Three sets of workloads were designed, totaling 836 requests, all successful:
- Random Load Group: 2048 input tokens, 512 output tokens, simulating routine high-concurrency Q&A to examine latency and success rate under stable throughput.
- Medium-Long Context Agent Group: Approximately 80K context tokens, examining scheduling stability after a significant increase in KV Cache usage.
- Ultra-Long Context Agent Group: Approximately 200K context tokens, approaching production-grade long-context pressure to test the robustness of memory management and pipeline scheduling under extreme loads.
The design logic of the three load groups is to progressively apply pressure from “routine concurrency” to “long context”: the former tests throughput and the scheduler’s queuing ability, while the latter tests memory watermarks and the stability of long-sequence inference. The combination of both truly reflects the instance’s availability boundaries in a production environment. The zero-failure result across 836 requests indicates that the dual-node, 32-unit topology reached a serviceable state across the three dimensions of functionality, concurrency, and long context.
Experience Summary and General Recommendations
Looking back at the entire process, several universally applicable experiences for similar scenarios can be distilled: First, the parallelism strategy should follow the principle of “intra-node tensor parallelism, inter-node pipeline parallelism” to match communication patterns with interconnect bandwidth. Second, weight distribution should prioritize inter-node direct transfer over repeated public network downloads, with strict per-file verification. Third, lock weights by version and images by digest to ensure reproducibility. Fourth, stress testing must cover both routine concurrency and long-context workloads; a single stress test curve cannot reflect true availability. For teams looking to land ultra-large parameter models on domestic computing power, this path—node management, parameter networking, weight distribution, templated deployment, and layered stress testing—provides a complete, directly referable closed loop.
