Adapting Domestic Chinese GPUs for Trillion-Scale LLM Training: A Technical Practice
This article explains what training adaptation for large language models on a domestic Chinese GPU involves, as distinct from inference adaptation. It covers the FSDP2 training path, the added challenges of mixture-of-experts (MoE) training, a 400-step stability test across two nodes with 16 cards, and the metrics for judging training readiness.
1. Background: From Inference Capability to Training Capability
In recent years, open-source large language models have grown from tens of billions of parameters to hundreds of billions, and now to trillions. This growth has fundamentally changed what training requires from the underlying compute.
Previously, discussions of domestic Chinese GPUs and frontier models centered on “Day 0 inference adaptation.” This means adapting inference operators on the day a model is released, so the model can run forward inference on the chip. This work mainly addresses operator coverage, numerical precision, and inference throughput. Its main technical difficulty lies in operator implementation and scheduling optimization.
Training adaptation is a much larger task. Training includes not only the forward pass but also backpropagation, gradient synchronization, and optimizer state updates. It must run continuously and stably for long periods across multiple cards and nodes. A single numerical overflow, communication failure, or memory management defect can interrupt training or corrupt gradients.
A domestic Chinese GPU vendor recently completed training adaptation for an open-source MoE flagship model with nearly 3 trillion parameters. The work used the vendor’s flagship integrated training-and-inference AI accelerator card and its supporting software stack. The team ran training continuously for 400 steps across two nodes with 16 cards in total. This milestone merits a closer look.
Readers should also understand one common misconception. Completing training adaptation for a model does not mean the model was pretrained on that chip. Training adaptation shows that the chip and software stack can support the complete training workflow for this class of model. It makes no claim about where the model weights came from. Some technical reports for large models validate several hardware paths side by side. Such results demonstrate engineering feasibility for inference or training, not the source of pretraining compute. Readers should separate “adaptation validation” from “original pretraining” when interpreting this kind of information.
2. Core Technical Path for Training Adaptation
2.1 Building a Native FSDP2 Multimodal Training Path
For a model with about 3 trillion parameters, a single card cannot hold the full parameters, gradients, and optimizer states. Even with FP8 or BF16 parameter storage, optimizer states such as momentum and second moments usually remain in FP32 precision. The total memory footprint can exceed ten times the parameter count. Fully Sharded Data Parallelism (FSDP) is therefore a requirement.
FSDP2, the newer sharding approach, splits parameters, gradients, and optimizer states across devices. Each compute node holds only one shard of the parameters. During forward and backward passes, the node temporarily gathers the parameters it needs through AllGather, then frees them immediately after computation.
The adaptation built a native FSDP2 multimodal training path that addresses three key stages:
- Model loading: Supports sharded loading of very large weight files, which avoids memory bottlenecks on a single node. Lazy initialization and per-layer materialization typically keep peak memory within a manageable range.
- Shard scheduling: Applies differentiated sharding based on model structure, especially the difference between expert layers and dense layers in MoE architectures. Compute-intensive attention and expert layers use finer-grained sharding.
- Gradient synchronization: Aggregates gradients with ReduceScatter and overlaps this communication with backward computation to hide its overhead. Gradient clipping and norm monitoring help keep numerics stable.
2.2 Additional Challenges of MoE Architectures
MoE models present unique engineering challenges during training. Each token activates only a subset of experts. Expert parallelism (EP) therefore requires dynamic token routing and AllToAll communication across devices. Load imbalance can easily create a weakest-link effect, where the slowest device limits overall throughput. Adaptation work typically requires:
- Implementing efficient expert routing operators and grouped GEMM, which merges computation across multiple experts into batched matrix multiplications;
- Designing combined EP and FSDP parallel strategies. For example, expert dimensions can use EP groups while non-expert parameters use FSDP sharding;
- Introducing an auxiliary load-balancing loss or capacity factor adjustment, which prevents hot experts from slowing down overall training.
3. Stability Verification Across Nodes
In this experiment, the engineering team tested cross-node joint training on two nodes with 16 training-and-inference cards in total. All 16 training processes completed 400 consecutive optimizer updates. The number of steps is small, but the test covers the key dimensions of training stability:
- Numerical health: Loss and gradient norms stayed finite throughout the run, with no NaN or Inf values. For MoE models, router logit range control and scaling factor management in FP8/BF16 mixed precision are common sources of overflow. Stable numerics over 400 steps suggest the numerical path is fundamentally reliable.
- Communication reliability: Cross-node training relies on RDMA or high-speed interconnects for AllGather, ReduceScatter, and AllToAll operations. Uninterrupted operation indicates that the communication stack and fault detection mechanisms work correct
