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 three-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, why near-trillion-parameter adaptation is difficult, and how native FSDP2 full sharding, cross-node communication strategies, and a practical stability checklist make the run verifiable. It also outlines what is still needed to move from a one-off successful run to out-of-the-box training.

    1. What Happened: A Training Adaptation, Not a Pretraining Repro

    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 flagship large model with a parameter scale of nearly three trillion. The experiment ran on 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with loss values and gradient norms remaining finite throughout. No numerical overflow occurred, and no process exited abnormally.

    One easily confused point must be clarified first: a successful training adaptation does not mean the model was pretrained on this chip. Adaptation answers whether a given hardware and software combination can run the model’s training pipeline correctly and stably. Pretraining, by contrast, concerns which compute initially produced the base weights. Existing technical reports in the industry have evaluated multiple accelerator backends side by side for operator and parallelism-strategy validation, but this is a feasibility check at the inference or operator level and cannot be used to infer the original compute source of base-model pretraining. Separating these two questions is the prerequisite for understanding this progress.

    2. Why Near-Trillion-Parameter Training Adaptation Is Hard

    Rising parameter counts do not bring linear difficulty. Instead, several dimensions degrade in a coupled way:

    • The memory wall: Parameters, gradients, and optimizer states (especially momentum and variance) add up, so a single card’s memory is far from enough and sharding is mandatory.
    • The communication wall: Every step requires gradient reduction and parameter synchronization, making cross-node bandwidth the main bottleneck.
    • Numerical stability: Large-model training often runs mixed-precision at low precision. If any of loss scaling, norm clipping, or overflow detection is missing, training can blow up within the first few dozen steps.
    • Long-run stability: Running briefly and running for hundreds of consecutive steps without interruption are engineering capabilities of two different orders of magnitude.

    So the value of a training adaptation depends on whether it covers the full loop of loading, sharding, scheduling, synchronization, and updating, rather than only demonstrating a single forward step.

    3. Core Technical Path: Native FSDP2 Full Sharding

    This adaptation builds a native fully sharded data parallel (FSDP2) training path. The key idea is to distribute model parameters, gradients, and optimizer states as shards across training processes, gathering them on demand during the forward and backward passes. This spreads the single-card memory pressure across the whole cluster.

    A simplified training skeleton is shown below (structure only, not a specific framework API):

    1. # Pseudocode: training loop skeleton for fully sharded data parallelism
    2. for step, batch in enumerate(dataloader):
    3. with shard_context(): # shard context: gather parameters on demand
    4. loss = model(batch).loss # forward: all-gather parameters layer by layer
    5. loss.backward() # backward: reduce-scatter gradients layer by layer
    6. grad_norm = clip_grad_norm_(model, max_norm=1.0) # norm clipping
    7. if not isfinite(loss) or not isfinite(grad_norm):
    8. skip_step_and_log(step) # skip and log on overflow
    9. continue
    10. optimizer.step() # distributed optimizer updates its own shard
    11. optimizer.zero_grad()

    In engineering practice, three things decide success or failure: shard granularity and gathering timing (avoid gathering too early and spiking memory), overlap of communication and computation (hide parameter gathering behind computation), and optimizer state sharding (fully disperse the most memory-hungry part).

    4. 16 Cards Across Nodes: Real Constraints on Communication and Scheduling

    Joint training over 16 cards across two nodes tests topology awareness. In practice it usually requires:

    1. Combining parallelism strategies: Data parallelism plus tensor or pipeline parallelism keeps high-frequency communication inside the high-bandwidth intra-node domain, leaving only low-frequency synchronization to cross-node links.
    2. Gradient accumulation: Trade compute for communication to reduce the number of synchronizations per sample.
    3. Balancing batch size and sequence length: When memory is tight, adjust micro-batch size and sequence partitioning first rather than blindly enlarging the global batch.
    4. Fault recovery: Periodic checkpoint saving and resume-from-checkpoint prevent a long stability run from being fully rolled back by a single failure.

    5. How to Tell Whether It Is “Really Stable”: A Reusable Checklist

    The 400 consecutive updates are convincing because they came with observable metrics. The acceptance criteria can be fixed as a checklist:

    • The loss curve shows a reasonable overall trend, with no spikes or abnormal plateaus;
    • Gradient norms stay in the expected range, with no continuous climb;
    • No inf/nan appears anywhere, and no silently skipped steps pile up;
    • All processes report the same step count, with no timeout waiting on a straggler;
    • Memory usage stays flat, with no slow leak-like growth;
    • Checkpoints are writable and readable, and loss continues smoothly after resuming.

    6. From “It Can Train” to “Ready to Train Out of the Box”

    A single successful run is only the starting point. Out-of-the-box training requires three layers of capability: at the operator layer, coverage of every custom operator the model uses, with aligned precision; at the parallelism layer, automatic parallelism search and topology-aware scheduling; and at the toolchain layer, one-click launch, monitoring and alerting, log services, and automated precision regression. Missing any one of them still leaves users with substantial manual tuning costs.

    7. Industry Practice Reference

    “Domestic chips training domestic models” already has several deployed forms: training a 200-billion-parameter scientific foundation model from scratch, full-stack native training supporting multimodal world models, and end-to-end training of embodied-intelligence brain models, now moving toward trillion-parameter scale. Together these cases show that the value validation of domestic accelerators is shifting forward from inference deployment to the full training pipeline.

    For developers, the practical conclusion is this: when evaluating domestic compute, do not look only at single-card peak performance. Look at the connectivity of the full training pipeline, the observability of long-stability metrics, and how efficiently the toolchain localizes precision issues. Baidu AI Cloud’s practices in heterogeneous compute scheduling, container platforms, and monitoring and alerting also provide a reference engineering pattern for this kind of long-stability training workload.