Running Large-Scale Model Training on Domestic Chinese GPUs: From Inference Adaptation to Stable Full-Stack Training

    This article explains why training adaptation is much harder than inference adaptation for large language models. It describes how a domestic Chinese GPU platform reportedly ran multi-node training for a flagship model of nearly 3 trillion parameters, and covers the FSDP2-based distributed training path, numerical stability over 400 optimizer updates, multimodal training, and practical guidance for developers planning large-scale training on domestic accelerators.

    1. Why Training Adaptation Is Much Harder Than Inference Adaptation

    In the large model ecosystem, the statement that “a chip has completed adaptation for an open-source large model” can refer to two layers of very different difficulty.

    The first layer is inference adaptation. It loads model weights onto the target hardware, runs the forward pass, and completes operator alignment and accuracy checks so the model can generate outputs. This layer mainly addresses operator coverage and compatibility with inference engines. Most of the work involves operator implementation, graph optimization, and quantized deployment. The “Day 0 adaptation” of new open-source models common in the industry usually refers to this layer, meaning a model can be deployed and validated on a platform on the day it is released.

    The second layer is training adaptation. It must run the backward pass, gradient synchronization, and optimizer updates, and keep numerical behavior stable over thousands of iterations. The difficulty rises sharply for three reasons:

    1. Memory pressure is fundamentally different. Inference only needs activations and weights. Training also stores activations for the backward computation and maintains optimizer states such as momentum and second moments. Memory usage is typically several times higher than for inference, so training depends on techniques such as sharding and activation recomputation.
    2. Numerical precision requirements are strict. The loss must show a verifiable convergence trend. Any precision error in an operator is amplified over tens of thousands of iterations, which can lead to gradient explosion, NaN values, or divergence.
    3. Communication topology is complex. Inference can run on a single card. Training always involves collective communication across multiple cards and nodes, such as AllReduce, AllGather, and ReduceScatter. Communication efficiency directly determines training throughput.

    When a domestic GPU can stably support continuous multi-node training of a cutting-edge open-source model, its significance goes well beyond a single inference adaptation. It shows that the platform has full-stack capability, spanning operators, communication libraries, and training frameworks.

    2. Technical Breakdown of Trillion-Parameter Model Training

    2.1 Choosing a Native Distributed Training Framework

    A domestic GPU vendor recently published a report stating that its flagship GPU card, which supports both training and inference, completed training adaptation for a flagship model of nearly 3 trillion parameters. The run used two nodes with 16 cards in total, combined with the vendor’s in-house software stack. The 16 training processes completed 400 consecutive optimizer updates. Loss and gradient norm stayed finite throughout, with no numerical overflow or unexpected interruption. The core technical point of this result is the construction of a native FSDP2 multimodal training path.

    FSDP (Fully Sharded Data Parallel) is one of the mainstream paradigms for large model training. Its core idea is to shard model parameters, gradients, and optimizer states across GPUs. Full parameters are temporarily gathered through AllGather when the forward and backward passes need them, then released after use. Compared with traditional data parallelism, where each GPU stores a full model replica, and tensor parallelism, which splits individual layer weights, FSDP achieves a better balance between memory efficiency and communication efficiency.

    A simplified FSDP sharding workflow is shown below:

    1. # Pseudocode: core FSDP workflow
    2. for param in model.parameters():
    3. shard(param) # Shard parameters across GPUs
    4. for batch in dataloader:
    5. all_gather(params) # Temporarily gather full parameters before forward
    6. loss = forward(batch)
    7. free_gathered(params) # Free gathered parameters that are not local shards
    8. all_gather(params) # Gather parameters again before backward
    9. grads = backward(loss)
    10. reduce_scatter(grads) # Reduce-scatter gradients into shards
    11. optimizer.step() # Each GPU updates only its local shard

    Running the full training pipeline, from model loading and shard scheduling to gradient synchronization, means each stage has been verified to work on the domestic hardware and software stack, with precision aligned to a reference implementation.

    2.2 Numerical Stability: What 400 Consecutive Steps Demonstrate

    The most important measure of a successful training adaptation is not whether training can start, but whether it can run stably over a long period. The reported result of “400 consecutive optimizer updates, with loss and gradient norm finite throughout” supports the following conclusions:

    • Mixed-precision implementation is correct. Conversions between low-precision computation (such as BF16 or FP16) and high-precision master weights (FP32) do not accumulate precision loss.
    • Gradient synchronization has no deadlocks or dropped data. Cross-node collective communication stays consistent during long runs.
    • Loss spikes are controlled. Gradient norm works as a health indicator for training. Keeping it finite throughout suggests that no hidden numerical anomalies occurred.

    In real large-scale pretraining, this kind of validation is usually extended to tens of thousands of steps or more. It is also paired with loss curve comparisons against reference hardware.

    2.3 Multimodal Training Path

    A “multimodal training path” means the training pipeline supports not only text-only autoregressive training but also hybrid architectures that include vision encoders and image-text alignment. The training framework must handle heterogeneous modules, such as Transformers, ViTs, and projection layers, in a unified way for sharding, activation checkpointing, and data pipelines. This makes the engineering complexity significantly higher than that of pure LLM training.

    3. From Single Adaptations to Systematic Capability

    An emerging industry consensus is worth noting. When leading model teams validate new technology, they increasingly test multiple hardware routes side by side, such as general-purpose GPUs alongside domestic NPUs or GPUs. They also validate advanced parallelism schemes, including fine-grained expert parallelism (EP). This means domestic compute platforms are moving from being candidates for validation to being one of the routes formally cited in mainstream technical reports.

    At the same time, domestic GPU vendors are moving beyond point adaptations. They are building a systematic set of results in which domestic chips train domestic models. Typical practices include:

    1. Pretraining medium-scale models from scratch. For example, training scientific foundation models with tens of billions of parameters end to end to validate the complete training pipeline.
    2. Full-stack training of multimodal and embodied models. Supporting native training of new architectures such as world models and embodied brain models to validate the generality of the framework.
    3. Advancing trillion-parameter training. Working with ecosystem partners to push toward ultra-large-scale pretraining.

    The logic of this path is clear. Validate correctness at a controllable scale first, then validate generality with complex architectures, and finally push toward the upper limit of scale.

    4. Developer Perspective: Key Practices for Large-Scale Training on Domestic Compute

    For developers planning training workloads on domestic GPU platforms, the following practices are broadly useful:

    • Verify operator coverage first. Before starting training, run a full forward and backward operator scan using the target model’s definition code. Identify missing operators early and plan alternative implementations.
    • Establish a precision alignment baseline. Prepare a small configuration, such as a single node with 4 cards and a few steps. Record the loss curve on reference hardware as a golden baseline, then align the target hardware to it.
    • Monitor gradients closely. Record gradient norm, loss, and parameter update magnitude throughout training, and set up anomaly alerts. This is one of the most effective ways to locate numerical problems.
    • Use elasticity and checkpoint resumption. Hardware failures are inevitable in large-scale training. Reliable checkpointing and automatic recovery are essential engineering requirements.
    • Start with inference, then move to training. Inference adaptation exposes compatibility issues quickly. Moving to training validation afterward can significantly reduce debugging cost.

    5. Conclusion

    A domestic full-function GPU that can stably support training adaptation for trillion-parameter-scale models marks an important step for domestic AI compute. It moves from being usable for inference to being trainable and trainable well. The direction is clear: continue refining operator adaptation, multi-card coordination, and automated toolchains so that cutting-edge large models can train out of the box on domestic compute platforms. For developers and enterprises, this adds a verifiable and dependable domestic route to the large model infrastructure layer.