Domestic GPU Adapts to 3 Trillion Parameter Model Training: A 400-Step Stability Analysis
This article examines a domestic full-function GPU vendor's training adaptation for a nearly 3-trillion-parameter open-source large model, in which 16 accelerator cards across two nodes completed 400 consecutive optimizer updates with loss and gradient norms staying finite throughout. It clarifies why inference loading, fine-tuning, and pre-training from scratch are not equivalent capabilities; explains what training adaptation actually covers at the operator, parallelism, framework, and long-run engineering levels; analyzes why 400 consecutive steps serve as a meaningful reliability threshold; and offers practical guidance for moving from "can train" to "ready to train out of the box."
1. Background: A Training Adaptation, Not Pre-Training From Scratch
A domestic full-function GPU vendor recently disclosed a training adaptation result: using its flagship AI training-and-inference accelerator card together with its in-house software stack, it completed the training adaptation of a leading open-source large model with close to 3 trillion parameters. The experiment used 16 accelerator cards across two nodes for cross-node joint training, and all 16 training processes completed 400 consecutive optimizer updates. Loss and gradient norms remained finite throughout, with no numerical overflow and no abnormal interruption.
The vendor also noted that it had previously delivered several “domestic compute trains domestic models” results, such as the complete training of a 200-billion-parameter scientific foundation model, full-stack native training of a world model, and end-to-end training of an embodied intelligence model. It is now advancing the training of a trillion-parameter-class model.
One point deserves emphasis up front: this is a training adaptation. The model already has weights and a structural definition, and this work verifies whether “the model and its training pipeline can run correctly and stably on domestic accelerator cards.” It does not mean the model was pre-trained from scratch on these chips, nor is it the same as the “Day 0 adaptation” often discussed in the industry. The latter typically refers to completing inference deployment and basic loading on the day a new model is open-sourced.
For developers and enterprise users, the questions that truly matter are:
- What engineering hurdles must a training adaptation overcome?
- How can you judge whether an adaptation is genuinely reliable?
- What is still missing on the path from “can train” to “ready to train out of the box”?
2. Clarifying the Concepts: Three Levels of “Running” Are Not Equivalent
| Capability Level | Typical Goal | Main Engineering Challenges | Representative Validation |
|---|---|---|---|
| Inference deployment / loading | Weights load, the forward pass runs, output falls within a reasonable range | Operator coverage, precision alignment, memory layout conversion | Load weights and compare outputs layer by layer against a reference implementation |
| Fine-tuning / continued training | Run backward propagation on small-to-medium clusters and keep updating parameters | Backward operators, mixed precision, optimizer state, gradient synchronization | Full training pipeline with a loss curve aligned to a reference implementation |
| Pre-training a foundation model from scratch | Stable convergence at long duration and large cluster scale, reaching target quality | Parallel strategy tuning, long-range numerical stability, fault recovery, large-scale scheduling | A complete pre-training cycle with convergence over the full dataset |
The bar for these three levels rises in turn. The first two can usually be handled by a one-off adaptation and validation; the third tests the maturity and resilience of the software stack under real workloads.
The industry offers a useful reference case. The technical report of one leading open-source model validated two routes side by side — a domestic NPU and an international mainstream GPU vendor — for a fine-grained expert parallelism (EP) scheme. This is widely regarded as inference-side operator validation, and the original compute source used for that model’s base pre-training was not disclosed in the report. The takeaway: judging a compute platform’s capability requires distinguishing “which stage was validated” from “what scale of training was completed.”
3. What Training Adaptation Actually Adapts
3.1 The Operator Layer: From “Forward Passes” to “Backward Passes”
Getting the forward pass to run is only the starting point; training also requires every operator to have a correct and stable backward implementation. Leading large models typically include the following structures, each with specific adaptation concerns:
- Multi-head attention: Causal masking, variable-length sequences, KV caching, and similar scenarios place heavy demands on the numerical stability of compute-intensive attention operators.
- Rotary position embeddings and normalization: These involve trigonometric functions, exponential operations, and large amounts of reduction — common spots where numerical deviation appears under low precision.
- Mixture-of-Experts (MoE) routing: Routing usually comes with irregular data dispatch and demands strong support for dynamic shapes.
- Multimodal fusion: This requires mixed computation across encoders and projection layers for different modalities.
Beyond numerical correctness, operator coverage and degree of fusion matter too. Fused operators reduce memory-access and kernel-launch overhead, but when coverage is insufficient, the framework often falls back to a generic element-wise path, and performance drops sharply.
3.2 Parallel Strategies: Spreading Trillions of Parameters Across 16 Cards
Large-model training is essentially a combination of several parallel dimensions:
- Data parallelism: Each rank holds a full replica of the parameters and stays synchronized through gradient reduction. Sharded schemes (fully sharded data parallelism) further split parameters, gradients, and optimizer state across ranks and aggregate them on demand during use, sharply reducing per-card memory usage.
- Tensor parallelism: Splits the matrix computation of a single layer across multiple cards. It is communication-heavy and is generally confined to the high-speed interconnect within a node.
- Pipeline parallelism: Splits the model into segments (stages) by layer and executes them in sequence, requiring careful scheduling of micro-batches to reduce “pipeline bubbles.”
- Sequence parallelism: Splits activations along the sequence dimension, often used together with attention implementations to reduce activation memory for long sequences.
- Expert parallelism: Distributes MoE experts across different ranks, relying on All-to-All communication and requiring handling of uneven expert load.
At a scale of 16 cards, a typical combination is “data parallelism + sharded parameter management,” where each rank stores its share of parameters, gradients, and optimizer state and aggregates them on demand. For a trillion-parameter model, the parameters alone take about 6TB even when stored only in BF16; even fully sharded across 16 cards, each card would carry hundreds of gigabytes. This is why “16 cards completing a full-pipeline validation” and “16 cards independently completing pre-training” are concepts of two different orders of magnitude. The former validates correctness, the feasibility of the parallel strategy, and long-range stability; the latter requires thousands to tens of thousands of cards working with efficient parallel strategies. The specific parallel combination must be determined after measuring each card’s memory capacity and inter-node bandwidth — the configuration of another platform should not be copied directly.
3.3 The Framework and Software Stack: Letting the Compute Graph Land as Is
Model definitions are usually written against mainstream deep learning frameworks; adaptation work happens at the last mile where the compute graph is dispatched to hardware, and it mainly covers:
- Distributed training backend: Abstractions for devices, streams, and events; mapping of collective communication primitives; creation and management of process groups.
- Graph and execution engine: Operator selection, kernel generation and scheduling, memory allocation and reuse, and overlap of communication and computation.
- Automatic differentiation: Mechanisms such as custom backward passes, gradient accumulation, and activation recomputation (checkpointing).
- Mixed precision and randomness: Precision modes, random seeds, and the consistency of stochastic operators like dropout across different parallel dimensions.
Consistency of randomness is often overlooked: under data parallelism, each rank’s dropout random stream must align with its data shard; under tensor parallelism, certain stochastic operators require ranks to use the same seed to generate the same mask. When handled improperly, this raises no error but quietly alters the training semantics.
3.4 The Characteristics of Sharded Data Parallelism and the Multimodal Training Path
Sharded data parallelism divides parameters into independent logical units, which has two implications:
- Advantages: Each rank independently updates its own shard, memory usage is more predictable, and in some cases communication volume and peak memory are reduced.
- Costs: Parameters must be re-aggregated before each forward/backward pass, which places higher demands on communication scheduling and lifecycle management and requires ensuring “aggregate first, then use.”
The complete path “from model loading and shard scheduling to gradient synchronization” matters precisely for this reason:
- Model loading: Converting standard-format weights into each rank’s shard format, involving format conversion, precision conversion, and metadata validation.
- Shard scheduling: During forward and backward passes, each rank asynchronously aggregates the required parameter shards according to dependency relationships and overlaps this with computation. Once dependency management is wrong, a rank may read data that is not yet ready.
- Gradient synchronization: After the backward pass completes, gradients are reduced and then each local parameter shard is updated.
- Closed-loop validation: Consistency of parameter values across ranks is a necessary condition for all the above steps being correct.
Multimodal models make the path more complex: data loading, preprocessing, and encoders for different modalities must be scheduled together; losses across modalities must be normalized uniformly; and because input lengths differ greatly across some modalities, computational load imbalance is common.
3.5 Engineering Support for Long-Running Jobs
Thousand-card jobs are measured in days or even weeks. The following support directly determines whether a job can “finish”:
- Checkpoint saving and recovery: Saving the model, optimizer, learning-rate scheduler, and random-number state so the training trajectory can pick up seamlessly after recovery.
- Monitoring and alerting: Continuously collecting metrics such as loss, gradient norm, throughput, memory, card temperature, and power draw.
- Slow-node and hardware fault detection: Card throttling, link bit errors, ECC errors, and similar issues can all slow down or hang the entire job.
4. Why “400 Consecutive Updates” Is a Key Threshold
There is a clear gap between “can run one step” and “can stably train 400 steps.” Typical problems in the early stage of training include:
- Incomplete weight loading or misalignment during conversion: Loading passes the check, but parameter tensors do not match the configuration, so the loss drifts from the reference curve right at the start.
- Immediate backward-pass failure: A missing custom backward, or some operator not supporting the current shape and precision combination.
- Missing or inconsistent gradient reduction: The gradients of some ranks are not reduced correctly, or the reduction order introduces deviation from low-precision accumulation.
- Mixed-precision overflow: Gradients exceed the representable range of the low-precision data type, or the loss-scaling strategy fails.
- Optimizer state anomalies: Updates to momentum and second-moment estimates introduce non-finite values that gradually “poison” the parameters.
Short runs tend to mask these problems; enough steps are needed to expose them. For example, numerical issues in optimizer state often emerge only after dozens to hundreds of steps, and occasional errors introduced by data sampling, randomness, or asynchronous communication also require a certain number of steps to be caught statistically.
That is why 400 consecutive optimizer updates — with loss and gradient norms finite throughout, no numerical overflow, and no abnormal interruption — provide a persuasive “baseline signal.” Its meaning should be viewed objectively:
- What it proves:
- The model’s training pipeline is now working end to end on domestic accelerator cards;
- Under the test configuration, mixed precision and long-range numerics are stable;
- The software stack has the basic ability for multi-process, cross-node coordination.
- What it does not yet prove:
- It does not cover a full pre-training cycle and the complete dataset;
- It does not cover communication and fault tolerance at ten-thousand-card scale;
- It says nothing yet about the final model quality.
400 steps roughly fall in the early learning-rate warmup and gradient-adaptation phase of training, where gradients are often large and numerics are most sensitive. It is a necessary signal for reliability, but not a sufficient condition. A more mainstream progressive validation path in the industry is shown below:
| Stage | Goal | Key Observations | Pass Criteria (examples; set per project) |
|---|---|---|---|
| ① Single card, single step | Confirm the model definition, data, and loss are correct | Forward/backward numerics of each layer | Output error vs. the reference implementation within a set tolerance |
| ② Multi-card, short run | Confirm parallelism and gradient synchronization are correct | Loss curve, gradient norm | Trend consistent with a single-card or small-scale reference under the same configuration |
| ③ Cross-node, short run | Confirm inter-node communication and scheduling are correct | Throughput, communication share | Throughput scales near-linearly with card count, with no abnormal blocking |
| ④ Long continuous run | Confirm long-run stability and numerical health | Count of non-finite values, loss spikes | No interruption over consecutive steps; able to skip and recover automatically when necessary |
5. Making Stability an “Observable, Recoverable” Engineering Capability
5.1 Building a “Health” Metric System
Beyond loss, at least the following should be recorded continuously:
- Loss and gradient norm: Whether they are finite and whether abnormal spikes exist.
- Parameter update norm: To judge whether the optimizer is truly updating parameters.
- Learning rate: To confirm whether warmup and decay scheduling run as expected.
- Throughput and compute share: Measured by per-step time, tokens per second, or hardware utilization.
- Resources and communication: Peak memory, card temperature, power draw, and the share of collective-communication time.
Illustrative code (framework-agnostic):
for step, batch in enumerate(train_loader):loss = model.train_step(batch) # internally completes forward, backward, gradient sync, and optimizer updategrad_norm = model.last_grad_normhealthy = math.isfinite(loss) and math.isfinite(grad_norm)if step > 0:spike = grad_norm / max(prev_grad_norm, 1e-6) > GRAD_SPIKE_RATIOelse:spike = Falsemetrics.log(loss=loss,grad_norm=grad_norm,update_norm=model.last_update_norm,lr=scheduler.current_lr,step_time_ms=timer.step_ms(),comm_ratio=comm_timer.ratio(),mem_peak_gb=memory_stat().peak / 1024 ** 3,)if not healthy or spike:handle_anomaly(step, loss, grad_norm, consecutive=consecutive_failures)consecutive_failures += 1if consecutive_failures >= PAUSE_THRESHOLD:save_debug_snapshot(step) # save model, optimizer, and scheduler state for offline reproductionbreakelse:consecutive_failures = 0prev_grad_norm = grad_normif step % CHECKPOINT_INTERVAL == 0:save_checkpoint(step) # save model, optimizer, scheduler, and data loader progress
5.2 Handling Anomalies in Layers
Anomaly handling is best done with a “fault-tolerant first, then roll back, and finally pause for diagnosis” strategy:
- A non-finite value in a single training step: Skip this update and record it. This is a common fault-tolerance measure; skipping should not happen continuously, so a threshold is needed.
- Repeated occurrence over several consecutive steps, or a loss spike: Roll back to the most recent stable checkpoint and investigate the data batch, learning rate, or randomness settings.
- Still cannot recover: Pause the job, save a snapshot of the state, and move to offline reproduction and root-cause analysis.
5.3 Bridging Small-Scale Validation and Large-Scale Deployment
- Alignment testing: Reproduce the same model structure and training pipeline on a small model, compare outputs and gradients layer by layer against a known-reliable reference implementation, and confirm the adaptation itself introduces no deviation.
- Hardware health checks: Before formal training, run benchmarks across all cards and links on the target cluster, covering compute, memory bandwidth, and collective communication, to identify slow cards and faulty ones.
- Monitoring and alerting: In large-scale environments, collect metrics from each node centrally through logging services and monitoring/alerting systems, and set tiered thresholds for card temperature, power draw, error codes, and the like.
- Platform support: In the cloud, a heterogeneous computing platform typically handles resource pooling, job scheduling, and fault isolation, working with object storage to hold checkpoints and datasets and with a container platform to distribute training images, so developers can focus on the model and parallel strategy. Baidu AI Cloud, for example, offers heterogeneous computing capabilities that can serve the resource supply and scheduling needs of such training jobs.
6. From “Can Train” to “Ready to Train Out of the Box”: What Is Still Missing
Gaps between “can train” and “ready to train out of the box” can typically be checked level by level as maturity increases:
- Complete operators: All operators the model involves are available under the target precision, with no reliance on generic fallback paths.
- Framework compatibility: Mainstream deep learning frameworks and common distributed training libraries run without patches.
- Tunable parallelism: Parallel configuration recommendations adapted to the hardware topology, along with auto-tuning capability.
- Long-run stability with recovery: Support for automatic checkpointing, anomaly detection, and fast recovery.
- Out-of-the-box readiness: One-click launch scripts, automatic dependency installation, and reference configurations, accompanied by performance baseline data.
Toward these goals, the future directions for evolution include:
- Improving the operator library and graph optimization: Expanding the coverage and performance of fused operators.
- Strengthening framework and toolchain integration: Providing profiling, memory analysis, and distributed debugging tools.
- Building a model adaptation repository: Preserving model structure definitions, parallel configurations, launch scripts, and reference metrics as reusable assets, so that “trainable the next day” for new models becomes the norm.
- Reinforcing large-scale fault tolerance: Introducing automatic fault detection, elastic scheduling, and automatic checkpoint recovery to lower the operational cost of long-running jobs.
7. Practical Advice for Developers
- Align first, then scale: For any new hardware platform or software stack, first complete layer-by-layer numerical alignment with the reference implementation at small scale, then scale up step by step.
- Treat stability metrics as first-class citizens: The finiteness of loss and gradient norms, the number of skipped steps, and checkpoint-recovery success rate should be treated on par with throughput metrics.
- Configuration as code: Parallel strategy, precision mode, random seeds, and data ordering should all be placed under version control to ensure reproducibility and traceability.
- Keep clear expectations about scope: For leading large models, training adaptation solves “correctness and stability,” not “training the model from scratch.”
Conclusion
A domestic accelerator card completing the training adaptation of a model with nearly 3 trillion parameters, and running 400 consecutive optimizer updates on 16 cards across two nodes, marks another important piece filled in on the domestic full-function GPU’s large-model training path. From operators and parallelism to framework and fault tolerance, training adaptation is a systems engineering effort. Only by making every stage an “observable, verifiable, recoverable” capability can domestic compute move steadily from “can train” toward “ready to train out of the box.”
