Engineering Practices for Running the Full LLM Training Pipeline on Domestic GPUs
This article examines a representative industry milestone: a domestic GPU vendor completing a full large language model training run on its self-developed accelerator cards using a two-node, 16-card setup for 400 stable training steps. Stripping out vendor-specific details, it explains the general engineering methodology behind such small-scale training validation, including hardware topology, 3D parallelism design, software stack adaptation, training stability metrics, and the path from small-scale validation to production-grade training.
Engineering Practices for Running the Full LLM Training Pipeline on Domestic GPUs
A recent industry development is worth noting: a domestic GPU vendor has run the complete training pipeline of a mainstream large language model on its self-developed accelerator cards. Using a two-node setup with 16 cards in total, the run stably completed 400 training steps. Although the scale is modest, it sends an important signal—domestic compute platforms are moving from “inference-capable” to “training-capable” in the high-barrier scenario of LLM training. This article removes vendor and product specifics and analyzes, from a general technical perspective, the engineering methodology behind this kind of small-scale training validation.
1. Why Small-Scale Training Validation Matters
Many developers may wonder: two nodes with 16 cards and 400 training steps seem trivial in an era of thousand-GPU clusters. Why is this worth validating at all? The answer lies in the logic of engineering validation.
First, the training pipeline is an order of magnitude more complex than inference. Inference only requires forward computation, while training requires a complete loop of forward pass, backpropagation, gradient aggregation, and parameter updates—involving communication, memory management, mixed precision, optimizer state synchronization, and more. If any single operator is missing or produces precision anomalies on new hardware, the entire pipeline breaks. Successfully running training is therefore the strictest litmus test for a compute platform’s maturity.
Second, 400 steps are enough to expose most stability issues. Whether the loss curve declines as expected in early training, whether gradients explode or vanish, whether multi-GPU communication synchronizes correctly, and whether memory leaks exist—all these critical health indicators become apparent within the first few hundred steps. If the loss converges smoothly within 400 steps with no hardware errors, the pipeline can be considered functionally reliable.
Third, small-scale validation is a necessary prerequisite for large-scale training. No team launches its first experiment directly on a thousand-GPU cluster. The standard engineering workflow is: single GPU first → single node with multiple GPUs to validate parallel logic → two nodes to validate cross-node communication → gradual scaling to the target size. Two nodes with 16 cards is precisely the minimum reasonable configuration for validating cross-node communication.
2. Hardware and Topology: What Two Nodes with 16 Cards Mean
In a two-node, 16-card setup, each server hosts 8 accelerator cards, and the two nodes are interconnected via a high-speed network. This topology creates two communication domains:
- Intra-node communication: The 8 cards within a node typically communicate over a high-speed chip-to-chip interconnect, offering high bandwidth and low latency—ideal for communication-heavy parallelism dimensions.
- Inter-node communication: Cross-node traffic goes over an RDMA network (e.g., a RoCE-based solution), where bandwidth is relatively limited and communication volume should be minimized.
This topology directly shapes the design principles of the parallel strategy: keep the most communication-intensive parallelism (such as tensor parallelism) within a node, and place lower-volume parallelism (such as data parallelism or inter-stage activation transfers in pipeline parallelism) across nodes.
3. Parallelism Design: The Art of Combining 3D Parallelism
For LLMs at the ten-billion-parameter scale, a single card’s memory cannot hold the full model weights, gradients, and optimizer states, making multi-dimensional parallelism essential. A typical combination on two nodes with 16 cards is:
1. Tensor Parallelism (TP): Splits the weight matrices of individual layers across multiple cards. Each layer’s forward and backward passes require All-Reduce communication. Given this extremely high communication frequency, TP is usually set to 8, filling exactly one node’s 8 cards without crossing nodes.
2. Pipeline Parallelism (PP): Splits the model by layers into stages, with different nodes handling different stages. Cross-node PP communication only occurs at stage boundaries when activations are passed—a small data volume well suited for inter-node links. With two nodes, PP = 2 is the natural choice.
3. Data Parallelism (DP): Partitions data across the remaining dimension, with each replica computing independently and then synchronizing gradients. Under the above configuration, DP = 16 / (8 × 2) = 1, meaning no data parallelism. For smaller models, TP/PP can be reduced to free up the DP dimension and improve throughput.
Additionally, for memory-constrained scenarios, optimizer state sharding can be introduced, distributing optimizer states across cards within a data-parallel group to significantly reduce per-card memory usage. This is now a widely recognized standard technique for memory optimization.
4. Software Stack Adaptation: The Core Challenge on New Hardware
When running training on accelerator cards with a non-mainstream architecture, the bulk of the work often lies not in the parallelism strategy itself but in software stack adaptation:
Operator coverage: LLM training involves hundreds of operators, including matrix multiplication, various normalizations, attention mechanisms, activation functions, and their backward counterparts. Any missing operator or substandard precision can cause training to diverge. Engineering practice typically requires operator-level alignment tests, comparing outputs one by one against a mature platform as the reference baseline.
Communication library: Collective communication across GPUs (All-Reduce, All-Gather, Reduce-Scatter, etc.) requires a communication library deeply optimized for the hardware interconnect topology. Capabilities such as cross-node RDMA initialization, multi-stream concurrency, and topology-aware routing directly affect training throughput.
Fused operators and memory optimization: Attention computation typically uses tiled, fused implementations to reduce memory usage and improve efficiency. Selective recomputation (gradient checkpointing) trades roughly 30% additional compute for substantial memory savings—a common trade-off in memory-constrained scenarios.
Precision alignment: Under mixed-precision training, it is necessary to confirm the hardware’s support for formats such as BF16 and to verify end-to-end precision correctness by comparing loss curves against a reference implementation. The consistency of the loss trajectory over the first few hundred steps is the most direct evidence of adaptation quality.
5. Training Stability Monitoring and Validation Metrics
Once the pipeline runs, how do you judge whether it runs well? The following metrics are recommended:
| Category | Key Content | Healthy Standard |
|---|---|---|
| Convergence | Loss curve, gradient norm | Steady decline, no spikes or divergence |
| Throughput | Step time, tokens/s, MFU | Reasonable utilization of hardware compute |
| Communication | Share of time in collectives | No cross-node communication bottleneck |
| Hardware | Memory usage, temperature, power | No leaks, no thermal throttling |
| Fault tolerance | Checkpoint resume validation | Correct recovery from checkpoints |
Checkpoint resume capability is often overlooked but is critical for long-running training jobs: save checkpoints periodically during training, simulate failure recovery during validation, and confirm that the loss curve resumes seamlessly after restoration.
6. The Path from Small-Scale Validation to Production
After completing the two-node, 16-card pipeline validation, evolving toward production-grade training typically follows this path:
- Scaling out: Replicate nodes with the same topology and verify the linearity of communication performance as the scale grows;
- Efficiency tuning: Improve MFU through communication-computation overlap, operator fusion, and re-partitioning of the parallel strategy;
- Engineering infrastructure: Integrate general-purpose log services, monitoring and alerting, and object storage to achieve checkpoint persistence, automatic fault detection, and automatic job restart;
- Cost evaluation: Build a throughput-to-cost model to assess the per-unit training cost under different parallel configurations.
Throughout this process, the general-purpose capabilities provided by cloud platforms—container orchestration, high-performance storage, and monitoring/alerting—can significantly reduce the operational burden of self-built training infrastructure, allowing teams to focus on models and data.
7. Conclusion
“Two nodes, 16 cards, 400 steps” may look modest, but it is in fact comprehensive proof that the compute platform, training framework, parallel algorithms, and communication optimization all work together across the full technology stack. For developers, mastering the methodology of “validate small first, scale step by step, monitor the full pipeline” is far more valuable than focusing on any specific configuration. As the domestic compute ecosystem continues to mature, this kind of training pipeline validation will become part of everyday engineering practice for more and more teams—and the range of compute choices available for LLM training will broaden accordingly.
