Engineering Practices for Training Large Models on Domestic Chinese GPUs
This article explains why training adaptation differs from inference adaptation for AI accelerator chips. It then covers the core parts of a training path: an FSDP2-based native distributed training setup, a 400-step stability test across two machines with 16 accelerator cards, and the engineering stack needed to make such platforms usable for large-scale model training.
As large language model parameter counts move toward the trillion scale, diversifying compute infrastructure has become a practical requirement for the industry. Recently, a Chinese GPU vendor used its flagship training-and-inference accelerator cards and in-house software stack to complete training adaptation for a frontier open-source model with nearly 3 trillion parameters. Running on two machines with 16 accelerator cards in total, the setup sustained 400 consecutive optimizer updates without instability. This case offers a representative example of how domestic compute can support very large model training. This article sets aside the specific vendor and product details and examines the core stages and engineering methods of this kind of work from a general technical perspective.
1. Training Adaptation vs. Inference Adaptation
Before reading any announcement that a chip “adapts” to a large model, one distinction matters: successful adaptation does not mean the model was pretrained on that chip.
Industry announcements often describe “Day 0 adaptation.” This usually refers to inference-level operator adaptation. The model weights already exist, and the chip vendor must make the inference framework load those weights correctly on its hardware, run forward computation, and produce correct outputs within a day or a short time after the model is released. This work mainly covers operator coverage, accuracy alignment, and inference performance tuning. Its engineering timeline is relatively manageable.
Training adaptation is a much larger challenge. The hardware and software stack must fully support backpropagation, gradient computation and synchronization, optimizer state updates, and distributed sharding and scheduling. A numerical deviation or communication fault in any one of these stages can cause training to diverge or stop. Some technical reports present “validation across multiple hardware paths.” In most cases, these reports validate inference operators or specific parallelism schemes, such as fine-grained expert parallelism. They do not show that the hardware supplied the pretraining compute for the base model. To judge the technical value of an adaptation result, first ask whether it validates inference or the full training pipeline, including gradient updates.
2. The Technical Core: A Native Distributed Training Path
A key highlight of this adaptation is a native multimodal training path built on FSDP2 (Fully Sharded Data Parallel, second generation). Understanding this requires looking at the resource limits that very large model training faces:
- Memory limit: For a model with nearly 3 trillion parameters, the combined memory footprint of parameters, gradients, and optimizer states far exceeds the capacity of a single card, even with low-precision storage.
- Communication limit: The bandwidth and latency of cross-node gradient synchronization directly determine training throughput.
- Numerical stability limit: In long training runs, a single numerical overflow, such as a loss value becoming NaN or Inf, can waste days of computation.
The core idea of FSDP is to shard model parameters, gradients, and optimizer states across all cards in the training job. Each card holds one shard of the full state. During computation, parameters are gathered on demand (all-gather). After backpropagation, gradients are reduced and scattered (reduce-scatter). FSDP2 builds on this with better overlap of communication and computation, finer-grained memory management, and support for combining with hybrid parallelism strategies.
Implementing a native FSDP2 path on a domestic GPU software stack requires three layers to work together:
- Model loading layer: Support sharded loading and lazy initialization of very large weight files, so that no single device hits a peak memory spike.
- Shard scheduling layer: Combine parameter sharding strategies with awareness of the hardware topology, so that cards connected by high-bandwidth links take on more of the communication load.
- Gradient synchronization layer: The communication library must implement efficient collective primitives for the GPU interconnect architecture and overlap them with the compute stream to hide communication overhead.
A typical training loop looks roughly like this:
for step in range(total_steps):batch = next(dataloader)# FSDP: all-gather parameter shards on demand during the forward passloss = model(batch)# Reduce-scatter gradients after backpropagationloss.backward()# Gradient clipping and optimizer update (optimizer states are also stored as shards)clip_grad_norm_(model.parameters(), max_norm=1.0)optimizer.step()optimizer.zero_grad()# Health check: verify that the loss is finiteassert torch.isfinite(loss), f"step {step}: loss diverged"
3. Stability Validation: What 400 Steps Show
The test ran across two machines with 16 training-and-inference accelerator cards in total. All 16 training processes completed 400 consecutive optimizer updates. Throughout the run, the loss and gradient norm stayed finite, with no numerical overflow or abnormal interruption.
From an engineering perspective, this design matters for three reasons.
First, cross-node training is the real test. Single-machine multi-card training can rely on high-bandwidth interconnects inside the machine. Cross-node training must handle network communication, process coordination, and fault isolation. Coordinating 16 processes across two machines directly tests the maturity of the communication library and the fault tolerance mechanisms.
Second, continuous optimizer updates are more convincing than a single successful forward pass. The core test of training stability is whether the loss curve falls as expected and whether the gradient norm avoids abnormal spikes. 400 steps is far short of full pretraining, which takes tens or hundreds of thousands of steps. Even so, it is enough to check the numerical path, the mixed-precision strategy, and the communication links. Most numerical instability problems appear within the first few dozen steps.
Third, keeping every monitored value finite is a simple but strict standard. Any NaN or Inf indicates a flaw in precision management, such as loss scaling, gradient clipping thresholds, or operator numerical behavior.
The result should still be read with realistic expectations. Moving from a 400-step functional stability test to weeks of uninterrupted industrial training on a cluster of thousands of cards requires passing several more milestones. These include long-duration stability testing, fault recovery (such as checkpoint hot standby and fast resumption), and scaling efficiency.
4. From “Trainable” to “Train Out of the Box”
A single successful adaptation is only a starting point. Whether domestic compute can carry large model training at scale depends on the engineering system behind it. Based on industry practice, this system usually has four layers.
1. Operator adaptation layer: Build an operator library that covers mainstream model architectures, and respond quickly to new architectures such as novel attention mechanisms and sparse expert structures. A standard process of model release, operator assessment, and gap filling helps keep this response consistent.
2. Multi-card coordination layer: Beyond data parallelism and FSDP, the system must support tensor parallelism, pipeline parallelism, expert parallelism, and combinations of them. It should select parallel configurations automatically or semi-automatically based on cluster topology.
3. Automation toolchain layer: This includes tools for parallel strategy search, memory footprint estimation, performance profiling, checkpoint resumption, and training metric visualization. This layer determines how easy the platform is to use, and it is key to “train out of the box.”
4. Production validation layer: Platform capabilities improve when they are tested on real large model projects, through from-scratch pretraining or full-pipeline training. Public industry information indicates that domestic GPU platforms have supported from-scratch full training of a scientific foundation model with 200 billion parameters, full-stack native training of a multimodal world model, and end-to-end training of an embodied AI model. These platforms are moving toward training targets at the trillion-parameter scale.
For teams that want to train on domestic compute, general cloud services can reduce the cost and operational burden of building training infrastructure. Container platforms can orchestrate training jobs elastically. Object storage can hold large training datasets and checkpoints. Logging and monitoring services can keep long training runs observable. Cloud platforms such as Baidu AI Cloud offer general-purpose cloud product categories that can serve as building blocks for this kind of training platform.
5. Conclusion
The distinction between training adaptation and inference adaptation is the first measure for judging progress in domestic compute. A complete path from model loading through shard scheduling and gradient synchronization, validated by continuous multi-process training across nodes, marks a concrete step forward for domestic GPUs in very large model training. Still, moving from a few hundred stable steps to industrial-scale long-running training, and from “trainable” to “train out of the box,” requires continued investment in operator ecosystems, communication efficiency, automation toolchains, and fault tolerance. Competition over compute infrastructure ultimately depends on how mature the engineering system is.
