Domestic GPU Completes Adaptation for Nearly Trillion-Parameter LLM Training: 400 Stable Steps on 16 Cards Across Two Nodes

    This article examines a recent training adaptation in which a domestic full-function GPU vendor ran a flagship model of nearly 3 trillion parameters for 400 consecutive optimizer updates on 16 cards across two nodes. It clarifies why adaptation is not the same as base-model pretraining, explains the challenges of stable large-scale training, breaks down the native FSDP2 training path, and provides an engineering checklist for moving from "it loads" to reliable, observable, and recoverable training. Readers will learn what 400 stable steps actually validate and what it takes to make large-model training dependable.

    1. Background: A Training Adaptation, Not Base-Model Pretraining

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference compute card and its self-developed software stack, it completed a training adaptation for a flagship model with nearly 3 trillion parameters. Under a configuration of 16 cards across two nodes, the model completed 400 consecutive optimizer updates with no numerical overflow and no task interruption.

    One easily misread point must be clarified first: a successful training adaptation does not mean the model completed base-model pretraining on this chip. The former validates whether the hardware and software stack can train the model correctly and stably. The latter involves data, compute scale, training duration, and the original technical roadmap—a problem on an entirely different scale. A similar pattern already exists in the industry: the technical report of a foundation model may benchmark several accelerator options side by side, yet outside observers generally regard that as validation of inference-side operators and parallel strategies, while the original base-model compute source remains undisclosed.

    This article therefore abstracts the event into a general engineering question: how do you move a very large parameter model on a domestic accelerator from “it loads” to “it trains stably and for a long time”?

    2. Why Adaptation Is Much Harder Than a Single Forward Pass

    Inference deployment leaves considerable room for error: a single forward pass only requires correct operators and acceptable precision. Training is a continuously iterating closed loop in which a minor defect in any stage gets amplified:

    • High state complexity: Training must maintain parameters, gradients, and optimizer states (such as first- and second-order momentum) simultaneously, and memory usage is typically several times that of inference.
    • Numerical sensitivity: Improper handling of the learning rate, gradient clipping, or loss scaling can turn the loss into NaN/Inf.
    • Long-range stability: A few hundred error-free steps do not guarantee a few thousand; memory fragmentation, communication handle leaks, and logging or checkpoint overhead can all trigger failures midway.
    • Long pipeline: Data loading, shard scheduling, forward and backward passes, gradient synchronization, and checkpoint saving form a chain in which any blocked link drags down overall throughput.

    3. Core Technical Breakdown: What the Native FSDP2 Training Path Enables

    The adaptation establishes a native FSDP2 (Fully Sharded Data Parallel) multimodal training path. Its value lies in making sharding a first-class citizen rather than an after-the-fact patch.

    3.1 From Model Loading to Shard Scheduling

    The core idea of FSDP2 is to shard parameters, gradients, and optimizer states along the data-parallel dimension, so each rank holds only a shard, all-gathers parameters on demand during forward and backward computation, and reduce-scatters gradients afterward. Compared with traditional approaches, this reduces peak memory usage and lets a very large model spread across multiple cards.

    Illustrative configuration (pseudocode, semantics only):

    1. for layer in model.layers:
    2. fully_shard(layer) # Shard layer by layer to reduce peak memory
    3. fully_shard(model) # Wrap the top level once more
    4. optimizer = AdamW(model.parameters(), lr=1e-4)

    3.2 Gradient Synchronization and Communication Topology

    Sixteen cards across two nodes is a typical cross-node training setup, where the bottleneck is usually interconnect rather than compute. Engineering attention is needed on:

    • In-node high-bandwidth interconnect carrying the bulk of all-gather/reduce-scatter traffic;
    • Inter-node network carrying gradient synchronization and parameter pulls, which must overlap with computation to hide latency;
    • Communication bucket size and shard granularity tuned to model scale—too small means high startup overhead, too large means memory pressure.

    3.3 Numerical Stability Safeguards

    A key phrase from the experiment is that “the loss and gradient norm stayed finite throughout.” Common practices include keeping overflow-prone operators in FP32 under mixed precision, enabling loss scaling, applying global gradient-norm clipping, and using numerically stable implementations for normalization layers and softmax. The following logic can be used for online monitoring:

    1. if not torch.isfinite(loss):
    2. skip_step(); log_rank_state() # Skip the abnormal step and persist the scene
    3. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)

    4. What 400 Consecutive Stable Steps Mean

    Four hundred consecutive optimizer updates validate not a single point but a chain’s ability to run without degradation:

    1. Correctness: Parameter update directions are reasonable and the loss curve shows no systematic drift;
    2. Stability: No NaN/Inf and no abnormal process exits, indicating operators and communication remain reliable over long runs;
    3. Observability: When an anomaly occurs, it can be traced to a specific rank, layer, and operator rather than a black-box crash;
    4. Recoverability: Checkpointing and automated tooling can resume training quickly after a failure.

    5. Engineering Checklist: From “It Trains” to “Ready to Train Out of the Box”

    Drawing on common industry practice, large-scale training can be accepted item by item against the table below:

    Area Key checks Common pitfalls
    Operator coverage Whether training-mode operators are complete and backward passes are implemented Only the forward pass is validated
    Parallel strategy Whether the combination of data/tensor/pipeline/expert parallelism is reasonable Parallelism does not match the topology
    Memory management Shard granularity, recomputation, fragmentation handling OOM after long runs
    Communication optimization Compute-communication overlap, bucket size tuning Cross-node bandwidth saturated
    Numerical stability Loss scaling, gradient clipping, FP32 fallback Loss jumps midway
    Fault tolerance and recovery Checkpoint frequency, self-healing No resume from checkpoint

    In cloud environments, these capabilities are typically carried by a combination of general categories such as container platforms, object storage (for checkpoints and datasets), logging services, and monitoring and alerting. General infrastructure offered by cloud vendors such as Baidu AI Cloud can serve as a reference model.

    6. Conclusion

    The significance of this adaptation is that a domestic full-function GPU now has the engineering capability to support full-chain, stable training of frontier complex large models. There are already multiple practices of “domestic chips training domestic models,” covering directions such as hundred-billion-scale scientific foundation models, world models, and embodied brain models, and the effort is moving toward trillion-parameter training. For developers, the real payoff is not a single successful run but a reusable, observable, and recoverable adaptation methodology—this is the foundation of “ready to train out of the box.”