Training Adaptation of a Domestic GPU for Ultra-Large-Scale Models: Practice and Reflections
This article explains why training adaptation is harder than inference adaptation for domestic AI chips. It covers the core technical steps (weight sharding, cross-node communication, and numerical stability), what a 400-step continuous training run does and does not show, and the engineering work needed to move from a successful validation to reliable large-scale training.
1. Background: From Inference-Ready to Training-Ready
In recent years, the ecosystem for domestic AI compute chips has gone through clear stages of development. Early on, most vendors focused on “Day 0 support”: after a new open-source model was released, they quickly completed operator adaptation and deployment validation on the inference side, confirming that the model could run its inference pipeline on their hardware. This kind of adaptation was relatively manageable. The inference pipeline is short, and computation is mostly static graphs or forward passes. When an operator was unsupported, engineers could work around it with equivalent substitutions or CPU fallback.
Training adaptation is a much bigger challenge. Training requires not only forward computation but also backpropagation, gradient synchronization, mixed-precision numerical management, and optimizer state maintenance. A single operator precision deviation, memory scheduling anomaly, or communication timeout can cause training loss to diverge, gradients to overflow, or the entire run to stop. So when a domestic GPU vendor announced that it had completed training adaptation for an open-source flagship model with nearly 3 trillion parameters, the technical substance of that announcement deserves a careful look.
One common misunderstanding needs clarifying: training adaptation does not mean pretraining. “Completing training adaptation” usually means that the hardware platform can run the complete training pipeline for that model. Engineers have verified that the training pipeline is feasible and stable at a given scale. It does not mean the model’s base pretraining was performed on that hardware. Some in the industry conflate inference operator validation with the source of pretraining compute, and readers should keep these apart. For enterprise decisions, the meaningful signal is whether the hardware and software stack can support large-scale, long-running, numerically stable distributed training.
2. Core Technical Path of Training Adaptation
Completing a training adaptation requires solving several key problems:
1. Model Loading and Weight Sharding
The parameter count of an ultra-large model far exceeds the memory of a single card, so parameter sharding is essential. The mainstream approach in the industry is an evolved form of fully sharded data parallelism (FSDP-style). Its core ideas are:
- Split the model parameters, gradients, and optimizer states across multiple devices;
- When the forward or backward computation reaches a layer, temporarily gather the shards that layer needs;
- After the computation finishes, release the shards that are not held locally to reduce peak memory usage.
A typical layer-by-layer strategy is illustrated below:
# Pseudocode: FSDP-style fully sharded data parallelismfor layer in model.layers:shard = all_gather(layer.params) # Temporarily gather the shardsoutput = layer.forward(input)free(shard) # Release the shards after computationloss.backward()clip_grad_norm_(model.parameters())optimizer.step() # Optimizer states are sharded as well
Multimodal training also requires that the heterogeneous structures of the vision and language modules be correctly partitioned and scheduled. This places higher demands on the granularity control of the sharding strategy.
2. Cross-Node Communication and Gradient Synchronization
Running on two machines with 16 cards means training crosses node boundaries. Inter-node bandwidth is usually much lower than intra-node bandwidth, so the design must address the following:
- Gradient bucketing: merge multiple gradients and communicate them in a single batch to improve bandwidth utilization;
- Overlapping communication with computation: transmit gradients during backpropagation so that communication latency is hidden behind computation;
- Hybrid parallelism: in addition to data parallelism, combine tensor parallelism and expert parallelism (for sparse MoE architectures) to control the communication volume per card.
3. Numerical Stability Management
The most common point of failure in large-scale training is numerical stability. Under mixed-precision training, improper loss scale adjustment, missing gradient clipping, or optimizer state overflow can cause training to diverge within a few thousand steps. A mature training stack needs dynamic loss scaling, gradient norm monitoring, and automatic rollback when gradients become abnormal.
3. Stability Validation: What a 400-Step Continuous Run Means
The vendor’s technical report gives one specific validation result. On two machines with a total of 16 flagship cards that handle both training and inference, the system completed 400 consecutive optimizer updates. Loss and gradient norm stayed finite throughout, with no numerical overflow or abnormal interruption.
This number may look modest, but its value lies in the words “continuous” and “full pipeline”:
- Covers a full cycle: 400 steps are enough to cross several loss scale adjustment cycles, repeated parameter reshardings, and multiple rounds of cross-node communication. This can expose intermittent communication jitter and numerical anomalies.
- Multi-process coordination: All 16 training processes participate, so a deadlock, timeout, or gradient deviation in any one process would cause the run to fail.
- Prerequisite for reproducibility: Stable, finite loss and gradient norms are a basic prerequisite for scaling to larger clusters and longer training runs. Large-scale pretraining often lasts for months. If the basic pipeline is unstable over hundreds of steps, scaling up is meaningless.
The result should also be viewed objectively. 400 steps are far from enough to support month-long pretraining on a cluster of ten thousand cards. The validation shows engineering feasibility, not production-level scale. Industry progress typically moves in stages: from validation over hundreds of steps, to stability over thousands and tens of thousands of steps, and then to genuinely long pretraining runs.
4. From Single-Point Validation to an Engineering System
A successful training adaptation is only a starting point. What separates leading platforms is the engineering system built around the full training workflow:
- Operator ecosystem: high-performance implementations of core operators, and automatic fallback for long-tail operators;
- Multi-card collaboration: a unified communication library and collective communication optimization, covering high-speed intra-node interconnects (NVLink-style) and inter-node networking;
- Automated toolchain: operator coverage detection, precision alignment tools that compare results layer by layer against a reference implementation, and distributed checkpoint resumption with automatic fault recovery;
- Observability: real-time monitoring and alerting for loss curves, gradient norms, communication time, and memory usage.
Industry practice already shows that domestic compute supporting domestic model training is forming a closed loop. Training scenarios are growing more complex, from training scientific foundation models with hundreds of billions of parameters from scratch, to full-stack native training of multimodal world models, to end-to-end training of embodied intelligence brain models. Training at the trillion-parameter scale is also in progress.
5. Outlook: From “Trainable” to Out-of-the-Box Training
Today, training large models on domestic GPUs still requires a capable engineering team to fill operator gaps, tune performance, and troubleshoot stability issues. The next goal is to make this process standardized and automated, so that model code can start training on domestic hardware without targeted modifications. This is what the industry calls out-of-the-box training.
Reaching this goal requires sustained investment in the software stack in three areas. First, automatic operator generation and adaptive kernel technology, to reduce the cost of adapting long-tail operators. Second, deep compatibility with mainstream distributed training frameworks, so that existing training scripts can migrate smoothly. Third, a complete precision and performance benchmarking system, so that training stability and throughput can be measured and compared.
For developers and enterprises following the domestic compute ecosystem, the key message from this training adaptation progress is that domestic full-featured GPUs are moving from “usable for inference” to “reliable for training.” The technical approach of hardware and software co-design for full-featured GPUs is showing growing competitiveness in the era of large models. As the toolchain matures, the barrier to supporting cutting-edge large model training on domestic compute should continue to fall. This trend is worth continued tracking and verification.
