国产GPU完成超大规模模型训练适配的技术实践与工程启示

    A recent validation by a Chinese GPU vendor demonstrates the transition from inference compatibility to full training support for a nearly 3-trillion-parameter open-source foundation model. This article examines the engineering challenges behind the effort, including native FSDP support, multi-node communication, numerical stability, expert parallelism, and mixed-precision training. It also outlines practical criteria for evaluating domestic GPU platforms and explains why short-run stability tests are an important milestone—but not proof of production-scale pretraining readiness.

    Engineering Lessons from Adapting a Domestic GPU to Large-Scale Model Training

    Introduction: The Critical Shift from “Inference-Ready” to “Training-Ready”

    The domestic AI accelerator ecosystem has expanded rapidly in recent years, and announcements about adapting GPUs and other chips to large language models have become increasingly common. However, one distinction is essential: inference adaptation and training adaptation are fundamentally different engineering challenges.

    A recent project by a Chinese GPU vendor used its integrated training-and-inference accelerator cards and proprietary software stack to adapt a nearly 3-trillion-parameter open-source flagship model for training. In a two-node, 16-card environment, the system completed 400 consecutive training steps with stable execution.

    The significance of this result lies in the capability shift it represents—from “Day 0 inference integration” to end-to-end training support.

    This article uses that project as a case study to examine the technical scope, engineering challenges, and validation methods involved in large-scale model training adaptation. The goal is to provide developers and enterprise technology decision-makers with a neutral technical reference.

    1. Inference Compatibility Does Not Equal Training Compatibility

    In the domestic accelerator market, it is common to see claims that a chip has achieved “Day 0 adaptation” for a newly released open-source model. Such claims generally mean that the vendor has quickly implemented and optimized the required inference operators, allowing the model to execute its forward pass and produce outputs on the target hardware.

    That is valuable work, but it should not be confused with training support. The technical requirements differ in several important ways.

    1. Different computational complexity
      Inference primarily involves forward propagation. Training requires the complete workflow: forward propagation, backward propagation, gradient computation, and optimizer updates. This significantly increases the requirements for operator coverage and numerical precision.

    2. Different memory pressure
      Training must retain activations, gradients, and optimizer states, such as the first- and second-order moments used by Adam. Memory consumption can be several times, or even more than ten times, that of inference. This creates higher demands for memory management and recomputation strategies.

    3. Different communication requirements
      Distributed training relies on gradient synchronization through AllReduce, parameter sharding through methods such as FSDP and tensor parallelism, and pipeline-parallel communication. Communication efficiency directly affects training throughput. Inference typically uses simpler communication patterns.

    4. Higher numerical stability requirements
      Training is a long-running iterative process. A numerical overflow, gradient explosion, or loss divergence can invalidate the entire run. Operators must therefore remain numerically correct across a wide range of conditions.

    The industry has consequently reached a basic consensus: if a model runs inference on a given chip, that does not mean its foundation-model pretraining was performed on that chip.

    For example, some technical reports present validation results across multiple hardware platforms, while limiting the validation scope to inference operators. The hardware used for foundation-model pretraining is not necessarily disclosed. Recognizing this distinction is a prerequisite for evaluating the real capabilities of an accelerator platform.

    2. Core Engineering Challenges in Training Adaptation

    2.1 Native Support for Distributed Training Frameworks

    Models with trillions of parameters cannot be trained on a single device or even a single server. They require hybrid parallelism. A key part of the project was the construction of a native FSDP-based multimodal training path.

    FSDP, or Fully Sharded Data Parallel, distributes model parameters, gradients, and optimizer states across devices. Parameters are gathered only when needed for computation, substantially reducing the memory pressure on each accelerator.

    A native FSDP implementation requires the software stack to support the entire workflow, including:

    • Model loading and sharded initialization: Partitioning parameters according to the selected sharding strategy and distributing them across processes;
    • Parameter gathering during forward and backward passes: Using AllGather to collect parameter shards when required;
    • Gradient synchronization and sharded optimizer updates: Using ReduceScatter to aggregate gradients so that each process updates only the parameter shards assigned to it;
    • Cross-node communication primitives: Providing efficient multi-server communication through the underlying communication library.

    Training becomes viable only when the complete chain—from model loading and sharding to gradient synchronization and parameter updates—is operational. A missing component or compatibility issue at any stage can become a blocking failure.

    2.2 Numerical Stability: The Foundation of Reliable Training

    Numerical stability is one of the most closely watched indicators in large-scale model training. In the reported experiment, two servers equipped with 16 accelerators jointly executed training. All 16 training processes completed 400 consecutive optimizer updates, while the loss and gradient norm remained finite throughout the run. No numerical overflow or abnormal interruption was reported.

    These indicators are meaningful for several reasons:

    • Finite and observable loss: This indicates that the numerical range of the forward computation remained controlled, with no NaN or Inf values. In practice, this generally requires coordination between mixed-precision training, such as BF16, and gradient-scaling techniques.
    • Stable gradient norm: Gradient norm is an important signal of training health. A sudden increase may indicate exploding gradients and may require gradient clipping.
    • 400 consecutive steps without interruption: Four hundred steps is small compared with a complete pretraining run, which often involves tens or hundreds of thousands of steps. Nevertheless, continuous optimizer updates demonstrate a basic closed loop covering operator correctness, communication reliability, and framework compatibility. This is a necessary condition for progressing toward long-running training.

    In production engineering, training teams generally need a comprehensive monitoring and alerting system. Key metrics include the loss curve, gradient norm, learning rate, memory usage, and communication bandwidth. These metrics help engineers identify and localize problems as soon as they occur.

    2.3 Expert Parallelism and Other Advanced Training Features

    For trillion-parameter models based on the Mixture-of-Experts (MoE) architecture, fine-grained Expert Parallelism (EP) is an essential capability.

    EP places different experts on different devices and uses AllToAll communication to exchange token-routing information among them. This communication pattern is both irregular and frequent, placing significant demands on the software stack’s communication scheduling and execution capabilities.

    Previous industry reports have demonstrated the feasibility of fine-grained EP across multiple hardware platforms. This suggests that EP has become a standard capability for large-scale model training.

    Other technologies are also necessary for training extremely large models within limited hardware resources. These include mixed-precision training, activation recomputation, the ZeRO family of optimizations, and sequence parallelism. A mature training software stack should provide practical, ready-to-use support for these features.

    3. Building a Layered Capability Model for Large-Scale Training

    Based on publicly available information, domestic GPU vendors have accumulated capabilities in large-model training through several progressive stages:

    1. Full pretraining from scratch:
      Some platforms have completed end-to-end pretraining for scientific foundation models with hundreds of billions of parameters. These projects validate the full stack, from data loading and parallel partitioning to long-running stable execution.

    2. Full-stack training for emerging architectures:
      Domestic GPUs have supported native training for new model architectures, including 5D world models and embodied-intelligence models. This demonstrates flexibility in adapting to non-standard model structures.

    3. Progress toward trillion-parameter models:
      Vendors are working with ecosystem partners on training models with trillions of parameters. These projects place greater demands on cluster scale, communication topology, and fault-tolerance mechanisms.

    The value of these projects extends beyond the success of any individual deployment. They help establish a reusable engineering system covering operator adaptation methodologies, multi-device debugging tools, automated performance analysis, and fault-localization toolchains.

    This accumulated capability determines how quickly a platform can support the next new model. The real sign of maturity is not merely being able to train a particular model, but moving from “trainable” to “ready to train out of the box.”

    4. Evaluation Criteria for Enterprises and Developers

    As organizations adopt more diverse accelerator platforms, enterprises evaluating domestic GPUs for model training should consider the following dimensions:

    • Completeness of the training pipeline: Does the platform support FSDP, tensor parallelism, pipeline parallelism, expert parallelism, and other mainstream distributed strategies? Are these capabilities native rather than temporary patches?
    • Evidence of numerical correctness: Are there public validation results covering consecutive training steps, loss curves, gradient norms, and other stability indicators?
    • Real pretraining experience: Has the platform completed full pretraining from scratch, rather than only fine-tuning or short-run validation?
    • Maturity of the software stack: Are operator coverage, framework compatibility, debugging tools, and performance-analysis tools sufficiently complete?
    • Ability to evolve over time: Can the platform keep pace with new model architectures and training techniques, such as emerging attention mechanisms and long-context methods?

    Enterprises can also adopt a staged migration strategy based on their own requirements. For example, they may prioritize inference workloads on domestic platforms, then gradually move from small-scale fine-tuning and continued pretraining to large-scale pretraining. This can reduce migration risk while the software and operational processes mature.

    5. Conclusion

    The adaptation of a nearly 3-trillion-parameter flagship model for training on a domestic GPU platform, with 400 consecutive stable steps on 16 accelerators across two servers, marks an important transition from “inference-capable” to “training-credible.”

    At the same time, the result should be interpreted realistically. A 400-step validation is a milestone, not an endpoint. The ultimate test will be whether the platform can deliver stable, efficient, and cost-effective training over tens of thousands of steps and at cluster scales of more than a thousand accelerators.

    As the software stack continues to mature—from operator adaptation and multi-device coordination to automated engineering tools—the path from “trainable” to “ready to train out of the box” is becoming clearer.

    For the broader ecosystem, this progress is both evidence of improving technical capability and a starting point for deeper industry collaboration. In the next stage of accelerator competition, sustained advances in training efficiency, stability, and developer experience will be decisive.