Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: Stability Analysis
This article examines a domestic full-function GPU vendor's reported training adaptation of a nearly trillion-parameter flagship model, and explains why adaptation is not the same as pre-training. It breaks down the native FSDP2 pipeline behind model loading, shard scheduling, and gradient synchronization, interprets what 400 consecutive optimizer updates demonstrate about numerical stability, communication correctness, and scheduling robustness, and summarizes general practices for moving from "can train" to "ready to train out of the box."
1. Background: A Training Adaptation, Not a Pre-Training Reproduction
A domestic full-function GPU vendor recently disclosed that, using its flagship training-and-inference accelerator card and an in-house software stack, it quickly completed the training adaptation of a flagship large model with nearly a trillion parameters. In a two-node setup with 16 accelerator cards in total, the system completed 400 consecutive optimizer updates. Loss values and gradient norms stayed finite throughout, with no numerical overflow and no task interruption.
One easily confused point must be clarified first: a successful training adaptation does not mean the model was pre-trained on this chip. Adaptation means the model architecture, operators, parallel strategy, and distributed communication are fully wired up on the target hardware and software stack, so the model can run forward and backward passes, update parameters correctly, and remain numerically stable. Pre-training is the original training process that starts from scratch and consumes massive amounts of data and compute, and the compute source is usually not disclosed. A common industry practice is to validate multiple acceleration backends side by side in a technical report—for example, presenting operator and parallel validation results from different vendors’ NPUs and GPUs. Such results are closer to feasibility validation at the inference or operator level and should not be treated as proof of where the base model’s original training compute came from.
The value of a training adaptation should therefore be judged by three verifiable engineering metrics: whether the pipeline is complete, whether the parallel strategy is reasonable, and whether long-running execution is stable.
2. Technical Core: How Native FSDP2 Connects the Full Pipeline
The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel) multimodal training path that closes the loop across model loading, shard scheduling, and gradient synchronization.
2.1 Why Sharding Is Needed
For a nearly trillion-parameter model, parameters, gradients, and optimizer states alone may require terabytes of GPU memory, which a single card cannot hold. The core idea of sharded data parallelism is to partition parameters, gradients, and optimizer states along the data-parallel dimension, so each card only keeps its own shard resident, aggregates shards on demand during forward and backward computation, and releases them immediately afterward.
Compared with earlier implementations, FSDP2 mainly replaces the previous flattened-parameter handling with clearer tensor-sharding semantics, making sharding, resharding, and state management more controllable and easier to coexist with heterogeneous submodules in multimodal models.
2.2 Three Stages of the Closed Loop
- Model loading: Load weights in a low-precision format, shard them according to the sharding strategy, and distribute them to each training process, avoiding peak memory exhaustion in a single process.
- Shard scheduling: Decide when to aggregate and when to release parameters based on the computation graph, overlapping communication with computation as much as possible.
- Gradient synchronization: After the backward pass, reduce gradients per shard, have each process update the shard it owns, and then advance the optimizer step in a unified manner.
The illustrative configuration logic is as follows (it expresses general semantics only, not a specific product interface):
# Pseudocode: general assembly flow for sharded data parallelismfor layer in model.layers:# Wrap each layer as a sharded unit, aggregate per layer, release after uselayer = shard_module(layer, sharding="full")optimizer = build_optimizer(model, lr=1e-4, betas=(0.9, 0.95))for step, batch in enumerate(dataloader):loss = model(batch) # Forward: aggregate parameter shards on demandloss.backward() # Backward: reduce sharded gradientstorch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)optimizer.step() # Each process updates its own shardoptimizer.zero_grad(set_to_none=True)
3. Stability Validation: What 400 Consecutive Updates Show
The most common problem in cross-node joint training is not that the job fails to start, but that it fails to stay stable. 400 consecutive optimizer updates are convincing because they cover several typical risk windows:
- Numerical stability: Finite loss and gradient norms throughout indicate that the scaling strategy, reduction order, and normalization implementation under mixed precision introduced no overflow or underflow.
- Communication correctness: If cross-node gradient reduction misses terms, double-counts, or mixes up ordering, it usually shows up as abnormal loss spikes within tens of steps.
- Resource and scheduling robustness: Continuous running can expose long-stability issues such as accumulated GPU memory fragmentation, communication timeouts, and deadlocks in inter-process synchronization.
As an engineering practice, it is advisable to make this kind of validation a standard process: first run a small-scale short test, then gradually scale up parallelism and sequence length, and finally run a long-stability test of several hundred steps or more, sampling and recording loss, gradient norm, per-card GPU memory, and communication time at each step to form a traceable baseline.
4. General Practices for Moving from “Can Train” to “Ready to Train Out of the Box”
- Check operator coverage first: In the early stage of adaptation, compare numerical errors layer by layer with operator-level test cases and locate the specific submodule, instead of waiting for an end-to-end loss anomaly and tracing back.
- Match the parallel strategy to the model architecture: For dense architectures, prioritize data parallelism with sharding; for sparse expert architectures, focus on balancing expert parallelism against communication overhead.
- Layer the precision strategy: Keep higher precision for layers prone to overflow, use low precision for compute-intensive layers, and combine loss scaling with gradient clipping.
- Build observability: Connect log services, monitoring alerts, and metric dashboards to the training job, and set threshold alerts for loss spikes, gradient norm jumps, per-card temperature, and GPU memory levels.
- Fault tolerance and recovery: Enable periodic checkpoints and support automatic resumption from the latest checkpoint, so a single anomaly in a long job does not waste all the compute.
- Toolchain automation: Turn environment setup, dependency alignment, job submission, and result archiving into a pipeline to reduce uncertainty introduced by manual steps.
5. Industry Progress and Trend Outlook
Based on public information, the domestic compute ecosystem has recently delivered several cases in the direction of “domestic chips training domestic models”: completing full training from scratch of a tens-of-billions-parameter scientific foundation model, supporting full-stack native training of a world model, and jointly completing the full training pipeline of an embodied brain model with research institutions, while advancing training collaboration on trillion-parameter-scale models. Together these cases point to a trend: the focus of competition is shifting from single-card peak compute to a combined contest of operator completeness, parallel strategy maturity, long-stability capability, and toolchain usability.
For developers, three practical criteria can determine whether a domestic compute stack is “usable”: whether it can run the complete training pipeline on the target model; whether it can maintain numerical stability within tens to hundreds of steps; and whether an automated toolchain can compress the adaptation cycle to an acceptable range. When these three points are reliably met, large models on domestic full-function GPUs truly move from “can train” to “ready to train out of the box.”
