Domestic GPU Training Adaptation for Models Approaching the Trillion-Parameter Scale: Insights from 16-GPU, 400-Step Validation
This article explains what a two-server, 16-GPU, 400-step training validation by a Chinese GPU vendor does—and does not—prove for a model approaching the trillion-parameter scale. It distinguishes training adaptation from base-model pretraining, describes the technical layers involved, and summarizes engineering validation practices, scaling challenges, and practical guidance for developers.
A Chinese GPU vendor recently announced that it has completed a training adaptation for a flagship large model with parameters approaching 3 trillion. The adaptation was performed on its flagship AI training/inference accelerator and companion software stack. The test covered model loading, shard scheduling, and gradient synchronization, covering the full training loop.
The measured setup used two servers with 16 accelerator cards in total. All 16 training processes completed 400 consecutive optimizer updates. During the run, loss and gradient norms remained finite, with no numerical overflow or abnormal interruption.
This validation is worth attention for three reasons:
- The parameter scale is representative. The model is already approaching the trillion-parameter level. Training difficulty is not limited to whether the hardware can compute; memory usage, cross-card communication, and numerical stability all come under pressure at the same time.
- It covers a cross-node scenario. Multiple cards within a single server usually share high-speed inter-card interconnect, while cross-node communication depends on the network between servers. Whether cross-node communication can be sufficiently overlapped with computation is a key factor in accelerating distributed training.
- It uses “continuous stability” as the acceptance criterion. Training workloads value long-running, unattended operation, not merely whether a single forward pass can produce a result. Four hundred consecutive updates represent 400 iterations in which the forward pass, backward pass, gradient reduction, and optimizer update were all executed.
However, this result should also be viewed rationally. Two servers, 16 cards, and 400 steps mainly validate the functional correctness and short-term numerical stability of the training path. They do not mean that the model has completed full pretraining, nor do they mean that the chip is already capable of trillion-parameter long-duration training. To understand this progress accurately, several commonly confused concepts need to be separated.
1. Adaptation Success Is Not the Same as Base-Model Pretraining Compute
Vendors often claim that an open-source model has achieved “Day 0” adaptation, meaning that deployment or fine-tuning was completed on their hardware on the day the model was released. This can be reduced to one formula:
A model can be deployed or fine-tuned ≠ the base pretraining compute for that model came from this hardware
From an engineering perspective, training can be divided into three layers, with increasing difficulty and investment:
- Inference adaptation: Focus on forward operator coverage, memory usage, throughput, and latency. It targets single or repeated forward computation and generally does not involve backpropagation or cross-card gradient synchronization.
- Training adaptation: On top of inference adaptation, add backward operators and gradient computation, mixed precision, gradient reduction, and checkpointing, and verify path correctness and numerical stability using multiple cards or multiple machines.
- Base-model pretraining: Start from scratch or continue from existing weights on the adapted hardware and produce a usable base model. This usually involves hundreds to thousands of accelerators and continuous operation over weeks or longer.
A frequently cited example is a leading model team that presented validation results for two different accelerator architectures in a technical report. The experiment focused on inference operators under fine-grained expert parallelism. The industry generally understood this as inference-level operator validation, and the team did not publicly state where the pretraining compute for its base model came from.
Conversely, completing “training adaptation” does not mean abandoning the possibility of pretraining on that hardware. Its direct value is that existing models can perform inference, fine-tuning, and even continued pretraining on domestic hardware. Pretraining a trillion-parameter model from scratch on a ten-thousand-card cluster requires enormous investment. Using a smaller-scale setup such as two servers with 16 cards to complete adaptation and validation first is the correct way to control trial-and-error costs.
| Comparison dimension | Inference adaptation | Training adaptation | Base-model pretraining |
|---|---|---|---|
| Goal | Forward inference is usable | Full training path is usable and numerically stable | Produce a base model |
| Core difficulty | Operator coverage, memory usage, throughput and latency | Backward operators, mixed precision, cross-card gradient synchronization, numerical stability | Scale expansion, fault tolerance and recovery, long-duration throughput and cost |
| Typical scale | One or several cards | Several servers | Hundreds to thousands of cards |
| Typical duration | Hour-level validation | Hundreds to thousands of consecutive steps | Weeks or more |
| Common misconception | Treating “inference usable” as “training usable” | Treating “adaptation successful” as “pretraining completed” | Ignoring the fault-tolerance and observability investment required for base training |
2. What Training Adaptation Actually Means: Four Technical Layers
1. Operator layer: not only correct forward computation, but also correct backward computation
Transformer-style model training involves many operators: matrix multiplication, attention, layer normalization, activation functions, loss functions, and optimizer updates. Inference only requires forward operators, while training requires efficient and numerically correct backward implementations of those operators.
A common issue is that forward operators are complete, but backward operators are missing or underperforming. Another is that operators are correct on a single card but show observable precision deviation under high-precision accumulation. If such deviation occurs in areas where errors accumulate repeatedly, such as softmax or normalization, loss may deviate significantly from expectations after a few hundred steps.
2. Parallelism and communication layer: balancing the workload of every card
A trillion-parameter model cannot fit on a single card, so multiple parallelism strategies must be combined:
- Data parallelism: Each card holds complete or sharded parameters, gradients, and optimizer states, and remains synchronized through gradient reduction.
- Tensor parallelism: A single matrix operation is split across multiple cards, introducing additional intra-layer communication.
- Pipeline parallelism: The model is divided by layers, and micro-batch scheduling must be designed to reduce idle time caused by pipeline bubbles.
- Expert parallelism: In mixture-of-experts architectures, different experts are placed on different devices, introducing global data rearrangement based on routing results.
If a combination of parallelism strategies does not match the hardware interconnect topology, communication can become the bottleneck. For example, placing adjacent pipeline stages on cross-node links, or making a tensor-parallel group cross node boundaries, can significantly amplify communication overhead.
3. Framework and software stack layer: device abstraction and functional alignment
A training framework manages memory allocation, streams and events, operator dispatch, and communication backends through a device abstraction layer. Adaptation work includes:
- Completing device-specific backends;
- Ensuring operator semantics and numerical behavior are aligned;
- Supporting common functions such as sharding, resharding, and device mapping;
- Making mixed precision, gradient clipping, checkpointing, and other training utilities behave consistently on new hardware.
The native FSDP2 multimodal training path used in this validation essentially ran the entire chain—“model loading → shard scheduling → gradient synchronization → optimizer update”—on device-native implementations. Here, “native” means that each part of the chain is directly supported by the device software stack, rather than relying on patch-by-patch workarounds. This is more important for long-term maintenance.
4. Stability and operations layer: treating training as a long-running service
Long-duration training is closer to operating a continuously online service. It requires:
- Fine-grained monitoring;
- Fault detection;
- Rapid recovery;
- Isolation of abnormal samples.
This layer often determines whether a large model can truly finish training, but it is also the easiest to overlook during adaptation.
3. Engineering Meaning of “400 Consecutive Stable Steps”
1. What it means that loss and gradient norm remain finite throughout
In deep learning training, numerical anomalies usually appear in two forms: loss becomes NaN or Inf, or gradients become abnormally large or entirely zero. These often stem from the following causes:
- Numerical overflow under low precision;
- Learning rate set too high;
- Individual abnormal samples;
- Defects in operator implementation.
If 400 consecutive steps remain finite, it at least shows that the forward pass, backward pass, gradient reduction, and optimizer update form a closed loop in a 16-card, cross-node environment and have not been interrupted by the typical problems above. This is a baseline but indispensable acceptance criterion.
The following is illustrative pseudocode:
model = build_model(model_cfg) # Build model and load initial weightsmodel = wrap_with_sharding(model, mode="full_shard") # Shard parameters, gradients, optimizer statesoptimizer, scheduler = build_optimizer(model)train_loader = build_dataloader(dataset, global_batch_size)for step in range(max_steps):batch = next(train_loader)with mixed_precision_ctx():loss = model(batch)loss.backward() # Backward pass, including cross-node gradient reductiongrad_norm = clip_grad_norm_(model, max_norm=1.0)optimizer.step() # Optimizer updatescheduler.step()optimizer.zero_grad(set_to_none=True)# Stability gate: loss and gradient norm must be finiteassert is_finite(loss) and is_finite(grad_norm), f"step={step}"log_metrics(step=step, loss=loss, grad_norm=grad_norm,tokens_per_sec=..., step_time_ms=..., mem_peak=...)if step % ckpt_interval == 0:save_checkpoint(model, optimizer, scheduler, step)
2. Why 400 steps are a practical acceptance point
Distributed training smoke tests commonly fall into three stages:
- Single-step validation: Run one forward and backward pass, checking whether numerical values on each rank are reasonable.
- Tens-of-steps validation: Observe whether loss decreases and whether gradient norm converges to a reasonable range.
- Hundreds-of-steps continuous run: Without manual intervention, cover learning-rate scheduling ranges, checkpoint read/write, and communication long-tail behavior, exposing problems such as “failure suddenly occurring at step N.”
The value of 400 steps is that it is long enough to cover learning-rate warmup, data distribution changes, and periodic checkpoint saving, while remaining inexpensive enough to repeat early in adaptation. Longer continuous tests—thousands of steps or more—are generally used for stability evaluation at large scale.
It should be emphasized that step count cannot be directly converted into training quality. Tokens consumed are roughly equal to “steps × global batch size × sequence length.” Four hundred steps only validate that the run does not break, not that the model is trained well.
3. The easily overlooked “communication long tail”
Distributed training performance is determined by the slowest communication link. Even if every card computes at the same speed, a slow link or congestion within collective communication can lengthen the time per step. Common investigation items include:
- Whether the step-time distribution across ranks shows a long tail;
- Whether the ratio of gradient reduction time to computation time rises with scale;
- Whether cross-node links experience packet loss or retransmission;
- Whether data loading becomes the bottleneck, increasing GPU idle time due to I/O waits.
4. From Two Servers with 16 Cards to Trillion-Parameter Scale: Five Major Challenges
| Challenge | Core problem | Typical response |
|---|---|---|
| Memory | Parameters, gradients, optimizer states, and activations exceed single-card capacity | Full sharding, activation recomputation, tensor/pipeline parallelism, memory offloading |
| Communication | Cross-node bandwidth is lower than inter-card interconnect, making communication a bottleneck | Computation-communication overlap, hierarchical reduction, alignment between parallel groups and topology |
| Numerical stability | Overflow, precision loss, and gradient anomalies under low precision | Mixed precision, high-precision accumulation, loss scaling, gradient clipping, and skip mechanisms |
| Fault tolerance | Hardware and network failures during long-duration training | Periodic checkpoints, fast restart, faulty-node isolation, and automatic recovery |
| Throughput | Insufficient compute utilization, making training duration and cost unpredictable | Operator fusion, efficient communication libraries, dynamic batching, and automatic parallel strategy search |
For memory, for example, an accelerator card must simultaneously hold:
- Model parameters;
- Gradients produced by backpropagation;
- Momentum and variance of adaptive optimizers, stored in FP32;
- Forward activations, which grow with batch size and sequence length.
Full sharding partitions the first three across all participating parallel cards. Assuming each card holds only one copy of parameters, gradients, and optimizer states, single-card memory usage is roughly “parameter bytes + 4 bytes for gradients + 8 bytes for optimizer states,” or about 14 GB per billion parameters. Activations grow linearly with batch size and sequence length and are the main source of memory pressure in long-context training. This is also why long-context and high-resolution multimodal tasks place higher demands on memory and communication.
5. Validation Methodology for Training Adaptation: Align, Shard, and Run Continuously
From an engineering-practice perspective, a credible training adaptation validation can be summarized in three steps: align, shard, and run continuously.
Step 1: Align a small-scale baseline
Use a smaller model or shorter sequences to run a baseline on general-purpose GPUs, recording the loss curve of the first several steps. Then run the same configuration on domestic hardware and compare whether the loss curves are closely aligned. This step can quickly locate hidden defects in operator or mixed-precision implementations.
Step 2: Gradually expand parallel scale
Parallel scale should be expanded step by step: “single-machine multi-card → multi-machine multi-card → larger scale.” Stability tests should be rerun at each level. The reason is that after crossing nodes, communication topology, collective communication implementations, and gradient reduction order may all change. Passing on a single machine does not guarantee passing across machines.
Step 3: Run long-duration continuously and inject faults
Run enough steps continuously at the target scale, and actively inject faults, such as simulating node failure or network jitter, to observe whether the system can recover automatically and whether checkpoints can resume training correctly.
In parallel, a multi-dimensional observability system should be established:
- Training metrics: loss, gradient norm, learning rate, gradient-clipping trigger rate;
- Performance metrics: time per step, throughput (tokens/s), communication ratio, GPU utilization;
- Resource metrics: peak memory, memory fragmentation, temperature, and power consumption;
- Stability metrics: continuous running duration, number of interruptions, mean time between failures, and recovery time.
6. From Adaptation to Scale: A Practical Path for Domestic GPU Training
The value of training adaptation must ultimately be verified through scaling. Referring to industry practice, training large models on domestic compute resources can be divided into four stages:
- Operator and functional adaptation: Cover forward and backward operators, and run single-machine and multi-machine training paths. The focus is “can it compute correctly?”
- Mixed precision and stability tuning: Introduce mixed precision, gradient clipping, abnormal-step skipping, and checkpointing. The focus is “can it run continuously?”
- Parallel strategy and topology optimization: Choose combinations of data/tensor/pipeline/expert parallelism according to model structure, and align parallel groups with physical interconnect. The focus is “can it run efficiently?”
- Scale expansion and automatic parallelism: Validate linear scaling efficiency at hundreds to thousands of cards, and use automatic parallel search to reduce tuning costs. The focus is “can it scale to trillion-parameter models?”
One important reality is that domestic compute still lags behind international mainstream hardware in single-card performance and interconnect bandwidth. Therefore, optimization priorities need to be adjusted accordingly:
- More aggressive sharding and recomputation: Trade a small amount of extra computation for memory space;
- More fine-grained communication scheduling: Hide communication behind computation;
- Higher effective compute utilization: Instead of simply pursuing peak compute performance.
7. Toolchains and Cloudization: Infrastructure for “Out-of-the-Box Training”
Large-model training is moving from “writing scripts and running experiments” to “running training like running a service.” In addition to chips and frameworks, a complete infrastructure layer is required:
- Object storage and data loading: Store massive training corpora and read them efficiently;
- Container platforms and job scheduling: Orchestrate multi-machine, multi-card resources, including queuing and priority management;
- Log services and monitoring alerts: Centrally collect training logs, visualize metrics, and issue anomaly alerts;
- Checkpoint and metadata management: Save sharded checkpoints, manage versions, and resume training from breakpoints;
- Fault detection and automatic recovery: Perform node health checks, isolate faults, and restart automatically.
The value of cloud-based training platforms is that users do not need to care about which architecture of accelerator is underneath. They only need to submit jobs, declare resources and parallelism strategies, and let the platform handle scheduling and operations. This is also the engineering foundation for “out-of-the-box training.”
Investment in this area continues in China. For example, Baidu has invested in a software-hardware co-designed domestic stack combining its PaddlePaddle deep learning framework with Kunlun chips, and Baidu AI Cloud is continuing to improve training and inference services for heterogeneous computing resources. Whether domestic GPUs can be used by more teams depends on software-stack maturity and cloud support, not on peak single-card performance alone.
8. From “Can Train” to “Out-of-the-Box Training”: Four Key Directions
The vendor stated that it will continue to improve operator adaptation, multi-card coordination, and automated toolchains. These correspond to four key directions for the domestic large-model training ecosystem:
- Operator completeness and numerical consistency: Complete backward operators are the prerequisite, and numerical behavior aligned with mainstream implementations is the basis for credibility.
- Communication optimization and parallel coordination: Topology-aware parallel strategies, computation-communication overlap, and hierarchical reduction directly determine scale expansion efficiency.
- Automated toolchains: Automatic parallelism, automatic mixed precision, breakpoint resume, and fault self-healing turn “expert experience” into “platform capabilities.”
- Ecosystem compatibility: Compatibility with mainstream training frameworks, model formats, and data formats allows users to migrate without rewriting code and is the most effective way to reduce migration costs.
9. Practical Advice for Developers
- Look for “three stabilities” when selecting hardware: stable operators (complete coverage and numerical consistency), stable links (multi-machine scalability), and long-term stability (recoverability from faults), rather than only peak single-card performance.
- Start small, then scale up: Validate the training path with a model at one-thousandth to one-hundredth of the target scale, then gradually enlarge it.
- Include stability metrics in acceptance criteria: Write requirements such as “N consecutive steps without anomalies,” “recovery time,” and “throughput fluctuation” into acceptance standards.
- Pay attention to data and checkpoints: The cost of a training interruption is not only time, but also the cost of restoring data-loading state and optimizer state.
Conclusion
The completion of training adaptation for a near-trillion-parameter model on domestic GPUs, together with 400 consecutive stable steps on two servers with 16 cards, marks another step forward for domestic compute in the direction of “being able to train” and “being able to train stably.” However, training adaptation is only the starting point: from two servers with 16 cards to thousand-card scale, from hundreds of steps to tens of thousands of steps, and from “can train” to “out-of-the-box training,” every step requires coordinated progress in operators, communication, fault tolerance, and toolchains. For developers, the correct approach is to rationally distinguish between “adaptation success” and “pretraining completed,” validate by stage, and accept by metrics.
