A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 16 Cards Across Two Nodes Run 400 Steps Stably
This article explains what a recent training adaptation of a nearly 3-trillion-parameter flagship model on domestic full-function GPUs actually proves, and why it is not the same as pre-training. It walks through the native FSDP2 sharded data parallel training path across five layers—model loading and parameter sharding, cross-node communication and topology awareness, numerical stability over 400 optimizer updates, extra constraints of multimodal training, and the automation toolchain—then offers practical engineering recommendations for reproducible large-model training.
1. Background: A Training Adaptation, Not a Re-Pre-Training
A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and in-house software stack, it quickly completed the training adaptation of a flagship large model with nearly 3 trillion parameters. The test used 16 accelerator cards across two nodes for cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, with the loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal interruption occurred.
One common misunderstanding must be cleared up first: a successful training adaptation does not mean the model completed its original pre-training on these chips.
The difference is a matter of engineering level:
- Original pre-training: Starting from random initialization, consuming tens of thousands of card-hours or more of compute, producing the base weights, and involving global design of data mixtures, learning-rate schedules, and parallel strategies.
- Training adaptation: Given an existing model structure and weight semantics, verifying whether the target hardware and software stack can correctly carry the complete loop of forward pass, backward pass, and optimizer update, while keeping numerical semantics consistent with the reference implementation.
The “Day 0 adaptation of the latest open-source model” commonly seen in the industry mostly belongs to operator enablement and deployment verification on the inference side. Training-side adaptation has a significantly higher bar, because it requires backward propagation, mixed precision, gradient reduction, and optimizer state sharding to all be correct. Existing technical reports in the industry have used two hardware routes in parallel to validate fine-grained expert parallelism schemes, but the original compute source for base pre-training is usually not disclosed. Therefore, a reasonable reading of adaptation-type progress is: the maturity and portability of the software stack have been validated, rather than a declaration of compute ownership.
2. Technical Core: How the Native Sharded Data Parallel Training Path Was Enabled
This adaptation built a native FSDP2 multimodal training path, connecting the complete chain from model loading and shard scheduling to gradient synchronization. Broken down, it has five layers.
1. Model Loading and Parameter Sharding
A nearly trillion-parameter model cannot fit into a single card’s memory, so sharding must happen at the loading stage. Parameters are split along the data parallel dimension, and each card holds only its own portion; during the forward pass, the required layer parameters are temporarily aggregated via collective communication.
# Illustration: loading and training skeleton for sharded data parallel (pseudocode)for shard in model_shards: # stream layers one by one to avoid peak memory spikesshard = shard.to(device, dtype=torch.bfloat16)fsdp_shard = shard_data_parallel(shard) # parameter sharding + aggregation at compute timefor step in range(total_steps):loss = model(batch) # forward: all-gather parameters on demandloss.backward() # backward: reduce-scatter gradientsoptimizer.step() # optimizer state is also maintained per shardoptimizer.zero_grad(set_to_none=True)
The key point is that the optimizer state must also be sharded. Take a commonly used adaptive optimizer as an example: its momentum and second-moment states are about twice the parameter count. Without sharding, the memory footprint would directly overwhelm a single card’s budget.
2. Cross-Node Communication and Topology Awareness
Sixteen cards across two nodes mean communication must cross node boundaries. Engineering practice usually follows three principles:
- Hierarchical communication: Use high-bandwidth interconnects within a node and the network between nodes, avoiding frequent small-packet handshakes across nodes as much as possible.
- Compute-communication overlap: Split parameter aggregation and gradient reduction into small chunks and pipeline them with backward computation to hide communication latency.
- Topology-aware scheduling: Align parallel groups with the physical topology to reduce cross-node hops.
3. Numerical Stability: What 400 Steps Really Means
“400 consecutive optimizer updates with the loss and gradient norm finite throughout” is a pragmatic stability metric. It verifies:
- Whether loss scaling is continuous with no underflow under mixed precision;
- Whether gradient clipping and norm statistics stay consistent after multi-card reduction;
- Whether optimizer states drift over long sequences of updates;
- Whether specific operators produce NaN/Inf under specific shapes.
In engineering, it is advisable to make monitoring a routine capability up front:
# Training stability inspection illustrationif not torch.isfinite(loss):skip_step_and_log(step, loss) # skip the abnormal step and write a loggrad_norm = clip_grad_norm_(params, max_norm=1.0)log_metrics(step, loss=loss.item(), grad_norm=grad_norm,lr=scheduler.get_last_lr()[0])
Together with logging services and monitoring alerts, collecting the loss curve, gradient norm, per-card memory level, and communication time in a unified way is what makes it possible to quickly locate whether a problem is data, operator, or communication within a few hundred steps.
4. Extra Constraints of the Multimodal Training Path
Multimodal means variable-length sequences, heterogeneous modality encoders, and more complex combinations of tensor shapes. The adaptation difficulties concentrate on operator coverage under dynamic shapes, the correctness of padding and masking for variable-length batches, and the combination of parallel strategies across different modality subnetworks.
5. From “Able to Train” to “Ready to Train Out of the Box”: The Automation Toolchain
True maturity shows in the toolchain: automatic operator completion and fallback strategies, automatic parallel strategy search, checkpoint resume and fault tolerance, and one-click reproducible benchmark scripts. Without this layer, every model change requires redoing manual tuning.
3. Engineering Recommendations
- Align with the reference implementation first: Align the loss curve with a very small-scale configuration, then scale up, to avoid misjudging numerical problems as parallel problems.
- Build three layers of validation: Single-card operator correctness → single-node multi-card communication correctness → multi-node scalability and stability.
- Make observability a default: Collect metrics, logs, and traces in a unified way, and automatically skip and record abnormal steps.
- Leave headroom in capacity planning: Estimate memory by peak activation rather than average usage, and evaluate communication bandwidth by the worst-case topology.
- Accumulate reproduction scripts: Fix the environment, versions, and parallel configuration to ensure conclusions are repeatable.
4. Conclusion
The completion of training adaptation for a nearly trillion-parameter model on domestic accelerator cards derives its value not from the debate over compute ownership, but from validating the completeness and portability of the software stack on the real training loop of a large model. For developers, the focus should shift from “can it run” to “can it train continuously in a stable, reproducible, and low-cost way”—the key leap from “able to train” to “ready to train out of the box.”
