Running an End-to-End LLM Training Pipeline on Chinese-Developed GPUs: A Practical Path

    A recent validation run trained a mainstream open-source large language model on a two-node, 16-card cluster built on a Chinese-developed GPU platform, completing 400 training steps. This article explains why validating training is harder than validating inference, how parallelism is planned for a 16-card setup, the four engineering areas that make such adaptation possible, and what the result does and does not show.

    From Inference to Training

    Large models keep growing in parameter count and training data volume, and their compute demands rise with them. For a long time, training pipelines depended heavily on specific hardware ecosystems and software stacks, so the diversity of compute supply has become a common concern across the industry. Against this backdrop, whether a domestic GPU platform can run a complete large model training pipeline has become an important measure of its technical maturity.

    Recent public information shows that a Chinese-developed GPU platform completed a training pipeline validation for a mainstream open-source large model on a two-node, 16-card cluster, and ran stably for 400 steps. The scale is modest, but the result matters. It verified a closed loop covering data loading, model partitioning, operator execution, gradient synchronization, and checkpoint-based resumption. It marks a key step for domestic compute, moving from “capable of inference” to “capable of training.”

    Why Training Validation Is Much Harder Than Inference

    1. Higher Operator Coverage Requirements

    Inference typically runs only forward computation, and the core operators it needs are relatively concentrated. Training requires forward propagation, backward propagation, and parameter updates to work end to end. Backpropagation generates a large number of gradient operators. The pipeline also includes fused operations in the optimizer and gradient scaling under mixed precision. A single missing or imprecise operator can prevent training from converging or produce wrong results.

    2. Numerical Precision and Convergence Challenges

    Training demands far stronger numerical consistency than inference. A small precision error in the forward pass can grow exponentially as it propagates backward through many layers. Teams therefore need a strict precision alignment process. Common practices include:

    • Using the training loss curve on a reference hardware platform as the baseline;
    • Comparing intermediate activations and gradients layer by layer to locate the source of precision deviations;
    • Combining relative error with convergence trends as two metrics, rather than relying on single-step numerical comparisons.

    3. Multi-Node Communication and Stability

    Two nodes with 16 cards means cross-node communication. During training, gradient AllReduce, parameter Broadcast, and activation transfer in pipeline parallelism all place demands on network bandwidth and communication topology. If a cross-node link experiences jitter or packet loss, training slows down at best and the job fails at worst. The training framework therefore needs solid fault tolerance and checkpoint-based resumption.

    Parallelism Strategy for a Two-Node, 16-Card Setup

    With a limited number of cards, the core question in validating a training pipeline is how to partition the model. Common parallelism dimensions include:

    1. Data Parallelism (DP): Each card holds a full copy of the model and processes a different data shard. Gradients are synchronized through AllReduce. This approach is simple to implement, but memory usage is high.

    2. Tensor Parallelism (TP): Weight matrices of a single layer are split across multiple cards. This reduces per-layer memory pressure but introduces heavy intra-layer communication, so it is usually confined to a single node.

    3. Pipeline Parallelism (PP): The model is split by layers across devices and runs in a micro-batch pipeline to improve utilization. Communication volume across nodes is relatively manageable, which makes this approach suitable for two-node deployments.

    4. Optimizer State Sharding: Optimizer states, gradients, and parameters are further sharded to cut memory redundancy. This is a standard technique for training large models under limited memory.

    At the scale of two nodes and 16 cards, a typical combination is: tensor parallelism within each node to use the high-bandwidth interconnect, data or pipeline parallelism across nodes to avoid the cross-node bandwidth bottleneck, and optimizer state sharding to control memory use. An illustrative strategy configuration looks like this:

    1. parallel_config = {
    2. "tensor_parallel": 4, # Tensor parallelism within a node
    3. "pipeline_parallel": 2, # Pipeline parallelism across nodes
    4. "data_parallel": 2, # Data parallel replicas
    5. "zero_stage": 1, # Optimizer state sharding
    6. }

    Four Key Engineering Areas for Domestic Compute Adaptation

    1. Operator Library Completion and Performance Tuning

    Training frameworks run on heterogeneous hardware and rely on the vendor’s operator libraries and compilation stack. Adaptation work includes filling in frequently used training operators, implementing operator fusion to reduce memory access overhead, and hand-tuning kernels for typical tensor shapes. Fusing operations such as attention and layer normalization often yields double-digit performance gains.

    2. Communication Library and Topology Optimization

    Cross-node communication relies on collective communication libraries. A domestic platform needs to optimize its communication algorithms for its own interconnect characteristics. For example, it can automatically choose Ring or Tree algorithms based on the bandwidth difference between intra-node and inter-node links, and coalesce small messages to reduce the number of communication calls.

    3. Mixed-Precision Training Support

    Low-precision training, represented by BF16/FP16 mixed precision, is essential for reducing memory and bandwidth consumption. The platform must keep low-precision compute units stable and implement master weight maintenance and loss scaling correctly to prevent gradient underflow.

    4. Training Stability and Observability

    Long-running training jobs need a comprehensive monitoring system. Metrics such as loss curves, gradient norms, per-card utilization, and communication time must be collected in real time and linked to alerts. Automatic checkpoint saving and automatic job restart after failures are also required to support training runs that last several days.

    Validation Methodology Behind the “400 Steps”

    Completing 400 steps may look like a small milestone, but its significance lies in validation rather than production scale. A standard pipeline validation usually includes these levels:

    • Single-card functional validation: Confirm that forward pass, backward pass, and optimizer updates behave correctly step by step;
    • Single-node, multi-card validation: Check inter-card communication and the correctness of parallel partitioning;
    • Two-node scaling validation: Check cross-node communication stability and scaling efficiency;
    • Convergence validation: Verify that the loss curve follows the expected baseline trend.

    Running for 400 steps continuously indicates that the system reached a basic level of stability across these layers. There were no NaN values caused by operator errors and no job interruptions caused by communication failures. This is itself a systematic engineering validation result.

    Industry Implications and Outlook

    This validation points to three positive signals. First, the compatibility of domestic software stacks with mainstream large model architectures is improving quickly, and the cost of adapting training ecosystems is falling. Second, the layered adaptation approach, spanning operators, communication, and the framework, has become mature enough to reuse for larger models and clusters. Third, diversified compute supply is becoming a reality, giving domestic large model development more options.

    The gaps remain, however. Thousand-card training, longer stability periods, and higher compute utilization still require sustained engineering investment. Directions worth watching include automatic operator generation at compile time to reduce adaptation cost, more intelligent automatic search for parallelism strategies, and self-healing capabilities for large-scale clusters.

    In summary, running a large model training pipeline on two nodes with 16 cards is a milestone for the domestic compute ecosystem. It demonstrates more than hardware availability. It shows the combined capability of the full software stack, from chips and operator libraries to communication libraries and training frameworks. As adaptation depth and cluster size continue to grow, the path for supporting large model training on diversified compute will become clearer.