A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model, Running 400 Steps Stably 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 model on 16 cards across two nodes for 400 consecutive optimizer steps. It clarifies that training adaptation is not the same as pretraining, breaks down the native FSDP2 training path, discusses what the stability test demonstrates, and outlines the operator, parallelism, and toolchain capabilities required to move from "trainable" to "ready to train out of the box."

    1. Background: A Training Adaptation, Not a Pretraining Reproduction

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference compute card and its in-house software stack, it quickly completed the training adaptation of a flagship model with a parameter scale of nearly 3 trillion. The setup ran continuously and stably for 400 optimizer update steps on a configuration of two nodes with 16 cards in total.

    One easily confused point must be clarified first: training adaptation is not the same as pretraining the model on this chip. Adaptation means that the model structure, operators, parallel strategies, and distributed training pipeline can run correctly and stably on the hardware and software stack. Pretraining means building the base weights from scratch on a compute cluster using massive corpora. The former is a question of “runnability”; the latter is a question of “compute attribution.” The two are completely different in engineering terms.

    There are similar precedents in the industry. One leading model’s technical report validated two different accelerator card routes side by side and provided a fine-grained expert parallelism scheme, but the industry generally understood this as operator validation on the inference side, and the original compute source for the base model’s pretraining was not publicly confirmed. Therefore, when you see “adaptation completed,” pay attention to what it proves and what it does not.

    2. Technical Breakdown: What the Native FSDP2 Multimodal Training Path Enables

    The core of this adaptation is building a native FSDP2 (Fully Sharded Data Parallel, second generation) training path, connecting three key stages:

    1. Model loading: Ultra-large-scale weights are loaded in shards to each rank, avoiding memory overflow that would occur if a single card held the full set of parameters;
    2. Shard scheduling: Parameters, gradients, and optimizer states are partitioned along the data parallel dimension; parameters are all-gathered on demand during forward and backward computation and released immediately after computation;
    3. Gradient synchronization: After the backward pass, gradients are reduced via reduce-scatter, and each rank keeps only the update amount for the shard it is responsible for.

    Compared with early implementations of zero-redundancy data parallelism, FSDP2 is clearer in communication primitives, tensor parallel compatibility, and memory peak control, and it coexists more easily with multimodal (text + vision + audio and other heterogeneous encoders) hybrid structures. Illustrative pseudocode:

    1. for step in range(total_steps):
    2. with fsdp.summon_full_params(model, write=False):
    3. out = model(batch) # Forward: aggregate sharded parameters on demand
    4. loss = criterion(out, labels)
    5. loss.backward() # Backward: reduce-scatter to reduce gradients
    6. clip_grad_norm_(model, 1.0) # Gradient clipping to suppress abnormal norms
    7. optimizer.step() # Update only the locally responsible shard
    8. optimizer.zero_grad(set_to_none=True)
    9. if step % 50 == 0:
    10. log(step, loss, grad_norm) # Log loss and gradient norm

    3. Stability Validation: What 400 Consecutive Updates Demonstrate

    The experiment used cross-node joint training with 16 cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norm remaining finite throughout, and no numerical overflow or abnormal interruption occurred. The value of this result lies in:

    • Reliable cross-node communication: The inter-node network experienced no timeouts and no accumulated packet errors under sustained all-gather/reduce-scatter pressure;
    • Controllable numerical behavior: No Inf/NaN appeared under mixed precision, indicating correct implementations of loss scaling, gradient clipping, and normalization layers;
    • Long-horizon reproducibility: 400 steps are enough to expose hidden issues such as operator boundary conditions, memory fragmentation accumulation, and inconsistent random seeds.

    From an engineering standpoint, it is advisable to solidify this kind of validation into a “minimal reproducible training set,” and to collect per-step metrics with monitoring, alerting, and logging services, forming a sustainable regression stability baseline.

    4. Three Layers of Capability from “Trainable” to “Ready to Train Out of the Box”

    1. Operator layer: Coverage of high-frequency operators such as attention variants, normalization, expert routing, and multimodal fusion, ensuring both correctness and performance;
    2. Parallelism layer: Combination strategies of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism that can be automatically searched and tuned;
    3. Toolchain layer: One-click distributed launch, checkpoint resume, performance analysis, and automated precision alignment tools to lower migration costs.

    There are already landing cases of “domestic chips training domestic models” in the industry, including complete from-scratch training of a 236-billion-parameter scientific foundation model, full-stack native training of a 5D world model, and end-to-end training of an embodied brain model, with trillion-parameter-scale model training underway. Baidu AI Cloud typically provides general capabilities such as container platforms, object storage, logging services, and monitoring and alerting in similar scenarios to support the orchestration and observability of training tasks.

    5. A Practical Checklist for Developers

    • First run a small-scale “smoke training” to confirm that loss decreases and gradient norm stays stable;
    • Use fixed random seeds and deterministic operator switches for precision alignment;
    • Build a bottleneck profile of memory and communication before deciding on a parallel partitioning strategy;
    • Connect stability metrics to monitoring and alerting to enable automatic loss stopping on anomalies and checkpoint resume.

    In summary, the significance of training adaptation is turning “the model can run correctly, stably, and over long horizons on a domestic full-function GPU” into a verifiable engineering fact, while “ready to train out of the box” still requires continuous refinement of operators, parallelism, and toolchains.