Training Adaptation of Domestic GPUs for Large Models: From Inference Deployment to Full-Stack Stable Training

    This article examines the technical path that takes domestic GPUs from inference-only compatibility to full-stack training adaptation for large-scale foundation models. It explains the core differences between inference adaptation and training adaptation, details the engineering backbone—including native FSDP2 multimodal training, cross-node joint training with stability verification, and an automated toolchain—and discusses the broader move toward “training national models on national chips” as a repeatable capability.

    Background: Training Adaptation Is Different from Inference Adaptation

    In discussions about combining large models with domestic computing power, a common conceptual confusion arises between “adaptation” and “pretraining.” The industry phrase “Day-0 adaptation for the latest open-source model” usually means that, shortly after a model is released, the hardware and software stack complete inference-side integration verification within a short time, ensuring the model can load, run inference, and produce results on that chip. This process verifies operator coverage, graph compilation capability, and inference serving capability—but it does not mean the model was actually pretrained from scratch on that chip.

    True training adaptation is far more demanding. Pretraining places requirements on the entire compute stack: forward computation, backward propagation, optimizer updates, gradient synchronization, checkpoint saving and restoration. Any issue in numerical precision, communication bottlenecks, or scheduling defects can cause training to gradually diverge or abort after tens of thousands of steps. Against this background, a recent domestic GPU vendor completed training adaptation for a flagship open-source model with nearly 3 trillion parameters on its top-tier training-and-inference integrated intelligent computing cards, achieving continuous stable optimizer updates for hundreds of steps across two nodes with 16 cards. The significance of this progress must be understood in the technical context above: it proves the ability to “enter the training state,” not just “run inference.”

    It should be noted that when third-party large models disclose computing-power verification information in technical reports or public materials, such information often only represents validation at the inference operator level. The original computing resources used for their base pretraining are typically not disclosed. Readers should distinguish among three levels when interpreting such announcements: “inference integration verification,” “training adaptation verification,” and “actual pretraining deployment.”

    Core Technical Chain for Training Adaptation

    1. Native FSDP2 Multimodal Training Path

    A key point of this adaptation is the construction of a native FSDP2 multimodal training path. FSDP (Fully Sharded Data Parallel) shards model parameters, gradients, and optimizer states across the data-parallel group; each device stores only a shard of the full state, aggregating and releasing them temporarily via collective communication during forward and backward passes as needed. Compared with traditional data parallelism, FSDP reduces memory usage from “entire model + entire optimizer state” to “model shards + temporary aggregation,” which is a prerequisite for training extremely large models with a limited number of cards.

    The main improvement in FSDP2 over earlier implementations is parameter-granularity sharding based on DTensor, making sharding strategies more controllable and reshard operations more efficient. It also integrates more easily with the heterogeneous submodules of multimodal models (vision encoder, language backbone, projection layers). “Native” here means this training path was not created by simply rewriting third-party code until it barely runs, but rather by building a complete path on the domestic software stack—from model loading and sharding scheduling to gradient synchronization.

    From an engineering perspective, this chain includes at least the following components:

    • Model loading: Correctly mapping checkpoints with hundreds of billions of parameters to each device according to sharding strategy, handling data type conversion and weight initialization.
    • Sharding scheduling: Selecting sharding granularity based on parameter size and memory capacity, deciding which modules use parameter sharding, which use gradient sharding, and which keep full replicas.
    • Gradient synchronization: Performing cross-card gradient aggregation via all-reduce or reduce-scatter during backpropagation to keep optimizer states consistent across devices.

    2. Cross-Node Joint Training and Stability Verification

    Another hard requirement for training adaptation is cross-node scalability. The experiment used two nodes with 16 intelligent computing cards for joint training. All 16 training processes completed 400 consecutive optimizer updates, with both loss and gradient norms remaining finite throughout—no numerical overflow or abnormal interruption occurred.

    Why is “running continuously for hundreds of steps, with finite loss and no overflow” an informative metric? Because failure modes in large-model training are often gradual:

    • Numerical overflow typically occurs in mixed-precision training when gradients or activations exceed the representable range of half-precision, producing inf/nan values that are hard to recover from.
    • Abnormal gradient norms can result from incomplete gradient synchronization, incorrect computations on some devices, or communication packet loss, manifesting as spikes or slow drift in the loss curve.
    • Process-level faults include node-to-node network jitter and collective communication timeouts, which can directly interrupt training.

    Four hundred consecutive updates is still far from a real pretraining run of tens of thousands of steps, but it verifies the correctness and numerical health of the core training loop: forward, backward, communication, and optimizer updates. It is a necessary milestone for moving from “single-step execution” to “long-duration stable training.” In engineering practice, additional mechanisms such as gradient clipping, loss scaling, anomaly detection, and automatic rollback to the latest checkpoint are typically used to further improve robustness over long training runs.

    A simplified monitoring pseudocode illustrates what this kind of verification looks like:

    1. for step in range(total_steps):
    2. loss = model_forward(batch)
    3. loss.backward() # Backward pass, triggers sharded all-reduce
    4. grad_norm = clip_grad_norm_(params, max_norm)
    5. assert torch.isfinite(grad_norm) # Gradient norm finiteness check
    6. optimizer.step()
    7. optimizer.zero_grad()
    8. log(loss.item(), grad_norm) # Record loss and gradient norm curves

    Whether the loss and gradient-norm curves remain smooth and finite throughout is the first gate in judging the numerical correctness of the training chain.

    3. Engineering System and Automated Toolchain

    There is a gap between running training once successfully and having a “reproducible training capability.” That gap is filled by a mature engineering system. It includes an operator adaptation layer (operator coverage and performance optimization for newly added model structures), a multi-card and multi-node coordination layer (collective communication libraries, topology-aware communication optimization), and an automated toolchain (distributed configuration generation, training monitoring and alerting, fault diagnosis, and checkpoint-resume training). Only when these three layers work together can a cutting-edge complex model smoothly evolve from “rapid inference deployment” to “full-stack stable training.”

    From Single-Point Validation to the Scaled Path of “National Models on National Chips”

    Beyond the flagship model training adaptation described here, public industry information shows that domestic full-function GPUs have been deployed in several large-scale training scenarios: completing full pretraining from scratch for a scientific foundation model with over 200 billion parameters; supporting full-stack native training for a world-model direction; and completing the full-process training of a brain model for embodied intelligence. Pretraining of trillion-parameter-scale models is currently in progress.

    The common feature of these cases is that training is no longer a matter of “loading open-source model weights and running them” — rather, the hardware takes on the full training responsibility, from data loading and initialization to convergence. For the domestic computing ecosystem, the value of this capability leap lies in forming a closed loop: problems discovered during training (operator precision, communication efficiency, memory bottlenecks) feed back into software-stack iteration, which in turn lowers the adaptation cost for the next generation of models.

    Of course, gaps must be viewed objectively. Compared with mature international ecosystems, the domestic software stack still has room for improvement in operator performance, ecosystem compatibility, and toolchain usability. The industry direction is to continuously refine the complete training capability—from operator adaptation, multi-card coordination, to automated toolchains—so that cutting-edge large models can move from “trainable” to “out-of-the-box trainable” on domestic full-function GPUs. That means users should be able to launch large-scale training tasks through standardized configurations and interfaces without deep custom modifications. This requires sustained investment on both the hardware side (single-card compute power and interconnect bandwidth) and the software side (compilation optimization, parallel strategy automation, and training stability assurance).

    Conclusion

    Large-scale training adaptation is the litmus test for the maturity of domestic computing power. From inference integration verification, to breaking through the FSDP2 training chain and completing stable cross-node 16-card continuous training, to taking on the full responsibility of pretraining from scratch, this path clearly outlines the evolution direction of domestic full-function GPUs. As the engineering system matures and the toolchain improves, “training national models on national chips” is expected to move from staged achievements to a sustainable routine capability, providing more solid support for the self-reliance and controllability of AI infrastructure.