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

    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 stable loss and gradient norms. It clarifies the difference between training adaptation and pretraining, walks through the native FSDP2 training path and its key stages, discusses what the 400-step smoke test verifies, and provides an engineering checklist and practical recommendations for moving from "trainable" to "ready to train out of the box."

    1. Background: A Training Adaptation, Not Pretraining from Scratch

    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 nearly three trillion parameters. The test used 16 accelerator cards across two nodes for cross-node joint training. All training processes completed 400 consecutive optimizer updates, with the loss and gradient norms remaining finite throughout and no numerical overflow or abnormal interruption.

    One commonly confused distinction must be clarified first: training adaptation is not base-model pretraining. Adaptation means making the model’s complete training pipeline (loading, sharding, forward pass, backward pass, gradient synchronization, and optimizer update) run correctly and stably on the target hardware and software stack. Pretraining is the process of producing model weights from scratch using massive corpora. The former is a matter of “runnability”; the latter is a matter of “compute source and data engineering.” Technical reports in the industry have already compared multiple acceleration backends with operator-level validation, but this usually falls under inference or operator validation and cannot be used to infer the original pretraining compute source of a base model.

    The practical implication for developers is that the degree of adaptation determines migration cost. Whether a model can be “trained out of the box” on domestic cards depends on the product of operator coverage, communication library maturity, framework compatibility layers, and fault-tolerance tooling, rather than single-point peak compute.

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

    The key term for this adaptation is the “native FSDP2 multimodal training path.” FSDP (Fully Sharded Data Parallel) shards model parameters, gradients, and optimizer states along the data-parallel dimension, so each card holds only part of the full state and temporarily aggregates the required shards on demand through collective communication during the forward and backward passes. Compared with traditional data parallelism, it reduces memory usage from “one full copy per card” to “one shard per card,” which is a prerequisite for training models ranging from tens of billions to trillions of parameters.

    “Native” emphasizes that it does not rely on bolt-on patches, but instead lets the sharding strategy, communication primitives, and compute operators align naturally between the framework layer and the hardware layer. The complete pipeline typically includes the following stages:

    1. Model loading and sharding: Determine sharding granularity by layer or parameter group, build a device mesh, and define the dimension split for data parallelism, tensor parallelism, and pipeline parallelism.
    2. Shard scheduling and forward aggregation: Before forward computation, all-gather parameter shards according to a prefetch strategy, and release them immediately after computation to control peak memory.
    3. Backward pass and gradient ReduceScatter: Aggregate parameters again during the backward pass, and reduce gradients via reduce-scatter, scattering them back to the corresponding shards on each card.
    4. Sharded optimizer state update: Each card updates only the optimizer state corresponding to the parameter shards it holds, avoiding state redundancy.
    5. Numerical and fault-tolerance monitoring: Track loss, gradient norms, and parameter norms throughout, detecting overflow, jumps, and hangs.

    Illustrative configuration logic (pseudocode, expressing semantics only):

    1. mesh = init_device_mesh(current_backend, (dp_size,), mesh_dim_names=("dp",))
    2. model = FSDP(
    3. model,
    4. device_mesh=mesh,
    5. sharding_strategy="FULL_SHARD", # Fully shard parameters/gradients/optimizer states
    6. mixed_precision_policy=MixedPrecision(param_dtype="bf16", reduce_dtype="fp32"),
    7. limit_all_gathers=True, # Limit concurrent aggregation to suppress memory peaks
    8. )
    9. for step, batch in enumerate(loader):
    10. loss = model(batch).loss
    11. loss.backward()
    12. clip_grad_norm_(model.parameters(), max_norm=1.0)
    13. optimizer.step(); optimizer.zero_grad()
    14. log(step, loss, grad_norm) # Key: log every step to help locate anomalies

    The mixed-precision policy is key to stability: parameters and activations commonly use low precision for throughput, while gradient reduction and the optimizer’s master weights retain higher precision to avoid accumulated error during long training runs.

    3. Cross-Node Stability: What 400 Consecutive Updates Show

    Two nodes with 16 cards and 400 consecutive optimizer updates may seem small in scale, but as a smoke test it has clear engineering value. It validates not final model quality but pipeline correctness and numerical health:

    • Communication correctness: Cross-node all-gather and reduce-scatter do not hang or arrive out of order over a real network (including switch hops and cross-node latency).
    • Numerical finiteness: The loss and gradient norms remain finite throughout, indicating that the loss scale, normalization, clipping, and precision policy match, with no inf/NaN propagation.
    • Repeatability: Multiple consecutive steps run without interruption, indicating no memory leaks, no OOM caused by accumulating fragmentation, and no deadlock in inter-process synchronization.

    To judge whether training is “truly stable,” it is recommended to observe three types of signals: first, whether the loss curve decreases smoothly rather than oscillating with a jagged pattern; second, whether the gradient norm stays in a stable range rather than spiking periodically; and third, whether per-step time remains steady, since a sudden increase often indicates communication retransmission or a data-loading bottleneck.

    4. Engineering Checklist: From “Trainable” to “Ready to Train Out of the Box”

    To train cutting-edge complex models stably on domestic full-function GPUs, the following capabilities must be in place, none of which can be missing:

    1. Operator coverage and precision alignment: Compare operators one by one against reference implementations, build a coverage matrix and error thresholds, and prioritize high-frequency operators such as normalization, attention, and loss functions.
    2. Composable parallelism strategies: Data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism must support free combination and automatically provide sharding suggestions based on memory and bandwidth.
    3. Communication and topology awareness: Select the communication backend and aggregation order based on intra-node interconnect and cross-node bandwidth to reduce unnecessary cross-node traffic.
    4. Fault tolerance and self-healing: Support periodic checkpoints, faulty-card isolation, automatic task restart, and resume-from-checkpoint training to minimize the interruption cost of long training runs.
    5. Observability system: Collect metrics, logs, and tracing in a unified way, combined with monitoring alerts and object storage archiving, to enable minute-level anomaly localization.
    6. Toolchain automation: Provide configuration templates, one-click dependency builds, distributed launch, and environment consistency checks to reduce “environment guesswork.”

    When deployed in the cloud, these capabilities typically map to general product categories: a container platform handles distributed training orchestration, object storage holds checkpoints and datasets, a message queue decouples the data preprocessing pipeline, and a logging service with monitoring alerts forms the observability foundation. Baidu AI Cloud offers corresponding categories for these general capabilities, and enterprises can combine them as needed rather than binding to a single proprietary interface.

    5. Recommendations and Risk Notes

    • Start with small-scale equivalence validation: Run a few steps on a single card or two cards, align loss and gradients with the reference backend, and then scale to multiple nodes.
    • Scale up in stages: Go from a single node to two nodes and then to multiple nodes, observing communication efficiency and memory levels at each stage to avoid the difficulty of diagnosis caused by scaling up all at once.
    • Define adaptation boundaries clearly: External statements should distinguish “training adaptation,” “operator validation,” and “pretraining compute source” to avoid exaggeration that could create technical review risk.
    • Focus on long-term stability rather than peak metrics: Thousands of consecutive steps without anomalies better represent production readiness than a single benchmark run.

    6. Conclusion

    The completion of training adaptation for a nearly trillion-parameter model on a domestic accelerator card, validated by 400 consecutive stable updates on 16 cards across two nodes, marks a key step for domestic full-function GPUs in “full-pipeline stable training.” For developers, the real benefit is not a single successful run, but the gradually formed closed loop of operators, parallelism, communication, fault tolerance, and tooling. It compresses the migration cost of large-model training from “project-based tackling” to “configuration-based enablement,” which is the essence of moving from “trainable” to “ready to train out of the box.”