End-to-End LLM Training on a Chinese GPU Cluster: A Practical Validation

    This article examines an end-to-end validation of large language model training on a Chinese GPU cluster using a two-node, 16-GPU configuration over 400 training steps. It reviews why cross-node validation matters, the parallel strategy, operator and framework adaptation, gradient synchronization and numerical consistency checks, and checkpoint and fault-tolerance requirements. It also outlines a practical roadmap for scaling from 400 steps to larger pre-training runs, including throughput baselining, weak-scaling tests, long-duration stability testing, and scheduler integration. The goal is to show how a small but complete training loop can verify hardware reliability, software-stack maturity, distributed communication correctness, and training engineering capability.

    1. Background: Why LLM Training Needs Validation on Domestic Compute

    As large language model parameter scales continue to rise, training demand for compute is growing exponentially. For a long time, high-end training compute has been highly concentrated in the accelerator ecosystems of a small number of international vendors, making supply-chain stability and cost controllability practical concerns for many R&D teams. In this context, whether domestic GPUs can truly support the full LLM training pipeline, rather than only inference or fine-tuning, has become a key measure of domestic compute maturity.

    Recently, a team completed an end-to-end validation of an LLM training pipeline on a domestic GPU cluster. Using a two-node, 16-GPU configuration, the team ran 400 training steps stably, covering all core stages: forward computation, backpropagation, gradient synchronization, optimizer updates, and checkpoint saving. Although the scale was small, the significance of this validation lies in closing the complete loop from data loading to weight updates, demonstrating that domestic compute has the foundational capability to support large-scale pre-training.

    2. Two Nodes and 16 GPUs: A “Just Right” Validation Scale

    Why choose two nodes and 16 GPUs, rather than a single node with 8 GPUs or a larger scale? There are clear engineering considerations:

    1. Cover cross-node communication. Single-node 8-GPU training can only validate inter-GPU interconnect, such as PCIe or a custom interconnect bus, while real pre-training inevitably involves multiple nodes. A two-node configuration can fully test cross-node communication links, including gradient AllReduce, parameter synchronization, and clock alignment between nodes.

    2. Exclude interference caused by scale-up. In early validation, an overly large cluster complicates troubleshooting—network jitter, single-point failures, scheduling anomalies, and other factors become mixed together, making root causes difficult to locate. Small-scale validation follows the principle of “make it work first, then scale it up,” which is a standard path in distributed training engineering practice.

    3. Cost control. Training for 400 steps consumes limited compute but can expose most adaptation-level issues, offering a high return on investment.

    3. Key Technical Stages in the Training Pipeline

    1. Parallel Strategy Selection

    At the 16-GPU scale, a common combination is a hybrid of data parallelism (DP) and tensor parallelism (TP). In general:

    • Data parallelism: Each GPU holds a complete model replica and processes different data shards, with gradients aggregated through AllReduce. It is simple to implement and has regular communication, making it suitable as a baseline strategy.
    • Tensor parallelism: Splits the weights of a single layer across multiple GPUs, suitable for large model layers that do not fit on a single GPU. However, it introduces a large amount of high-frequency communication and places high demands on inter-GPU interconnect bandwidth.
    • Pipeline parallelism (PP): Splits the model by layers, suitable for very deep networks, but introduces pipeline bubbles. It is usually not prioritized during small-scale validation.

    Illustrative distributed initialization logic:

    1. # Pseudocode: hybrid parallelism initialization
    2. dist.init_process_group(backend="hccl-like-backend") # Use the platform's companion communication backend
    3. world_size = 16
    4. tp_group, dp_group = setup_parallel_groups(world_size, tp_degree=4)
    5. model = DTPWrapper(model, tp_group)
    6. dataloader = DistributedSampler(dataset, dp_group)

    2. Operator and Framework Adaptation

    The biggest engineering challenge for domestic GPUs lies in the software stack. LLM training involves hundreds of operators, including various Attention variants, normalization layers, and fused optimization operators. During pipeline validation, it is important to confirm:

    • Whether the numerical precision of high-frequency operators meets requirements, based on the error range under the same inputs compared with a reference implementation;
    • Whether low-precision computation in mixed-precision training, such as BF16/FP16, is stable;
    • Whether automatic differentiation correctly handles custom operators;
    • Whether the collective communication library provides complete communication operators, including AllReduce, Broadcast, and AllGather.

    3. Gradient Synchronization and Numerical Consistency Validation

    The most error-prone issue in cross-GPU training is numerical consistency. A standard practice is to introduce a “gradient alignment test” during validation: under the same data and the same random seed, run several steps in both the reference environment and the target environment, then compare the loss curve and weight hash at each step. If the loss curve decreases smoothly without abnormal oscillation during 400 training steps, it usually means the backpropagation and gradient synchronization links are correct.

    4. Training Stability and Fault Tolerance

    Long-cycle pre-training depends on checkpoint-resume capability. Validation needs to confirm:

    • The integrity of checkpoint saving and restoration, including optimizer state and learning rate scheduler state;
    • The task migration and recovery mechanism when a single GPU fails;
    • Whether log aggregation and monitoring metrics during multi-node training, such as per-GPU throughput, communication time proportion, and GPU memory usage, can be collected normally.

    4. From 400 Steps to Large-Scale Training: A Scaling Roadmap

    Completing 400 steps is only the starting point. From an engineering perspective, scaling usually follows this path:

    1. Throughput baseline measurement: Count the number of tokens processed per second per GPU, calculate MFU (model compute utilization), and determine whether hardware efficiency is within a reasonable range;
    2. Weak-scaling tests: Scale from 16 GPUs to 64 GPUs and 256 GPUs, and observe whether the communication overhead proportion remains controllable;
    3. Long-duration stability testing: Run continuously for several days to check for hidden issues such as memory leaks, GPU memory fragmentation, and abnormal process exits;
    4. Scheduler integration: Integrate with cluster schedulers, object storage, monitoring, and alerting infrastructure to form a training platform capable of long-term operation.

    5. Conclusion

    Two nodes and 16 GPUs completing 400 steps is not a large number, but it validates a complete chain: hardware reliability, software-stack maturity, distributed communication correctness, and training engineering capability. For the domestic compute ecosystem, end-to-end milestones of this kind are more convincing than single-point performance benchmarks. It is reasonable to expect that, as operator libraries, compiler optimization, and collective communication continue to improve, domestic GPUs will take on increasingly important roles in larger-scale pre-training tasks.