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

    This article explains a recent training adaptation in which a domestic full-function GPU vendor ran a nearly 3-trillion-parameter flagship model on 16 accelerator cards across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies why training adaptation is not the same as pretraining the base model, breaks down the native FSDP2 training path (model sharding, cross-node communication, and numerical stability), outlines the engineering layers required beyond a single successful run, and offers practical advice for developers moving from "able to train" toward "ready to train out of the box."

    Domestic GPU Training Adaptation for a Nearly Trillion-Parameter Model: A 400-Step Engineering Breakdown on 16 Cards Across Two Nodes

    1. Background: 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 self-developed software stack, it quickly completed the training adaptation of a flagship large model at nearly the 3-trillion-parameter scale. The test environment used 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with loss values and gradient norms staying finite throughout, and no numerical overflow or abnormal interruption occurred.

    One easily misread concept must be cleared up first: a successful training adaptation does not mean the model was pretrained on this chip.

    The industry’s common “Day 0 adaptation for the latest open-source model” usually means that inference-side operator alignment and deployment verification were completed on the day the model weights were released. Training adaptation is significantly harder, because it requires closing the full loop of forward pass, backward pass, optimizer update, and cross-card gradient synchronization. Even so, what it verifies is that “this software and hardware stack is capable of supporting this class of model training”; it does not mean the original base model’s pretraining compute came from this source. In the technical report of a previously open-sourced model, inference operator schemes for two different accelerator architectures were verified side by side. The industry generally regards that as inference-side verification, and the official statement never claimed the original compute source of the base model’s pretraining.

    Conflating these two things leads to a misjudgment of the maturity of domestic compute. A more accurate statement is: the domestic software and hardware stack is moving from “able to do inference” to “able to do training,” and further toward “ready to train out of the box.”

    2. Technical Core: What the Native FSDP2 Training Path Delivers

    The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel, second-generation sharded data parallelism) multimodal training path, connecting three stages end to end.

    2.1 Model Loading and Sharding Scheduling

    For a nearly trillion-parameter model, the weights of a single layer can exceed the memory capacity of a single card, so the model must be split during loading. The core idea of FSDP2 is that parameters, gradients, and optimizer states are all sharded along the data-parallel dimension. Each card permanently holds only the portion it is responsible for, and during the forward pass it temporarily aggregates the parameters of the required layers through collective communication, releasing them immediately after use.

    The illustrative configuration logic is as follows (semantic only, not a specific framework interface):

    1. # Pseudocode: core semantics of sharded data parallelism
    2. for layer in model.layers:
    3. shard = shard_module(layer, dim=0) # split parameters along a dimension and keep the shard local
    4. # Forward: all_gather parameters -> compute -> release
    5. # Backward: reduce_scatter gradients -> keep only this card's shard
    6. # Optimizer: each card updates only the parameter shard it holds

    Compared with the first-generation implementation, one key improvement in FSDP2 is that it replaces the flattened 1D buffer with tensor sharding, reducing view-reconstruction overhead and keeping the sharding state more stable across iterations. This is friendlier for debugging and fault tolerance in very long training jobs.

    2.2 Cross-Node Joint Training and Communication Topology

    Two nodes with 16 cards is a typical cross-node scenario. Within a node, high-bandwidth interconnect is usually used; across nodes, the network is used, and the bandwidth gap between the two is significant. Communication scheduling must therefore be layered: reductions that can be done inside a node should not cross machines, and cross-machine communication should overlap with computation as much as possible.

    Engineering practice generally relies on three techniques: first, gradient bucketing, which merges many small tensors into large blocks for transfer to reduce communication launch overhead; second, overlapping computation and communication, so that as soon as the backward pass produces a layer’s gradient, its reduction is launched immediately; third, sensible partitioning of parallel dimensions, keeping the most communication-intensive parallelism within a node as much as possible.

    2.3 Numerical Stability: What 400 Steps Really Means

    “400 consecutive optimizer updates with loss and gradient norms finite throughout” is a more convincing metric than peak compute. The most common failure mode in large-scale training is not slowness, but a sudden crash hours in, when the loss turns into NaN and the whole run collapses. In mixed-precision training, the following need close monitoring:

    • Whether the loss shows inf/nan, and whether gradient clipping is triggered frequently;
    • Whether the gradient norm rises monotonically (often a signal of too large a learning rate or abnormal data);
    • Whether the optimizer states (first- and second-order moments) show abnormal magnitudes;
    • Whether the loss stays consistent across cards; inconsistency usually means a problem with data sharding or random seeds.

    A minimal usable monitoring loop:

    1. for step, batch in enumerate(loader):
    2. loss = model(batch)
    3. loss.backward()
    4. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    5. optimizer.step()
    6. optimizer.zero_grad()
    7. if not isfinite(loss) or not isfinite(grad_norm):
    8. raise RuntimeError(f"Numerical anomaly at step={step}")
    9. log(step, loss, grad_norm, lr=optimizer.lr)

    3. From a Single Point to a System: Engineering Capability Matters More Than One Successful Run

    There is a full engineering system between a single 400-step run and the ability to train stably. Four layers are usually required:

    1. Operator layer: coverage of high-frequency operators such as attention, normalization, and loss functions, with consistent numerical behavior across various shapes;
    2. Parallelism layer: combinations and automatic search of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism;
    3. Fault-tolerance layer: periodic checkpoints, automatic isolation of faulty cards, and resume-from-checkpoint training;
    4. Toolchain layer: performance profiling, communication visualization, and automated precision alignment and regression testing.

    When deployed in the cloud, these capabilities are usually combined into a containerized training platform + high-performance object storage (for datasets and checkpoints) + monitoring and alerting + logging services. General cloud product categories offered by vendors such as Baidu AI Cloud include corresponding capabilities and can serve as reference components for building a training foundation.

    4. Existing Deployment Forms: Three Typical Training Tasks

    From public information, “domestic chips training domestic models” on domestic compute already covers three types of tasks, each with different engineering difficulties:

    • From-scratch full training of a scientific foundation model (hundred-billion-parameter scale): the difficulty lies in long-cycle stability and data throughput;
    • Full-stack native training of multimodal/world models: the difficulty lies in mixing heterogeneous modality encoders and controlling peak memory;
    • End-to-end training of embodied-intelligence brain models: the difficulty lies in complex data pipelines and frequent iteration, which place high demands on toolchain automation.

    The industry is currently jointly advancing the training of trillion-parameter-scale models, which will push fault tolerance and parallelism strategies to their limits.

    5. Practical Advice from a Developer’s Perspective

    • Validate numerical correctness with a small-scale model first, then scale up, to avoid wasting card hours by jumping straight to a large model;
    • Establish a precision baseline and run regression after every operator or driver upgrade to prevent silent precision degradation;
    • Design checkpoint frequency together with fault-recovery time; the effective compute of a long job depends on how fast it recovers;
    • Locate communication bottlenecks with profiling first, rather than tuning parallelism by intuition;
    • Watch for the maturity signals of “ready to train out of the box”: a stable model library, automatic parallel configuration, and one-click reproduction scripts.

    6. Conclusion

    A domestic full-function GPU completing the training adaptation of a nearly 3-trillion-parameter model, validated by 400 consecutive stable updates on 16 cards across two nodes, marks that a key link in the domestic software and hardware stack for ultra-large-model training has been connected. For developers, the real benefit is not the number from a single successful run, but the reusable sharding strategies, communication optimizations, and numerical monitoring methods behind it—these are the underlying capabilities that turn “able to train” into “ready to train out of the box.”