Training Large Models on Chinese-Developed AI Chips: From Inference Adaptation to Stable End-to-End Training
This article explains the difference between training adaptation and pretraining, outlines the technical challenges of bringing a nearly 3-trillion-parameter open-source model onto non-mainstream training hardware, and interprets what a 400-step, two-node, 16-accelerator validation run does and does not prove. It also describes the engineering capabilities needed to move from a successful adaptation to reliable large-scale training.
1. Clarifying a Common Confusion: Training Adaptation Is Not Pretraining
Recently, a domestic GPU vendor announced that it had quickly completed training adaptation for a nearly 3-trillion-parameter open-source flagship large model. The work used the vendor’s flagship AI training and inference accelerator card and its in-house software stack. In a cross-node environment with two machines and 16 cards, the run completed 400 consecutive optimizer updates. Throughout the run, the loss and gradient norm stayed finite, with no numerical overflow or abnormal interruption.
The announcement sparked discussion in the industry. It also exposed a common misconception: completing training adaptation for a model and pretraining that model on the same hardware are two very different things.
- Training adaptation means getting a hardware and software stack to load the target model’s weights and architecture correctly, run the full training loop (forward computation, backpropagation, gradient synchronization, and optimizer updates), and verify that the numerical behavior is correct. It validates the availability and stability of the training pipeline.
- Pretraining means the model’s large-scale training on massive datasets actually runs on this compute. It requires sustained, stable operation across thousands of accelerators for weeks or even months. It is a much higher-level capability test.
Similar patterns appear elsewhere in the industry. Some frontier model technical reports validate several hardware routes, such as general-purpose GPUs and dedicated NPUs. These reports usually confirm compatibility for inference operators or training pipelines. They do not mean the model’s base pretraining compute came from those chips. Understanding this distinction helps assess the real progress of training domestic models on domestic compute.
Getting a training pipeline to run is a critical first step from zero to one. Moving from “can train” to “stable large-scale training” still requires closing clear engineering gaps.
2. Technical Challenges of Adapting a Trillion-Parameter Model for Training
Running a nearly 3-trillion-parameter model on non-mainstream training hardware requires solving problems at several layers.
1. Operator-level compatibility: restoring the full model structure
Frontier large models often use mixture-of-experts (MoE) architectures, multimodal inputs, long context windows, and other complex structures. These involve many custom operators. The first step of training adaptation is operator alignment:
- The numerical precision of each operator (the FP32, BF16, and FP16 mixed-precision strategy) must match the reference implementation.
- Reduction operators, such as the mean and variance in LayerNorm or the denominator in Softmax, may accumulate in different orders on different hardware, which can cause subtle differences. Validation should use error tolerances rather than require bit-exact results.
- For operators the framework does not cover, automatic differentiation rules must be added so that gradients are computed correctly.
2. Distributed strategy: solving memory and communication together
A trillion-parameter model cannot fit on a single card, so it depends on multi-level parallelism. Mainstream approaches include:
- Data parallelism (DP) with fully sharded methods (FSDP-style): Parameters, gradients, and optimizer states are sharded across devices. They are gathered on demand during forward and backward passes, which substantially reduces peak memory per device.
- Expert parallelism (EP): In MoE models, different experts are placed on different devices. Tokens are routed between them through All-to-All communication.
- Tensor parallelism (TP) and pipeline parallelism (PP): These further split the computation graph.
Choosing a combination of these strategies is essentially a constrained optimization problem. The trade-offs involve memory capacity, communication bandwidth, and compute efficiency.
3. End-to-end training pipeline: from loading to gradient synchronization
A complete training adaptation connects the following stages:
Model loading → Shard scheduling → Forward/backward computation → Gradient synchronization → Optimizer update↓ ↓ ↓ ↓ ↓Weight format Device placement Operator numerical All-Reduce Optimizer stateconversion and strategy verification and correctness shard consistencyvalidation Communication activation checks verification and recoverytopology planning and fault tolerance
A silent error at any stage, such as a gradient sign error or a misaligned shard boundary, can prevent convergence. The symptoms often appear only hundreds of steps later. This is why running a set number of consecutive steps stably is the common validation standard in the industry.
3. The 400-Step, Two-Node Validation: Why This Metric Matters
The key data points in the announcement are worth examining one by one.
Why 400 consecutive optimizer updates?
The most dangerous failure modes in large-model training are low-frequency numerical anomalies. Occasional gradient explosions, loss spikes, and communication timeouts often appear only after hundreds or thousands of steps. Completing 400 consecutive updates with a smooth loss curve and a finite gradient norm indicates that:
- The mixed-precision strategy is numerically stable on the target hardware, and either loss scaling or the BF16 pass-through approach works.
- The gradient synchronization reduction is implemented correctly, and gradients stay consistent across cards.
- The cross-node communication link, which typically relies on high-speed RDMA-class interconnects, shows no packet loss or deadlock under sustained high load.
Why are loss and gradient norm the core metrics?
Mature training engineering systems monitor the following signals continuously:
# Key training stability metrics (illustrative)metrics = {"loss": per_step_loss, # should decline smoothly, without sudden jumps"grad_norm": global_grad_norm, # should stay finite and stable in magnitude"update_ratio": param_delta / param_norm, # update magnitude should stay under control"nan_flag": torch.isnan(loss).any(), # terminate training on any NaN}
A gradient norm that stays finite throughout means backpropagation did not produce explosive numerical values. If the loss curve follows the convergence trend of the reference implementation, the entire numerical pipeline behaves consistently with mainstream training frameworks.
Why is a two-node, cross-machine run harder than a single machine?
Within one machine, the bandwidth between cards is high and the topology is controllable. Crossing nodes adds the network as an uncertain factor. A two-node, 16-card run that stays stable verifies several things: the communication library’s fault tolerance and retry mechanisms, the startup and synchronization of multi-machine process groups (similar to elastic launch capabilities in torchrun), and the management of clock and data-loading consistency across nodes. This is a necessary prerequisite for scaling to larger clusters.
4. From “Can Train” to “Train Out of the Box”: The Engineering Gap
A single successful adaptation is only a starting point. Large-scale training of frontier models on domestic compute requires four layers of engineering capability:
- Automated operator adaptation layer: When a new model is released, most operators should be covered automatically through code generation and unit test frameworks. Only a small number of long-tail operators should need manual work. This is what the industry describes as a “Day 0” level of response.
- Automatic parallelism tuning: Based on the model structure, cluster topology, and inter-card bandwidth, the system should automatically search for the best DP, TP, PP, and EP combination instead of relying on manual trial and error.
- End-to-end observability: Operator execution time, communication wait time, memory usage, and numerical health during training need a unified monitoring and alerting system. Anomalies should be locatable within minutes.
- Checkpointing and fault recovery: Hardware failures are routine in large clusters. The efficiency of saving and restoring checkpoints, and the consistency of optimizer state recovery across shards, directly determine the share of time spent on effective training.
Publicly reported industry practice includes cases such as training a 200-billion-parameter scientific foundation model from scratch, natively training a full-stack world model, and training an embodied intelligence model across the full workflow. These cases suggest that domestically developed full-function GPUs are approaching a turning point, moving from “usable for inference” to “reliable for training.” Training trillion-parameter models would be the next major milestone.
5. Conclusion and Outlook
Completing training adaptation for a leading open-source large model on domestic compute matters because of what it demonstrates. It shows three key capabilities: operator coverage for complex model architectures, numerical stability in multi-machine, multi-card distributed training, and a complete engineering path from deployment to training. Its significance lies in these capabilities, not in a single successful run.
For developers and enterprise users evaluating a domestic training platform, four measurable dimensions are worth tracking: the completeness of supported parallelism strategies, stability over long training runs (such as the number of consecutive fault
