Engineering Practices and Stable Training Methodology for Large-Model Training on Domestic GPUs
This article explains how to distinguish inference integration, inference validation, and full training adaptation when deploying large models on domestic GPU platforms. It examines the engineering requirements of native FSDP2 training, cross-node stability validation, and the four pillars needed to move from “training-capable” to reliable, production-ready infrastructure. It also provides practical recommendations for teams building large-model training workflows on domestic GPU systems.
Engineering Practices and Stable Training Methodology for Large-Model Training on Domestic GPUs
1. Training Adaptation vs. Inference Adaptation: A Boundary That Must Be Clear
When the industry says that a chip has “completed adaptation” for a large model, readers may easily conflate several different types of adaptation. In practice, the integration of a large model with a compute platform has at least three levels, with technical difficulty increasing by orders of magnitude.
The first level is inference integration. The model weights already exist, and the chip only needs to implement and schedule the required inference operators so that the model can complete its forward pass and produce results correctly. This type of adaptation can often be completed on the day a new model is released, commonly referred to as “Day 0 adaptation.” It primarily validates operator coverage and inference correctness.
The second level is inference validation and numerical alignment. Technical reports for some advanced open-source models may list multiple hardware paths for validation. For example, a fine-grained expert-parallel architecture may be tested on accelerator cards with different underlying designs. It is important to understand that this type of parallel validation usually concerns inference operators and cross-platform verification. It does not mean that the model’s base pretraining was completed on those hardware platforms. Unless the model developer explicitly announces the original training infrastructure, “successful adaptation” should not be interpreted as “the model was trained on that chip.”
The third level is full-stack training adaptation. This is the most demanding level. The compute platform must support the complete training loop, including model loading, weight sharding, forward and backward computation, gradient synchronization, and optimizer updates. It must also maintain numerical stability during long-running, multi-node execution. A recent milestone for domestic full-function GPUs was the adaptation of a training-and-inference integrated computing card to a flagship model with nearly 3 trillion parameters. This represents a substantial step for domestic computing infrastructure—from merely running inference to supporting large-scale model training.
2. Building a Native FSDP2 Training Path
For extremely large models, the central challenge is that the full model state cannot fit into the memory of a single device. Fully Sharded Data Parallel (FSDP) addresses this problem by partitioning parameters, gradients, and optimizer states across devices. Each card holds only approximately 1/N of the complete state, while the required data is gathered on demand during computation.
Compared with earlier approaches, the key improvement in the next-generation FSDP2 design is that sharded tensors become a first-class abstraction. This makes it naturally compatible with combined strategies such as tensor parallelism and expert parallelism. Building a native FSDP2 path on domestic GPUs requires the following components:
Model loading and sharding initialization: Checkpoints should be loaded directly in sharded format, avoiding the memory spike caused by loading the entire model before partitioning it.
Sharding scheduling and communication overlap: Parameter-gathering communication during the forward pass should overlap with computation. During backpropagation, gradient reduction should use bucketing to hide as much communication overhead as possible.
Gradient synchronization and numerical consistency: Cross-node gradient synchronization must remain numerically stable under mixed precision. Loss scaling and gradient clipping must be aligned with the behavior of hardware operators.
Multimodal extensions: In multimodal models, the visual encoder and language backbone can differ significantly in parameter scale. The sharding strategy must therefore support non-uniform partitioning and module-level hybrid parallelism.
Completing this entire pipeline means that the platform provides engineering support for the transition from rapid inference deployment to stable end-to-end training, rather than offering only isolated operator capabilities.
3. Methods for Validating Cross-Node Training Stability
Training adaptation should not be judged solely by whether a job can start. The more important question is whether it can run continuously and reliably. A minimum credible validation process generally includes the following elements.
Consider a cross-node training test using two machines with a total of 16 training cards. All 16 training processes should complete hundreds of consecutive optimizer updates—for example, 400 steps. The validation should monitor:
- Loss: Remains finite throughout the run, with no NaN or Inf values;
- Gradient norm: Remains within a reasonable range, without explosive spikes;
- Communication health: Cross-node collective communication completes without timeouts or retransmission storms;
- Absence of abnormal interruptions: No process hangs, and no hardware-level errors cause an interruption or recovery event.
An illustrative monitoring configuration, written in a generic training-framework style, is shown below:
# Training stability monitoring exampletraining_config = {"max_steps": 400,"grad_clip_norm": 1.0,"loss_scale": "dynamic","log_interval": 10,"watchdog": {"metrics": ["loss", "grad_norm"],"nan_policy": "abort", # Abort immediately when an invalid value appears"comm_timeout_sec": 600,},"checkpoint": {"save_interval": 100, # Save periodically to support resuming"async_save": True,},}
It is important to note that 400 consecutive updates only provide a minimum demonstration of stability. Production readiness requires extending validation to thousands or even tens of thousands of steps. Fault-injection tests should also be added, such as deliberately terminating processes or simulating network instability, to verify resilient recovery.
4. From “Can Train” to “Train Well”: Four Engineering Pillars
After a single-point validation succeeds, the capability must be consolidated into a reusable engineering system. Four pillars are typically required.
1. Operator adaptation layer. Large-model training relies on many fused operators, including attention, normalization, and mixed-precision conversion. Each operator must be implemented and tested for numerical alignment. The difference from a reference implementation should remain within an acceptable range for mixed-precision computation.
2. Multi-card coordination layer. This includes topology-aware scheduling in the communication library, coordinated optimization of high-bandwidth intra-node interconnects and inter-node networks, and targeted tuning of All-to-All communication in expert-parallel scenarios.
3. Automated toolchain. The toolchain should cover automatic parallel-strategy search, performance profiling and bottleneck analysis, checkpoint-based resumption, and fault recovery. Its maturity directly determines whether “out-of-the-box training” can become practical. Users should not be forced to write sharding logic manually.
4. Scenario-based validation. Training tasks with different model scales and architectures can be used to improve the platform. Examples include pretraining scientific foundation models ranging from tens of billions to hundreds of billions of parameters, full-stack native training of multimodal world models, and end-to-end training of embodied-intelligence models. These scenarios are important tests of platform generality. As training at the trillion-parameter scale becomes more common, the requirements for memory capacity, interconnect bandwidth, and software-stack fault tolerance will increase further.
5. Practical Recommendations for Developers
Teams planning to train large models on domestic computing infrastructure should consider the following path:
- Align first, then scale: Verify numerical correctness on a single card before gradually expanding to multiple cards on one machine and then to multiple machines.
- Put monitoring first: Before the first training step, deploy collection and alerting for metrics such as loss, gradient norm, and communication time. This can be built on a general-purpose logging and monitoring system.
- Use a conservative checkpoint strategy: Save more frequently during the early stages. Sacrificing a small amount of throughput is preferable to losing the ability to roll back.
- Keep validation terminology precise: In external communication, clearly distinguish among “inference adaptation,” “inference validation,” and “training adaptation” to avoid misleading claims caused by mixing these concepts.
Conclusion
Large-model training adaptation is a comprehensive test of hardware operators, communication systems, software stacks, and engineering methodology. Running 400 stable steps on two machines with 16 cards is only a starting point. The ultimate objective is to productize and toolchainize the capability, allowing advanced models to move from “trainable” to “ready to train out of the box” on domestic full-function GPUs.
Only when every stage of the training pipeline is traceable, supported by practical tools, and backed by recovery plans can the domestic computing ecosystem be considered genuinely complete.
