Dual-Node Deployment and Stress Testing of a Trillion-Parameter MoE Model
As LLM parameters scale towards the trillion level, the Mixture of Experts (MoE) architecture has become mainstream due to its excellent performance-to-compute ratio. However, deploying ultra-large models with massive parameters and extremely long contexts poses strict requirements for memory, network communication, and parallel scheduling. This article details a real-world deployment practice of a 2.8T parameter MoE model on a dual-node heterogeneous AI accelerator setup, covering deployment architecture, network configuration, weight distribution, and multi-scenario stress testing.
As LLM parameter scales evolve towards the trillion level, the Mixture of Experts (MoE) architecture has gradually become the industry mainstream due to its outstanding performance-to-compute efficiency ratio. However, ultra-large total parameters (e.g., 2.8T) combined with ultra-long contexts (e.g., 1M tokens) pose extremely stringent requirements on the memory capacity of underlying compute nodes, cluster network communication, and the parallel scheduling capabilities of inference engines. Achieving efficient and stable deployment of such large models in a domestic heterogeneous computing environment is currently one of the core challenges in LLM engineering. This article uses a real dual-node domestic AI accelerator deployment practice to deeply analyze the deployment architecture, network configuration, weight distribution, and the entire multi-scenario stress testing process of a trillion-parameter MoE model.
1. Test Environment and Deployment Architecture Overview
The core objective of this practice was to verify the availability and performance of a native multimodal MoE model (2.8T total parameters, ~104B activated parameters, supporting 1M context) in a dual-node domestic AI accelerator environment.
Regarding hardware configuration, two servers equipped with domestic AI accelerators were selected. Each server contains 16 independent compute dies (each die with 64 GiB of memory), totaling 32 dies across the two nodes. A high-speed cache-coherent interconnect architecture is used between nodes for compute and communication transmission. The inference engine is built on an industry-standard open-source framework, paired with W4A8 quantized weights released by the model community, totaling about 1.47 TB in size.
For the parallel strategy, considering both memory limits and communication overhead, a hybrid parallel scheme combining tensor parallelism (TP16) within each node and pipeline parallelism (PP2) across nodes was ultimately adopted, with an overall World Size of 32. This architecture fully utilizes the low-latency interconnect bandwidth within nodes while effectively extending compute capabilities across nodes via pipeline parallelism.
2. LLM Deployment Platform Architecture and Node Integration
Modern LLM inference deployment typically relies on cloud-native platforms for unified scheduling. In such platforms, the control plane and data plane are usually decoupled. The platform Server and the Agents deployed on compute nodes are independent static single binaries. After starting on a node, the Agent actively connects outbound to the Server. This reverse connection mechanism avoids exposing numerous listening ports on the node side, significantly improving security.
More importantly, control commands, monitoring data collection, log collection, and actual inference traffic can multiplex the same encrypted tunnel, greatly simplifying configuration in complex network environments. When integrating heterogeneous compute nodes, the operational workflow remains highly consistent with traditional nodes: administrators only need to generate an installation command in the console’s “Compute Node” module and execute it on the target machine. The node then automatically comes online with its NPU, network card, and storage information. The platform can accurately identify and manage the 16 compute dies on each machine, enabling fine-grained scheduling of physical resources.
3. Parameter Network Construction and Ultra-Large Weight Distribution
1. Parameter Network and Connectivity Check
The success of multi-node deployment often depends on the communication quality between nodes. Domestic multi-node systems typically rely on the accelerator’s native network for inter-node data exchange. Before deployment, in the platform’s network management module, the interconnect networks (e.g., HCCS) of the two nodes must be added to the same parameter network domain. The platform automatically performs inter-card connectivity checks at this stage, verifying the transmission latency and bandwidth of data packets between each die. During subsequent deployments, it automatically selects nodes that meet connectivity requirements based on this network topology, avoiding communication bottlenecks caused by suboptimal physical network topologies.
2. Efficient Distribution of Ultra-Large Weights
The 1.47 TB model weights present a massive challenge during deployment. If all nodes pull from the public internet, it not only consumes significant time but also imposes heavy pressure on network bandwidth. The best practice is to adopt a “download first, then direct transfer” distributed distribution strategy:
First, download the weights from the open-source model community to the first node, with public network download speeds typically around 50–57 MB/s. Once the first node is ready, use the platform’s “Copy to…” feature to transfer the weights directly from the first node to the second node. Because the nodes are on the same intranet and use high-speed interconnect channels, the direct transfer speed can reach about 490 MB/s, nearly ten times faster than public network downloads. This hierarchical distribution mechanism significantly shortens the overall model preparation cycle for the cluster.
4. Quantization Strategy and Parallel Computing Deep Dive
1. Impact of W4A8 Quantization on MoE Inference
If the 2.8T parameter model is loaded in FP16 format, it requires about 5.6 TB of memory space, far exceeding the 2048 GiB total memory provided by the dual-node 32-die setup. Therefore, quantization is mandatory. The W4A8 quantization scheme used here compresses model weights to 4-bit (significantly reducing memory usage to 1.47 TB) while keeping activations at 8-bit (balancing compute density and inference accuracy). For the MoE architecture, the expert network parameters occupy the vast majority; weight quantization effectively mitigates the memory wall problem, while activation quantization reduces memory bandwidth consumption during computation, improving the execution efficiency of compute-intensive operators like Attention.
2. Memory Trade-off Between KV Cache and 1M Ultra-Long Context
In the 32-die architecture, the total memory is 2048 GiB. Model weights occupy about 1470 GiB, leaving about 578 GiB for KV Cache and runtime memory overhead. A 1M token context means that each concurrent request may consume a huge amount of KV Cache space. Through the hybrid parallelism of TP16 × PP2, the KV Cache is evenly distributed across each die, allowing a single instance to support multiple concurrent long-text requests while ensuring system stability.
5. Multi-Scenario Stress Testing and Performance
To comprehensively evaluate the robustness, long-text processing capability, and complex instruction execution ability of the deployment instance, three sets of high-intensity stress test scenarios were designed. The stress test traffic originates from the platform gateway and routes to the inference instance, simulating real business call chains:
- Basic Conversation Stress Test (Random 2048/512): Simulates regular multi-turn conversation scenarios where input and output lengths fluctuate in the medium range. This set of tests primarily verifies the Time To First Token (TTFT) and throughput under normal load, ensuring a smooth basic interaction experience.
- Medium-to-Long Context Agent Stress Test (Agentic 80K): Simulates complex RAG (Retrieval-Augmented Generation) or long document processing scenarios, with input context lengths around 80K tokens and including multi-turn tool call requests. This scenario verifies the inference engine’s scheduling efficiency and the accuracy of Function Calling at medium context lengths.
- Ultra-Long Context Extreme Stress Test (Agentic 200K): Pushes the context to the 200K token level, stress-testing the memory management mechanism and the stability of long-range attention computation. This scenario is a touchstone for verifying the engineering maturity of trillion-parameter models.
Stress Test Results: Across the three sets of tests, a total of 836 requests were initiated, all returning successfully. Conversational interactions, logical reasoning processes, and various tool calls all performed normally, with no OOM (Out of Memory) or computation interruptions. These results fully prove the reliability of the W4A8 quantization scheme in maintaining accuracy, as well as the efficient synergy of the TP16 × PP2 parallel architecture on domestic heterogeneous computing power.
6. Conclusion and Engineering Outlook
This dual-node 32-die practical deployment not only verifies the technical feasibility of trillion-parameter MoE models on domestic heterogeneous computing power but also provides a complete engineering guide covering node integration, network topology optimization, efficient weight distribution, and parallel strategy formulation. By combining W4A8 quantization with hybrid parallelism, the LLM deployment platform can effectively overcome memory barriers and achieve highly available inference for ultra-large models.
As the domestic AI computing ecosystem continues to prosper and underlying software stacks are continuously optimized, the capability of heterogeneous computing to support trillion-parameter model training and inference is rapidly approaching, and in some scenarios matching, traditional general-purpose computing. When planning AI infrastructure, enterprises should pay more attention to building heterogeneous computing mixed scheduling capabilities and platform-based operations and maintenance systems to address future trends of larger-scale models and longer contexts.
