A Practical Guide to Deploying Ultra-Large MoE Multimodal Models on a Dual-Node Cluster
This guide details the end-to-end process of deploying a 2.8-trillion-parameter Mixture of Experts (MoE) multimodal model on a dual-node cluster. It covers overcoming memory and communication challenges, environment setup, parameter network planning, efficient weight distribution, deployment strategies, and performance testing, providing a comprehensive methodology for distributed inference of massive models.
A Practical Guide to Deploying Ultra-Large MoE Multimodal Models on a Dual-Node Cluster
1. Background and Challenges: When Model Scale Exceeds Single-Node Boundaries
In recent years, the Mixture of Experts (MoE) architecture has become the mainstream approach for ultra-large language models. Taking the model discussed in this article as an example: the total parameter count reaches 2.8 trillion, with approximately 104 billion parameters activated per forward pass. It also features native multimodal capabilities and supports an ultra-long context of up to 1 million tokens. Deploying inference for such models presents three core challenges:
- Memory Capacity Challenge: Even with W4A8 quantization (4-bit weights, 8-bit activations), the weight volume is still about 1.47 TB, far exceeding the memory capacity of any single accelerator card. It must be partitioned across cards and nodes.
- Communication Challenge: MoE models involve All-to-All communication caused by expert routing in every layer, plus All-Reduce for tensor parallelism, making them extremely sensitive to inter-card interconnect bandwidth.
- Engineering Complexity Challenge: Multi-node deployment involves topology awareness, parallelism strategy combinations, weight distribution, and process orchestration. Misconfiguration in any of these aspects can lead to startup failures or performance degradation.
This article uses a dual-node NPU cluster with a total of 32 compute dies as an example to comprehensively break down the entire workflow from environment preparation to service launch. The methods discussed are general and equally applicable to other MoE models of similar scales and heterogeneous accelerator hardware.
2. Test Environment Overview
| Item | Configuration |
|---|---|
| Compute Nodes | 2 accelerator servers, each with 16 compute dies, 64 GiB memory per die, 32 dies in total |
| Node Interconnect | Compute communication is handled via a dedicated high-speed interconnect link between nodes |
| Parallelism Strategy | Intra-node Tensor Parallelism TP16, cross-node Pipeline Parallelism PP2, total world size 32 |
| Model Weights | Community-released W4A8 quantized version, 346 safetensors shards, total size ~1.47 TB |
| Runtime Environment | Inference framework container image released alongside the model (using digest to pin the version is recommended to avoid uncertainties from image updates) |
| Stress Test Path | Initiated from the platform management console, forwarded via gateway to the inference instance |
Several design decisions are worth noting:
- Why TP16 + PP2 instead of DP (Data Parallelism)? The weights of a single replica alone are 1.47 TB. The total memory of 32 dies is about 2 TiB, which can only accommodate one complete set of weights while reserving space for activations and KV Cache. Therefore, data parallelism is not feasible; the only replica is the one jointly hosted by the entire cluster.
- Why is TP limited to within a node? The All-Reduce communication of tensor parallelism has the highest frequency (twice per layer) and is placed on the highest-bandwidth interconnect within the node. Pipeline parallelism only passes activations once at stage boundaries, with a smaller communication volume, making it suitable for cross-node links. This is a direct application of the classic principle: “parallelism dimensions with high communication frequency should use fast links.”
- Pinning Image Digest: Multi-node deployment requires the software stacks of all 32 processes to be completely identical. Pulling images via tags risks version drift between nodes; pinning the digest is the safest approach.
3. Platform Integration: Unified Management of Heterogeneous Nodes
In practice, we adopted a lightweight cluster management solution: both the management console and node agents are static single binaries. The node agents actively connect outward to the management console, multiplexing control instructions, monitoring data, logs, and inference traffic over the same tunnel. This design offers two distinct advantages:
- Low Network Requirements: Nodes only need outbound network capabilities without exposing inbound ports, naturally adapting to firewalls and NAT environments.
- Heterogeneity Agnosticism: The onboarding process for NPU nodes and GPU nodes is identical—copy an installation command from the console to the target machine and execute it. The node then automatically comes online, carrying metadata such as accelerator card model, network topology, and storage capacity.
For operations teams, this means onboarding a new type of hardware does not require learning a new integration protocol, significantly reducing the probability of human error during scaling.
4. Preparation Phase: Nodes, Parameter Network, and Weights
4.1 Onboarding Compute Nodes
Generate an installation command on the “Compute Nodes -> Add Node” page in the console and execute it on both servers. The platform will automatically identify the 16 compute dies on each machine and report metadata such as memory capacity, driver version, and interconnect topology. After onboarding, a health inspection should be performed to confirm:
- The memory capacity of each die matches the reported value (64 GiB);
- Driver and firmware versions are within the inference framework’s support matrix;
- Node clock synchronization is normal (in multi-node deployments, clock drift can interfere with distributed timeout judgments).
4.2 Planning the Parameter Network
A key prerequisite for multi-node inference is organizing the cross-node accelerator interconnect links into an isolated “parameter network,” separate from the business and storage networks. The specific operation is to add the accelerator interconnect interfaces of both nodes to the same parameter network in the network management interface. The platform will perform inter-card connectivity checks (verifying reachability and bandwidth between cross-node die pairs) and automatically select nodes that meet the conditions based on the topology of this network during subsequent deployments.
The value of this step lies in topology-aware scheduling: if there are multiple machines in the cluster, only node combinations with pairwise interconnected links can be selected, preventing the two stages of PP from being scheduled onto nodes lacking high-speed interconnects.
4.3 Weight Download and Direct Inter-Node Transfer
How to efficiently transfer 1.47 TB of weights to two machines is an often-underestimated process. Our approach is:
- Select the model repository source on the model management page and download the weights to the first node. The tested public network download speed is about 50–57 MB/s, making a full download quite time-consuming.
- The second node does not use the public network. Instead, use the “Copy to…” feature to transfer directly from the first node over the internal network. The tested speed is about 490 MB/s, nearly 10 times faster than the public network, reducing the overall preparation time by almost half.
- After the transfer on both sides is complete, the platform performs hash verification file-by-file on the 346 safetensors shards. Any corrupted shard will be flagged and automatically retransmitted.
Experience summary: During multi-node deployment, weights should only traverse the public network once. File-by-file verification is also indispensable—hundred-billion-parameter models are not “robust” against weight corruption. A bit error in an individual shard can cause silent degradation of inference output rather than a direct error, making troubleshooting extremely costly.
5. Deployment and Launch
During deployment, declare the parallelism strategy (TP16, PP2), bind the created parameter network, and select the verified weight path and the digest-pinned image. The orchestration system will launch the inference process group on each node. After the main process completes distributed initialization:
- Each PP stage loads the weight shards corresponding to its layer interval;
- Tensor partitioning of expert weights and dense layer weights is completed among the 16 dies within the node;
- Cross-node NCCL/HCCL communication domain connection and warmup are performed;
- The inference service endpoint is opened, providing an OpenAI-compatible interface externally via the platform gateway.
Given the massive total weight size, a cold start load time of several minutes is normal. It is recommended to set a sufficiently generous grace period for the readiness probe to avoid false restart judgments.
6. Stress Testing and Acceptance
Stress test traffic is initiated from the management console, routed through the gateway to the instance, matching the real user path. It is recommended to monitor three types of metrics: Time To First Token (TTFT), Inter-Token Latency (ITL), and the throughput degradation curve under long contexts. For models with a 1-million-token context, targeted verification of KV Cache memory usage in ultra-long input scenarios is also necessary to prevent high-concurrency long-text requests from triggering Out of Memory (OOM) errors.
7. Conclusion
The core experiences of deploying a 2.8T-parameter MoE model on a dual-node cluster can be summarized in four points: quantization first (W4A8 compresses memory requirements to a manageable range), matching parallelism dimensions with link bandwidth (TP within nodes, PP across nodes), public network traversal for weights only once (direct inter-node transfer speeds up the process by nearly 10 times), and pinning the software stack with digest. Mastering this methodology allows you to migrate to larger-scale clusters or similar models by simply recalculating parallelism partitions based on total memory and interconnect topology.
