Adapting Chinese GPUs for Ultra-Large Model Training: From Inference Deployment to Full-Link Stable Training

    This article examines what it takes to adapt Chinese GPUs for ultra-large model training, focusing on the gap between inference deployment and stable end-to-end training. It clarifies the difference between training adaptation and pretraining, breaks down a native FSDP2 multimodal training path, and explains why a 400-step cross-node validation matters for numerical and communication stability. It also outlines the four-layer engineering system behind reproducible adaptation, summarizes multi-scenario practice across scientific, world, and embodied models, and discusses the path from model-by-model adaptation to out-of-box training.

    1. Background: Why Training Adaptation Is a Hard Threshold in the Large-Model Era

    As large-model technology iterates rapidly, inference capability is only the starting point when judging whether an AI chip has real industrial competitiveness. The more demanding indicator is whether it can stably support the complete training of frontier large models. Training places much higher requirements on the hardware and software stack than inference:

    • High numerical stability requirements: Training involves the full loop of forward pass, backward pass, and optimizer update. Any operator precision deviation accumulates across iterations and can eventually cause loss divergence or gradient anomalies.
    • High communication complexity: Parameter sharding, gradient synchronization, and activation transfer require high-frequency interaction across multiple machines and cards, imposing strict requirements on interconnect bandwidth and communication library maturity.
    • High framework compatibility requirements: Frontier models commonly adopt complex structures such as mixture-of-experts, multimodality, and long context. The chip software stack must quickly follow these new features.

    Recently, a Chinese GPU vendor completed training adaptation for an advanced open-source large model at a scale of nearly three trillion parameters, based on its flagship training-inference integrated compute card and self-developed software stack, and disclosed technical validation details. This progress provides a useful sample for breaking down the technical steps required for Chinese chips to move toward full-link stable training.

    2. Clarifying the Concept: Training Adaptation Is Not Pretraining

    Before discussing technical details, one easily confused concept needs clarification.

    “Training adaptation” means that a chip vendor reproduces the training process of an already released open-source large model on its own hardware and software stack, verifying the completeness and stability of the training pipeline. Whether “the model was pretrained on this chip” is a separate question and can only be confirmed when the model training party officially discloses the source of compute.

    Another common form of validation in the industry is “inference operator validation,” where technical reports show validation results for the same inference solution across different hardware routes, such as NPU and GPU. Such work usually covers only forward inference operators and does not involve the complete training loop. The two differ fundamentally in validation depth:

    Validation level Coverage Difficulty
    Operator-level inference validation Forward computation, single-operator precision Lower
    Inference deployment adaptation End-to-end inference service, KV cache, batch scheduling Medium
    Full-link training adaptation Forward + backward + optimizer + multi-machine communication + convergence validation High

    Completing full-link training adaptation indicates that the chip’s operator coverage, compilation optimization, communication library, and framework compatibility have all reached a relatively high level.

    3. Breakdown of Key Technical Paths

    3.1 Building a Native FSDP2 Training Path

    One of the core technical achievements of this adaptation is the construction of a native fully sharded data parallel (FSDP2) multimodal training path. To understand this path, it is necessary to first understand the common combination of parallel strategies in large-scale training:

    • Data parallelism (DP): Each device holds a complete model replica and processes different data shards.
    • Fully sharded data parallelism (FSDP): Model parameters, gradients, and optimizer states are sharded across devices, significantly reducing per-card memory usage. This is a standard approach for training ultra-large models.
    • Tensor parallelism and expert parallelism: For very large individual layers and mixture-of-experts structures, computation itself is split across multiple devices.

    Compared with earlier implementations, FSDP2 introduces finer-grained sharding management and supports layer-wise dynamic prefetching and release of parameter shards, which is especially important for devices with limited memory. A “native” path means that the complete link is implemented within the self-developed software stack rather than indirectly adapted through a compatibility layer. A typical training iteration involves the following stages:

    1. # Illustration of a single iteration in large-scale training (pseudocode)
    2. with fsdp2_model.traceroot(): # shard scheduling and parameter prefetch
    3. output = fsdp2_model(batch) # forward: gather parameter shards on demand
    4. loss = compute_loss(output, label)
    5. loss.backward() # backward: gradient computation and shard placement
    6. fsdp2_model.clip_grad_norm_(max_norm) # gradient norm clipping
    7. optimizer.step() # optimizer update
    8. fsdp2_model.sync_gradients() # cross-node gradient synchronization

    For this path to work, the operator library must cover all model structures, automatic differentiation must correctly support sharded parameters, and communication primitives must work seamlessly with the scheduler. Missing any part can cause training interruption or precision degradation.

    3.2 Cross-Node Stability Validation: The Significance of 400 Consecutive Updates

    After small-scale validation passed, the vendor used two machines with 16 compute cards in total to complete a cross-node joint training test. All 16 training processes completed 400 consecutive optimizer updates. During the run, loss and gradient norm remained finite throughout, with no numerical overflow or abnormal interruption.

    Why is 400 steps a meaningful validation scale? This needs to be analyzed from the sources of training stability risk:

    1. Numerical overflow risk: Under mixed-precision training, low-precision formats such as BF16/FP16 have limited dynamic range. If an operator implementation has a precision deviation, it may appear as NaN loss within a few steps.
    2. Process-level cascade failure: In multi-machine, multi-card training, an exception in any process can bring down the entire training job through collective communication. Four hundred steps means 16 processes remain consistent across thousands of collective communications.
    3. Joint monitoring of loss and gradient norm: A decreasing loss alone is not sufficient to judge health. The stability of gradient norm is a leading indicator of numerical stability.

    In engineering practice, the following monitoring system is typically established:

    1. # Illustration of large-scale training monitoring items
    2. monitor:
    3. loss_trend: true # whether the loss curve converges smoothly
    4. grad_norm: true # whether gradient norm stays in a reasonable range
    5. overflow_counter: true # numerical overflow counter
    6. comm_wait_time: true # communication wait time (detects load imbalance)
    7. all_reduce_latency: true # collective communication latency

    The value of cross-node validation is that it proves not only single-card compute, but also rack-level interconnect quality, communication library reliability, and fault recovery capability. This is the dividing line between “training in practice” and “running a demo.”

    3.3 From Single-Point Adaptation to an Engineering System

    A successful adaptation can only prove the upper bound of capability. A reproducible engineering system is what supports continuous delivery. Industry practice shows that a mature training adaptation system usually contains four layers:

    • Operator adaptation layer: Establish mapping and fallback mechanisms between model structures and hardware operators. When a new model appears, operator coverage can be quickly assessed and missing operators can be filled incrementally.
    • Multi-card collaboration layer: Communication libraries, topology-aware scheduling, and collective communication optimization ensure multi-machine scaling efficiency.
    • Automation toolchain: One-click environment deployment, training job orchestration, anomaly detection, and checkpoint resume reduce the manual cost of adaptation.
    • Validation and regression layer: Establish precision benchmarks and stability test sets, and automatically run regression after each software stack update to prevent adaptation results from degrading.

    It is the accumulation of these four layers that enables “rapid inference deployment” and “full-link stable training” to be achieved at the same time.

    4. Practice Across Multiple Scenarios: Chinese Chips Training Chinese Models

    Adaptation for a single large model is not enough to demonstrate system maturity. Public information shows that such Chinese training practice has covered multiple model types with different characteristics:

    • Scientific foundation model (~236 billion parameters): Complete pretraining from scratch, validating the engineering stability of long-cycle, large-scale pretraining.
    • 5D world model: Full-stack native training involving spatiotemporal physical modeling, imposing new requirements on multimodal data processing and heterogeneous operators.
    • Embodied intelligence brain model: Full-pipeline training from multimodal input to robot task output, covering the emerging direction of embodied intelligence.

    These training practices across different model types mutually confirm one conclusion: the Chinese training stack is moving from “custom adaptation for a single model” to “a platformized system with general support capability.” The industry is also advancing toward a higher goal: complete training of trillion-parameter models, which will pose greater challenges for memory scaling, fault-tolerant recovery, and large-scale cluster scheduling.

    5. Outlook: From “Can Train” to “Out-of-Box Training”

    Current large-model training adaptation for Chinese chips is still in a “model-by-model” stage: each time a frontier open-source model appears, the chip vendor must invest engineering effort in targeted adaptation. The ideal state is “out-of-box training”: after a new open-source model is released, training can start directly on Chinese hardware without deep customization.

    To reach this goal, sustained investment is needed in three directions:

    1. Operator ecosystem standardization: Maintain high compatibility with the operator interfaces of mainstream training frameworks and reduce model-side customization.
    2. Automated adaptation toolchain: Use technologies such as automatic operator generation and graph-level compilation optimization to turn manual adaptation into automated workflows.
    3. Trusted validation for large-scale training: Establish public, reproducible stability validation standards, such as consecutive update steps, convergence metrics, and scaling efficiency, so that training capability can be objectively measured.

    From an industry trend perspective, Chinese full-function GPUs are advancing steadily along the path of “operator coverage -> single-card training -> multi-card collaboration -> cross-node stable training -> trillion-parameter scale.” Each training adaptation deployment accumulates engineering credit for eventual out-of-box training. For developers who follow Chinese compute, tracking public technical reports on full-link validation is a more accurate way to judge the real maturity of the Chinese training ecosystem than focusing on a single peak compute metric.