A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter LLM: 16 Cards Across 2 Nodes, 400 Stable Steps

    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 that training adaptation is not the same as pretraining the base model on that hardware, then breaks down the technical work involved: native FSDP2 sharding, cross-node communication strategies, and numerical stability. It also outlines what is still needed to move from "it runs" to "ready to train out of the box," and provides a reusable stability validation checklist for serious adaptation work on domestic accelerators.

    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 completed the training adaptation of a nearly trillion-parameter (about 3 trillion) flagship large model. 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 remaining finite throughout, and no numerical overflow or abnormal task interruption occurred.

    One common misunderstanding must be cleared up first: training adaptation is not the same as pretraining the model on this chip. A successful adaptation or integration means the model structure, operators, parallel strategy, and training pipeline can run correctly and stably on the hardware and software stack. Where the base model’s original pretraining compute came from is a separate question. A similar situation already exists in the industry: the technical report of an open-source model may validate multiple acceleration backends side by side, but that only demonstrates the feasibility of inference-side operators and parallel schemes; it does not mean the base pretraining used that compute. Therefore, the value of an adaptation should be judged by “pipeline completeness, stability duration, and parallel scalability,” rather than simply binding the model’s parameter count to the chip.

    2. Technical Breakdown: What a Complete Training Adaptation Actually Does

    2.1 Model Loading and Sharding: The Native FSDP2 Path

    A nearly trillion-parameter model cannot fit entirely in a single card’s memory and must rely on sharding. The core idea of native FSDP2 (the second-generation implementation of Fully Sharded Data Parallel) is that parameters, gradients, and optimizer states are fully sharded within the data-parallel group; parameters are all-gathered on demand during forward and backward passes and released immediately after computation; gradients are reduce-scattered during the optimizer update. Compared with traditional data parallelism where each card keeps a full parameter replica, sharding reduces memory usage to roughly 1/N.

    A simplified training initialization sketch (pseudocode, expressing semantics only):

    1. # Build the model with sharded data parallelism: parameters/gradients/optimizer states are all partitioned
    2. model = build_model(config) # construct structure only, do not load full weights
    3. model = shard_model(model, strategy="fsdp2") # shard parameters + aggregate on demand during computation
    4. optimizer = torch.optim.AdamW(model.parameters(), lr=1e-4)
    5. for step, batch in enumerate(dataloader):
    6. loss = model(batch) # forward: all-gather parameter shards
    7. loss.backward() # backward: reduce-scatter gradient shards
    8. optimizer.step() # update only the parameter shards held by this card
    9. optimizer.zero_grad()

    What is genuinely difficult in engineering is “shard scheduling”: when to aggregate, how large the aggregation granularity should be, how to overlap with forward and backward computation, and how to avoid memory peaks breaking through the limit. These determine whether an adaptation can go from “running one step” to “running hundreds of steps continuously.”

    2.2 Cross-Node Communication: The Bottleneck in a 2-Node, 16-Card Setup

    Single-node multi-card setups usually use high-bandwidth interconnects, while cross-node communication depends on the network. A 2-node, 16-card setup means the data-parallel group spans two machines, with communication dominated by all-gather (parameters) and reduce-scatter (gradients). Key points include:

    • Communication-computation overlap: split parameter aggregation into small chunks and prefetch the next layer’s parameters in advance to hide communication latency;
    • Gradient accumulation to amortize communication: use accumulation to merge gradients from multiple micro-batches before synchronizing, reducing communication volume per sample;
    • Topology awareness: keep shard groups within the same node as much as possible, so cross-node traffic carries only necessary synchronization;
    • Fault tolerance: when a single card or process fails, locate and restart quickly rather than letting an entire training log be corrupted.

    2.3 Numerical Stability: What 400 Steps Really Means

    “400 consecutive optimizer updates with loss and gradient norms finite throughout” is a key signal. The most common early-training failure for large models is not “slowness” but loss turning into NaN or gradient norms suddenly spiking. Common causes and countermeasures:

    Symptom Common Cause General Countermeasure
    Loss becomes NaN/Inf Learning rate too high, mixed-precision overflow Loss scaling, dynamic range checks, lower lr
    Gradient norm spikes Abnormal individual samples, poor initialization Gradient clipping, skip abnormal batches
    Updates stall Inconsistent optimizer state sharding Verify reduce-scatter semantics
    Mid-run crash Memory peak, communication timeout Reduce aggregation granularity, enable retries

    400 steps is a “short-term stability validation.” Its significance is to prove the pipeline is correct and numerically controllable, establishing a baseline for subsequent thousand-step and ten-thousand-step long runs.

    3. From “It Can Train” to “Ready to Train Out of the Box”: What Is Still Missing

    A successful adaptation only solves “runnable.” To reach “ready to train out of the box,” three layers of capability must be filled in:

    1. Operator layer: cover all forward and backward operators used by the model and ensure numerical alignment with the reference implementation; provide equivalent implementations or fallback paths for missing operators.
    2. Parallel layer: combined scheduling of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, plus automatic trade-offs among memory, communication, and computation.
    3. Toolchain layer: one-click launch of distributed jobs, log and metric collection, automatic anomaly diagnosis, and checkpoint resume. It can integrate with general-purpose capabilities, such as using object storage to save checkpoints, a log service to aggregate training logs, monitoring and alerting to track loss and hardware metrics, and a container platform for environment isolation and elastic scheduling.

    4. A Reusable Stability Validation Checklist

    If you want to do a serious training adaptation on a domestic accelerator card, validate in the following order:

    • Single-card operator alignment: compare layer-by-layer outputs on a small model, with error within an acceptable range;
    • Single-node multi-card: verify sharding and correct all-gather/reduce-scatter semantics;
    • Two-node scaling: observe throughput scaling efficiency with card count and the communication share;
    • Numerical long run: fix the random seed, run at least several hundred consecutive updates, and monitor loss, gradient norm, and memory peak;
    • Fault-tolerance drill: deliberately induce a single-process failure and verify automatic restart and checkpoint resume;
    • Regression baseline: turn the above results into a baseline and run it after any software stack upgrade.

    5. Conclusion

    The value of “16 cards across two nodes running stably for 400 consecutive steps” lies not in the number itself but in the fact that it marks the completion of a closed-loop validation of the domestic full-function GPU’s training pipeline, from operators and sharding to communication and numerical stability. For developers, what truly matters is a reproducible validation method, clear failure boundaries, and the engineering accumulation needed to move from “it can train” to “ready to train out of the box.”