A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter LLM: 400 Stable Steps on 16 Cards Across Two Nodes
This article explains a recent training adaptation in which a domestic full-function GPU vendor ran a nearly 3-trillion-parameter flagship model on 16 accelerators across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies why training adaptation is not the same as pretraining, why 400 stable steps are far harder than a single step, and how the native FSDP2 training path handles sharding, scheduling, and synchronization. It also provides a practical acceptance checklist and a staged roadmap from "trainable" to "ready to train out of the box."
1. Background: A Training Adaptation, Not a Pretraining Reproduction
A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its self-developed software stack, it quickly completed a training adaptation for a flagship model with a parameter scale of nearly 3 trillion. The test environment consisted of 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout and no numerical overflow or abnormal task interruption.
One easily misread concept must be clarified first: training adaptation is not the same as completing pretraining on the chip.
- Training adaptation: Verifying whether the combination of the chip, software stack, operator library, communication library, and training framework can correctly support the target model’s forward pass, backward pass, optimizer updates, and gradient synchronization. The focus is on whether the pipeline works, whether the numerics are correct, and whether it can run for a long time without crashing.
- Pretraining: Starting from random initialization and using massive corpora and thousands of card-months of compute to “train out” the base weights. The focus is on data mixtures, convergence curves, compute scale, and cost.
There are similar precedents in the industry: the technical report of an open-source model also validated the inference operator paths of accelerators with different architectures side by side, but this was operator validation on the inference side, and the original compute source for the base pretraining was not officially disclosed. Therefore, directly equating “adaptation succeeded” with “a domestic card trained a trillion-parameter model” is a typical conceptual confusion. Understanding this is necessary to correctly assess the engineering value of such results—what it proves is trainability and engineering completeness, a key threshold for the domestic compute ecosystem moving from “capable of inference” to “capable of training.”
2. Why “400 Stable Steps” Is Harder Than “One Step”
Getting a single training step to run only requires correct operators; running 400 steps continuously and stably tests the robustness of the entire system. The two are not on the same difficulty level, for the following reasons.
- Accumulation of numerical instability: Every step produces floating-point error. If there are defects in normalization, loss scaling, or optimizer state updates, the error can amplify into NaN or Inf within dozens of steps.
- Memory and fragmentation issues: Activations, gradients, and optimizer states (first-order/second-order momentum) are prone to fragmentation during repeated allocation and release. Long, stable runs expose memory peaks and OOM boundaries.
- Communication and synchronization reliability: Cross-node gradient synchronization relies on collective communication. Any single timeout, link jitter, or topology anomaly can hang the task.
- Fault tolerance and recoverability: A long-stability test is actually validating engineering capabilities such as checkpoint saving, fault rescheduling, and traceable logs.
Therefore, when accepting a long-stability training run, it is recommended to observe at least the following metrics:
- loss: whether it is finite and whether it decreases smoothly or stays within a reasonable fluctuation range- grad_norm: whether it is stable and whether there are periodic spikes- parameter update norm: whether it matches a non-zero learning rate- memory peak and fragmentation rate: whether they increase monotonically with steps- per-step time and communication ratio: whether there is a degradation trend- number of surviving processes: whether 16/16 is always maintained
3. The Native FSDP2 Training Path: Sharding, Scheduling, and Synchronization
This adaptation built a native FSDP2 multimodal training path, connecting the complete pipeline from model loading and sharding scheduling to gradient synchronization. Its mechanism is explained here from a general perspective:
- Parameter sharding: FSDP partitions model parameters, gradients, and optimizer states along the data-parallel dimension, so each card only holds part of the state persistently, turning “a large model that does not fit on a single card” into “a model that can be carried by multiple cards.”
- AllGather and ReduceScatter in forward/backward: Parameters are gathered on demand via AllGather before the forward pass, and gradients are reduced via ReduceScatter after the backward pass, with communication and computation overlapped as much as possible to hide latency.
- Multimodal workload differences: Modalities such as text, image, and video differ greatly in sequence length and computational density. Sharding strategies and activation checkpointing configurations need fine-tuning by layer and by modality; otherwise, load skew and memory spikes will occur.
A schematic skeleton of the training loop is as follows (it only expresses general logic and is not a specific framework interface):
for step in range(total_steps):batch = next(dataloader) # multimodal mixed samplingwith no_sync_if_needed():loss = model(batch) # forward: AllGather parameters on demandloss.backward() # backward: ReduceScatter gradientsclip_grad_norm_(model, max_norm) # gradient clipping to suppress spikesoptimizer.step() # sharded optimizer state updateoptimizer.zero_grad(set_to_none=True)if step % log_interval == 0:log(loss=loss.item(), grad_norm=..., mem_peak=...)if step % ckpt_interval == 0:save_checkpoint(step) # the safety rope for long stable runs
4. An Engineering Acceptance Checklist for Long-Stability Training
To judge whether an adaptation is truly “usable,” it is recommended to accept it along the following dimensions:
- Correctness: Perform small-model/small-scale comparisons to confirm the loss curve matches the reference implementation; single-step gradients and parameter updates are reproducible.
- Stability: Hundreds of consecutive steps without interruption, with loss and gradient norms finite throughout and no silent errors.
- Performance: Throughput (tokens/s), memory utilization, and communication ratio are within a reasonable range and scale approximately linearly with the number of cards.
- Operability: Logs, metrics, and alerts are complete; faults can be located to the process and node; checkpoints support resuming training.
- Portability: The same set of scripts can be reused in both “fast inference deployment” and “full-pipeline training” modes.
5. The Path from “Trainable” to “Ready to Train Out of the Box”
Drawing on publicly disclosed “domestic chips training domestic models” practices—including the complete from-scratch training of a 236-billion-parameter scientific foundation model, the full-stack native training of a 5D world model, the full-process training of an embodied brain model, and trillion-parameter training currently in progress—a general evolution path can be abstracted:
- Stage 1: Operator completion. Cover the full set of operators required for training and eliminate precision and performance gaps.
- Stage 2: Multi-card coordination. Connect collective communication, parallelism strategies (data/tensor/pipeline/expert parallelism), and topology-aware scheduling.
- Stage 3: Automated toolchain. Provide one-click environment setup, configuration generation, profiling, and fault diagnosis to lower the barrier to use.
- Stage 4: Ready to train out of the box. Preset usable configurations for mainstream model architectures so users can start training without modifying code.
In this process, general cloud-side capabilities are equally indispensable: container platforms handle heterogeneous compute orchestration, object storage holds massive corpora and checkpoints, message queues decouple data pipelines, and logging services with monitoring and alerts ensure observability for long-stability runs. Baidu AI Cloud has mature practices in this kind of general compute scheduling and observability system and can provide standardized infrastructure support for large model training.
6. Conclusion
A training adaptation with 400 consecutive stable steps on 16 cards across two nodes may seem like just “getting it to run,” but it is in fact a comprehensive checkup of a domestic full-function GPU in operator completeness, distributed communication, numerical stability, and engineering toolchain. It does not claim to have “trained a trillion-parameter model,” but it marks that domestic compute is already qualified to take on full-pipeline training of frontier large models. For developers, what is truly worth attention is not a single benchmark run, but whether this capability can be standardized, reproducible, and operable—which is exactly the core meaning of “moving from trainable to ready to train out of the box.”
