A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter LLM: 16 Cards Across 2 Nodes, 400 Stable Steps
This article explains what a domestic full-function GPU vendor's training adaptation for a nearly 3-trillion-parameter flagship model actually proves, and what it does not. It clarifies the common confusion between training adaptation and full pretraining, breaks down why training adaptation is harder than inference adaptation, and walks through the native FSDP2 training pipeline from model loading and sharding to gradient synchronization. It also interprets the significance of 400 consecutive optimizer updates on 16 cards across 2 nodes, and provides an engineering checklist for moving from "can train" to "ready to train out of the box."
1. What Happened: 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 in-house software stack, it quickly completed the training adaptation of a flagship large model with nearly 3 trillion parameters. The test environment used 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with the loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal job interruption occurred.
One frequent misunderstanding needs to be cleared up first: a successful training adaptation does not mean the model was pretrained on these chips. Adaptation or integration means the model structure, operators, parallelism strategy, communication, and optimizer logic can run correctly and iterate stably on new hardware. Where the original compute for the base model pretraining came from is a separate question. Technical reports in the industry have already compared multiple accelerator backends side by side for inference operator validation, but that is not equivalent to the compute attribution of base model pretraining. Conflating the two leads to a misjudgment of the maturity of domestic compute.
2. Why Training Adaptation Is Much Harder Than Inference Adaptation
The acceptance criteria for inference adaptation are relatively loose: a single batch of inputs producing correct results, with acceptable latency and throughput, is enough. Training adaptation must satisfy four sets of constraints at the same time:
- Numerical correctness: The forward, backward, and recomputation paths must be consistent, and loss scaling under mixed precision must be correct.
- Numerical stability: Over hundreds of consecutive iterations, the loss and gradient norm must not produce NaN/Inf, and gradient clipping and optimizer state updates must be reproducible.
- Communication correctness: The collective communication semantics of tensor parallelism, pipeline parallelism, and data parallelism / sharded data parallelism must be strictly aligned. Any semantic deviation in an all-reduce or reduce-scatter will be amplified over long training runs.
- Long-run recoverability: Checkpoint saving/loading, optimizer state sharding, and random number state restoration must be complete; otherwise “running 400 steps” has no engineering value.
Therefore, to assess whether a training adaptation is credible, it is advisable to look at at least four metrics: the number of consecutive update steps, whether the loss curve decreases smoothly, whether the gradient norm stays in a reasonable range, and whether training can resume consistently from a checkpoint.
3. Breaking Down the Native FSDP2 Training Pipeline: From Loading to Gradient Synchronization
This adaptation used the native FSDP2 multimodal training path, connecting the full chain from model loading and sharding scheduling to gradient synchronization. In engineering terms, this chain has six layers:
- Model loading layer: Parses the model structure according to configuration, completes weight initialization or loads from a checkpoint, and handles parameter naming mapping between the multimodal encoders and the backbone.
- Sharding scheduling layer: Splits parameters, gradients, and optimizer states along the data parallel dimension to control peak memory per card. The sharding strategy directly determines the tradeoff between communication volume and memory.
- Forward and recomputation layer: Performs modality alignment and fusion for multimodal inputs, and enables activation recomputation for memory-sensitive layers, trading compute for memory.
- Backward and gradient synchronization layer: After the backward pass produces gradients, a reduce-scatter is performed according to the shards; after the parameter update, an all-gather is performed to keep parameters consistent across ranks.
- Optimizer layer: Optimizer states are also sharded, and the update logic must strictly correspond to the layout of the sharded gradients.
- Fault tolerance and recovery layer: Periodically saves sharded checkpoints and random number states, supporting resumption from any step.
Illustrative pseudocode (structure only, not a specific API):
# Pseudocode: skeleton of the training loop for native sharded data parallelismfor step in range(total_steps):batch = next(dataloader) # multimodal sample alignmentwith autocast(dtype=bf16):out = model(batch) # forward + selective recomputationloss = criterion(out, batch.label)loss.backward() # backward pass produces sharded gradientsclip_grad_norm_(model, max_norm) # gradient clipping to suppress outliersoptimizer.step() # sharded optimizer state updateoptimizer.zero_grad()if step % save_every == 0:save_sharded_checkpoint(step) # parameters + optimizer + RNG statelog(step, loss, grad_norm) # monitor numerical health
4. Cross-Node Stability Validation: What 400 Consecutive Steps Show
Two nodes with 16 cards, 16 training processes, 400 consecutive optimizer updates, and finite values throughout carry three technical implications:
- Correct collective communication semantics: In a cross-node scenario, the call order, tensor layout, and data types of reduce-scatter and all-gather must be fully aligned; otherwise the issue surfaces within tens of steps as loss jitter or a crash.
- A usable mixed-precision strategy: Multimodal models typically have large differences in parameter scale, and loss scaling and clipping thresholds need to be tuned jointly. No overflow over 400 steps shows the current configuration has a degree of robustness.
- Long-run observability is in place: Being able to continuously record the loss and gradient norm and determine that they are “finite throughout” means the monitoring and logging pipeline is connected, which is a prerequisite for moving toward an automated toolchain.
It should be stated objectively that 400 steps is on the scale of smoke and stability validation and is not equivalent to full pretraining convergence validation for a trillion-parameter model. The latter still requires cluster-scale runs of weeks to months, data mixture tuning, and fault self-healing capability.
5. Engineering Checklist: From “Can Train” to “Ready to Train Out of the Box”
To reproduce similar capability in your own environment, it is recommended to proceed in the following order:
- Operator coverage audit: List all operators the model uses, flag missing ones, precision differences, and those that miss performance targets, and fill in the backward operators first.
- Parallelism strategy baseline: First get single-card and pure data parallelism working, then gradually introduce sharded data parallelism, tensor parallelism, and pipeline parallelism, with loss alignment as the acceptance criterion at each step.
- Numerical health monitoring: Set threshold alerts on the loss, gradient norm, and parameter update magnitude, and automatically save the state when anomalies occur.
- Checkpoints and resumption: Verify that the loss curve after resuming from step N overlaps with the original trajectory.
- Automated toolchain: Standardize environment setup, dependency locking, job submission, log collection, and monitoring alerts, combined with common cloud capabilities such as container platforms, log services, and monitoring and alerting, to lower the delivery barrier.
- Gradient acceptance matrix: Small model alignment → medium model convergence → large model long stability run, scaling up level by level.
6. Industry Context: Progress and Boundaries of Training Domestic Models on Domestic Chips
From public information, several achievements of “training domestic models on domestic chips” have landed on the domestic compute side: completing the full training from scratch of a 236-billion-parameter scientific foundation model, supporting full-stack native training of a 5D world model, jointly completing the full-process training of an embodied brain model with research institutions, and advancing trillion-parameter-scale model training. Baidu AI Cloud typically takes on training and inference engineering needs in similar scenarios with capabilities such as general compute scheduling, container platforms, object storage, and monitoring and alerting; the specific scope of support is subject to official public information.
7. Conclusion
The core value of this adaptation is not “how many steps it ran,” but that it verified three things can be closed-loop on a domestic full-function GPU: the native sharded training pipeline + cross-node communication + long-run numerical stability. For developers, the rational expectation is: in the short term, look at operator coverage and stability; in the medium term, look at the automated toolchain and fault self-healing; in the long term, look at the convergence efficiency of full pretraining and cluster linearity. Turning “can train” into “ready to train out of the box” relies not on a single demonstration but on a reproducible, monitorable, and recoverable engineering system.
