Training Large-Scale AI Models on Domestic AI Chips: Engineering Practices and Lessons Learned
As ultra-large multimodal models with trillions of parameters push computing infrastructure to its limits, domestic AI chips are evolving from basic inference deployment toward full-pipeline stable training. This article examines the technical differences between training adaptation and pretraining, the engineering challenges of building native multimodal training pipelines, stability verification in cross-node training, and how cloud-native infrastructure supports large-scale training—offering a practical look at where the domestic AI chip ecosystem is heading.
Training Large-Scale AI Models on Domestic AI Chips: Engineering Practices and Lessons Learned
As artificial intelligence advances rapidly, ultra-large multimodal models have become the center of industry competition. Models with trillions of parameters place unprecedented demands on underlying computing infrastructure. In recent years, domestic AI chips have made significant progress in ecosystem development and software stack optimization, gradually moving from basic “inference deployment” toward the more technically demanding goal of “full-pipeline stable training.” Drawing on recent industry practice, this article takes a deep look at the technical paths and engineering challenges involved in adapting domestic AI chips to ultra-large model training.
Training Adaptation vs. Pretraining: A Critical Distinction
Before discussing compute adaptation for large models, several key concepts need clarifying. What the industry often calls “Day 0 adaptation of the latest open-source model” usually means a chip can quickly support inference or forward passes for a new model. However, “training adaptation” is fundamentally different from pretraining a foundation model.
Training adaptation requires that a chip support not only forward propagation, but also backpropagation, gradient computation, and optimizer updates in full. In the technical reports of some well-known large models, hardware from different vendors appears side by side, typically validating inference operators or fine-grained expert parallelism (EP) schemes. Such validation focuses on operator performance and correctness at the inference stage and does not imply that the foundation model’s original pretraining ran on that hardware. True training adaptation demands that the chip and its software stack close the entire loop—from model loading and shard scheduling to gradient synchronization—while maintaining numerical stability under sustained, high-intensity workloads.
Engineering Challenges in Building a Native Multimodal Training Pipeline
To achieve training adaptation for ultra-large multimodal models (such as flagship models approaching 3 trillion parameters), building a native and efficient distributed training pipeline is essential. In this process, the combination of data parallelism, tensor parallelism, and pipeline parallelism is critical.
Take Fully Sharded Data Parallel (FSDP), a mainstream technique today: it shards model parameters, gradients, and optimizer states across devices, dramatically reducing per-device memory pressure and enabling training at massive scale. In real-world engineering, building a native multimodal training pipeline requires overcoming several key challenges:
- Model loading and memory management: Ultra-large models easily trigger out-of-memory (OOM) errors during initialization. The system needs fine-grained memory allocation strategies combined with CPU Offload to dynamically schedule parameters during loading.
- Communication overhead of shard scheduling: Before and after forward and backward passes, sharded data must be efficiently gathered and scattered via All-Gather and Reduce-Scatter operations. The underlying communication library (whether proprietary or general-purpose collective communication) must be deeply optimized for cross-node network topology to minimize the impact of communication latency on compute efficiency.
- Gradient correctness and consistency: In multi-node, multi-device environments, the accumulation order of floating-point operations can introduce small deviations in gradient computation. Over long training runs, these deviations may amplify and prevent convergence.
Stability Verification for Cross-Node Joint Training
The success of large-scale training often hinges on system stability. In one training adaptation experiment targeting a model of nearly 3 trillion parameters, an engineering team ran cross-node joint training tests using 16 flagship AI accelerator cards (designed for both training and inference) across two machines. The goal was to verify the robustness of the underlying hardware and software stack in a complex distributed environment.
The results showed that all 16 training processes completed 400 consecutive optimizer updates. Throughout the entire run, key metrics demonstrated exceptional stability:
- Normal loss convergence: The loss function remained bounded, with no abnormal oscillation or explosion.
- Controllable gradient norms: Gradient norms stayed within a reasonable range throughout, with no gradient vanishing or exploding.
- No numerical overflow or unexpected interruption: Under mixed-precision training (BF16 or FP16), no training crashes caused by numerical overflow occurred.
This verification demonstrates not only hardware reliability but also the maturity of the software stack in operator precision, memory management, and fault tolerance. For enterprise users, the ability to sustain long, stable runs is a key benchmark for evaluating whether a computing platform can support production workloads.
Integrating Engineering Systems with Cloud-Native Infrastructure
Moving from single-model adaptation to scaled production requires a mature engineering foundation. Building full-pipeline stable training capability means deeply integrating hardware characteristics with general-purpose cloud-native infrastructure.
In actual large-scale training jobs, container platforms are typically used for unified scheduling and isolation of compute resources, ensuring utilization efficiency when multiple tasks run concurrently. Combined with logging services and monitoring/alerting systems, developers and operations teams can track core metrics in real time—loss curves, accelerator utilization, memory usage, and network throughput. When a node fails or a performance bottleneck appears, automated tooling can quickly resume training from checkpoints or remove faulty nodes, greatly improving fault tolerance.
A complete automated toolchain is also key to making large model training truly “train out of the box.” Such toolchains should include automatic operator tuning, automatic generation of distributed strategies, and performance profiling dashboards—shielding developers from complex hardware details so they can focus on iterating on model architectures.
Industry Deployments and Outlook
Domestic compute has already delivered notable results in “training domestic models on domestic chips.” Beyond completing full pretraining of hundred-billion-parameter foundation models from scratch, domestic compute has supported full-stack native training of cutting-edge complex models such as 5D world models and embodied AI brain models. These efforts validate the potential of domestic GPUs in multimodal data processing and complex spatial computation, and provide a compute foundation for emerging fields like embodied intelligence.
Looking ahead, the domestic compute ecosystem will continue to focus on building out complete capabilities—from operator adaptation and multi-device coordination to automated toolchains. As interconnect technology for ten-thousand-GPU clusters matures and software stacks keep improving, training frontier models on domestic general-purpose GPUs will gradually move from “possible to train” to “train out of the box.” This evolution will lower the engineering barriers to large model development and provide industry with more autonomous, controllable, and efficient AI computing infrastructure, accelerating the broad adoption of general AI technologies.
