Training Adaptation of a ~3-Trillion-Parameter Model on Domestic GPUs: An Engineering Deep Dive
A domestic GPU vendor recently completed training adaptation for a flagship open-source large language model with nearly three trillion parameters, using its unified training-and-inference accelerator card and proprietary software stack. This article explains why training adaptation is far more demanding than inference adaptation, breaks down the core technical stack involved—including FSDP2-level sharded training and cross-node distributed training—and analyzes what 400 consecutive optimizer updates reveal about numerical stability. It also outlines the broader evolution path of domestic training hardware, from zero-shot training of mid-sized models toward production-ready, out-of-the-box training infrastructure.
Training Adaptation of a ~3-Trillion-Parameter Model on Domestic GPUs: An Engineering Deep Dive
Training Adaptation vs. Inference Adaptation: One Word Apart, Worlds of Difference
A notable development recently emerged in the domestic GPU space: a domestic GPU vendor completed training adaptation for a flagship open-source large language model with nearly three trillion parameters, built on its flagship unified training-and-inference accelerator card and proprietary software stack. To understand the significance of this milestone, you need to appreciate the fundamental difference between “training adaptation” and “inference adaptation.”
Over the past few years, a common industry claim has been “Chip X achieved Day 0 adaptation of the latest open-source model.” The vast majority of these claims refer to inference adaptation—meaning the model weights were already trained elsewhere, and the chip vendor only needed to implement or port the operators required for inference so the model could load and run forward computation on that chip. Inference involves only forward propagation, with a fixed computation graph and relatively predictable memory usage, making the engineering challenge comparatively manageable.
Training adaptation is an entirely different story. Training requires full support for four stages: forward propagation, backward propagation, gradient synchronization, and optimizer updates. This involves a series of complex problems, including auto-differentiation operator coverage, numerical stability under mixed precision, the correctness and performance of distributed communication primitives, and dynamic memory allocation and reclamation. Put simply: inference adaptation verifies “can the chip compute,” while training adaptation verifies “can the chip participate in large-scale model production.”
It’s also worth clearing up a common misconception: a chip completing training adaptation for a model does not mean that model’s base pre-training was actually performed on that chip. There is precedent in the industry—a leading model team’s technical report validated fine-grained expert parallelism on both domestic NPUs and mainstream international GPUs, but this was widely understood as operator-level validation on the inference side; the original compute source for the base pre-training was never officially disclosed. When reading news of this kind, readers should distinguish three levels: “adaptation validation,” “inference deployment,” and “training support.”
The Core Technical Stack for Ultra-Scale Training Adaptation
Why FSDP2-Level Sharded Training Is Necessary
For a model with nearly three trillion parameters, even storing weights in FP8 or BF16, the combined memory requirements of parameters, gradients, and optimizer states far exceed the capacity of a single card—or even a single machine. Take Adam-family optimizers: each parameter typically requires storing both first-moment and second-moment states, plus a gradient copy, pushing memory overhead to several times the parameter size alone. Plain data parallelism (every card holding a full model replica) is simply infeasible at this scale.
Fully Sharded Data Parallelism (FSDP) works by sharding model parameters, gradients, and optimizer states across all cards. Each card holds only a 1/N fragment; during forward or backward computation of a given layer, the full parameters are temporarily reconstructed via collective communication and released immediately after. Memory usage thus drops roughly linearly with the number of cards. The newer FSDP2 further represents parameters as one-dimensional tensors and pairs them with more flexible streaming scheduling, offering stronger adaptation to complex architectures like multimodal and MoE models.
In this adaptation effort, a native FSDP2 multimodal training path was built, connecting the full pipeline from model loading and sharding scheduling to gradient synchronization. This means the software stack had to correctly implement the following key capabilities:
- Parameter sharding with on-demand aggregation: weights are split across processes at initialization; forward passes trigger AllGather, backward passes trigger ReduceScatter.
- Operator-level coverage: every operator in the model—including attention variants, normalization layers, and MoE routing—must have a correct backward implementation.
- Communication correctness for gradient synchronization: the cross-node communication library must match the hardware interconnect topology, ensuring numerically consistent gradient reduction results.
Organizing 16-Card, Two-Node Cross-Node Training
In the validation experiment, two servers with a total of 16 accelerator cards were used for cross-node joint training. While far smaller than the thousand-card clusters typical of real pre-training, this scale already covers the环节 most likely to expose problems in training adaptation: cross-node communication. Within a single node, cards usually communicate over high-speed interconnects, but cross-node traffic goes through the network, with entirely different bandwidth and latency characteristics. Whether gradient synchronization strategies and communication-computation overlap scheduling are correct can be effectively validated in a two-node setup.
A typical launch command for cross-node distributed training looks like this:
# Launch 8 processes per node, 16 processes globally# Run on node 0:torchrun --nnodes=2 --nproc_per_node=8 \--rdzv_backend=c10d --rdzv_endpoint=<node0_ip>:29500 \train.py --fsdp --sharding_strategy=full
At the code level, process groups, sharding strategies, and mixed-precision configurations must be set up correctly:
from torch.distributed.fsdp import FullyShardedDataParallel as FSDPfrom torch.distributed.fsdp import MixedPrecisionmp_policy = MixedPrecision(param_dtype=torch.bfloat16,reduce_dtype=torch.bfloat16,buffer_dtype=torch.bfloat16,)model = FSDP(model, mixed_precision=mp_policy,device_id=local_rank)
On a domestic GPU software stack, these interfaces are typically mapped through a compatibility layer to the vendor’s own communication and operator libraries. Developers experience the same programming model, while the underlying translation and scheduling are handled by the vendor’s software stack.
What 400 Consecutive Optimizer Updates Mean for Stability
In this experiment, all 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms staying finite throughout—no numerical overflow or abnormal interruptions occurred. Why do these 400 steps matter?
First, training stability problems rarely surface on the very first step. Numerical errors accumulate over iterations: gradient underflow under mixed precision, NaN outputs from certain operators on boundary inputs, precision loss during communication—all of these can lurk for dozens of steps and explode hundreds of steps later. Four hundred consecutive updates cover the period where optimizer states fully evolve and the learning rate schedule enters its normal operating range, making it a reasonable threshold for validating numerical stability.
Second, “loss and gradient norms remain finite” is the most fundamental and most sensitive pair of health indicators. In engineering practice, this is usually paired with the following monitoring measures:
- Gradient norm spike detection: a sudden surge in gradient norm is often a precursor to divergence, typically mitigated with gradient clipping (clip_grad_norm).
- Dynamic loss scale adjustment: FP16 training relies on dynamic loss scaling; frequent halving signals underflow risk. BF16’s larger dynamic range significantly alleviates this problem, which is why BF16 is the mainstream choice today.
- Periodic checkpointing: even if an interruption occurs, training can resume from the most recent checkpoint rather than starting over.
# Typical health checks in a training loopfor step, batch in enumerate(loader):loss = model(batch).lossloss.backward()grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)if not torch.isfinite(loss) or not torch.isfinite(grad_norm):logger.warning(f"step {step}: non-finite detected, skipping")optimizer.zero_grad()continueoptimizer.step()optimizer.zero_grad()
It should be noted objectively that the 400-step validation demonstrates “the pipeline works and is numerically stable”—it does not yet equal the ability to handle pre-training runs of ten thousand steps or more. Going from “can train” to “trains well” will require longer-horizon validation of throughput efficiency, MFU (Model FLOPs Utilization), fault recovery capability, and other metrics.
From One-Off Adaptation to an Engineering System: The Evolution Path of Domestic Training Compute
Notably, this training adaptation is not an isolated event, but the result of a continuously accumulating engineering system. According to available information, the vendor has previously delivered multiple “domestic chips training domestic models” milestones: a complete from-scratch training of a 200-billion-parameter scientific foundation model, full-stack native training support for a university’s 5D world model, end-to-end training of an embodied intelligence brain model in collaboration with research institutions, and ongoing work on training a trillion-parameter model.
From these cases, a clear evolution path emerges:
- From-scratch training of mid-sized models: validating the correctness of the full training pipeline, including data handling, parallelism strategies, and checkpoint mechanisms.
- Supporting cutting-edge research models: such as world models and embodied intelligence models, validating the ability to extend operators to novel architectures (non-standard Transformers).
- Adapting ultra-large open-source models: validating the ability to quickly keep up with the most advanced model structures (such as fine-grained MoE and ultra-long context).
- Toward out-of-the-box training: productizing the operator libraries, parallelism templates, and automation tooling accumulated during adaptation to lower the adaptation cost of future models.
For enterprise users, the practical value of this trend is that large model training is moving from a single compute option toward diversified supply. On the cloud side, combining general-purpose cloud capabilities—object storage, container platforms, logging services, monitoring and alerting—with diverse compute resources enables elastic, observable training infrastructure. A diversified compute foundation will ultimately strengthen the resilience of the entire large model value chain.
Conclusion
Training adaptation is the touchstone for measuring the maturity of an AI chip. Between inference deployment and stable full-pipeline training stand four gates: operator completeness, distributed communication, numerical stability, and engineering tooling. A stable run of 400 steps on 16 cards across two nodes is a solid milestone—it demonstrates that domestic general-purpose GPUs now have the foundational capability to take on frontier large model training. The industry’s next focus will shift to efficiency and long-term stability at larger cluster scales, along with the degree of tooling automation—so that frontier models can truly make the leap from “can train” to “trains out of the box” on domestic compute.
