Deploying a 2.8T-Parameter MoE Model on Two Domestic AI Accelerator Nodes
This article shares a hands-on deployment and stress-testing practice for a 2.8T-parameter native multimodal MoE model on two servers equipped with domestically developed AI accelerator cards. It covers W4A8 quantization, node topology, parameter-network setup, P2P weight distribution, a TP16 × PP2 hybrid parallel strategy, and validation with 836 inference requests across random-length, 80K Agentic, and 200K Agentic scenarios.
As model parameter counts and context lengths continue to grow, single-node compute is often insufficient for inference on very large models. Native multimodal Mixture-of-Experts (MoE) models are especially demanding: their complex network structures and long-context support place high requirements on memory capacity, inter-node communication bandwidth, and deployment scheduling. This article shares practical experience deploying and stress-testing a large MoE model on two servers equipped with domestically developed AI accelerator cards on a heterogeneous computing platform. It discusses key techniques and best practices for distributed deployment.
1. Model Characteristics and Quantization Strategy
The target model is a native multimodal MoE model with 2.8 trillion total parameters and approximately 104 billion activated parameters per inference. It supports context lengths up to 1 million tokens. Loading such a large model directly in FP16 would require far more memory than conventional servers can provide.
To achieve efficient inference within limited hardware resources, low-bit quantization is commonly used. This deployment adopted W4A8 quantization, with 4-bit weights and 8-bit activations. After quantization, the model size was reduced to approximately 1.47 TB and split into 346 safetensors shard files. This strategy significantly reduces memory usage, makes two-node deployment feasible, and balances computational accuracy with inference speed. It is also well suited to low-level operator optimizations for domestic accelerator cards.
2. Test Environment and Node Topology
The test environment consisted of two servers equipped with domestic AI accelerator cards:
- Hardware configuration: Each server contained 16 compute dies, and each die had 64 GiB of memory. The two nodes provided 32 dies in total and more than 2 TiB of memory, sufficient for the 1.47 TB quantized weights and KV cache.
- Network interconnection: A high-speed compute interconnect handled inter-node communication, ensuring low latency and high bandwidth for cross-node data exchange.
- Platform access: Both the Server and Agent components of the heterogeneous computing platform used a static single-binary architecture. The Agent actively connected outward to the Server and multiplexed control, monitoring, logs, and inference traffic over a single secure tunnel. This made onboarding for domestic accelerator nodes consistent with mainstream GPU nodes: users only needed to copy an installation command from the console and run it on the machine, after which the node automatically came online with its NPU, NIC, and storage information.
3. Network Setup and Optimized Weight Distribution
In large-scale distributed deployments, network configuration and weight loading are often the most time-consuming steps. This practice focused on optimizing both.
1. Parameter network setup
Multi-node deployment with domestic accelerator cards relies on an accelerator network for efficient communication. In the platform console’s network configuration, the local high-speed interconnect networks of the two nodes were added to the same global parameter network. The platform automatically performed inter-card connectivity checks and, during deployment, scheduled and selected suitable physical nodes based on the network topology to avoid communication performance loss caused by cross-switch or cross-rack traffic.
2. Efficient weight distribution
Downloading 1.47 TB of model weights repeatedly over the public internet would consume significant time and bandwidth. The platform therefore provided a direct node-to-node transfer mechanism:
- First, in the model management interface, the weights were downloaded from an open-source model community to the first node. Limited by public internet bandwidth, the download speed was approximately 50–57 MB/s.
- The second node did not need to access the public internet again. Using the platform’s “copy to…” function, it received the weights directly from the first node over the internal network.
- In the high-speed internal network environment, the node-to-node transfer speed reached approximately 490 MB/s, nearly 10 times faster than the public download. This P2P weight distribution mechanism greatly shortened cluster scaling and instance provisioning time.
4. Distributed Parallelism Strategy Design
To fully utilize the compute capacity of 32 dies across two nodes, a suitable distributed parallelism strategy was required. This deployment used a hybrid architecture combining tensor parallelism (TP) and pipeline parallelism (PP): TP16 × PP2.
- Intra-node tensor parallelism (TP16): Tensor parallelism was applied across the 16 dies within each server, sharding the weights of each model layer across 16 dies. Because intra-node communication benefits from high-bandwidth shared memory and high-speed buses, tensor parallelism maximized compute efficiency while reducing communication latency within each layer.
- Cross-node pipeline parallelism (PP2): The model was divided by layers into two stages, each deployed on one server. Pipeline parallelism reduced cross-node data transfer, requiring activations to be passed only at stage boundaries. This avoided the impact of inter-node network bandwidth being lower than intra-node bus bandwidth.
With this strategy, the platform could launch a compute instance with a World Size of 32 in one step. For the image, the platform used a dedicated image built on a mainstream LLM inference engine and pinned the image digest to ensure high consistency between the runtime environment and operator libraries.
5. Stress Testing and Performance
After the instance was successfully launched, we ran stress tests with multiple scenarios and high concurrency to validate system stability and inference capability. Test traffic originated from the platform Server and was routed through the platform gateway to the inference instance, simulating the full request path of a production environment.
The test covered three core scenarios and issued 836 inference requests in total:
- Random-length dialogue: Input and output lengths were randomly set to 2,048 and 512 tokens, respectively, to validate baseline throughput and time to first token in regular multi-turn dialogue scenarios.
- Agentic 80K stress test: This simulated a long-text Agent scenario with complex tool calls, extending the context length to 80K tokens. It focused on KV cache management under long context and the accuracy of the tool-call chain.
- Agentic 200K stress test: This extreme long-text scenario pushed the context close to 200K tokens to test boundary stability under very high memory pressure and whether out-of-memory (OOM) errors would occur.
All 836 requests returned successfully. Throughout the stress test, dialogue generation quality remained stable, inference showed no obvious stalls, and tool-call logic was accurate. The results indicate that W4A8 quantization combined with the TP16 × PP2 parallel architecture enables two nodes with domestic AI accelerator cards to support highly available inference for a large MoE model in long-context and Agent scenarios.
6. Conclusion
This practice validates the strong compatibility of the heterogeneous computing platform with domestic compute. Through automated node onboarding, efficient weight distribution, and flexible hybrid parallel scheduling, developers can deploy very large multimodal models on domestic accelerator cards much as they would on mainstream GPUs. As the low-level operator ecosystem for domestic AI chips matures, two-node and multi-node distributed deployment solutions will become core infrastructure for enterprise trillion-parameter model applications.
