国产 GPU 支撑超大模型训练适配的技术实践与工程路径

    A domestic GPU vendor has completed training adaptation for an open-source model with nearly three trillion parameters using its flagship AI training-and-inference accelerator and proprietary software stack. This article explains why training adaptation is substantially harder than inference adaptation, how FSDP2 enables sharded large-model training, what can be learned from a two-node, 16-card, 400-step validation, and how domestic AI infrastructure is evolving from basic compatibility toward automated, production-ready training.

    1. Background: A Milestone in Large-Model Training Adaptation

    A domestic GPU vendor recently disclosed that it had completed training adaptation for an open-source large model with nearly three trillion parameters. The work was carried out on the vendor’s flagship AI training-and-inference accelerator and proprietary software stack.

    In a cross-node training test using 16 accelerators across two machines, all 16 training processes completed 400 consecutive optimizer updates. Throughout the test, the loss curve and gradient norms remained finite, with no numerical overflow or abnormal interruption.

    One common misconception needs to be clarified: training adaptation means validating that the training framework, operator library, and distributed scheduling system can run the complete training workflow reliably on the target hardware. It does not mean that the model was pretrained from start to finish on those accelerators.

    In the industry, “Day 0 adaptation” often focuses on inference. When a new model is released, vendors quickly validate inference operators and integrate the model into deployment systems. Training adaptation is considerably more demanding. It requires the entire pipeline—from model loading, parameter sharding, and data processing to gradient synchronization—to operate correctly and reliably.

    2. Why Training Adaptation Is Much Harder Than Inference Adaptation

    Inference and training place fundamentally different demands on the hardware and software stack. Understanding this difference is essential for assessing the significance of such technical progress.

    2.1 Memory and Accelerator-Memory Pressure

    Training must keep parameters, gradients, optimizer states, and activations in accelerator memory at the same time. With AdamW, mixed-precision training may require approximately 16 bytes of auxiliary storage per parameter, including FP16 parameters, FP16 gradients, FP32 master parameters, momentum, and variance states.

    This is several times the memory required for inference. For a model with nearly three trillion parameters, the per-device workload remains substantial even after sharding.

    2.2 Numerical Stability

    During long training runs, gradient overflow, sudden loss spikes, and the propagation of NaN values can occur at any time. Inference only needs to ensure that an individual forward pass produces the expected result. Training, by contrast, requires gradient norms and optimization behavior to remain predictable over thousands of steps.

    This places stringent requirements on operator precision, loss-scaling strategies, and numerical consistency during communication reductions. The reported result—that the loss and gradient norms remained finite through 400 consecutive updates—directly addresses this core requirement.

    2.3 Communication and Scaling Efficiency

    Cross-node training depends on high-speed interconnects and efficient collective communication.

    • Data parallelism requires AllReduce to synchronize gradients.
    • Tensor parallelism frequently uses AllGather and ReduceScatter.
    • Pipeline parallelism involves transferring activations between stages.

    Insufficient bandwidth or inefficient collective-communication implementations can cause scaling efficiency to collapse.

    2.4 Completeness of the Framework and Operator Ecosystem

    The training path covers far more components than inference. Automatic differentiation, optimizer kernels, checkpoint saving and restoration, and fault-tolerant scheduling are all essential.

    A missing operator or an implementation with even a small behavioral discrepancy can block the entire training pipeline.

    3. FSDP2: Understanding the Native Sharded-Training Path

    According to the disclosure, the adaptation established a native FSDP2 training path for multimodal models. It connected the complete workflow, including model loading, sharding and scheduling, and gradient synchronization.

    The core idea behind FSDP—Fully Sharded Data Parallel—is that each accelerator no longer keeps a complete copy of the model. Instead, parameters, gradients, and optimizer states are divided across devices. When a layer needs them for forward or backward computation, the required data is temporarily gathered and released after use.

    A typical execution flow can be represented as follows:

    1. for batch in dataloader:
    2. # Forward pass: gather parameters layer by layer as needed,
    3. # then discard non-local shards immediately after computation.
    4. output = forward_with_reshard(model, batch)
    5. # Backward pass: gather parameters again as needed
    6. # and compute local gradients.
    7. loss.backward()
    8. # Gradient reduction: use AllReduce or ReduceScatter
    9. # to synchronize and distribute gradient shards.
    10. # Optimizer update: each device updates only
    11. # the parameter shard assigned to it.
    12. optimizer.step()

    Compared with traditional data parallelism, FSDP reduces memory usage from the scale of “full model parameters multiplied by the number of replicas” to roughly “full model parameters divided by the number of devices.” It is therefore one of the mainstream parallelism strategies for large-model training.

    FSDP2 further improves memory management and communication scheduling through per-parameter sharding. This is particularly useful for multimodal training, where heterogeneous components such as vision encoders, language models, and projection layers need to be handled together.

    The word native is important here. It indicates that the software stack was not simply a direct port of a third-party implementation. Instead, sharding policies, communication hooks, and mixed-precision behavior were adapted in depth to the characteristics of the target hardware. Such integration is critical for both training efficiency and numerical stability.

    4. How to Interpret the Two-Node, 16-Card, 400-Step Result

    Some may ask whether a two-node, 16-card test is too small for a model with nearly three trillion parameters. The key is to distinguish between training adaptation validation and full pretraining.

    Adaptation validation focuses on correctness and stability, not on completing training at the final production scale:

    • Multi-process coordination: Sixteen training processes ran across two nodes, exercising inter-node networking, process-group initialization, rank synchronization, and the broader distributed stack.
    • Longer-horizon numerical monitoring: The loss curve and gradient norms were tracked continuously for 400 updates. Any overflow or abnormal jump would have been recorded, helping validate mixed-precision and gradient-clipping strategies.
    • End-to-end pipeline integrity: Data loading, tokenizer processing, multimodal sample assembly, and checkpoint writing were all tested under realistic workloads.

    Once this pipeline has been shown to be reliable, scaling to a larger cluster mainly introduces engineering challenges such as expansion efficiency and fault tolerance. The core technical risks have already been substantially reduced.

    This is similar to a load test in bridge engineering: a controlled-scale experiment is used to validate the structural design before the system is moved toward operational deployment.

    5. From “Can Train” to “Train Out of the Box”: Three Stages of Maturity

    The vendor has stated that it plans to develop complete training capabilities spanning operator adaptation, multi-device coordination, and automated tooling. In practice, domestic infrastructure for large-model training can be understood through a three-stage maturity model.

    Stage 1: Complete Operator Coverage

    The hardware and software stack must support the operator set required for training, including matrix multiplication, LayerNorm, Softmax, and various optimizer kernels.

    These operators must meet accuracy and performance requirements, while the automatic-differentiation graph must be complete and capable of backpropagation. This is the foundation for making the model run successfully.

    Stage 2: System-Level Coordination

    Data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism must be available and composable. Cross-node communication must achieve acceptable efficiency, and the system must support fault tolerance and checkpoint-based resumption.

    This is the point at which the system can train reliably rather than merely execute a functional test.

    Stage 3: Automated Tooling

    The toolchain should provide capabilities such as:

    • Automatic parallel-strategy search
    • Training health monitoring
    • Loss-anomaly detection
    • Early warnings for gradient explosions
    • Automated performance profiling
    • Optimization recommendations
    • One-click cluster startup

    Only at this stage can users approach an “out-of-the-box” training experience without relying on the vendor’s engineers to provide extensive on-site support.

    The adaptation of a model with nearly three trillion parameters, combined with earlier practices involving the complete pretraining of billion-parameter-scale scientific foundation models, native full-stack training of world models, and end-to-end training of embodied-brain models, suggests that the relevant technology stack has reached a stable second stage. It is moving toward the third stage and beginning to target trillion-parameter-scale training.

    6. Implications for the Industry and Developers

    6.1 Distinguish Adaptation from Pretraining

    Inference adaptation, training adaptation, and full pretraining are progressively more difficult milestones. When evaluating technical disclosures, readers should focus on concrete validation metrics—such as the number of steps, parallel scale, and loss stability—rather than relying only on headline terminology.

    6.2 A Reusable Methodology for Large-Model Training

    Regardless of the hardware platform, large-scale training validation should generally follow a similar progression:

    1. Small-scale functional validation
    2. Numerical-consistency checks on multiple devices within one machine
    3. Cross-node scaling-efficiency tests
    4. Long-duration stability and stress testing

    This methodology is applicable across different hardware and software stacks.

    6.3 Software Is as Important as Hardware

    Chip specifications determine the theoretical upper limit, but the practical lower limit is determined by operator coverage, communication optimizations, and the maturity of the supporting toolchain.

    For teams considering heterogeneous computing infrastructure, software-ecosystem evaluation should receive no less attention than hardware specifications.

    6.4 The Focus of Competition Is Shifting

    Competition among domestic AI-computing platforms is moving from rapid inference integration to complete training pipelines, and eventually to automated training experiences.

    The idea of training domestic models on domestic accelerators is therefore evolving from isolated breakthroughs toward systematic capability building. For developer communities, this means that more tools and opportunities for distributed training on domestic hardware are gradually becoming available.

    Overall, the significance of this training adaptation does not lie in the scale of a single experiment. Its value lies in validating a complete and repeatable path for large-model training on domestic infrastructure.

    As the toolchain continues to mature, enabling frontier models to move from “able to train” to “train out of the box” on full-featured domestic GPUs is likely to become the industry’s next major milestone.