Engineering Practices for Large Model Training Adaptation on Domestic GPUs: From Single-Card Inference to Cross-Node Stable Training

    This article explores the engineering practices of training adaptation for trillion-parameter large models on domestic GPUs. It breaks down the core technical pipelines, numerical stability verification, and the engineering systems required for full-link training, providing a technical reference for supporting frontier large model training on non-CUDA software stacks.

    Recently, a domestic GPU manufacturer disclosed the successful training adaptation of an open-source flagship large model with nearly 3 trillion parameters using its flagship AI training and inference card and self-developed software stack. In a cross-node environment with two machines and 16 cards, 16 training processes continuously completed 400 optimizer updates. Throughout the process, loss and gradient norms remained finite, with no numerical overflow or abnormal interruption. This progress has sparked widespread industry discussion on whether domestic computing power can support frontier large model training. Using this case as a starting point, this article dissects the core stages, common challenges, and engineering verification methods of large model training adaptation from a general technical perspective.

    First, a common misunderstanding must be clarified: completing training adaptation does not mean the model was pre-trained on these chips. Training adaptation generally refers to ensuring the model can correctly execute forward, backward, and optimizer updates on specific hardware and software stacks, with sufficient verification to guarantee numerical correctness and long-term stability. The choice of computing power for the base model’s pre-training depends on the trainer’s strategic selection, which is a completely different issue. The commonly seen “Day 0 adaptation” in the industry often focuses on inference operator verification. In contrast, the case discussed here demonstrates full-link training verification from model loading to gradient synchronization, indicating a significant difference in technical depth.

    I. Core Technical Pipeline of Training Adaptation

    A complete large model training adaptation typically requires mastering the following key links:

    1. Model Loading and Weight Sharding: The weights of a trillion-parameter model far exceed the memory capacity of a single card. Solutions like Fully Sharded Data Parallel (FSDP) are required to shard parameters, gradients, and optimizer states across multiple cards, performing all-gather and reduce-scatter on demand during forward and backward calculations. Compared to traditional DP+ZeRO solutions, FSDP2-style implementations embed sharding logic at the module level, which is friendlier to heterogeneous structures like multimodal models.
    2. Parallel Strategy Orchestration: Beyond data parallelism, it requires combining Tensor Parallelism (TP), Pipeline Parallelism (PP), and Expert Parallelism (EP). For Mixture of Experts (MoE) models, expert weight distribution and load balancing are primary challenges. Fine-grained EP solutions require routing calculations and expert communication to be correctly implemented on heterogeneous operators.
    3. Operator and Precision Adaptation: Mixed precision training relies on the combination of BF16/FP16 and FP32 master weights, involving a massive number of fused operators (such as fused LayerNorm, Rotary Position Embedding, and FlashAttention-based attention implementations). Each operator must undergo numerical precision alignment verification on the target hardware.
    4. Communication Optimization: Cross-node training is extremely sensitive to the bandwidth and latency of collective communication. It requires systematic tuning for gradient bucketing, computation-communication overlap, and communication compression.

    A typical training launch structure is shown below:

    1. # Typical launch form for 16-card distributed training across two machines (illustrative)
    2. launch --nnodes=2 --nproc-per-node=8 \
    3. --rdzv-endpoint=$MASTER_ADDR:29400 \
    4. train.py --model-path=$MODEL_DIR \
    5. --sharding-strategy=fsdp2 \
    6. --dtype=bfloat16 \
    7. --activation-checkpointing=true

    II. Numerical Stability: The Litmus Test for Training Verification

    Inference verification only requires reasonable output results, whereas training verification demands that the numerical trajectory after multiple update steps is reproducible and comparable. Key verification metrics include:

    • Loss Curve: The initial loss steps should show an expected downward trend, with relative deviation from reference implementations (e.g., running the same configuration on mainstream GPUs) kept within an acceptable range.
    • Gradient Norm: It must remain finite and at normal magnitudes throughout. Sudden spikes or NaNs often indicate precision defects in the backward implementation of certain operators.
    • Optimizer States: The first and second moments of Adam-class optimizers must be maintained in FP32 within a BF16 environment. State updates at the sharding boundaries must be strictly consistent.

    Completing 400 consecutive steps without overflow or interruption on a dual-machine, 16-card setup indicates that the adaptation has passed the most basic stability threshold. However, this must be viewed objectively: compared to the tens of thousands of steps and months-long cycles typical of full pre-training, 400 steps is merely a short-term verification. It proves that the “training link is correct and short-term stable.” To support full pre-training, capabilities like long-term stress testing, fault tolerance, and checkpoint resumption still need to be fleshed out.

    III. From Adaptation to Engineering Systems

    A single successful adaptation is only the starting point. What truly determines the viability of domestic computing power is the underlying engineering system:

    1. Automated Operator Verification Pipeline: Establish numerical alignment tests against reference implementations for every new operator, covering boundary shapes and anomalous inputs.
    2. Multi-Card Collaborative Test Matrix: Batch construct test cases based on different parallel combinations (DP×TP×PP×EP) to automatically compare gradient consistency.
    3. Fault Drills and Elastic Recovery: Automatic rescheduling after training interruptions, recovery from the latest checkpoint, and node-level degraded operation.
    4. Observability: Continuous tracking of communication wait times, memory watermarks, and MFU (Model Flops Utilization) leveraging general infrastructure like logging services and monitoring alerts.

    Public information indicates that this manufacturer has previously implemented multiple practices of “domestic chips training domestic models.” This includes full training from scratch for a 100-billion-parameter scientific foundation model, full-stack native training for world models, and full-process training for embodied AI models, and is currently advancing towards training trillion-parameter models. This evolutionary path holds universal reference value: polishing the training stack on small-to-medium-scale models first, and then gradually scaling up to verify, is a prudent strategy to control risk.

    IV. Industry Insights and Outlook

    Supporting large model training with domestic computing power is essentially an “ecosystem catch-up war for software stacks.” The CUDA ecosystem has accumulated over a decade of development; domestic hardware and software stacks require continuous investment to fully align in operator coverage, framework compatibility, debugging toolchains, and cluster stability. Meanwhile, the release of open-source large models objectively provides a valuable “verification benchmark” for domestic hardware. The ability to quickly and correctly complete full-link training adaptation has become a public yardstick for measuring the maturity of domestic training stacks.

    Future directions include: continuously refining the complete capabilities from operator adaptation and multi-card collaboration to automated toolchains, distilling manual tuning experience into one-click configurations; promoting native optimizations for mixed precision strategies, communication primitives, and cluster scheduling tailored to domestic hardware characteristics; and accepting community scrutiny through public technical reports to gradually establish reproducible and auditable verification standards. When “out-of-the-box training” becomes a standard capability of fully functional domestic GPUs, the domestic large model industry can truly shed its dependence on a single computing power supply path, forging a more resilient computing ecosystem.