GPU Large-Model Training Adaptation: From Running Once to Stable Training
This article examines how large-model training adaptation on domestic GPUs is moving from a single successful run to sustained, stable training. It clarifies common concepts, outlines the technical architecture across model, operator, sharding, communication, and optimization layers, presents a phased validation path, describes common failure modes and troubleshooting methods, and provides a checklist for engineering teams working toward “ready-to-train” capability.
1. Introduction: Training Adaptation Is Moving from “Running” to “Stable Running”
Recent technical updates around domestic GPUs have attracted attention from developer communities: a domestic GPU vendor completed training adaptation for an open-source flagship large model based on a training-and-inference integrated compute card and its self-developed software stack. On a two-node, 16-card setup, 16 training processes completed 400 consecutive optimizer updates. Throughout the process, loss values and gradient norms remained finite, with no numerical overflow or abnormal interruption.
Such news is often reduced to “another domestic chip has adapted a large model.” For engineering teams, however, the more important issue is the capability leap behind it: the evaluation of domestic GPU participation in large-model training is shifting from “can it run once?” to “can it run stably over a long period and at scale?” This shift means training adaptation is no longer a one-off porting task; it has become a systematic engineering capability. This article first clarifies the conceptual boundaries of training adaptation, then analyzes the technical architecture of the full training pipeline, followed by a phased validation methodology and common troubleshooting approaches. Finally, it summarizes the capabilities needed to move toward “ready-to-train” status.
2. Concept Clarification: Training Adaptation, Continued Pretraining, and Full Pretraining
When discussing “training a large model” on domestic GPUs, it is important to distinguish several concepts that are often used interchangeably. Their requirements for compute, stability, and engineering capability differ significantly.
| Concept | Starting point | Data scale | Core challenges | Typical output |
|---|---|---|---|---|
| Inference adaptation/deployment | Existing model weights | No training data | Correctness and performance of inference operators, memory usage | Inference service available for external use |
| Training adaptation (fine-tuning / continued pretraining) | Existing model weights | Much smaller than pretraining | Forward and backward operators, sharding and communication, numerical stability | Adapted model and validated training capability |
| Full pretraining | Random initialization | Massive corpus, typically at the trillion-token scale | Long-term stability across thousands or tens of thousands of cards, data pipeline, fault tolerance | New foundation model |
It is especially important to note that “successful adaptation” and “the base model was pretrained on this chip” are different propositions. There are already relevant cases in the industry: the technical report of a leading model team compared inference operators for two mainstream AI accelerators and validated the same fine-grained expert parallelism scheme. However, this is generally regarded as inference-side validation, and the original pretraining compute source for the base model has not been disclosed.
Therefore, when evaluating the outcome of a training adaptation, the following questions should be made explicit:
- Training type: Is this inference validation, fine-tuning or continued pretraining based on existing weights, or full pretraining from scratch?
- Data scale: How many tokens were trained, and what data distribution was used?
- Parallel scale: How many cards were used, across how many nodes, and which parallel strategies were applied?
- Acceptance criteria: Should the evaluation be based on single-step latency and throughput, or on consecutive steps, loss curves, and fault recovery capability?
Clarifying these boundaries does not diminish the value of training adaptation. On the contrary, training adaptation is the first threshold for domestic GPUs entering large-model training scenarios. Only after crossing this threshold can “full training from zero” have a foundation. In the original case, the vendor mentioned that it had previously completed from-scratch full training of a scientific foundation model with more than 200 billion parameters and had supported full-stack native training of a 5D world model as well as full-process training of an embodied brain model. This reflects a clear progression: first complete adaptation and validation on a mature model, then gradually move toward full training of new models.
3. Technical Architecture of Training Adaptation: Where the “Breakpoints” Appear Across the Pipeline
Training adaptation is often understood as “filling in operators,” but that is only one part of the work. A complete training pipeline can be divided into five layers along the data flow. Each layer can reveal the gap between “can run” and “can run stably.”
3.1 Model Layer: Weight Loading, Structure Parsing, and Partitioning
When training starts, the framework needs to read model configurations and distributed weight files, build the computation graph, and partition parameters, gradients, and optimizer states according to the parallel strategy. Common issues at this layer include:
- Weight format or sharding layout mismatches that cause load errors or silent misalignment.
- Custom operators mixed into the model definition.
- MoE (Mixture-of-Experts) models where expert routing and load-balancing behavior are inconsistent across hardware backends.
3.2 Operator Layer: Correctness and Precision of Forward and Backward Computation
The biggest difference between training and inference is that inference only requires forward computation, while training also requires backward propagation and multiple parameter updates. A small precision deviation that appears occasionally during inference may be amplified during training as parameters are updated. A common validation approach is to define standards at two levels:
- Single-operator level: For typical inputs, compare element-wise errors between the domestic GPU output and a reference implementation.
- Model level: With the same weights and data, compare the first-step loss, per-layer gradient norms, and updated parameters between the domestic GPU and a reference platform.
3.3 Sharding and Parallelism Layer: Rebalancing Memory and Communication
If full parameters, gradients, and optimizer states are simultaneously resident on a single card, GPU memory is quickly exhausted. Fully Sharded Data Parallel (FSDP)-style approaches slice these three types of state along the data-parallel dimension so that each card stores only a portion. Before forward and backward computation, the required shards are temporarily gathered through collective communication. In practice, this is usually combined with tensor parallelism, pipeline parallelism, and expert parallelism. Key points at this layer include:
- Shard layout and computation order must correspond strictly; otherwise, gradients may be written back to the wrong shards.
- Boundary handling when the number of shards cannot evenly divide parameter dimensions.
- Correct scheduling of activation recomputation, which trades extra computation for memory savings, and shard aggregation.
3.4 Communication Layer: Gradient Synchronization and Collective Communication Semantics
A training step can be abstracted as alternating between collective communication and computation. Different parallel dimensions correspond to different communication patterns:
| Parallel dimension | Primary role | Typical collective communication operations |
|---|---|---|
| Data parallelism | Replicate the model and split the data | Gradient reduction (AllReduce / ReduceScatter + AllGather) |
| Tensor parallelism | Split matrix computation within a layer | AllGather / ReduceScatter in forward and backward passes |
| Pipeline parallelism | Split the model by layers | Point-to-point send/receive between adjacent pipeline stages |
| Expert parallelism | Split MoE layers by expert | All-to-All routing |
There are two common pitfalls here. First, some collectives produce correct results at small scale but expose latency and bandwidth issues after scaling across nodes. Second, floating-point addition is not associative, so different reduction orders can introduce subtle numerical differences that may shift the loss curve during long training runs.
3.5 Optimization and Fault-Tolerance Layer: The Last Mile for Long Stable Training
The value of 400 consecutive updates comes from the fact that it covers a complete closed loop:
- The initial cold-start phase: GPU memory allocation, communication domain setup, and the first checkpoint save.
- A steady-state phase spanning tens to hundreds of steps.
- Transition points where dynamic policies such as learning-rate scheduling and gradient clipping take effect.
At this layer, numerical behavior must be stable and controllable. Dynamic loss scaling under mixed precision (for example, FP16/BF16), global norm calculation for gradient clipping, and checkpoint save/restore all require anomalies to be captured in time. At larger scale, fault detection, job restart, and resume-from-checkpoint training also need to be considered. A full rollback caused by a node failure can cost hours or even days of compute.
4. Phased Validation: From “Running One Step” to “Stable 400 Steps”
Using the adaptation practice in the original case as an example, a two-node, 16-card setup with 16 processes and 400 consecutive optimizer updates can be broken down into a progressive validation path.
4.1 Phase 1: Single-Card, Single-Step Correctness
On a single card, complete one forward pass, backward pass, and parameter update. Focus on verifying:
- Whether the loss value is finite.
- Whether any gradients are all zero or abnormal.
- Whether parameter changes before and after the update match expectations.
4.2 Phase 2: Multi-Card Single-Node and Sharding Consistency
After scaling to multiple cards on a single node, focus on two points: whether gradients are consistent after synchronization within data-parallel groups, and whether saved checkpoints can restore identical parameters. Illustrative pseudocode is shown below:
# Illustrative pseudocode for consistency checks in training adaptation; not tied to a specific framework API.# 1. Compute the local gradient norm before synchronization for each parallel group (partial reduction)local_grad_norm = global_grad_norm(partial=True)# 2. Aggregate into the global gradient norm within the corresponding communication groupglobal_grad_norm = collect_norm(local_grad_norm)# 3. Assert that all ranks compute the same global gradient normassert all_ranks_equal(global_grad_norm, tol=0.0) # Bitwise equality under the same reduction path# 4. Verify cross-node gradient synchronizationverify_grad_sync_across_nodes(model, tolerance=1e-5) # Tolerance depends on reduction order and precision
4.3 Phase 3: Cross-Node Joint Training and Scalability
Cross-node training extends communication from intra-node interconnects to the network. This phase requires recording:
- Changes in single-step time: When the number of nodes increases, does step time remain roughly flat or rise significantly?
- Scaling efficiency: Under the same global batch size, how does step time trend as scale grows?
- Topology adaptation: Do data-parallel groups and pipeline-parallel groups match the bandwidth hierarchy within and across nodes?
In addition, it is necessary to verify whether training can detect process failures or network jitter and restart in time.
4.4 Phase 4: Long Stable Running and Numerical Health Monitoring
Running continuously for hundreds of steps or more requires looking at curves rather than single points. Metrics that should be continuously collected and observed include:
- Loss: Should generally show a downward trend and remain finite throughout.
- Gradient norm: Should stay within a reasonable range, without continuous monotonic increase or sudden drops.
- Single-step time: Whether P50/P99 values are stable and whether periodic jitter occurs.
- Device metrics: Temperature, power consumption, and whether throttling occurs.
- Checkpoints: Whether save and load times are normal and checkpoint content is complete.
It is important to emphasize that 400 steps is the “starting line” of stability validation, not the finish line. It demonstrates that the training pipeline can close the loop at the scale of hundreds of steps, but 10,000-card training spanning several weeks still requires longer stability data and more mature fault-tolerance mechanisms. Some vendors in the industry have publicly reported milestones such as “continuous training for tens of days without interruption,” which reflects a progression:
Hundred-step validation → Thousand-step validation → Multi-day continuous training → 10,000-card scale training
5. Common Issues and Troubleshooting Approaches
| Symptom | Possible causes | Troubleshooting approach |
|---|---|---|
| Loss becomes NaN/Inf | Underflow or overflow under mixed precision; abnormal data samples; gradient explosion | Check whether dynamic loss scaling is working; locate anomalous batches; verify gradient clipping |
| Gradient norm is persistently abnormal | Shard layout mismatch; gradients from some ranks are not synchronized | Compare gradient norms before and after synchronization across ranks; check parallel group assignment |
| Performance degrades after scaling to multiple nodes | Communication topology mismatch; collectives fall back to inefficient paths | Analyze the communication share in single-step time; check the communication library’s topology awareness |
| Crash after long-term operation | GPU memory fragmentation accumulation; device or node failure | Monitor memory peaks and fragmentation; enable fault detection and automatic restart |
| Loss curve deviates from the reference platform | Operator precision differences; different reduction order; inconsistent data order | Align data order and random seeds; compare activations and gradients layer by layer |
6. Toward “Ready to Train Out of the Box”: Capabilities the Platform Side Needs to Complete
The endpoint of training adaptation is not the success of one experiment, but enabling developers to “train out of the box” on a platform. This requires hardware-software coordination as well as engineering support from cloud platforms.
6.1 Hardware-Software Co-Optimization
On the hardware side, the training operator library needs to be continuously improved, and the topology awareness and fault tolerance of collective communication need to be enhanced. On the software-stack side, compatibility with mainstream training frameworks and parallel strategies should be maintained, while differences across generations of devices should be abstracted away.
6.2 Engineering Foundation from Cloud Platforms
Cloud platforms can provide a general-purpose foundation, including:
- Container platform: Isolated and standardized runtime environments.
- Training job scheduling: Compute allocation based on queues and priorities.
- Object storage: Persistent storage for training data and checkpoints.
- Logging service: Unified collection of training logs.
- Monitoring and alerting: Tracking device metrics and job status.
- Highly available network and parallel file system: Supporting cross-node communication and high-speed data reads.
In China, some cloud vendors have introduced compute clusters and supporting toolchains for large-model training. For example, Baidu AI Cloud provides AI computing, storage, networking, and a set of large-model development tools as one possible general-purpose foundation for this type of training. When selecting a platform, users should focus on framework compatibility, large-scale linear scaling capability, and fault recovery efficiency.
6.3 Establishing a Regression Validation System
Every software-stack or driver upgrade should automatically run regression cases at both the operator level and the model level to prevent adaptation results from regressing as versions evolve.
7. Training Adaptation Checklist for Developers
- Clarify the scope: Clearly specify the training type, data scale, number of cards, and parallel strategies, avoiding confusion between “adaptation” and “pretraining.”
- Fix the baseline: Fix the data order and random seeds, use the reference platform’s loss and gradients as the baseline, and compare layer by layer.
- Validate synchronization: Confirm that gradients are consistent across ranks, sharding is correct, and checkpoints can be restored.
- Test scaling: Expand from a single node to multiple nodes, and observe trends in single-step time and scaling efficiency.
- Monitor long-term stability: Continuously track loss, gradient norms, single-step time, temperature, and power consumption, rather than only checking final accuracy.
- Run failure drills: Actively simulate node failures and verify automatic restart and resume-from-checkpoint capability.
- Apply regression gates: Automatically run regression tests after each software-stack upgrade to prevent adaptation results from degrading.
8. Conclusion
A domestic GPU vendor completed training adaptation for a trillion-parameter open-source model and ran it stably for 400 consecutive steps on a two-node, 16-card setup. This marks a key step for domestic full-function GPUs in the field of large-model training. For developers and enterprises, however, it is even more important to understand the methodology behind this result: training adaptation is a systems-engineering effort that covers the model, operators, sharding, communication, optimization, and fault tolerance. Only through phased validation, data-driven evaluation, and clear conceptual boundaries can repeated “can train” results accumulate into reliable “ready-to-train” capability.
