Running End-to-End LLM Training on Domestic GPU Clusters: A Practical Breakdown

    This article examines a practical validation case in which a domestic GPU platform completed the full training chain for large models ranging from tens of billions to hundreds of billions of parameters, running 400 stable training steps on 16 GPUs across two nodes. It explains why training validation is more demanding than inference deployment, why a two-node 16-GPU setup is a representative starting scale, and which engineering areas matter most: software stack adaptation, operator alignment, communication and network configuration, memory optimization, data pipeline stability, and monitoring. It also outlines how to evaluate whether a training run has truly been validated and what reusable lessons teams can apply when building LLM training environments on heterogeneous compute.

    Running End-to-End LLM Training on Domestic GPU Clusters: A Practical Breakdown

    Introduction

    As large model parameter counts continue to grow, training compute demand rises exponentially. A single supply channel can no longer meet the diverse training needs of the industry. Against this backdrop, building a usable, stable, and efficient large model training environment on domestic GPU platforms has become a focus for many enterprises and R&D teams.

    A recent practical case showed that a domestic GPU platform successfully completed the full training chain for large models ranging from tens of billions to hundreds of billions of parameters. At a scale of two nodes and 16 GPUs, it completed 400 training steps stably. This article uses that case as a reference to systematically break down the technical path and engineering priorities for large model training on domestic heterogeneous compute.

    It is worth noting that “completing 400 steps” may look like a modest number. What it validates, however, is whether the entire software stack—from hardware drivers, operator libraries, and communication libraries to the training framework—is truly connected and working. This is far more complex than simply running inference.

    1. Why Focus on the “Training Chain” Rather Than “Inference Deployment”

    Inference and training have fundamentally different requirements for hardware platforms. Inference mainly tests the forward computation capability of operators and memory bandwidth. Training additionally involves:

    • Full operator support for backpropagation: Every forward operator needs a corresponding gradient computation implementation, and its numerical behavior must align strictly with the forward pass. Otherwise, convergence anomalies may occur.
    • Multi-GPU and multi-node communication: During training, gradient synchronization, parameter sharding, and activation recomputation rely heavily on the correctness and performance of collective communication primitives such as AllReduce, AllGather, and ReduceScatter.
    • More complex memory management: Training must hold model weights, gradients, optimizer states, and intermediate activations at the same time. Memory pressure is usually several times higher than in inference.
    • Long-running stability: Training jobs can run for days or even weeks, imposing much higher requirements on drivers, communication libraries, and hardware reliability than short inference calls.

    Therefore, completing hundreds of stable training steps on domestic GPUs means the platform has reached a level that can support real training tasks in terms of operator coverage, communication correctness, memory scheduling, and fault tolerance.

    2. Two Nodes and 16 GPUs: A Representative Validation Scale

    Two nodes with 16 GPUs is a representative starting validation scale for three reasons:

    1. Cross-node communication is genuinely activated. Multi-GPU training on a single node mainly relies on intra-node high-speed interconnects. A two-node setup must use inter-node networking, such as RDMA or RoCE, which can expose compatibility and performance issues in the communication library under cross-node conditions.
    2. Parallel strategies must be fully enabled. Training a large model on 16 GPUs usually requires data parallelism, tensor parallelism, and even pipeline parallelism at the same time. This provides a comprehensive test of how well the distributed training framework has been adapted.
    3. The scale is manageable and the cost is acceptable. Compared with large clusters of hundreds of GPUs, a two-node validation has lower cost and is suitable as a first-stage target for evaluating a compute platform.

    A typical parallel configuration approach is shown below. This is an illustrative configuration, not parameters for a specific product:

    1. # Illustrative distributed training parallel configuration
    2. parallel_config = {
    3. "tensor_parallel_size": 8, # 8 GPUs on one node for tensor parallelism
    4. "pipeline_parallel_size": 1, # Pipeline parallelism not enabled for now
    5. "data_parallel_size": 2, # Data parallelism across the two nodes
    6. "gradient_accumulation": 4, # Gradient accumulation to increase effective batch size
    7. }

    3. Five Key Areas in Completing the Training Chain

    1. Software Stack Adaptation and Operator Alignment

    Domestic GPU platforms usually provide programming interfaces compatible with mainstream ecosystems to reduce migration costs. However, “interface compatibility” does not mean “behavioral consistency.” In practice, teams should focus on:

    • Operator coverage checks: List all operators involved in the model architecture, confirm their support on the target platform one by one, and prepare fallback or fused replacement plans for missing operators.
    • Numerical precision alignment: Under mixed-precision training, compare the output of each layer against a reference platform using the same input and random seed. Ensure the error is within an acceptable range to avoid loss divergence in later training stages.
    • Randomness and determinism control: Fix random seeds and disable non-deterministic operators to make issue reproduction and precision comparison easier.

    2. Communication Library and Network Configuration

    In cross-node training, performance bottlenecks are often in communication rather than computation. Engineering practice should cover:

    • Confirming that inter-node networking has enabled efficient transport mechanisms such as RDMA, and verifying actual throughput with bandwidth testing tools.
    • Checking the topology awareness of the communication domain to ensure intra-node communication uses high-speed interconnects and inter-node communication uses the network, avoiding traffic misplacement.
    • Using bucketing and computation-communication overlap strategies for gradient synchronization to hide communication overhead.

    3. Memory Optimization Strategies

    When training large models on 16 GPUs, memory is a resource that must be carefully planned. Common methods include:

    • Optimizer state sharding: Shard optimizer states across different data-parallel ranks to significantly reduce per-GPU memory usage.
    • Activation checkpointing: Trade forward recomputation for memory savings. This can usually save several times the activation memory, at the cost of about 20%–30% additional computation.
    • Gradient accumulation: When the per-step batch size is limited, accumulate gradients over multiple steps to increase the effective batch size while keeping training dynamics unaffected.

    4. Data Pipeline Stability

    The “last mile” of the training chain is data supply. At the two-node scale, teams need to ensure:

    • Data loading uses distributed sampling to avoid different ranks reading duplicate samples.
    • Multi-process prefetching and asynchronous pipelines are used to eliminate GPU idle time caused by IO waits.
    • Corpora undergo unified tokenization and sequence packing to increase the proportion of effective tokens.

    5. Monitoring and Troubleshooting

    Although 400 training steps are not many, they are enough to validate the completeness of the monitoring system. Coverage should include at least:

    • Training metrics: Whether the loss curve, gradient norm, and learning rate schedule match expectations.
    • Hardware metrics: Per-GPU utilization, memory usage, temperature, and power consumption.
    • Communication metrics: The proportion of time spent on collective communication and network bandwidth utilization.
    • Checkpoint resume capability: Save checkpoints regularly and verify that training state is fully consistent after resuming from an interruption.

    4. How to Evaluate the Quality of a “Completed” Run

    Completing 400 steps is only a starting point. Whether a training validation is truly successful can be judged from the following dimensions:

    Evaluation Dimension Focus
    Correctness Whether loss decreases normally and matches the reference curve
    Performance Whether per-step time and compute utilization reach a reasonable level
    Stability Whether the entire run has no crashes, communication timeouts, or memory leaks
    Scalability Whether the parallel configuration can scale smoothly to larger sizes

    In particular, loss curve alignment deserves emphasis: within the first few hundred steps, the loss trajectory on the new platform should be broadly consistent with that on the reference platform. This is the most direct evidence for judging the numerical behavior of operators and communication correctness.

    5. Implications for the Industry

    The value of this practice lies not in a specific number, but in demonstrating the feasibility of the path: domestic compute can support large model training. For enterprises, a reusable migration methodology can be distilled from it: first validate correctness at a small scale, then gradually increase scale and optimize performance, and finally build a complete engineering system covering monitoring, fault tolerance, and checkpoint resume. In this process, mature cloud infrastructure—such as elastic compute scheduling, object storage, container platforms, and monitoring and alerting—can further lower the barrier to building a self-managed training environment and reduce operational costs.

    Conclusion

    Starting from 400 steps on two nodes with 16 GPUs, the large model training capability of domestic GPU platforms is moving from “usable” toward “practical.” For developers, mastering this general methodology—software stack adaptation, parallel strategy design, memory optimization, and stability validation—makes it possible to quickly build reliable training environments regardless of how the underlying hardware changes. In an era of diversified compute, engineering capability is the most certain core competitiveness.