Deploying Trillion-Scale MoE Models on Dual-Node AI Accelerators: A Practical Guide
This article details the real-world deployment of a 2.8-trillion-parameter native multimodal Mixture-of-Experts (MoE) model across two domestic AI accelerator servers. It systematically covers cluster access, network planning, weight distribution strategies, hybrid TP16xPP2 parallel topology design, and stress testing methodologies for long-context agent workloads.
As large language model parameters scale into the trillions, single-node deployment is no longer sufficient for VRAM and compute requirements, making multi-node, multi-card collaborative inference essential. This article outlines the complete engineering process of deploying a native multimodal MoE model—totaling approximately 2.8 trillion parameters with roughly 100 billion activated parameters per forward pass—on two domestic AI accelerator servers. It systematically summarizes the deployment architecture, parallel strategies, weight distribution, and stress testing methodologies.
1. Background and Objectives
The target model features a million-token context window and utilizes a sparse activation architecture. Despite its massive total parameter count, only a small fraction of experts are activated during each inference. Deployment challenges for such models focus on three areas:
- Massive weight size: Even with low-bit quantization (like the W4A8 scheme), the weight file is nearly 1.5TB.
- Complex parallel topology: Cross-node coordination of dozens of compute units is required.
- High bandwidth demands: Long-context and agent scenarios impose extreme requirements on KV cache and communication bandwidth.
The experimental environment consists of two domestic AI accelerator servers, each integrating 16 compute units (dies) with 64GiB of high-bandwidth memory (HBM) per unit, totaling 32 compute units across both nodes. Nodes are connected via dedicated high-speed interconnects for compute communication. The inference framework uses an open-source inference engine image adapted for this hardware platform, and the model weights utilize the community-released W4A8 quantized version.
2. Cluster Access and Network Planning
Node Access
The first step in multi-node inference is bringing bare-metal nodes into a unified scheduling and management plane. Engineering practices typically use a lightweight agent model: running a single installation command on each node, the agent actively connects outbound to the control plane to report hardware information (accelerators, NICs, storage). Control, monitoring, logging, and inference traffic share an encrypted tunnel. This approach requires no exposed inbound ports, providing a seamless access experience in NAT environments identical to single-datacenter setups.
Parameter Network
Cross-node tensor parallelism (TP) and pipeline parallelism (PP) are highly sensitive to communication latency. An explicit “parameter network” must be planned—assigning the high-speed interconnect ports responsible for gradient and activation transfers to the same logical network, followed by pre-deployment connectivity self-checks. The deployment system automatically selects node combinations that meet topology requirements to prevent performance degradation or startup failures caused by mismatched links. This step is often overlooked yet is critical to the success of multi-node deployments on domestic accelerators.
3. Weight Distribution Strategy
Directly downloading a ~1.5TB weight file from a public model repository typically yields bandwidth around 50MB/s, taking hours for a single node. The optimal engineering solution is “download once, distribute internally”:
- Node 1 completes the download from the model repository.
- Node 2 receives the weights via point-to-point direct transfer, achieving internal network bandwidth of approximately 490MB/s—a near tenfold speedup.
Additionally, weights should be pinned to a fixed version identifier (e.g., repository commit hash) and verified for shard count and total bytes. In this case, there were 346 shards totaling ~1.47TB, ensuring both nodes load identical models and preventing silent version drift.
4. Parallel Topology Design
The 32 compute units are partitioned using a “Tensor Parallelism (TP) x Pipeline Parallelism (PP)” hybrid scheme: TP16 is applied within each node to leverage high-speed internal interconnects, reducing the communication overhead of tensor parallelism; PP2 is applied across nodes, splitting the model into two segments by layer. Cross-node communication only passes intermediate activations, a volume significantly lower than TP, making it suitable for the relatively limited bandwidth of cross-machine links. The global world size is 32.
The underlying principle of this topology choice: place the most communication-intensive parallel dimension (tensor parallelism) within the node, and the least communication-intensive dimension (pipeline parallelism) across nodes. For the ~1.5TB quantized weights, PP2 halves the memory footprint per node, and TP16 further distributes it across each die. This reserves ample space for the KV cache, supporting long-context batch inference at 80K and even 200K token levels.
5. Stress Testing Design and Results
Post-deployment, three stress test groups were initiated from outside the platform via a gateway, covering different load profiles:
- Random load: Mixed requests with 2048 input tokens and 512 output tokens to test throughput and stability in standard conversational and generation scenarios.
- Agent mid-to-long context: 80K context load simulating typical agent workflows such as tool calling and multi-turn planning.
- Agent ultra-long context: 200K context load pushing the limits of the KV cache and scheduler.
All 836 requests across the three groups succeeded. Conversational output, chain-of-thought reasoning processes, and tool calling (function calling) operated flawlessly. This validated the correctness of the quantized weights on this specific hardware and inference framework combination, while also proving the stability of the TP16xPP2 topology under long-context pressure.
6. Experience Summary
- The dimension allocation for hybrid parallelism should adhere to the principle of “keeping high-frequency communication within the node.”
- Large weight distribution must use inter-node internal network direct transfer, with pinned versions and verified shards.
- Pre-launch inter-card connectivity checks can intercept the vast majority of cross-node deployment failures.
- Stress testing must cover standard, long-context, and ultra-long-context tiers, and should include real business paths like tool calling, rather than just testing raw generation throughput.
The deployment of ultra-large MoE models on domestic compute has transitioned from the “can it run” phase to the “running stable and fast” phase. Through standardized cluster access, network planning, weight management, and parallel configuration, a dual-node, 32-card deployment can be as simple and controllable as a single-node setup.
