Domestic GPU Large Model Training Adaptation and Stable Training Practices for Trillion-Parameter Models

    This article examines training adaptation for trillion-parameter large models on domestically developed GPUs and explains why a recent two-node, 16-GPU run that maintained stable training for 400 consecutive steps is technically meaningful. It clarifies the difference between training adaptation and base-model pretraining, outlines the core engineering requirements—including model loading, forward and backward computation, gradient synchronization, optimizer updates, sharding, numerical stability, observability, and fault recovery—and discusses what remains necessary for long-term stable training.

    In recent progress, a domestically developed GPU platform completed training adaptation for a trillion-parameter large model and maintained continuous stable training for 400 steps in a two-node, 16-GPU environment. This kind of progress shows that domestic AI compute is moving from isolated validation toward system-level engineering.

    However, training adaptation should not be treated as equivalent to completing base-model pretraining. Adaptation mainly means that the model can perform loading, forward computation, backward propagation, gradient synchronization, optimizer updates, and stability validation on the domestic accelerator platform. Base-model pretraining usually means training from random initialization over a long cycle, based on large-scale corpora, with multiple stages and reproducibility requirements. The two differ in technical complexity, engineering investment, and validation goals.

    1. Core of Training Adaptation: From “Can Load” to “Can Train Stable”

    Once large models reach the trillion-parameter scale, training adaptation is no longer a simple question of whether the model can run. It becomes a system engineering problem involving hardware, drivers, operators, communication, parallel strategies, numerical stability, and observability.

    From the inference deployment perspective, model adaptation mainly focuses on accuracy, throughput, latency, memory usage, and service stability for single forward inference. Training adaptation, however, must handle forward computation, backward propagation, gradients, optimizer states, cross-GPU communication, and anomaly recovery during long-running processes. For ultra-large models, a single accelerator card usually cannot hold the complete parameters, gradients, and optimizer states. Therefore, sharding, parallel strategies, collective communication, and scheduling must be used to organize distributed training.

    Whether a training adaptation effort has succeeded is usually judged by whether the model can complete the following closed loop:

    1. Model structure and weights load correctly.
    2. Parameters, gradients, and optimizer states are sharded according to the chosen strategy.
    3. Required collective communication completes across multiple GPUs and multiple nodes.
    4. Forward computation, loss computation, and backward propagation execute correctly.
    5. The optimizer can update parameters based on gradients.
    6. Key metrics such as loss and gradient norm remain within finite ranges.
    7. Training can continue without numerical overflow, communication failure, or abnormal process interruption.

    Only when these stages are all connected can the model be considered to have the basic conditions for training adaptation and subsequent engineering work on that domestic compute platform.

    2. Main Challenges in Trillion-Parameter Model Training Adaptation

    Compared with ordinary deep learning models, trillion-parameter models face exponentially higher training difficulty. The main challenges appear in the following areas.

    2.1 Memory Pressure and Sharding Strategies

    Model parameters are only part of the storage required for training. During training, the system also needs to store gradients, optimizer states, activations, temporary buffers, communication buffers, and framework runtime overhead. For training tasks that use adaptive optimizers, optimizer states can significantly increase memory usage.

    Therefore, simply increasing the memory of a single GPU does not fundamentally solve the problem. Parameter sharding, gradient sharding, and optimizer-state sharding mechanisms must be introduced.

    The core goal of a sharding strategy is to reduce single-GPU memory pressure while preserving computational correctness, and at the same time avoid communication becoming the new bottleneck. If the sharding granularity is too coarse, communication frequency increases. If the granularity is too fine, computational efficiency may be affected. Training adaptation therefore needs to make comprehensive judgments based on model structure, parallel dimensions, network topology, and hardware capabilities.

    2.2 Multi-GPU and Multi-Node Communication Complexity

    When training scales from a single node to two nodes or multiple nodes, communication complexity increases significantly. Model parameters, gradients, and optimizer states must be synchronized across computing nodes. If network bandwidth is insufficient or topology design is unreasonable, computation may wait for communication, or communication may slow down computation.

    In cross-node training scenarios, the system needs to handle multiple communication patterns, including gradient reduction, parameter broadcast, shard synchronization, and activation communication. To improve efficiency, engineering techniques such as computation-communication overlap, gradient bucketing, communication aggregation, and topology-aware scheduling are commonly used.

    For a medium-scale environment such as two nodes with 16 GPUs, the number of nodes is not extremely large, but it is already enough to expose potential issues in communication paths, memory management, and process coordination.

    2.3 Numerical Stability

    Large-model training usually adopts mixed-precision strategies to balance computational efficiency and memory usage. However, mixed precision also brings risks of numerical instability, such as gradient underflow, abnormal loss values, sudden changes in gradient norm, and overflow in parameter updates. If numerical stability mechanisms are incomplete, training may produce abnormal loss after several steps, non-finite gradients, or even process crashes.

    Common stability techniques include gradient clipping, loss scaling, outlier detection, numerical boundary control, mixed-precision validation, and key-parameter monitoring. For ultra-large training tasks, numerical stability is not an optimization item to be addressed after training ends. It is a foundational capability that must be established during the early stage of training adaptation.

    2.4 Engineering Systems and Automated Toolchains

    Large-scale training is not a one-off run script. It requires a complete engineering system, including environment management, task scheduling, log collection, metric monitoring, fault alerting, checkpoint saving, breakpoint recovery, version management, resource isolation, and training observability. Without these capabilities, even if a model can run for a short period, it is difficult to support long-term stable training.

    Therefore, the final goal of training adaptation is not to complete a short “sprint validation,” but to build a sustainable, reproducible, observable, and recoverable training capability.

    3. Technical Meaning of 400 Consecutive Stable Steps on 16 GPUs Across Two Nodes

    During the process of completing trillion-parameter model training adaptation on domestically developed GPUs, maintaining stable operation for 400 consecutive steps in a two-node, 16-GPU environment is a representative validation result. Its significance lies not only in the training duration itself, but in the fact that it covers several critical stages of the training pipeline.

    First, two nodes with 16 GPUs mean that the training task requires cross-node coordination. Sixteen training processes must jointly participate in data loading, model sharding, forward computation, backward propagation, gradient synchronization, and optimizer updates. This can validate whether the system has basic capabilities for multi-process, multi-node, and cross-GPU communication.

    Second, 400 consecutive optimizer updates mean that the system has not merely completed a single forward pass or a single parameter update, but has entered a continuous iterative state. Optimizer updating is a key step that distinguishes training from inference, and it is also a core capability that must be validated during training adaptation. If optimizer-state updating behaves abnormally, the model may be able to perform forward computation, but it cannot complete effective training.

    Third, loss and gradient norm remain finite throughout the run, which indicates that no numerical overflow or propagation of non-finite values occurred during training. This is especially important for mixed-precision training. Finite loss means that the loss computation path is stable. Finite gradient norm means that backward propagation and gradient synchronization are stable. When both conditions hold, the training pipeline is basically closed-loop at the numerical level.

    Finally, no abnormal interruption occurred, indicating that the system has initial capability in process stability, communication reliability, memory management, scheduling coordination, and runtime monitoring. Although 400 steps cannot be considered equivalent to a complete pretraining cycle, it can show that training adaptation has moved beyond the “can it run” stage and entered the “can it run continuously” stage.

    4. How to Enable a Native Sharded Training Path

    In training adaptation, the “native sharded training path” usually refers to forming a complete and natural distributed training loop on a domestic compute platform, from model loading to parameter updating, rather than forcing execution through temporary patches or special workarounds.

    A typical training loop can be abstracted as follows:

    1. for step in range(total_steps):
    2. batch = data_loader.next_batch()
    3. loss = model(batch)
    4. loss.backward()
    5. grad_norm = clip_grad(...)
    6. optimizer.step()
    7. if step % checkpoint_interval == 0:
    8. save_checkpoint(step)
    9. monitor(loss, grad_norm, memory, throughput)

    Although this pseudocode is only a logical illustration, it reflects the key stages of training adaptation:

    1. Data loading: ensure that input batches are supplied stably.
    2. Model forward computation: validate operator coverage, precision, and memory usage.
    3. Loss computation: validate whether the training objective is correct.
    4. Backward propagation: validate gradient generation and computation graph correctness.
    5. Gradient processing: validate gradient synchronization, reduction, and clipping.
    6. Optimizer updating: validate whether parameters change as expected.
    7. Checkpointing and monitoring: validate training observability and recoverability.

    In sharded training, the model loading stage needs to complete parameter sharding initialization. The forward stage may require transferring activations across GPUs. The backward stage needs to synchronize gradients. The optimizer update stage needs to coordinate sharded parameters and optimizer states. Each stage involves the coordination of computation, communication, and storage. Only when all these stages connect stably can the training path be considered truly enabled.

    5. Numerical Stability Is the Lifeline of Large-Model Training

    In ultra-large model training, numerical stability issues are often more hidden and harder to diagnose than a simple shortage of compute power. Many training tasks can run normally during startup, but as the number of training steps increases, problems may appear, such as loss fluctuation, abnormal gradient norm, failed parameter updates, or silent process exit.

    To ensure training stability, multiple layers of protection mechanisms are usually needed.

    5.1 Gradient Norm Monitoring

    Gradient norm reflects the overall scale of gradients during backward propagation. If gradient norm suddenly increases, it may indicate that the learning rate is too high, the data distribution is abnormal, the model structure is unstable, or precision handling has issues. If gradient norm remains too small for a long time, it may indicate insufficient model updates.

    Therefore, during training adaptation, continuously recording gradient norm and setting reasonable thresholds are important means for judging the health of training.

    5.2 Loss Curve Observation

    The loss curve is one of the most intuitive metrics for observing the training process. In addition to checking whether loss decreases, it is also necessary to observe abnormal spikes, plateau periods, oscillation, or non-finite values. For short-term training validation, if loss remains finite throughout the run and follows the expected trend, it indicates that the forward computation and loss computation paths are basically normal.

    5.3 Mixed Precision and Outlier Handling

    Mixed-precision training can improve efficiency, but it requires supporting mechanisms. Common practices include loss scaling, gradient clipping, skipping outliers, using higher precision for critical layers, and validating parameters before and after updates. For ultra-large models, some layers may be more sensitive to numerical precision. If the entire model uses the same precision policy, additional evaluation may be required.

    5.4 Checkpoints and Breakpoint Recovery

    Long-running training inevitably encounters issues such as node failure, network jitter, insufficient memory, or process exit. A mature training system needs to support periodic checkpoint saving and fast recovery after failures. Although the training adaptation stage may not involve extremely long training runs, it should still validate whether the checkpoint saving, loading, and recovery paths are reliable.

    6. Engineering Maturity Determines Whether Training Can Move from Short Runs to Long Runs

    Moving from “can run” to “can train stably” requires a large amount of engineering capability. To support frontier complex large-model training, domestically developed GPUs cannot rely on hardware alone. A complete software stack and operations system are also required.

    6.1 Operator Adaptation Capability

    Model training depends on a large number of operators, including matrix computation, normalization, attention mechanisms, loss functions, activation functions, and optimizer updates. Training adaptation needs to validate the correctness, stability, and efficiency of these operators on domestically developed GPUs. If key operators are missing or show precision anomalies, the training pipeline cannot be closed-loop.

    6.2 Multi-GPU Coordination Capability

    Multi-GPU training is not simply copying the task multiple times. It involves parameter synchronization, gradient reduction, random number control, data splitting, model splitting, and communication topology optimization. Especially in cross-node scenarios, the system needs to hide communication latency as much as possible and improve compute utilization.

    6.3 Automated Toolchain Capability

    Large-scale training needs automated toolchains, including task submission, environment configuration, resource scheduling, log collection, metric monitoring, alert notification, training auditing, and fault localization. Without automation, training problems may be amplified. With automation, problems can be detected early, localized quickly, and tracked continuously.

    6.4 General Cloud Infrastructure

    From a cloud service perspective, large-model training usually also requires general infrastructure capabilities such as container platforms, object storage, message queues, log services, and monitoring and alerting. Training tasks need stable scheduling, training data needs reliable storage, training logs need to be searchable, and training metrics need to be observable. Although these capabilities are not directly equivalent to model training itself, they affect training efficiency and operational cost.

    7. From Fast Inference Deployment to End-to-End Stable Training

    In the past, domestically developed AI compute accumulated relatively more adaptation experience in inference scenarios. Inference deployment emphasizes model loading speed, single-request inference throughput, service stability, and resource utilization. Training adaptation, however, requires the system to handle backward propagation, gradient synchronization, optimizer states, and long-duration execution at the same time.

    This difference means that training capability cannot be simply inferred from inference capability. Successful inference only shows that the model can perform forward computation correctly. Successful training also requires gradient generation, parameter updating, numerical stability, and distributed coordination to all hold true.

    Therefore, for domestically developed compute platforms to move from “fast inference deployment” to “end-to-end stable training,” the following capabilities need to be strengthened:

    1. Training operator coverage capability.
    2. Distributed parallel training capability.
    3. Cross-node communication optimization capability.
    4. Numerical stability assurance capability.
    5. Training-process observability capability.
    6. Fault recovery and checkpoint capability.
    7. Automated training-task management capability.

    Only when these capabilities gradually mature can frontier large models move from “can train” on domestically developed GPUs to a more stable training experience.

    8. A Staged Assessment of Domestic AI Compute for Large-Model Training

    Currently, domestically developed GPUs supporting large-model training have entered a stage of engineering deployment. The success of training adaptation means that domestic compute platforms are beginning to have the basic conditions for undertaking complex large-model training tasks. This is especially relevant in areas such as scientific foundation models, world models, and embodied-intelligence models. Training demand is expanding from a single text model to multimodal scenarios, high-dimensional states, complex interactions, and long-sequence dependencies, which places higher requirements on the comprehensive capability of the compute platform.

    It is important to emphasize that training adaptation is only one key milestone in the large-model training process. Long-term competitiveness still depends on training stability, training efficiency, toolchain maturity, fault recovery capability, and continuous optimization in large-scale training. A stable run of 400 consecutive steps can prove that the pipeline is usable, but long-term stable training still requires validation over longer periods, larger scales, and more complex scenarios.

    In the future, as trillion-parameter models, multimodal models, and more complex parallel strategies continue to evolve, the domestically developed GPU training system will need to continue improving operator adaptation, multi-GPU coordination, automated toolchains, monitoring and alerting, and training observability. Only when the training process becomes more stable, reproducible, and operable can domestic compute genuinely support more complex large-model training tasks in real engineering environments and gradually approach the goal of “training out of the box.”