Engineering Practice in Adapting Chinese-Made GPUs for Training Ultra-Large Models
This article examines the engineering work behind adapting a Chinese-made GPU to train a nearly 3-trillion-parameter open-source AI model. It distinguishes three levels of hardware support (inference, training adaptation, and pretraining from scratch) and covers the software stack, FSDP-based parallelism, multi-node communication, and verification methods. The verification included 400 consecutive optimizer updates on a two-machine, 16-card setup. The article closes with practical advice for teams planning training on Chinese AI compute.
1. From Inference to Training: A Key Milestone for Chinese AI Compute
Chinese AI accelerator chips have advanced quickly in recent years. A notable example is a Chinese GPU vendor that used its flagship all-in-one training and inference accelerator card and its in-house software stack to complete training adaptation for a nearly 3-trillion-parameter flagship open-source large model. The setup ran on two machines with 16 cards in total and kept running stably through 400 consecutive optimizer updates. This suggests that Chinese AI compute is moving from supporting inference toward supporting training. The engineering significance of this progress deserves a closer look.
First, a common misconception needs clarifying. A model that runs successfully on a chip has not necessarily been pretrained on that chip. The industry often uses the term “Day 0 adaptation,” which in most cases means operator-level inference validation: the model runs forward inference on new hardware soon after release. Training adaptation sets a much higher bar. It requires a complete pipeline covering forward computation, backpropagation, gradient synchronization, and optimizer updates. It must also keep numerical results correct and stable across multi-node, multi-card environments over long periods.
A technical report from a well-known open-source model previously validated two different hardware paths side by side. The industry generally treated that work as inference operator validation. The source of compute used for the base model’s original pretraining was not disclosed. Separating three levels, “inference deployment,” “training adaptation,” and “pretraining from scratch,” is necessary for an objective assessment of how mature Chinese AI compute is.
2. Core Technical Pipeline for Training Adaptation
A genuine training adaptation spans several technical layers, and each one directly affects the final result.
2.1 Operator and Software Stack Layer
Large model training relies on many operators, including matrix operations, normalization, attention mechanisms, and mixed-precision computation. For a GPU to support training, its software stack must provide high-performance, numerically correct implementations of these operators and integrate with mainstream deep learning frameworks. This layer determines whether a model can run at all.
2.2 Parallelism and Memory Management Layer
Models with trillions of parameters far exceed the memory of a single card, so they require distributed parallelism. This adaptation built a native FSDP (Fully Sharded Data Parallel) multimodal training path. The core idea of FSDP is to shard model parameters, gradients, and optimizer states across devices, then gather them on demand during computation. This substantially reduces the memory each card needs. A typical FSDP training configuration follows this logic (illustrative pseudocode):
# Illustrative code: sharded data parallel training frameworkmodel = load_model(config)model = shard_model_across_devices(model, world_size=16)for step in range(num_steps):batch = next(dataloader)loss = model(batch).loss # Forward pass: parameters are gathered on demandloss.backward() # Backward pass: gradients are written back in shardssync_gradients(model) # Cross-node gradient synchronizationoptimizer.step() # Optimizer update (sharded states)optimizer.zero_grad()
The key question at this layer is whether the full chain, from model loading and shard scheduling to gradient synchronization, is natively connected rather than dependent on temporary patches.
2.3 Multi-Node Coordination and Communication Layer
Training across two machines with 16 cards places clear demands on communication infrastructure. Within a node, high-speed interconnects typically carry the traffic. Between nodes, high-bandwidth networks are required. Gradient synchronization overhead must be hidden behind computation. Otherwise, scaling efficiency drops sharply. Training frameworks need to overlap communication with computation in a sensible way and reduce communication latency through topology-aware process scheduling.
3. Verifying the Correctness and Stability of the Training Pipeline
A successful training adaptation is not measured only by whether training runs. Results must also be correct and stable. The industry commonly uses the following verification methods:
- Consecutive optimizer update test: All training processes complete hundreds of consecutive optimizer updates (400 in this case) to verify the end-to-end integrity of the pipeline.
- Numerical health monitoring: Track loss and gradient norms throughout training to confirm they remain finite, with no NaN or Inf overflow.
- Alignment validation: Compare results with reference runs on a mature hardware platform to confirm that loss curves follow consistent convergence trends. This rules out precision deviations caused by operator implementations.
- Long-duration stress testing: Run training for longer periods, closer to real training scale, to expose deeper problems such as memory leaks and communication deadlocks.
Numerical overflow and unexpected interruptions are often the hardest problems to debug in distributed training. They can originate from the mixed-precision strategy, the order of communication aggregation, the precision of normalization operators, or any other stage. Stable, continuous operation is strong evidence of engineering maturity in its own right.
4. From Individual Cases to a System: The Evolution of Chinese AI Training Capability
Training capability does not come from a single breakthrough. It builds up through sustained, systematic work. Across the industry, several vendors have already delivered results in which Chinese chips train Chinese models. These include complete training from scratch of a scientific foundation model at the 200-billion-parameter scale, full-stack native training of a 5D world model, and full-process training of an embodied intelligence brain model. Work toward training models with trillions of parameters is also underway.
Pretraining from scratch tests hardware and software stacks more rigorously than post-training adaptation. It places the strictest demands on numerical consistency, long-term stability, and fault tolerance and recovery.
5. Takeaways for Developers and Enterprises
Teams planning large model training on Chinese-made hardware should consider the following:
- Define the training goal level: Distinguish inference deployment, fine-tuning adaptation, and full pretraining. Each requires different hardware and software capabilities.
- Validate the parallelism pipeline first: Before committing significant resources, verify the correctness of FSDP and other parallelism strategies in a small multi-node environment.
- Build comprehensive monitoring: Track loss, gradient norms, communication time, and memory usage throughout training to detect anomalies early.
- Use cloud platforms to lower the barrier: General-purpose cloud platforms offer container platforms, distributed storage, log services, and monitoring and alerting. These make it more flexible to set up and validate training environments and reduce the need to build infrastructure in-house.
6. Conclusion
Moving from rapid inference deployment to stable, full-pipeline training is a necessary step toward maturity for Chinese-made GPUs. This training adaptation shows that Chinese AI compute has the engineering capability to support frontier large models in operator coverage, distributed parallelism, multi-node coordination, and numerical stability. The next competitive focus will shift from “being able to train” to “ready to train out of the box.” That means more complete automated toolchains, lower migration costs, and more mature engineering systems. Together, these would make training frontier large models on Chinese hardware a routine option.
