Running LLM Training on Domestic Compute: Validating a Full Training Pipeline on a 2-Node, 16-GPU Cluster

    This article explains a recent engineering milestone: a domestic general-purpose GPU platform completed an end-to-end validation of a 100B-parameter-class open-source LLM training pipeline on a two-node, sixteen-accelerator cluster, stably running 400 training steps. It covers why short-run validation matters, how data/tensor/pipeline parallelism are combined under hardware constraints, key technical work such as operator adaptation, collective communication optimization, numerical accuracy checks and fault tolerance, and the remaining challenges on the path to large-scale training.

    1. Background: Why LLM Training Is the “Litmus Test” for Domestic Compute

    Training large language models is a system-level engineering challenge that demands tight hardware-software co-design. It tests not only the peak compute of a single accelerator, but also multi-GPU interconnect bandwidth, cross-node communication efficiency, distributed scheduling stability, and the maturity of the entire software stack. As a result, whether a mainstream-scale LLM’s complete training pipeline can run end-to-end on domestic accelerator hardware is widely regarded as a key indicator of that platform’s engineering readiness.

    A recent industry development drew attention: a domestic general-purpose GPU platform completed an end-to-end validation of a 100B-parameter-class open-source LLM training pipeline on a cluster of two nodes with sixteen accelerators in total, stably running 400 training steps. Although this was a small-scale pipeline validation rather than full training, its significance lies in connecting the entire workflow—“data loading → distributed partitioning → forward/backward computation → gradient synchronization → optimizer update → checkpoint resume”—and demonstrating the feasibility of the hardware-software stack under real LLM workloads.

    2. Why “400 Steps” as the Validation Target

    Fully training a 100B-parameter model typically requires weeks or even months of compute, making direct full-scale training extremely risky. Engineering practice commonly adopts a “progressive validation” strategy, in which a short 400-step run is a critical milestone. Its validation value includes:

    1. Verifying computational correctness: By observing whether the training loss decreases smoothly and gradient norms behave normally, engineers can judge whether operator implementations are numerically correct—especially whether precision loss under mixed-precision training stays under control.
    2. Verifying the communication path: In multi-node, multi-GPU setups, cross-node gradient synchronization is the most failure-prone stage. A short run is enough to expose communication timeouts, topology detection failures, and underperforming bandwidth.
    3. Verifying memory headroom: Confirming that activations, optimizer states, and KV cache usage stay within expected ranges, without out-of-memory errors or hidden fragmentation.
    4. Verifying fault-tolerance mechanisms: Checking whether periodic checkpointing, job recovery, and node failure detection actually work.
    5. Verifying throughput metrics: Obtaining real per-GPU and per-node throughput figures to support cost estimation and schedule forecasting for full-scale training.

    3. Distributed Parallelism Design for 2 Nodes × 16 GPUs

    Training a very large model under the constraint of two nodes and sixteen GPUs requires combining multiple parallelism strategies. Common industry approaches include:

    1. Data Parallelism

    The global batch is split across multiple replicas; each replica runs forward and backward computation independently, then gradients are synchronized via AllReduce. Data parallelism is simple to implement and scales well, making it the primary driver of throughput.

    2. Tensor Parallelism

    Individual operators—such as the large matrix multiplications in attention layers and feed-forward networks—are partitioned across multiple GPUs for parallel computation. Tensor parallelism is highly sensitive to inter-GPU bandwidth and is therefore usually deployed within a single node, leveraging high-speed intra-node interconnects for frequent communication.

    3. Pipeline Parallelism

    The model is vertically partitioned by layer depth into multiple stages distributed across different devices, with micro-batch scheduling used to hide pipeline bubbles. Pipeline parallelism is well suited to cross-node deployment because it only transfers activations, with far less communication volume than tensor parallelism.

    In a typical two-node, sixteen-GPU configuration, a reasonable combination is: tensor parallelism within each node to improve per-layer compute efficiency, pipeline parallelism across nodes to reduce communication pressure, and data parallelism for the remaining scaling. An illustrative configuration:

    1. # Illustrative distributed parallelism configuration (pseudocode)
    2. parallel_config = {
    3. "tensor_parallel": 4, # 4-way tensor parallelism within a node
    4. "pipeline_parallel": 2, # 2-stage pipeline across nodes
    5. "data_parallel": 2, # number of data-parallel replicas
    6. }
    7. # 4 x 2 x 2 = 16 GPUs

    4. Memory Optimization Techniques

    • ZeRO sharding: Partitions optimizer states, gradients, and parameters across devices, significantly reducing parameter redundancy;
    • Activation recomputation: Trades forward-computation time for memory by recomputing necessary activations during backpropagation;
    • Mixed-precision training: Executes matrix multiplications in low-precision formats while keeping a high-precision master copy of weights to ensure numerical stability.

    4. Key Technical Stages in Building the Training Pipeline

    1. Operator Adaptation and Graph Compilation

    The training framework must map the model’s computation graph onto low-level hardware instructions. A domestic accelerator platform needs high-performance implementations of core operators—matrix multiplication, attention, LayerNorm, optimizer kernels, and more—plus compilation optimizations that fuse operators and reduce memory access overhead. This is the foundation of the whole pipeline and one of the most labor-intensive stages.

    2. Communication Library and Collective Communication Optimization

    Cross-node training depends on efficient collective communication. Engineers must ensure that primitives such as AllReduce, AllGather, and ReduceScatter saturate available bandwidth on both intra-node and cross-node topologies, while configuring communication groups sensibly to avoid contention. Common optimizations include gradient bucketing to improve bandwidth utilization and overlapping computation with communication to hide synchronization latency.

    3. Numerical Accuracy Verification

    During short-run validation, the loss curve on the domestic GPUs is typically compared against a reference implementation to confirm that numerical deviation stays within an acceptable range. If the loss diverges or fluctuates abnormally, engineers must investigate operator precision, random seed consistency, gradient clipping logic, and related issues one by one.

    4. Stability and Fault Tolerance

    The usability of long-running training depends on fault tolerance. The pipeline validation stage must confirm that periodic checkpoints are saved correctly, that the loss curve connects seamlessly after resuming, and that single-GPU failures are detected promptly with support for restarting from checkpoints.

    5. From 400 Steps to Large-Scale Training: Challenges Ahead

    Running a short pipeline is only the starting point. Reaching true large-scale training requires addressing:

    • Long-term stability: Slow nodes, performance jitter, and precision drift over thousands or tens of thousands of steps require continuous monitoring and automated handling;
    • MFU improvement: Actual hardware utilization still lags peak performance and must be pushed closer through operator tuning, communication overlap, and scheduling optimization;
    • Ecosystem maturity: The depth of adaptation between mainstream training frameworks, operator libraries, debugging toolchains, and domestic hardware determines developers’ migration costs;
    • Cluster scaling: Moving from sixteen GPUs to hundreds or thousands raises failure rates, demanding stronger elastic scheduling and automatic recovery from the training framework.

    6. Conclusion

    Running 400 training steps on two nodes with sixteen GPUs is fundamentally an “engineering feasibility validation.” It answers the question of whether domestic compute can be used; whether it is good to use and cost-effective still needs to be proven in longer, larger-scale practice. For technical teams, the reference value of such progress lies in the methodology it reveals: progressive validation, layered parallelism combinations, numerical accuracy verification, and fault-tolerance system design—experience that applies universally to LLM training on any heterogeneous compute platform. As hardware-software co-optimization continues to deepen, the usability and efficiency of domestic compute in LLM training scenarios will keep improving, offering the industry more diverse compute options.