Large Model Training Adaptation on Domestic GPUs: Engineering Practices and Verification Methods
When a domestic AI accelerator vendor reports that its chips completed 400 consecutive optimizer updates with loss and gradient norms staying finite throughout, many readers assume the model was actually pretrained on that hardware. This article clarifies that "training adaptation" and "pretraining on a given chip" are different levels of achievement, and walks through the three commonly confused levels: inference adaptation, training adaptation, and foundation-model pretraining. It then explains the full technical chain of training adaptation—model loading and sharding, operator alignment and equivalence verification, memory accounting, gradient synchronization, numerical stability, and checkpointing—and shows what a short cross-node run can and cannot prove. Finally, it describes the layers of a mature training-support system and offers a practical checklist for teams planning adaptation.
1. First, clarify the concepts: “training adaptation works” is not the same as “pretrained on this chip”
A domestic AI accelerator vendor recently published training-adaptation results for a flagship model: cross-node joint training across two nodes with 16 training/inference cards in total, where all training processes completed 400 consecutive optimizer updates, with loss values and gradient norms staying finite throughout and no numerical overflow or abnormal interruption. As soon as the news broke, many people read “training adaptation completed” as “this model was already trained on this chip.” That is a misunderstanding worth clearing up.
1.1 Three easily confused levels
| Level | Completion criterion | What it demonstrates | What it does not demonstrate |
|---|---|---|---|
| Inference adaptation (often called Day 0 support) | New model weights load successfully, forward inference results are correct, and throughput reaches an acceptable level | The model can serve requests on the new hardware | Whether the backward pass, optimizer updates, and multi-card coordination work |
| Training adaptation | The full chain—loading weights, sharding parameters, computing gradients, synchronizing gradients, and updating optimizer state—runs end to end, and numerical stability holds across multiple nodes | The new hardware has the baseline capability to run training for a model of this structure | That the model was actually pretrained on this hardware, or anything about the model’s convergence quality |
| Foundation-model pretraining | Starting from random initialization, producing final model weights through long-duration, large-scale training | The hardware supplied the core compute for training the model from scratch | — |
Some technical reports list validation results across several hardware routes at once. The industry generally treats this as inference-side operator validation or functional validation over a limited number of steps; it does not indicate where the compute for the original foundation-model pretraining actually came from. These are two separate questions.
1.2 A common “fast adaptation” misconception
After a new model is released, inference frameworks can often adapt to it very quickly. The reason is straightforward: inference only needs the forward pass, the architecture mostly reuses existing modules, weights are loaded directly, and a single card is sufficient. Training requires every operator that gets used to have a correct forward and backward implementation, and it also has to deal with memory, communication, and numerical precision. So inference being “instant to adapt” does not mean training is “adaptable.”
1.3 Dimensions to weigh when evaluating a training-adaptation claim
- Random initialization or not: Continuing from pretrained weights (full-parameter fine-tuning or continued pretraining) only needs the backward-related operators covered. Training from random initialization also puts every forward operator under strict validation.
- Number of steps and data scale: A few hundred updates only prove the pipeline is usable; they say nothing about convergence.
- Parallel scale: The gap between single-node multi-card and multi-node multi-card is often larger than simply doubling the card count.
- Model size and sparsity: Dense models and mixture-of-experts (MoE) models are not in the same complexity class for training.
- Precision mode: The demands on hardware and operator implementations rise in turn from FP32/TF32 to BF16 to FP8.
- Whether reproducible information is provided: Whether the training configuration, throughput data, and precision-alignment records are disclosed.
2. The full technical chain of training adaptation
At its core, training adaptation means upgrading “a single card can compute the forward pass correctly” to “on multiple nodes and multiple cards, the model, data, and optimizer work together and stay numerically correct for a long time.” It breaks down into the following stages.
2.1 Model loading and sharding
Large-model weights are usually saved in a sharded format, where each shard corresponds to part of the model’s parameters. During loading, you need to decide the parameter range each card is responsible for based on the parallel configuration, avoiding a huge memory peak and long load times caused by “loading the full weights on every card and then re-sharding.” Weight conversion (for example, converting between a training framework’s sharding format and the inference format) should also be done without consuming too much memory.
2.2 Operator alignment and equivalence verification
This is the most labor-intensive part of adaptation and should be validated in layers:
- Unit-level alignment: Under identical inputs, compare operator outputs on the old and new hardware; the relative error must fall within an acceptable range. For operators that involve reduction—softmax, LayerNorm/RMSNorm, attention—different implementations use different accumulation orders, so float-level differences are normal. You therefore need to define error thresholds rather than demand bit-for-bit identity.
- Backward alignment: A correct forward pass does not imply a correct backward pass. The backward pass relies heavily on matrix multiplication and reduction sums, so you need gradient checks (for example, comparing against numerical gradients on small-scale parameters) to confirm the implementation is correct.
- Mixed precision and special operators: Differences in low-precision accumulation, approximate instructions such as exp and sqrt, and random number generator implementations can all be amplified after many steps accumulate.
2.3 Parameter sharding and memory accounting
In standard mixed-precision training, the resident cost per parameter breaks down roughly as follows:
| Component | Precision | Bytes per parameter |
|---|---|---|
| Model weights | BF16/FP16 | 2 |
| Gradients | BF16/FP16 | 2 |
| Optimizer state (first moment, second moment, and FP32 master weights; using AdamW as the example) | FP32 | 12 |
| Total | — | ~16 |
By this estimate, a dense model of roughly 3 trillion parameters needs about 48 TB of memory for these three items alone—far beyond any single machine’s capacity—so it can only be handled through sharding.
The core idea of FSDP2 (the second version of fully sharded data parallelism) is to keep only one shard of the parameters, gradients, and optimizer state on each card, temporarily assembling the full parameters when needed. Compared with the first version, it places more design emphasis on being combined with other parallelism methods such as tensor parallelism (TP) and expert parallelism (EP).
# Illustrative pseudo-code: a full-sharding data-parallel training path, independent of any specific framework# mesh: organizes the 16 cards into a 1D data-parallel communication group# fully_shard: shards parameters, gradients, and optimizer state layer by layermodel = load_model() # Load the model structurefor layer in model.transformer.layers:fully_shard(layer, mesh) # Wrap each layer in full-sharding modefully_shard(model, mesh)optimizer = AdamW(model.parameters(), lr=...)for step, batch in enumerate(train_loader):loss = model(batch) # Forward: per-layer all-gather of params -> compute -> releaseloss.backward() # Backward: reduce-scatter reduces gradients, each card keeps only its local shardgrad_norm = clip_grad_norm_(model.parameters(), 1.0) # Global gradient clippingif not isfinite(grad_norm):skip_update() # Skip this update if gradients contain Inf/NaN, preventing corruption of optimizer stateelse:optimizer.step() # Each card updates only the parameter shard it holdsoptimizer.zero_grad(set_to_none=True)maybe_save_checkpoint(step) # Sharded save, periodically persisted to storage
Compared with data parallelism (DDP), the full-sharding approach saves the redundant copies of optimizer state and gradients, at the cost of introducing communication: every parameter shard must be AllGather-ed together in the forward pass and ReduceScatter-ed in the backward pass. As a result, communication efficiency directly determines overall training efficiency.
2.4 Gradient synchronization and numerical stability
In cross-node training, gradient reduction is carried out over a high-speed interconnect, and the choices of topology, message size, and communication algorithm all affect efficiency. For numerical stability, there are three gates to pass:
- Loss computation: When using a sampled loss in multi-card training, weight it by the actual number of effective samples per card; otherwise it is equivalent to implicitly increasing the learning rate.
- Gradient clipping: Computing the global gradient norm across cards requires all cards to participate in the same reduction, avoiding misaligned collective communication.
- Outlier handling: Dropping gradients that contain Inf/NaN as a whole (skipping the update) prevents anomalous values from continuing to affect later updates through the momentum terms.
2.5 Checkpointing and long-running stability
- Sharded saving: Each card saves only its own shard, and they can write in parallel to shared or object storage, avoiding a single point becoming a bottleneck.
- Save frequency: Too long an interval magnifies the cost of recomputation after a failure; too short slows training down. It must be set based on the failure rate and per-step time.
- Hot backup: Asynchronously copying the latest shards to a backup location while training continues allows fast recovery after a failure.
3. How to understand “16 cards, 400 consecutive optimizer updates, finite loss throughout”
The value of this result lies in the fact that it covers almost all the key stages of a real training run and that it was done across nodes.
3.1 What 400 consecutive updates verify
- The backward pipeline is connected: Producing gradients and performing optimizer updates shows that operator coverage is complete for training, not limited to the forward operators used for inference.
- Gradient reduction is correct: If the ReduceScatter implementation were wrong, the gradient norm would usually diverge quickly or turn into Inf/NaN, making it hard to stay finite across 400 steps.
- Cross-node communication works: The 16 processes must correctly establish a communication group and complete multiple rounds of collective communication; a hang, timeout, or misconfigured communication domain would stall training.
- Basic numerical stability holds: The loss and gradient norm staying finite indicates that no common overflow or divergence occurred.
3.2 What they do not verify
- Not convergence: 400 updates are only a very short segment of training in a trillion-parameter-scale model; the effects of loss trend, learning-rate scheduling, and data distribution on the final result have yet to show up.
- Not large-scale scalability: At 16 cards, the communication share is relatively manageable, but scaling to hundreds or thousands of cards significantly increases communication overhead, failure rate, and scheduling complexity, which must be validated separately.
- Not long-term stability: Stability over a matter of hours cannot substitute for the reliability validation of continuous training over weeks or even months.
- Not MoE or other complex structures: If the target is a sparse expert model, expert parallelism and issues such as load imbalance from dynamic routing still need separate validation.
3.3 Companion metrics to watch
Judging adaptation quality by “loss stays finite” alone is not enough. At a minimum, also watch:
- Throughput and compute utilization: Tokens processed per card per second, model FLOPs utilization (MFU), and the scaling efficiency from a single card to multiple cards.
- Per-step time breakdown: How much is computation, communication, and data loading. If communication waiting takes too large a share, overall efficiency is poor even when training is stable.
- Precision alignment: Whether the loss curves on the old and new hardware match under the same configuration; a common criterion is that the loss difference over the first several steps stays at the float-error level.
- Recovery capability: Whether training resumes seamlessly from a checkpoint after an artificial termination, and whether the loss is continuous with the pre-interruption values.
- Long-run validation: Training continuously for thousands of steps or longer, recording the anomaly rate and recovery time.
It is worth stressing that these are reference dimensions for evaluation methods and are not aimed at any specific product.
4. From “it can train” to “works out of the box”: how to build the engineering system
Successfully adapting a single model is only the starting point of system-level capability. A mature training-support system usually includes the following layers:
- Operator layer: Build an operator library and a precision regression test suite that automatically compares operator outputs against a reference implementation when a new model comes online.
- Framework layer: Make the distributed strategies of mainstream training frameworks (data parallelism, full sharding, tensor parallelism, pipeline parallelism, expert parallelism) fully usable on the new hardware while keeping their behavior consistent with the original implementations.
- Scale layer: Scalability validation from a single machine to multiple machines and from tens to thousands of cards, including communication topology optimization, hierarchical communication (high-speed interconnect within a node, network between nodes), and gradient bucketing.
- Stability layer: Fault detection, automatic isolation, elastic fault tolerance, checkpoint automation, and resume-from-checkpoint.
- Tooling layer: Automatic operator generation and migration, performance profiling, training-job orchestration, and log and metric collection—with the goal of turning “expert tuning” into a “default capability.”
The practice of “domestic chips training domestic models” already spans several training forms: a science foundation model (about 236 billion parameters) completed end-to-end training from scratch on domestic chips; a 5D world model proposed by a university team achieved full-stack native training; and an embodied-brain model completed the full training pipeline. These cases show that domestic compute is moving from supporting inference services to taking on complete training tasks. Future training at the trillion-parameter scale will face higher demands on memory, communication, and stability.
When running training on a cloud or an on-premises cluster, these baseline capabilities are generally offered as generic services: GPU compute instances, object storage (for checkpoints and datasets), a container platform (a unified runtime environment), and logging with monitoring and alerting (to track loss, throughput, and hardware status). The more training evolves toward long cycles and large scale, the more critical the coordination among these capabilities becomes.
5. A practical checklist for teams
- Define the adaptation goal: First state clearly whether it is from-scratch pretraining, continued pretraining, or full-parameter fine-tuning, and set the operator coverage and validation intensity accordingly.
- Lock the version matrix: Fix the version combination of the framework, driver, communication library, and model code, and keep reproducible configuration files.
- Validate in small steps before scaling up: single-card gradient checks → single-node multi-card → two nodes / 16 cards → larger scale, using loss alignment and throughput data at each step as the condition for moving to the next.
- Establish a baseline: Run a short training with the same configuration on known hardware, recording the loss curve and throughput as a reference for the new hardware.
- Design the checkpoint strategy: Define the save interval, storage location, hot backup, and recovery procedure, and periodically run “interrupt-and-resume” drills.
- Improve observability: Centrally collect loss, gradient norm, learning rate, throughput, memory usage, communication time, and hardware health; set anomaly thresholds and automatic alerts to avoid the situation where “training looks like it is running but has actually stalled.”
- Control the risk of wasted training: Data validation, fixed random seeds, and version-controlled training configuration to prevent unreproducible experiments from consuming large amounts of compute.
6. Conclusion
From “inference works” to “training adaptation,” and then to “long-term stable training,” each leap corresponds to improvements in operator correctness, communication efficiency, and system reliability. Validation results represented by “16 cards, 400 consecutive optimizer updates, finite loss throughout” demonstrate that domestic GPUs already have the baseline capability to run frontier-model training; but to truly achieve “works out of the box,” continued investment is needed in operator automation, parallel-strategy optimization, large-scale fault tolerance, and tooling maturity. For developers and enterprise users, understanding the boundaries of an adaptation conclusion and building quantifiable validation methods is more valuable than simply focusing on how many steps a given adaptation “ran.”
