Deploying a 100B-Parameter MoE Model on Domestic AI Accelerators: A Dual-Node Practical Guide
This article provides a comprehensive guide to deploying a 100-billion-parameter native multimodal Mixture-of-Experts (MoE) large model on domestic AI accelerators. Since a single machine cannot meet the memory requirements for a model with 2.8T total parameters, 104B activated parameters, and a 1M token context length, we explore a dual-node deployment architecture utilizing Tensor Parallelism (TP16) and Pipeline Parallelism (PP2). The piece covers the entire process from architecture design and heterogeneous node integration to network topology construction, efficient weight distribution, and inference service launch with comprehensive stress testing.
As large model technology rapidly evolves toward multimodality and ultra-long context lengths, the native Mixture-of-Experts (MoE) architecture has become the mainstream choice for frontier models. It significantly increases total model capacity while controlling activated parameters. However, for ultra-large models with 2.8T total parameters, 104B activated parameters, and a 1M token context length, single-machine deployment can barely meet the memory requirements. How to achieve efficient multi-node, multi-card collaboration on domestic AI compute clusters while ensuring inference performance and service stability is a core challenge in current AI engineering. This article uses the dual-node deployment of a native multimodal MoE model on domestic AI accelerators as an example to detail the full-process technical practice, from environment preparation to stress testing and verification.
1. Deployment Background and Architecture Design
In inference deployment scenarios, the massive weights of the MoE architecture place extremely high demands on memory capacity. Taking the model deployed in this case as an example, even after adopting the industry-mature W4A8 quantization technology, the model weight size still reaches 1.47 TB. If a single device is used, even if equipped with multiple high-memory AI accelerators, it is difficult to accommodate such massive weights alongside the KV Cache space required during the inference process.
To address this, we adopted a dual-node deployment architecture. The test environment consists of two domestic AI accelerator servers, each configured with 16 compute dies (64 GiB memory per die), totaling 32 dies. For the parallelism strategy, we designed a combination of intra-node Tensor Parallelism (TP16) and inter-node Pipeline Parallelism (PP2), with a total World Size of 32. Intra-node high-bandwidth inter-chip interconnects handle the dense compute communication for Tensor Parallelism, while inter-node communication leverages Pipeline Parallelism to reduce sensitivity to network bandwidth. This TP16×PP2 strategy not only fully utilizes the high-speed intra-node interconnect advantages but also effectively mitigates the impact of cross-machine network latency on compute performance, making it a classic paradigm for multi-node deployment of ultra-large models.
2. Node Integration and Unified Heterogeneous Compute Management
With the assistance of a heterogeneous compute management platform, the node integration process is greatly simplified. Both the Server and Agent of the platform adopt a static single-binary design. The Agent is deployed on the compute node and actively connects outbound to the Server. This “outbound connection” mode effectively avoids complex intranet penetration and firewall port opening issues. Control signaling, monitoring data, log collection, and inference traffic reuse the same encrypted tunnel, significantly reducing network topology complexity.
For domestic NPU nodes, the integration method is identical to that of mainstream GPU nodes. Administrators only need to generate an installation command in the console and execute it on the target machine. The node will then automatically come online carrying its NPU model, network card status, and storage information. This standardized integration process achieves unified management of different underlying hardware architectures, laying the foundation for subsequent mixed scheduling and resource pooling. Combined with mainstream cloud-native infrastructure like Baidu AI Cloud, enterprises can further build highly available and elastically scalable compute clusters.
3. Network Topology Construction and Efficient Weight Distribution
3.1 Parameter Network and Connectivity Check
The key to multi-node deployment lies in network configuration. Multi-node collaboration for domestic accelerators typically relies on high-speed interconnect buses (similar to HCCS) for direct communication between accelerators. Before deployment, the interconnect bus interfaces of the two nodes must be added to the same parameter network in the platform’s network configuration module. The platform automatically performs inter-card connectivity checks to ensure unobstructed communication among all participating dies. During subsequent deployments, the scheduling system will automatically select node combinations with physical connectivity based on this parameter network topology, preventing deployment failures caused by network isolation.
3.2 Tiered Distribution Strategy for Massive Weights
Faced with 1.47 TB of quantized weights, the traditional full public network download method is time-consuming. Test data shows that downloading directly from a public network model repository yields a speed of about 50-57 MB/s, taking several hours to complete the download of all weights.
To optimize this process, a tiered distribution strategy of “single-point download + direct node transmission” should be adopted in engineering. First, the complete safetensors shard files are pulled from the model repository onto the first node. Subsequently, the platform’s “Copy to…” feature is used to directly transfer the weights from the first node to the second node. Since the nodes are typically in the same data center or connected via a high-speed intranet/interconnect bus, the direct transmission speed can reach approximately 490 MB/s, nearly ten times faster than public network downloads. Combined with high-performance storage services like Baidu AI Cloud’s Object Storage (BOS), rapid distribution and version management of large files can be achieved, significantly shortening the model preparation cycle in cluster environments.
4. Inference Service Launch and Stress Testing Verification
4.1 Containerized Deployment and Instance Launch
Once weights and network are ready, the platform automatically assembles the image and startup parameters by selecting a built-in inference template. A dedicated high-performance inference engine image is used and pinned to a specific version to ensure environment consistency. Upon clicking deploy, the system automatically launches the inference instances across the 32 dies according to the TP16×PP2 strategy. During instance startup, the engine automatically loads 346 safetensors shards and completes weight splitting and memory mapping across multiple cards.
4.2 Full-Scenario Stress Testing and Stability Verification
To verify the service stability and processing capability after dual-node deployment, stress test traffic is initiated from the platform Server and routed to the inference instances via the platform gateway. We designed three highly representative test scenarios:
- Standard Conversation Scenario: Uses random 2048/512 length input/output combinations to verify basic inference throughput and time-to-first-token (TTFT).
- Agentic 80K Scenario: Simulates medium-length agent contexts to verify the model’s KV Cache management capabilities when handling complex instructions and multi-turn tool calls.
- Agentic 200K Scenario: Extreme long-context agent stress testing to examine the system’s peak memory usage and computational stability when approaching 200K token inputs.
After rigorous stress testing, all 836 requests responded successfully, with both the conversational inference process and tool calls performing normally. This result fully demonstrates the reliability of this dual-node parallel architecture when handling ultra-large MoE models and long-context scenarios.
5. Conclusion and Engineering Practice Recommendations
Deploying 100-billion or even trillion-parameter MoE large models on domestic heterogeneous compute is no longer an insurmountable hurdle. By combining reasonable TP and PP parallelism strategies with efficient intra-node/inter-node network communication architectures, hardware compute power can be fully utilized. Meanwhile, the standardized Agent integration mode and tiered weight distribution mechanism greatly improve cluster operational efficiency.
For enterprise-level implementation, it is recommended to focus on unified pool management of compute resources, automated detection of network topologies, and distributed caching mechanisms for model weights when building a large model inference platform. Leveraging mature infrastructure platforms, developers can focus more on business logic and Agent orchestration, accelerating the value release of large model applications.
