Running a Large Model Training Pipeline on Chinese-Made GPUs: A Two-Node, 16-Card Cluster Case Study
This article explains how a recent validation run completed a training pipeline for a mainstream open-source large language model on two servers with 16 Chinese-made GPUs. It covers why a short 400-step run is a useful milestone, the hardware and software stack involved, and the checks for numerical correctness, distributed communication, stability, and observability. It also covers precision settings, parallelism configuration, memory optimization, checkpoint recovery, and a step-by-step method for debugging a new GPU platform.
1. Background: Why Running the Training Pipeline Matters
Training a large model is a complex systems engineering problem. It requires coordination across compute hardware, interconnect networks, parallel training frameworks, operator libraries, and mixed-precision strategies. For any new GPU platform, the most direct test of its software ecosystem is whether it can support a full training pipeline for a mainstream open-source or internal large model.
“Running the training pipeline” does not simply mean that the model’s forward pass runs without errors. A working pipeline must meet four conditions:
- Numerical correctness: The loss curve during training follows the trend of a reference implementation, and gradient updates move in the correct direction.
- Distributed coordination: Data parallelism, tensor parallelism, and pipeline parallelism across multiple nodes and GPUs establish communication correctly.
- Stability: Training runs for hundreds to thousands of steps without NaN values, deadlocks, or out-of-memory errors.
- Observability: Training logs, performance metrics, and communication statistics can be collected and monitored normally.
A recent validation on a two-node, 16-card cluster of Chinese-made GPUs completed the training pipeline for a mainstream open-source large model. The run finished 400 training steps, and the loss decreased as expected. This scale is far smaller than full pretraining, but it is enough to test the critical stages of the pipeline. It serves as a typical “minimum viable training” validation. The following sections break down the full path of this kind of validation from a technical perspective.
2. The Validation Environment
2.1 Hardware: Designing a 16-Card, Two-Node Topology
Two nodes with 16 accelerator cards means each server holds 8 cards. This is the most common single-node configuration for large model training today. At the hardware level, the key factors are:
- Intra-node interconnect: The 8 cards in one node are usually linked by a high-speed chip-to-chip interconnect that forms a fully connected topology. This provides the low latency and high bandwidth that tensor parallelism requires.
- Cross-node network: The two servers connect over a high-bandwidth Ethernet network or a dedicated interconnect. This link carries pipeline-parallel traffic and data-parallel gradient synchronization. Cross-node bandwidth is often the bottleneck in two-node training, so low-latency protocols such as RDMA are needed to reduce its impact.
- CPU and memory: Data preprocessing, checkpoint reads and writes, and asynchronous dataloader throughput all depend on host resources. Attention should not focus only on the GPUs.
2.2 Software: From Drivers to Parallel Frameworks
The software stack for a Chinese-made GPU training pipeline typically includes the following layers:
- Driver and runtime: Provides basic capabilities such as device management, memory allocation, and stream scheduling.
- Compiler and operator library: Translates the model’s computation graph into hardware instructions and applies deep optimizations to core operators such as attention and GEMM.
- Distributed training framework: Adapts mainstream open-source training frameworks and supports data parallelism, tensor parallelism, pipeline parallelism, and ZeRO-style memory optimization.
- Communication library: Implements collective communication primitives such as AllReduce, AllGather, and ReduceScatter, and adapts them to both intra-node interconnects and cross-node networks.
The main difficulty in validation is that a problem at any layer eventually shows up as abnormal training behavior. Debugging requires isolating each layer in turn.
3. What 400 Steps Proves
3.1 Why Hundreds of Steps Are Used for Validation
Full pretraining can involve trillions of tokens and run for months, so validation cannot wait for full convergence. The common practice in the industry is a short training run of a few hundred steps as a smoke test. This works because:
- A few hundred steps cover a full iteration cycle: This includes checkpoint saving, gradient accumulation, learning rate scheduling, and log reporting.
- Communication problems surface early: Distributed deadlocks, collective communication mismatches, and cross-node timeouts usually appear within the first few dozen steps.
- The loss trend is observable: Within a few hundred steps, the loss should decrease steadily. Oscillation, divergence, or NaN values point to problems with numerical precision or gradient handling.
- Performance metrics stabilize: Key metrics such as tokens per second and MFU (Model FLOPs Utilization) become stable within a window of a few hundred steps.
3.2 Metrics to Monitor During Training
| Metric | Meaning | Warning Signs |
|---|---|---|
| Loss | Value of the training objective function | Not decreasing, diverging, or NaN |
| Grad Norm | Gradient norm | Large fluctuations, or dropping to 0 or inf |
| Tokens/s | Throughput | Well below the expected theoretical value |
| Communication time share | Share of time spent on communication | A high share indicates an interconnect bottleneck |
| Memory usage | Resource utilization | Close to the limit, which can trigger OOM errors |
4. Key Technical Points and Engineering Practices
4.1 Adapting Precision Settings
Mainstream large model training commonly uses BF16 mixed precision, and some stages adopt FP8. Chinese-made hardware now has mature BF16 support. However, mechanisms such as loss scaling and gradient clipping under mixed precision must match the hardware’s numerical behavior closely. In practice, it is recommended to:
- Run first in pure FP32 or BF16 to rule out precision issues before enabling more aggressive mixed-precision strategies.
- Use gradient clipping and monitor Grad Norm to catch numerical anomalies early.
- Compare the loss curve against the reference implementation. The deviation should stay within a reasonable small range.
4.2 Configuring Parallelism
At the two-node, 16-card scale, a common combination is tensor parallelism within each node and pipeline or data parallelism across nodes. When configuring it, keep the following in mind:
- Tensor parallelism generates the most communication, so it should run on the highest-bandwidth intra-node interconnect.
- Pipeline parallelism creates pipeline bubbles, so the number of micro-batches must be balanced against them.
- Data parallelism synchronizes gradients at the end of each step. The time for cross-node AllReduce must be included in the overall throughput estimate.
An illustrative parallelism configuration (pseudocode):
world_size = 16tensor_parallel = 8 # Within a single nodepipeline_parallel = 2 # Pipeline parallelism across nodesdata_parallel = 1# Communication priority: TP > PP > DP, mapped to different network layers in order
4.3 Memory Optimization and Fault Tolerance
Even with a large total memory across 16 cards, training a large model still requires techniques such as activation recomputation, optimizer state partitioning (ZeRO-style strategies), and gradient accumulation. Validate checkpoint saving and restoring early. Run at least one resume-from-checkpoint test during the few hundred training steps, and confirm that the loss curve continues smoothly after recovery. This is a prerequisite for longer training runs.
4.4 Debugging Method
When a training pipeline fails to run, narrow down the problem one layer at a time:
- Run a minimal model on a single card in a single process to verify basic operator correctness.
- Run a small distributed job on a single node with multiple cards to verify the communication library and parallelism configuration.
- Run a small-scale job across two nodes to verify the cross-node network.
- Replace the model with the target large model and enable the full parallelism strategy.
- Extend the number of training steps to observe stability and performance.
5. Implications for the Chinese Compute Ecosystem
A successful validation on two nodes with 16 cards is valuable not for its training scale, but because it shows that the five-layer stack of hardware, compiler, operator library, communication library, and parallel framework works end to end. For teams building a self-controlled training environment, this kind of validation points to several lessons:
- Ecosystem compatibility comes first: Whether training frameworks and operator libraries migrate smoothly determines the switching cost.
- Numerical alignment is the baseline: Any hardware difference must ultimately be checked through strict loss alignment.
- The short-run validation method is reusable: Starting small, then scaling up while isolating layers, applies to evaluating any new hardware.
- Monitoring must come first: Thorough observability is the foundation for long training runs.
As the Chinese GPU software stack keeps evolving, the path runs from “it runs,” to “it runs stably and fast,” and then to supporting full pretraining tasks. Each step depends on rigorous engineering validation like this. For technical teams, understanding and applying this validation method has more lasting value than the result of any single run.
