Serving a Trillion-Parameter MoE Model on a Two-Node Domestic NPU Cluster: A Practical Walkthrough
This article walks through a real-world deployment of a large multimodal Mixture of Experts (MoE) model—2.8T total parameters, ~104B active parameters, and 1M-token context support—on a two-node cluster of domestic NPUs (32 compute dies total, 64 GiB per die). It covers node onboarding, parameter network configuration, 1.47 TB of W4A8-quantized weight distribution, TP16 × PP2 hybrid parallelism design, and stress testing, offering a practical engineering reference for deploying trillion-scale models on limited NPU hardware.
Introduction: Ultra-Large MoE Models Meet Domestic NPU Compute
As large language models evolve toward multimodality and ultra-long contexts, native multimodal MoE (Mixture of Experts) models with hundreds of billions or even trillions of parameters are becoming mainstream. Although such models activate relatively few parameters at inference time, their overall weight footprint is enormous, placing extreme demands on memory capacity, interconnect bandwidth, and distributed inference frameworks.
Against this backdrop, efficiently deploying such models on domestic NPU accelerators has become a real engineering challenge for many developers and enterprises. This article breaks down the full deployment workflow of a multimodal MoE model with 2.8T total parameters and roughly 104B active parameters, based on a real two-node, 32-die domestic NPU cluster deployment—covering node preparation, network configuration, weight distribution, parallelism strategy design, and stress test validation.
1. Model Characteristics and Compute Environment
The target model uses a native multimodal MoE architecture with 2.8T total parameters, about 104B activated per inference pass, and support for 1M-token context. To fit such massive weights into limited device memory, quantization is the industry-standard approach. This deployment used community-released W4A8 weights (4-bit weights, 8-bit activations), totaling about 1.47 TB.
On the hardware side, the test environment consisted of two domestic NPU servers, each equipped with 16 independent compute dies of 64 GiB memory each—32 dies across both nodes. Inter-node compute communication is handled by the HCCS (high-speed cache-coherent interconnect) network.
The platform uses a lightweight management architecture: both the control server and the node agent are static single binaries. The agent runs on each compute node and initiates outbound connections to the server, multiplexing control commands, monitoring data, log streams, and actual inference traffic over a single encrypted tunnel. This design simplifies node onboarding and ensures secure communication across network environments such as cross-VPC or hybrid cloud setups.
2. Node Onboarding and Parameter Network Setup
The first step in deploying a large model on this platform is getting compute nodes onboarded and networked.
1. Automated node onboarding
On a modern cloud-native or compute platform, node onboarding should be as frictionless as possible. In practice, you simply generate an installation command containing authentication credentials from the platform console and run it on the two target NPU servers. The agent automatically detects and reports each node’s NPU model, die count, NIC information, and storage mounts. The platform then recognizes the 16 NPU compute dies on each machine and adds them to the cluster resource pool.
2. Accelerator parameter network configuration
The bottleneck in multi-node distributed inference is usually cross-node communication. Multi-node interconnect for domestic NPUs typically relies on a dedicated accelerator network. In the platform’s network configuration module, the HCCS interfaces of both nodes must be placed on the same parameter network plane. Before assigning inference tasks, the platform automatically runs inter-die connectivity checks to ensure low-latency, high-bandwidth links between any two dies communicating across nodes. During scheduling, the system strictly follows this network topology to select node combinations, avoiding performance degradation from cross-rack or cross-switch traffic.
3. Distributing Massive Weights and Storage Optimization
For 1.47 TB of quantized weights, a one-time public-internet download is both slow and wasteful of egress bandwidth.
1. Model acquisition and first-node download
Select the community model hosting source in the model repository and download the weights to the first NPU node. Since the weights are split into hundreds of safetensors shards, public download speeds typically run around 50–57 MB/s.
2. Cross-node peer-to-peer transfer acceleration
To prepare the second node, there is no need to pull from the public internet again. Using the platform’s storage management capability, you can directly “copy” the data from the first node to the second. Thanks to the high bandwidth of the inter-node HCCS or other high-speed LAN, direct node-to-node transfer reaches roughly 490 MB/s—nearly 9× faster than public download.
Engineering takeaway: In mature cloud environments such as Baidu AI Cloud, large-file distribution is typically accelerated with object storage (BOS) combined with a CDN or distributed file systems. On bare-metal or private compute clusters, however, leveraging the intra-cluster network topology for P2P distribution is the best practice for improving deployment efficiency.
4. Inference Engine and Hybrid Parallelism Strategy
The choice of inference framework and parallelism strategy directly determines whether the model can be brought up at all, and what throughput it ultimately achieves.
1. Container image and framework preparation
This deployment used the official container image of a mainstream open-source inference framework. To ensure consistency and reproducibility, the deployment template pinned the image to a specific digest (a sha256 hash), avoiding dependency changes or compatibility issues caused by upstream image updates.
2. TP16 × PP2 hybrid parallelism
For a 32-die cluster, pure tensor parallelism (TP) or pipeline parallelism (PP) alone cannot achieve optimal results. This deployment used a TP16 × PP2 hybrid strategy:
- Intra-node TP16: Tensor parallelism splits the model’s matrices across devices and demands extremely high communication bandwidth. Setting TP to 16 confines tensor parallelism strictly to the 16 dies within a single machine, fully exploiting the very high intra-node HCCS bandwidth and minimizing communication latency.
- Cross-node PP2: Pipeline parallelism splits the model’s layers across devices, communicating only layer-boundary activations, which requires comparatively little bandwidth. Setting PP to 2 splits the model’s layers into two parts, one per machine. Cross-node communication is then limited to pipeline-stage data transfer, effectively sidestepping the insufficient inter-node bandwidth bottleneck.
World Size was set to 32 (16 × 2), perfectly matching the cluster’s physical die count.
5. Stress Testing and Performance Analysis
After deployment, the model needs thorough validation of both inference and agentic capabilities.
1. Basic functional verification
Under the TP16 × PP2 configuration, the 32-die instance came up successfully. Conversations initiated from the console showed normal text generation, multimodal understanding, and complex tool calling, confirming that the W4A8 quantization scheme is well matched to the underlying hardware, with no logic errors caused by precision loss.
2. Multi-scenario stress testing
Stress test traffic originated from the server side and was routed through the platform gateway to the inference instances. Three representative scenarios were tested:
- Standard concurrency test: Randomly generated inputs of 2048 tokens and outputs of 512 tokens, simulating everyday multi-user high-concurrency dialogue.
- Medium-length agentic test: An 80K-token context, focusing on instruction following and tool-calling stability with long inputs.
- Ultra-long-context agentic test: A 200K-token context, pushing the model to its limits to test inference latency and memory scheduling near the memory ceiling.
All 836 requests across the three test groups completed successfully. The results show that a two-node, 32-die architecture combined with W4A8 quantization can reliably support high-concurrency inference of a hundred-billion-class MoE model with a million-token context window.
Conclusion
This two-node domestic NPU deployment of a trillion-parameter multimodal MoE model demonstrates the complete workflow—from hardware and network planning, massive weight distribution, to hybrid parallelism design. A sensible TP/PP split maximized intra-node high-speed interconnect while avoiding cross-node communication bottlenecks; combined with efficient weight distribution and quantization, it enabled a smooth landing for an ultra-large model on domestic compute. This practice offers a valuable engineering reference for heterogeneous compute scheduling and large-model serving at even larger cluster scales.
