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

    This article explains a recent domestic GPU adaptation for a nearly 3-trillion-parameter flagship large language model, in which 400 consecutive optimizer updates ran stably on 16 accelerators across two nodes. It clarifies the key distinction between training adaptation and base pre-training, walks through the native FSDP2 training path, explains why 400 stable steps is a meaningful validation metric, and outlines the engineering practices needed to move from adaptation to large-scale training.

    1. Background: A Training Adaptation, Not Base Pre-Training

    A domestic GPU vendor recently announced that, using its flagship AI training-and-inference accelerator card and its self-developed software stack, it quickly completed training adaptation for a flagship large language model with nearly 3 trillion parameters. In an environment of 16 accelerator cards across two nodes, the setup completed 400 consecutive optimizer updates, with loss and gradient norms staying finite throughout and no numerical overflow or task interruption.

    One easily confused concept must be clarified first: training adaptation is not the same as base pre-training.

    • Base pre-training: Starting from randomly initialized weights, consuming tens of thousands to hundreds of thousands of card-hours, and producing all of a model’s original parameters. The compute source is unique, and reproducibility is disputed.
    • Training adaptation: On top of an existing model architecture definition and weight-loading path, verifying whether “this hardware plus software stack can run the training loop end to end, keep it stable, and produce a reasonable convergence trend.”

    A typical industry reference point is that a DeepSeek team’s technical report validated both NPU and GPU paths side by side and presented a fine-grained expert parallelism (EP) scheme. However, the industry generally regards that as inference-side operator validation, and the original compute source for its base pre-training has not been publicly confirmed. This shows that “being able to run” and “training from scratch” are separated by an order-of-magnitude engineering gap.

    So the correct way for readers to interpret this is: it is a demonstration of software stack maturity and cluster stability, not a declaration of compute ownership.

    2. Technical Core: A Native FSDP2 Multimodal Training Path

    The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel, second generation) training path that connected three stages:

    1. Model loading: Splitting weights of tens of GB or even TB scale according to sharding rules and mapping them to each rank;
    2. Shard scheduling: On-demand all-gather of parameter shards during the forward and backward passes, releasing them after use;
    3. Gradient synchronization: Reduce-scatter of gradients after the backward pass, with each rank keeping only the shard it is responsible for.

    Compared with classic DDP, FSDP2 reduces memory usage roughly from O(number of parameters) to O(number of parameters / number of cards), which is the only practical solution when a single card cannot hold a trillion-scale model. Illustrative pseudocode:

    1. for step in range(total_steps):
    2. # 1. Forward: all-gather parameter shards layer by layer
    3. loss = model(batch) # internally prefetches the next layer's shard per FSDP unit
    4. # 2. Backward: reduce-scatter gradients, keeping only the local shard
    5. loss.backward()
    6. # 3. Optimizer update: local shards updated independently
    7. optimizer.step()
    8. optimizer.zero_grad()
    9. # 4. Monitoring: finiteness checks for loss / grad_norm
    10. assert torch.isfinite(loss) and torch.isfinite(grad_norm)

    Three things are genuinely difficult in engineering: compute-communication overlap (pipelining all-gather with backward computation), numerical stability under mixed precision (loss scaling and overflow protection for bf16/fp16), and multimodal heterogeneous data pipelines (alignment and packing of text, image, and video tensors).

    3. Validation Methodology: Why “400 Consecutive Stable Steps” Is a Meaningful Metric

    Most large-model training failures do not appear at step 1, but surface somewhere between the tens and hundreds of steps. 400 consecutive optimizer updates happen to cover the following risk windows:

    • Numerical risk: Gradient explosion/vanishing, loss spikes, and fp16 overflow usually accumulate and appear after tens of steps;
    • Communication risk: Cross-node all-reduce timeouts, NCCL-type communication library hangs, and topology jitter;
    • Storage and data risk: Data shard read starvation, and repeated or misaligned samples;
    • Memory risk: OOM caused by fragmentation, often triggered by long sequences or variable-length batches.

    The criteria should include four items: loss and grad_norm finite throughout, no abnormal interruption, no sustained decline in throughput (tokens/s), and no monotonic upward trend in memory usage. Just looking at “completed 400 steps” is not enough; you must also check whether the curves are smooth.

    4. Key Engineering Points for Cross-Node Parallelism

    Two nodes with 16 cards form the smallest reproducible multi-node experiment unit. Its value is exposing cross-machine communication problems at low cost:

    • Parallel strategy combination: Data parallelism + sharded data parallelism + tensor parallelism + pipeline parallelism, configured according to model size and bandwidth ratio;
    • Topology awareness: Intra-node traffic uses high-bandwidth interconnect, inter-node traffic uses the network, and rank-to-device mapping must align with the topology;
    • Fault tolerance design: Sharded checkpoint saving, faulty rank removal, and automatic task restart;
    • Observability: Layered monitoring of hardware metrics (temperature, power, ECC errors), communication metrics (bandwidth utilization, timeouts), and training metrics (loss, grad_norm, step time).

    5. From Adaptation to Scale: Four Pillars of an Engineering System

    1. Operator and compiler layer: Ensuring core operators such as attention, normalization, and MoE routing have high-performance implementations and graph compilation optimizations on domestic hardware;
    2. Framework compatibility layer: Parallel primitives and the distributed backend of the training framework must be fully aligned to avoid silent errors caused by missing functionality;
    3. Precision alignment layer: Layer-by-layer numerical comparison against a reference implementation, keeping relative error within an acceptable range;
    4. Stability operations layer: Long-duration stability testing, fault injection, and performance regression baselines.

    Several domestic “domestic chips training domestic models” practices can serve as references: full from-scratch training of a 236-billion-parameter scientific foundation model, full-stack native training of a 5D world model, end-to-end training of an embodied brain model, and a trillion-scale parameter model training effort in progress. Together these cases point to one conclusion: adaptation capability is the ticket to large-scale training, and stability is what determines long-term cost.

    6. Practical Recommendations for Technical Teams

    • Start with a small-scale smoke test, running 300–500 steps on 2 nodes and 16 cards before scaling up;
    • Build a numerical health dashboard, with grad_norm spikes as a first-level alert;
    • Use sharded checkpoints and overlap saving overhead with training;
    • Clearly distinguish the acceptance criteria for three task types: adaptation validation, continued pre-training, and base pre-training, to avoid distorted external statements;
    • When validating on the cloud, combine common capabilities such as container platforms, object storage, log services, and monitoring alerts to build a reproducible experiment environment.

    Overall, the deeper significance of this adaptation is not the dispute over compute ownership, but that the domestic hardware and software stack now has the engineering closed-loop capability to take on frontier complex models “from inference deployment to full-chain stable training,” which has substantial value for lowering the barrier to large-model training.