Running LLM Training Pipelines on Domestic GPUs: A Technical Breakdown

    A Chinese GPU vendor recently completed an end-to-end LLM training run—400 stable iterations across 16 accelerator cards on a two-node cluster—demonstrating that a complete training stack (operators, parallelism, communication, mixed precision) can run on domestic hardware. This article analyzes the core engineering challenges behind such validation work: operator and framework adaptation, distributed communication, memory optimization, numerical correctness verification, and the gap between a proof-of-concept run and large-scale pretraining.

    1. Background: Where Domestic Compute Meets LLM Training

    Demand for large language model training keeps rising, and the supply landscape for training compute is shifting. A growing number of domestic GPU platforms are attempting to carry the full LLM training pipeline—from pretraining to fine-tuning—gradually validating their usability and stability in large-scale parallel computing scenarios.

    Recently, one Chinese GPU vendor announced a milestone: on a two-node cluster with 16 accelerator cards, it completed an end-to-end training run of an open-source LLM (K3.1 Pro specification), executing 400 training iterations stably. While 400 steps is far from the hundreds of thousands required for full pretraining, the significance lies elsewhere—it proves that the complete software stack required for LLM training (model definition, parallelism strategies, communication frameworks, mixed precision) can run end to end on this hardware platform.

    This article does not review any specific product. Instead, it uses this practice as a starting point to systematically analyze the core technical problems that must be solved to run LLM training on heterogeneous or domestic compute, and the typical engineering path such validation follows.

    2. Why “400 Steps” Is a Meaningful Milestone

    Many will ask: what can 400 training steps actually prove? From an engineering perspective, stably completing a few hundred steps means several critical links are already working:

    1. Operator-level compatibility. LLM training involves thousands of operators (Attention, LayerNorm, various activation functions, optimizer update operators, etc.). Any missing or numerically incorrect critical operator causes training failure or non-converging loss. Completing training means the operator library has reached a usable level of coverage.

    2. Distributed parallelism framework adaptation. Modern LLM training combines multiple parallelism strategies: data parallelism (DP), tensor parallelism (TP), and pipeline parallelism (PP). A two-node, 16-card setup necessarily involves cross-node tensor or pipeline parallelism, which demands correctness and performance from collective communication libraries (AllReduce, AllGather, ReduceScatter, etc.).

    3. Mixed precision and numerical stability. LLM training typically relies on BF16/FP16 mixed precision. The accelerator’s matrix compute units must correctly support these precisions, and mechanisms like loss scaling and gradient accumulation must be numerically reliable.

    4. An end-to-end training loop. Forward pass, loss computation, backpropagation, gradient synchronization, optimizer update, checkpoint saving—this complete loop running continuously without crashing is itself evidence of software stack maturity.

    In other words, 400 steps combine a smoke test with a stability check: the first few dozen steps verify correctness, while the remaining steps verify whether hidden issues—memory leaks, communication deadlocks, numerical overflow—emerge under sustained load.

    3. Core Technical Challenges in Adapting LLM Training

    3.1 Operator and Framework Adaptation

    Mainstream LLM training frameworks are built on a major AI framework whose lower layers depend on hardware-specific operator implementations. On domestic GPUs, there are typically three adaptation paths:

    • Native operator rewriting: Reimplementing key operators on the new instruction set—best performance, but high effort;
    • Compiler intermediate-layer approach: Using operator compilation technology to automatically compile high-level operator descriptions to the target hardware, balancing development efficiency and performance;
    • Graph-mode compatibility layer: Capturing and translating the training framework’s computation graph to reuse existing general-purpose implementations.

    In practice, these are used in combination: high-frequency core operators (such as matrix multiplication, Softmax, RMSNorm) get deep optimization, while long-tail operators fall back on general implementations. A useful validation method is to examine the ratio between operator coverage and training throughput—core operators usually account for a small fraction of operator types but contribute the vast majority of computation.

    3.2 Communication Pressure in Distributed Parallelism

    With two nodes and 16 cards, inter-node communication bandwidth is often the bottleneck. Take tensor parallelism: each Transformer layer’s forward and backward passes require AllReduce or AllGather operations, with communication volume proportional to hidden dimension and sequence length. Common optimizations include:

    1. # Illustration: gradient bucketing with compute-communication overlap (pseudocode)
    2. for bucket in grad_buckets:
    3. bucket.all_reduce(async=True) # launch communication asynchronously
    4. # While communication is in flight, continue backpropagation on other layers
    5. overlap_backprop_with_communication()
    • Gradient bucketing: Merging many small gradients into larger communication units to reduce per-call overhead;
    • Compute-communication overlap: During backpropagation, layers that finish computing first initiate their reductions first;
    • Topology-aware parallelism partitioning: Confining the most communication-intensive dimension (e.g., tensor parallelism) within a node, while using lower-traffic strategies (pipeline or data parallelism) across nodes.

    3.3 Memory and Long-Sequence Trade-offs

    Memory pressure during training comes from three sources: model parameters, optimizer states, and activations. Typical mitigation techniques include:

    • ZeRO-style sharding of parameters, gradients, and optimizer states;
    • Activation recomputation, trading extra compute for memory;
    • FlashAttention-style tiled attention computation, reducing the memory footprint of attention intermediates.

    Whether these mechanisms are correctly implemented directly determines how large a model and how long a sequence can be trained with a limited number of cards.

    4. Methodology for Verifying Training Pipeline Correctness

    Running without errors is not enough—numerical correctness must also be verified. Common industry practices include:

    1. Small-scale baseline alignment: Run a few hundred steps with identical configuration on a mature platform, record the loss curve as a baseline, then reproduce it on the target platform and compare whether the loss trajectories match (within floating-point tolerance).
    2. Gradient consistency checks: Fix random seeds and compare backward gradient values layer by layer.
    3. Convergence verification: Run a short, complete training of a small model and check whether the final loss reaches a comparable level, ruling out hidden numerical issues where training “runs but doesn’t converge.”
    4. Long-duration stability testing: Run continuously for tens of hours, monitoring memory usage, card temperatures, and communication latency to detect leaks and throttling.

    5. The Distance from 400 Steps to Scaled Training

    It is important to be objective: a 400-step run on 16 cards remains far from supporting real pretraining workloads:

    • Scale-up: Real pretraining often requires hundreds to thousands of cards, involving communication scheduling across multi-level network topologies, fault recovery, and elastic scaling;
    • Fault tolerance: Hardware failures are routine at scale, requiring automated checkpoint recovery, node exclusion, and job restart mechanisms;
    • Toolchain maturity: The completeness of supporting tools—profiling, operator-level tuning, data pipelines—determines R&D efficiency;
    • Throughput efficiency: A key metric is model FLOPs utilization (MFU); domestic platforms generally need continued optimization to approach the levels of mature ecosystems.

    Therefore, the 400-step validation is more accurately positioned as “technical feasibility confirmation”—a breakthrough from 0 to 1. Going from 1 to N requires long-term, coordinated hardware-software investment.

    6. Conclusion

    Running a full LLM training pipeline on a domestic GPU platform marks the extension of domestic compute from inference into training scenarios. Completing 400 training steps on two nodes and 16 cards validates the basic usability of operators, parallelism, communication, and numerical stability—a necessary starting point toward scaled training. For developers and enterprise users, focusing on adaptation methods for heterogeneous compute—operator coverage, communication optimization, correctness verification—holds more long-term value than any single news headline. As software stacks continue to mature, multi-path compute supply will likely become the norm for LLM training infrastructure.