Technical Analysis: Adapting Domestic AI Computing Chips for Large Model Training
As large language models and multimodal models approach 3 trillion parameters, the demands on compute, memory, and communication bandwidth have surged. This article analyzes a recent practice where a team adapted a ~3 trillion parameter flagship model using a training-inference integrated AI computing card and its software stack. It breaks down the technical paths of training adaptation versus inference deployment, explores FSDP2 multimodal training and full-pipeline execution, and clarifies the boundaries of stability tests. Finally, it provides a developer checklist for evaluating domestic AI chips for large-scale model training.
As the parameter scale of large language models (LLMs) and multimodal models approaches 3 trillion, the compute, memory, and communication bandwidth required for training have increased significantly, imposing higher demands on chip architecture and software stacks. Recently, a team completed the training adaptation for a flagship model with nearly 3 trillion parameters using a training-inference integrated AI computing card and its accompanying software stack. This article outlines the technical path of this practice and clarifies which conclusions are supported by public data and which conditions remain unclear.
1. Training Adaptation vs. Inference Deployment
The industry often talks about chips achieving “Day 0 adaptation” for the latest open-source models, but this mostly refers to inference deployment verification. Inference adaptation typically verifies whether operators run correctly and whether the inference plan works. Training adaptation is far more complex. It requires the chip and software stack to fully support forward propagation, backward propagation, and weight updates, while also solving issues related to memory capacity, communication bottlenecks, and numerical stability.
Therefore, a chip capable of inference adaptation is not necessarily capable of training adaptation. When reading that a model “supports a certain chip,” readers should first confirm whether this refers to inference or the complete training process. Furthermore, supporting training adaptation does not mean the model’s base pretraining was completed on this specific chip. These two aspects must be evaluated separately.
2. FSDP2 Multimodal Training Path
FSDP2 (Fully Sharded Data Parallel 2) is a commonly used strategy in large model distributed training. It shards parameters, gradients, and optimizer states across multiple computing devices, with each card saving only a portion to reduce single-card memory usage. In PyTorch, this capability is typically implemented through the fully_shard interface and organized in a per-parameter sharding manner.
The difficulty of multimodal training lies in its more complex data flow. Encoders for text, images, and audio have varying compute volumes and memory footprints, so the training path must coordinate the execution order of these heterogeneous modules. If the software stack supports fine-grained memory management and maximizes the overlap between computation and communication, it can reduce card idle time.
The “native build” mentioned in the article refers to the underlying software stack optimizing tensor sharding and communication at the compiler level. Public materials do not specify which operators were optimized, nor do they provide the framework version and dependency list. Readers wishing to reproduce a similar path need to request this information from the vendor first.
3. Full-Pipeline Training: Loading, Sharding, and Gradient Synchronization
A complete training workflow includes model loading, sharding scheduling, and gradient synchronization. Each stage can become a bottleneck.
During the model loading phase, weight files are large and require high-throughput storage systems and concurrent reading capabilities. In practice, a common approach is to store weights in high-throughput object storage or cloud-native storage, and then have the container platform launch multiple training processes simultaneously. Loading speed directly affects task startup time and recovery speed after a failure.
During the sharding scheduling phase, the system must allocate parameter shards based on the load of each node. If the sharding is uneven, some cards will finish computing early and wait for others, resulting in idle time.
During the gradient synchronization phase, the primary communication modes of FSDP2 are all-gather and reduce-scatter. Before forward and backward computations, each card uses all-gather to collect the required parameters; after backward computation, reduce-scatter distributes gradients to the corresponding shards. AllReduce is only used when aggregating gradients across data parallel replicas or when using a mixed sharding strategy. Communication overhead is highly sensitive to network bandwidth and latency, which is especially evident across nodes.
4. Dual-Node Multi-Card Stability Test: Results and Boundaries
This test utilized two machines with a total of 16 AI computing cards, where 16 training processes completed 400 continuous optimizer updates. During the test, the loss and gradient norm remained finite, with no NaN, Inf, or abnormal interruptions. This indicates that under the test configuration, mixed-precision computation and cross-node RDMA communication ran stably.
However, this result has clear boundaries. By conventional estimation, weights with 3 trillion parameters require about 6TB of storage in BF16 format. If gradients, FP32 master weights, and Adam optimizer states are added, the total footprint far exceeds the combined memory of 16 cards. Therefore, whether the claim “16 cards completed 400 updates for a nearly 3 trillion parameter model” holds true depends on the specific configuration: the parameter sharding method, whether CPU or NVMe offloading was used for optimizer states, sequence length, global batch size, and whether these 400 steps only targeted a subset of parameters. Public materials do not provide these details.
Thus, this article positions this result as a stability test rather than proof of complete training. The absence of numerical issues within 400 steps only proves normal operation under that specific configuration, which cannot be directly extrapolated to long-term reliability in a production environment.
5. Engineering System: Monitoring, Troubleshooting, and Recovery
Training stability relies not only on hardware but also on monitoring and recovery mechanisms. In actual production, teams typically continuously track GPU utilization, network bandwidth, memory usage, loss curves, and gradient norms.
When an anomaly is detected, it can be handled by following these steps: First, check if the loss and gradient norms exceed thresholds, or if NaN or Inf occur. Second, check if any card’s utilization is noticeably low to determine if there is load imbalance. Third, check if the RDMA link is experiencing retransmissions or packet loss. Fourth, if the issue persists, restore training from the most recent checkpoint and record logs for subsequent debugging.
Thresholds must be set individually based on the model and task; there are no universal values. The frequency of checkpoint saving needs to balance storage overhead against recovery costs. These details determine whether an interruption takes a few minutes to recover or requires hours of re-running.
Other public materials mention that domestic computing power has supported the training of 100-billion-parameter scientific foundation models, as well as training practices for 5D world models and embodied brain models. These cases indicate that the relevant teams have certain engineering experience, but the articles do not provide complete statistical criteria and verification sources, so this article will not make further judgments on them.
6. From “Can Train” to “Out-of-the-Box Training”
“Out-of-the-box training” is the industry’s ideal goal, referring to developers being able to initiate trillion-scale model training through standard interfaces and automated tools without tedious underlying environment configuration and communication tuning. This is currently still a direction, not the status quo.
To achieve this goal, at least three types of conditions are required. First, chip vendors must provide sufficiently complete operator coverage and maintain it continuously. Second, multi-card collaboration and communication tuning must be completed automatically rather than relying on manual configuration by experts. Third, the toolchain must cover the entire process from data and sharding to monitoring and recovery. Current public materials provide little description of these three points, and readers need to evaluate them independently.
7. Developer Checklist
If you plan to conduct large model training on domestic AI computing chips, you can first confirm the following questions:
- Does the chip and software stack support training, or only inference?
- Are the framework version, communication library version, and dependency list complete, and is there a runnable minimal example?
- What is the per-card memory, sharding strategy, and is optimizer state offloaded? What are the sequence length and global batch size?
- Are the step count and coverage of the stability test sufficient to represent long-term training?
- Do the model loading speed, checkpoint save time, and recovery time meet business needs?
- Have monitoring metrics and alert thresholds been determined, and can training be quickly restored in the event of NaN or interruption?
Only by answering these questions clearly can the figures from public cases be used to evaluate your own project.
