Bringing Up Large Model Training on a Chinese-Developed Compute Platform: A Practical Experience Report

    This report describes how a team validated a large Mixture-of-Experts (MoE) model training pipeline on Chinese-developed GPU hardware. The setup used two nodes with eight accelerator cards each, 16 cards in total. The team ran data loading, forward and backward passes, gradient synchronization, and parameter updates for 400 consecutive training steps. The goal was to check functional correctness and runtime stability, not model convergence. The article covers the hardware topology, software stack adaptation, parallelism strategy, monitoring metrics, common troubleshooting issues, and the methodology the team drew from the work.

    1. Background and Goals

    As demand for large model training keeps growing, diversifying compute supply has become an important topic across the industry. Beyond mainstream GPUs, validating whether Chinese-developed compute platforms can support mainstream large model training workloads matters for building self-reliant AI infrastructure.

    This work set out to build a distributed training environment with two nodes and 16 cards on Chinese-developed GPU hardware. The target was a large Mixture-of-Experts (MoE) model. The team aimed to run the complete pipeline of data loading, forward computation, backpropagation, gradient synchronization, and parameter updates, and to keep it running stably for 400 consecutive training steps. The run was meant to verify functional correctness and runtime stability under a realistic training workload.

    The 400 steps were not meant to reach convergence. They served as a bring-up test. The key checks were that the training process does not stop, the loss decreases as expected, and memory and communication behave as expected.

    2. Hardware Environment and Cluster Topology

    The validation used two compute nodes. Each node has eight GPU accelerator cards, for 16 cards in total. A high-speed network connects the two nodes, and a high-bandwidth interconnect bus handles communication between cards within each node.

    In distributed training, the cluster topology directly determines the parallelism strategy:

    • Single node with 8 cards: Inter-card bandwidth is high and latency is low, so this is the right place for parallel groups that exchange large volumes of data.
    • Cross-node communication: Bandwidth is comparatively limited, so the volume and frequency of cross-node synchronization should be kept as low as possible.
    • GPU memory capacity: Memory determines how large a model shard and how many activations a single card can hold. This in turn shapes the choice of partitioning method and activation recomputation strategy.

    3. Software Stack Adaptation

    Adapting the software stack is the core task in bringing up a training pipeline on a Chinese-developed compute platform. The work covers four layers:

    1. Driver and runtime: Install matching drivers and device runtime libraries so that device initialization, memory allocation, and operator scheduling work correctly.
    2. Deep learning framework: Use a framework version that supports this hardware backend, or connect the computation graph compilation and operator libraries to the hardware correctly.
    3. Collective communication library: The library must correctly implement collective primitives such as AllReduce, AllGather, and ReduceScatter. These primitives form the basis of gradient synchronization and parameter shard aggregation.
    4. Operator coverage check: Confirm, one by one, whether every operator the model uses has a native implementation. For any missing operator, evaluate the performance cost of falling back to a generic implementation.

    In practice, start with smoke tests on the smallest runnable unit. First run one forward and backward step on a single card. Then scale to multiple cards on one node, and finally to two nodes. Expanding one layer at a time makes it easier to locate problems. Debugging the entire cluster at once makes that much harder.

    4. Parallelism Strategy Design

    For MoE models at the 16-card scale, a hybrid parallelism strategy is typically used:

    • Data parallelism (DP): Replicate the model or shard it across devices, with each device processing a different data batch.
    • Tensor parallelism (TP): Split the weight matrices of a single layer across multiple cards to reduce memory pressure per card.
    • Pipeline parallelism (PP): Split the model by layers across groups of devices, and use micro-batch pipelining to reduce pipeline bubbles.
    • Expert parallelism (EP): Specific to MoE architectures, distribute different experts across different devices and route tokens through All-to-All communication.

    On a two-node, 16-card topology, a common and reasonable approach is to keep the communication-heavy tensor parallel groups inside a single 8-card node. The cross-node dimension then uses data parallelism or pipeline parallelism, which generate less communication volume. This reduces the load on the cross-node network. Gradient accumulation can also simulate a larger global batch size within limited memory.

    Mixed-precision training, such as BF16, is a standard way to reduce memory usage and increase throughput. The hardware’s operator support and numerical stability for this precision format must be verified first. Where necessary, add loss scaling and gradient clipping.

    5. 400-Step Validation Process and Metrics

    During the bring-up phase, the team tracked the following metrics:

    1. Functional correctness: The loss curve should decrease normally, with no NaN or Inf values. Over 400 steps, the loss trend is the most direct signal of whether the numerical computation is correct.
    2. Stability: Throughout the run, there should be no process crashes, communication timeouts, or out-of-memory (OOM) errors.
    3. Throughput: Measure time per step and tokens processed per second to estimate the actual compute utilization of the hardware under this workload.
    4. Memory usage: Observe the static and peak memory usage on each card. Use these figures to judge whether the parallel partitioning and recomputation settings are balanced, and adjust the activation recomputation ratio if needed.
    5. Communication overhead: Use profiling tools to measure the share of time spent in collective communication, and identify any communication bottlenecks.

    In this run, all 400 training steps completed consecutively. The loss decreased as expected, memory usage was balanced across cards, and no interruptions or anomalies occurred. These results indicate that the platform’s driver, framework, and communication stack have the basic capability to support training a model of this scale.

    6. Common Issues and Troubleshooting

    • Cross-node communication timeouts: First check the network configuration, network interface binding, and the environment variables for the communication library.
    • Divergent loss: Check that the mixed-precision configuration, initialization method, and data preprocessing match the reference implementation.
    • Out-of-memory errors: Reduce the per-card batch size step by step, enable activation recomputation, or adjust the parallel partitioning dimensions.
    • Performance below expectations: Use profiling tools to determine whether the bottleneck is slow operator execution, high communication share, or data loading stalls.

    7. Summary and Outlook

    Completing a 16-card, two-node, 400-step large model training bring-up on a Chinese-developed compute platform demonstrated that the approach of combining Chinese-developed hardware, a mainstream training framework, and large model workloads is feasible. From an engineering standpoint, the value of this kind of validation lies less in a single successful run than in a reusable adaptation methodology. That methodology includes layered smoke testing, topology-aware parallelism design, and a systematic metrics observation process.

    Future work could extend to scalability validation on larger clusters, stability testing over long training runs, and bringing up the inference deployment pipeline. As the ecosystem for Chinese-developed compute matures in framework adaptation, operator libraries, and communication libraries, its potential for production-grade large model training is promising. For enterprises, combining the container platform, object storage, and monitoring and alerting capabilities of a general-purpose cloud platform can help build elastic training infrastructure that supports multiple compute types more efficiently.