End-to-End Large Model Training on Chinese-Developed GPUs: Engineering Practices
Supporting large model training requires far more than running inference successfully. This article examines the engineering work behind end-to-end training on Chinese-developed, full-function GPUs, including native FSDP2 integration, parameter and optimizer-state sharding, cross-node stability testing, and large-scale training experience. It also outlines the tooling and observability needed to move from basic training support toward an out-of-the-box training experience.
1. Inference Support and Training Support Are Different Milestones
Discussions about adapting large models to AI chips often conflate two different achievements: day-zero inference support and training support.
Day-zero support generally means that a computing platform can deploy an open-source model for inference on the day it is released. Users can immediately run forward passes on the platform’s chips. The technical focus is operator coverage and optimization: inference can work once the model’s operators—including attention, normalization, activation functions, and expert routing—have correct and efficient implementations.
Training support is substantially more demanding. Beyond forward computation, training requires backpropagation, gradient synchronization, optimizer-state updates, parameter sharding, and resharding. Numerical overflow, communication failures, or memory-management problems at any stage can interrupt a run.
A model’s ability to run inference on a chip does not establish that it can be trained on that chip—and neither establishes that the model was originally pretrained on it.
A common misinterpretation arises when a technical report validates a model on two different chip architectures. Readers may infer that both platforms were used for the model’s base pretraining. In practice, such parallel evaluations may only verify the correctness of inference operators, without disclosing the hardware used for the original training.
Technical readers should distinguish three progressively stronger claims:
- Inference validation: The model can execute inference correctly on the platform.
- Training support: The platform supports the model’s training workflow.
- Native pretraining: The model was actually pretrained on that hardware.
2. Building a Native FSDP2 Multimodal Training Path
For a flagship multimodal model approaching three trillion parameters, a central engineering task is establishing a native training path using Fully Sharded Data Parallel, second generation (FSDP2).
Compared with the first-generation FSDP implementation, FSDP2 improves parameter-management granularity, communication–computation overlap, and device-memory utilization. It is one of the major parallelization approaches used in very large model training.
A complete training path must connect four critical components.
Model Loading and Weight Sharding
Trillion-scale model parameters must be distributed across accelerators according to a sharding strategy. Each device retains only a shard of the parameters, keeping per-device memory requirements manageable.
Loading must also accommodate the different sharding requirements of multimodal components, such as the vision encoder and the language backbone.
Shard Scheduling and Computation Graph Construction
During training, the parameter shards required for the current computation are temporarily gathered through all-gather operations. Once the computation is complete, the gathered parameters can be released so that memory can be reused.
This requires fine-grained scheduling of communication and compute operators in the underlying software stack.
Gradient Synchronization
During backpropagation, reduce-scatter operations reduce gradients and distribute the resulting shards across devices. This ensures that each parameter shard receives the corresponding aggregated gradient information.
The efficiency of gradient synchronization directly affects multi-device scalability.
Optimizer-State Management
Common optimizers, including those based on adaptive moment estimation, maintain additional first- and second-moment states for each parameter. These states also need to be sharded; otherwise, optimizer-state storage alone can exceed device-memory capacity.
For GPU vendors, the key engineering question is whether their software stacks support every part of this workflow natively. Relying solely on generic fallback paths in higher-level frameworks can impose substantial performance penalties and may be impractical for production training.
3. Validating Cross-Node Training Stability
Making the training path execute is only the first milestone. The more demanding test is numerical stability during sustained training.
A useful validation method is a small-scale but complete continuous training run. For example, two servers with 16 training-and-inference accelerators in total can run a cross-node job in which all 16 training processes complete several hundred optimizer updates, such as 400 consecutive steps.
The run should monitor the following metrics and conditions:
- Loss: Values must remain finite and follow a reasonable downward trend or stable pattern, without suddenly becoming NaN or Inf.
- Gradient norm: Values should fluctuate within a reasonable range. Explosive growth can indicate problems with the learning rate, mixed-precision configuration, or gradient clipping.
- Numerical overflow and underflow: Mixed-precision training using FP16 or BF16 alongside FP32 requires appropriate numerical safeguards. Dynamic loss scaling is particularly relevant to preventing gradient underflow in FP16 training.
- Process health: No training process should exit unexpectedly because of communication timeouts, out-of-memory errors, or hardware failures.
The following illustrative monitoring logic checks loss and gradient norms:
for step in range(total_steps):loss = train_step(batch)grad_norm = compute_grad_norm(model)assert math.isfinite(loss), f"step {step}: non-finite loss"assert math.isfinite(grad_norm), f"step {step}: non-finite gradient norm"if step % log_interval == 0:logger.info(f"step={step} loss={loss:.4f} "f"grad_norm={grad_norm:.4f}")
Four hundred stable steps may appear modest, but such a run validates the complete loop: data loading, forward and backward computation, communication, and parameter updates.
This is a necessary prerequisite for pretraining runs lasting thousands or tens of thousands of steps, rather than proof that those longer runs will be stable.
4. Moving from Targeted Validation to Large-Scale Training
The ultimate value of training support must be demonstrated through real, large-scale projects. The source material describes several representative training efforts on Chinese-developed computing hardware:
- Scientific foundation models trained from scratch: Complete pretraining of a scientific foundation model at approximately the 200-billion-parameter scale, starting from random initialization, demonstrating support for extended training runs.
- Native, full-stack world model training: Training world models for multidimensional spatiotemporal modeling, which places more demanding requirements on multimodal data pipelines and device-memory scheduling.
- End-to-end embodied AI training: Work with research institutions to train embodied intelligence models from data preparation through convergence, covering combined tasks such as robotic perception and decision-making.
The important distinction is that these efforts go beyond deploying models trained elsewhere for inference. They involve training parameters from initialization through convergence on Chinese-developed chips.
That process tests software-stack maturity, cluster stability, and engineering capability together.
Extending this experience to trillion-parameter models requires additional work on communication-topology optimization for clusters with tens of thousands of accelerators, fault tolerance and checkpoint recovery, and the balance between training throughput and cost.
5. Engineering Toward Out-of-the-Box Training
There is a substantial engineering gap between “training is possible” and “training works out of the box.” Closing it requires progress in four areas.
Automated Operator Adaptation
New model architectures appear too frequently for manual, operator-by-operator adaptation to remain sustainable. Automated operator-coverage checks and performance-regression testing are needed to make support more systematic.
Easier Multi-Accelerator Configuration
Automatic recommendations and simplified configuration for data, tensor, pipeline, and expert parallelism can reduce the amount of manual tuning users must perform.
A Complete Toolchain
Environment checks, profiling, fault diagnosis, and elastic fault-tolerance tools need to work together. When a problem occurs, users should be able to determine whether its origin is in the framework, driver, or hardware.
End-to-End Training Observability
General-purpose logging, monitoring, and alerting services can collect metrics such as loss, gradient norm, communication bandwidth, and device-memory usage throughout the training workflow.
This makes training-health assessment more data-driven and less dependent on operator experience alone.
Conclusion
Supporting stable training for very large models on Chinese-developed, full-function GPUs represents a shift from inference compatibility toward dependable training capability.
Three engineering foundations underpin that progress: a complete training path, cross-node stability validation, and experience from large-scale training projects.
As operator support, distributed-training tooling, and observability mature, out-of-the-box training for advanced models on these platforms becomes a more practical engineering objective.
