Validating 100B Parameter MoE Training on a Dual-Node 16-GPU Cluster
This article details the verification of a 100-billion parameter Mixture of Experts (MoE) large language model on a dual-node 16-GPU cluster using a domestic GPU product line, running continuously for 400 steps. It covers cluster topology design, combined parallelism strategies, communication optimizations, and network diagnostics, while defining the applicability boundaries for the observed results.
I. Background and Verification Boundaries
As 100-billion parameter models become the training target for many teams, the pressure on training infrastructure has significantly increased. Single-node 8-GPU configurations quickly hit bottlenecks in memory capacity and communication bandwidth when utilizing hybrid model and data parallelism. Multi-node training is a common solution, but cross-node communication latency, load balancing, and fault recovery directly impact training efficiency.
Recently, a domestic GPU product line completed the verification of a 100-billion parameter MoE (Mixture of Experts) large language model training link on a dual-node 16-GPU configuration, running continuously for 400 steps. This article outlines the cluster design, parallelism schemes, communication optimizations, and fault tolerance drills based on the verification process, while indicating the applicability boundaries for each conclusion.
It is necessary to define the boundaries first: running 400 steps only proves that the software and hardware links operate normally and that various components can work collaboratively. It does not represent the long-term stability of full-scale training, nor does it directly yield throughput or cost conclusions. The numbers mentioned are observations from this specific verification environment, as the original materials did not include a complete baseline configuration.
II. Cluster Topology: From Single-Node Limits to Dual-Node Collaboration
2.1 Why Dual-Node is Needed
Even with 80GB of memory per GPU, a single-node 8-GPU setup struggles with 100-billion parameter models, as the model parameters alone require hundreds of gigabytes. While CPU offloading or NVMe caching can alleviate memory pressure, frequent data swapping significantly slows down training. Therefore, partitioning the model across multiple nodes is typically a more straightforward approach.
A dual-node 16-GPU configuration nearly doubles the total available memory and extends the communication path from intra-node PCIe or high-speed interconnects to cross-node networks. This step lays the validation foundation for future larger-scale expansions.
2.2 Network Links
- Intra-node interconnect: Eight GPUs within each server are interconnected via a high-speed bus, with local links used for intra-node communication.
- Cross-node interconnect: An RDMA network is deployed between the two servers. Data can bypass the kernel protocol stack and transmit directly between memories, reducing copy overhead.
- Shared storage: Training data is hosted on a shared file system, allowing both nodes to read the same dataset and avoiding step-to-step fluctuations caused by differing data paths.
III. Parallelism Strategies: Data, Tensor, Pipeline, and Expert Parallelism
3.1 Combination Approach
A single parallelism strategy is insufficient for training 100-billion parameter MoE models. This verification combined four parallelism methods, each with distinct communication patterns, bottlenecks, and tuning focuses.
| Parallelism Dimension | Partitioning Object | Main Communication Mode | Common Bottlenecks | Tuning Focus |
|---|---|---|---|---|
| Data Parallelism (DP) | Training sample batches | Gradient AllReduce | Gradient sync time | Gradient bucketing, communication/reverse computation overlap |
| Tensor Parallelism (TP) | Inside large operators | Intra-operator collective communication | High-frequency small-step communication | Restrict to intra-node as much as possible |
| Pipeline Parallelism (PP) | Model partitioned by layers | Point-to-point transmission between adjacent layers | Pipeline bubbles | Micro-batch quantity and scheduling method |
| Expert Parallelism (EP) | MoE expert networks | Token All-to-All routing | Routing imbalance and all-to-all traffic | Expert grouping, load balancing, hierarchical All-to-All |
TP is recommended to be restricted within the node because of its high communication frequency; cross-node links can easily become a bottleneck. This is a common rule of thumb, though the actual effect depends on network bandwidth and model structure.
3.2 Memory Optimization
The original materials did not specify the training framework and version used in this verification. Below is an example using DeepSpeed ZeRO-Offload to illustrate the configuration approach for similar memory optimizations. This configuration is for illustrative purposes only; field names and values should refer to the official documentation of the version in use.
{"bf16": { "enabled": true },"zero_optimization": {"stage": 2,"offload_optimizer": { "device": "cpu", "pin_memory": true }}}
In addition to optimizer state offloading, activation recomputation is also effective. It does not save intermediate activations during forward propagation and instead recomputes them during backward propagation, trading a small amount of extra computation for memory headroom. In this verification, the peak memory per GPU was controlled within 85% of the physical memory, preserving headroom for communication buffers and temporary tensors.
IV. Communication Optimization: Differentiating All-to-All and Gradient Synchronization
There are two main types of communication during training that need to be discussed separately, as their optimization methods differ.
4.1 All-to-All: Token Routing Communication
In MoE models, each token is sent to the GPU holding the corresponding expert based on routing results, and returned after computation. This process relies on All-to-All communication. In a dual-node environment, this verification observed that this type of communication accounted for over 60% of total traffic, making it the primary factor limiting training speed.
Optimization ideas involved in this verification for this type of communication include:
- Expert grouping and placement: Placing frequently co-activated experts within the same node to reduce cross-node token transfers.
- Hierarchical All-to-All: First completing token rearrangement within the node, then sending the consolidated data over the cross-node link to reduce the number of cross-node messages.
- Routing load balancing: Utilizing auxiliary losses or capacity limits to prevent some experts from being overloaded while others are idle. Otherwise, the GPU with the heaviest load will slow down the entire training step.
- Communication and computation overlap: Scheduling computations that do not depend on the communication results while waiting for those results.
4.2 Gradient AllReduce: Sparsification and Bucketing
Gradient synchronization belongs to another category of communication, primarily acting on gradients of dense parameters. This verification attempted two optimizations in this area:
- Top-K sparsification: Transmitting only the top approximately 5% of gradients by magnitude each step. The receiving end uses error feedback or momentum correction to compensate for lost information. This method alters the optimization process and requires verifying its accuracy impact through the loss curve; it cannot be assumed to be lossless.
- Bucketing overlap: Dividing gradients into multiple buckets by layer. Once a bucket is ready, communication is initiated immediately, running in parallel with the backward computation of subsequent layers.
The benefits of these two optimizations depend on model structure and network bandwidth. The original materials did not provide a time breakdown for each item, so it is impossible to determine their respective contribution ratios.
4.3 Network Layer Diagnostics and Tuning
RDMA network tuning should begin with diagnostics: confirming link status and actual bandwidth before adjusting parameters. The following commands can perform a basic check:
# View RDMA device and port statusibv_devinfo -d mlx5_0ibstat mlx5_0# Bandwidth test between two nodes: start on the server side first, then the client points to the server addressib_write_bw -d mlx5_0
