Training Trillion-Parameter LLMs on Chinese GPUs: Engineering Practices and FSDP2 Validation
This article examines a training adaptation of a nearly 3-trillion-parameter open-source flagship model on a Chinese GPU vendor’s flagship training-and-inference accelerator card and self-developed software stack. It clarifies the difference between training adaptation and inference adaptation, details the native FSDP2 multimodal training path, and explains why 16 accelerators across two nodes completing 400 consecutive optimizer updates with finite loss and gradient norms is a meaningful stability check. It also discusses the engineering capabilities required for reusable large-scale training, supporting cloud infrastructure, and the path from “can train” to “train out of the box.”
Training Trillion-Parameter LLMs on Chinese GPUs: Engineering Practices and FSDP2 Validation
1. Background: A Meaningful Training Adaptation
Recently, the Chinese GPU field saw a noteworthy development: a Chinese GPU vendor used its flagship training-and-inference integrated AI accelerator card and self-developed software stack to quickly complete training adaptation for an open-source flagship model with nearly 3 trillion parameters. In the experiment, the solution used two nodes with 16 accelerators in total to complete cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, and both loss and gradient norm remained finite throughout, with no numerical overflow or abnormal interruption.
The announcement may look brief, but its technical implications are much richer. To understand its value, it is first necessary to clarify a concept that is often confused in industry discussions: training adaptation and inference adaptation are not the same thing.
2. Training Adaptation Is Not Inference Adaptation
2.1 The Essential Difference Between the Two Types of Adaptation
In the open-source large-model ecosystem, whenever a new model is released, compute vendors often announce “Day 0 adaptation.” In most cases, this refers to inference adaptation—making the model able to perform forward computation on their chips and produce correct inference results. The core work of inference adaptation includes:
- Implementing or mapping the operators required for inference, such as attention, normalization, and activation functions;
- Adapting the scheduling logic of inference frameworks;
- Handling inference-specific paths such as KV Cache and quantized inference.
Training adaptation is an order of magnitude more complex. Training requires not only forward computation but also a complete closed loop that includes backpropagation, gradient computation and aggregation, optimizer state updates, cross-device gradient synchronization, numerical stability under mixed precision, and checkpoint resume. If any part fails, training can end with loss divergence, NaN overflow, or a direct crash.
2.2 A Common Misconception to Clarify
It is also important to emphasize that “adapted on a certain chip” does not mean “the model was pretrained on that chip.” A common industry practice is that a model publisher’s technical report may validate multiple hardware paths at the same time, but this is more about verifying operator correctness and solution feasibility. For third parties, responsible statements should clearly distinguish among “adaptation validation,” “inference deployment,” “fine-tuning training,” and “from-scratch pretraining,” avoiding misinterpretation in external communication. In this case, the vendor explicitly positioned the result as “training adaptation,” and this rigor itself is worth learning from.
3. Technical Breakdown: Native FSDP2 Multimodal Training Path
3.1 Why FSDP Is Needed
For a model with nearly 3 trillion parameters, a single card’s memory is far from enough to hold model weights, gradients, and optimizer states. In mixed-precision training, for example, if a common optimizer is used, each parameter may require multiple copies for weight, gradient, momentum, variance, and other states, and total memory demand can reach more than ten times the parameter bytes. Fully Sharded Data Parallel (FSDP) has therefore become a de facto standard for large-model training: it shards model parameters, gradients, and optimizer states across all devices, with each device storing only one shard and temporarily aggregating full parameters through communication during computation.
3.2 The Significance of Native Support for the New-Generation Sharding Framework
This adaptation built a native FSDP2 multimodal training path, connecting the complete training chain from model loading and sharding scheduling to gradient synchronization. The word “native” is critical here—it means the solution is not simply translating calls from other hardware through a compatibility layer. Instead, the software stack provides deep support for the sharded training paradigm from low-level operators to distributed communication. Specifically, a complete training chain includes the following stages:
- Model loading and sharding: Split trillion-level parameters according to a strategy and distribute them to each device, while handling the differentiated sharding requirements of different structural modules in a multimodal model, such as the vision encoder and language backbone;
- Forward and backward computation: Complete forward computation in the sharded state, and during backpropagation aggregate parameter shards as needed and compute gradients;
- Gradient synchronization: Complete cross-node gradient reduction through efficient collective communication; communication efficiency directly determines multi-card scaling;
- Optimizer update: Complete parameter updates on sharded optimizer states and ensure numerical consistency under mixed-precision scenarios.
3.3 What 400 Consecutive Training Steps Show
In the experiment, 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norm finite throughout, no overflow, and no interruption. Why use “400 steps” as the validation scale? In engineering practice, hidden problems in hardware or software stacks often do not appear at step 1; they gradually emerge during sustained operation. Issues such as OOM caused by memory fragmentation, occasional communication timeouts, and accumulated numerical precision drift all require a certain time window to surface. Continuous stable operation for 400 steps, combined with full monitoring of the loss curve and gradient norm, is a common and reasonable method in the industry for validating the usability of a training chain. An illustrative monitoring example is shown below:
# Illustrative code for training stability monitoringfor step, batch in enumerate(dataloader):loss = model(batch)loss.backward()grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)optimizer.step()assert torch.isfinite(loss), f"step {step}: loss overflow"assert torch.isfinite(grad_norm), f"step {step}: abnormal gradient norm"logger.log({"step": step, "loss": loss.item(), "grad_norm": grad_norm.item()})
4. From Single-Point Validation to Systematic Capability
4.1 Engineering Systems Matter More Than a Single Success
Running a single model successfully is not enough to prove the maturity of a compute platform. The real threshold is whether a reusable engineering system can be formed. According to public information, the vendor has accumulated experience in multiple large-scale training efforts: it has completed full pretraining from scratch of a 200-billion-parameter scientific foundation model, supported full-stack native training of a world model, participated in the full-process training of an embodied intelligence large model, and is currently advancing trillion-level parameter model training. This progressive capability validation from hundreds of billions to thousands of billions and then to trillions of parameters is the most convincing part of the “domestic chips training domestic models” narrative.
4.2 What a Complete Training Capability Stack Should Include
For developers, evaluating whether a Chinese compute platform is “trainable” can start from the following dimensions:
- Operator coverage: Whether operators required by mainstream model structures are complete and whether custom operator extension is convenient;
- Distributed capability: The degree of support and combination flexibility for strategies such as data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism;
- Communication performance: Intra-node and inter-node interconnect bandwidth and the optimization level of the collective communication library;
- Fault tolerance and operations: Checkpoint resume, automatic fault detection and recovery, and observability of the training process;
- Toolchain maturity: The degree of automation from environment configuration and model migration to performance tuning.
4.3 Supporting Infrastructure for Cloud Deployment
In enterprise deployment scenarios, training tasks also require complete cloud infrastructure: object storage to carry massive training corpora and checkpoints, container platforms to orchestrate multi-machine training tasks, and logging, monitoring, and alerting systems to safeguard the stability of long-running training. Mainstream cloud platforms such as Baidu AI Cloud provide general cloud product categories, including object storage, container engines, and monitoring and alerting, which can complement Chinese compute clusters and help developers focus on models and data rather than low-level operations.
5. Outlook: From “Can Train” to “Train Out of the Box”
The next stop for Chinese GPU training capability is “train out of the box”—allowing developers to start and stably run training tasks through a standardized toolchain after obtaining an open-source model, without needing to deeply understand low-level hardware details. This requires continued refinement at three levels: operator adaptation, multi-card collaboration, and automated toolchains. At the operator level, the goal is rapid follow-up on new model structures; at the collaboration level, the goal is high scaling and high availability on large-scale clusters; at the toolchain level, the goal is to minimize migration cost.
Overall, although the scale of this two-node, 16-card, 400-step stable training run is limited, it validates the correctness and stability of the complete training chain and is a necessary step for Chinese compute to move toward large-scale training practice. As trillion-level parameter training practice advances, the role of full-function Chinese GPUs in the large-model training landscape deserves continued attention.
