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

    This article explains a recent training adaptation in which a domestic GPU vendor ran a nearly three-trillion-parameter flagship model on 16 accelerators across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies the difference between training adaptation, full training support, and base-model pretraining, breaks down the native FSDP2 training path, explains what 400 steps does and does not prove about stability, and outlines the engineering capabilities and practical recommendations needed to move from "it runs" to reliable large-scale training.

    1. What Actually Happened: A Training Adaptation, Not a Fresh Pretraining Run

    A domestic GPU vendor recently announced that it had completed the training adaptation of a flagship model with a parameter count approaching three trillion. The work was carried out on its flagship training-and-inference accelerator card together with its in-house software stack. The test environment consisted of two nodes with 16 accelerator cards in total. All 16 training processes completed 400 consecutive optimizer updates, with loss values and gradient norms remaining finite throughout and no numerical overflow or abnormal job interruption.

    One common misunderstanding needs to be cleared up first: a successful training adaptation does not mean the model was pretrained on this chip.

    Industry discussions often conflate two different things:

    • Day 0 adaptation/onboarding: After model weights are released, quickly get the new hardware to run inference or fine-tuning, with the focus on operator coverage and precision alignment.
    • Full-chain training support: Get the entire path working end to end, from model loading, sharding and scheduling, and backpropagation to gradient synchronization and optimizer updates, with the focus on long-term stability, throughput, and scalability.
    • Base-model pretraining: The original training process that starts from scratch and consumes enormous compute; the source of that compute needs to be disclosed explicitly by the model provider.

    A relevant industry example is an open-source model whose technical report validated two different accelerator architectures side by side and provided a fine-grained expert parallelism scheme. However, the industry generally regards that as validation at the inference operator level, and the compute source for the original base-model pretraining was never officially announced. Therefore, when assessing the maturity of domestic compute, the three levels of “adaptation,” “training support,” and “pretraining” should be evaluated separately.

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

    The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel) multimodal training path that connected three segments of the pipeline.

    2.1 Model Loading and Shard Scheduling

    For a model with nearly a trillion parameters, the weights of a single layer can exceed the memory of a single card, so parameters, gradients, and optimizer states must all be sharded. The core improvement of FSDP2 over earlier versions is that it replaces implicit flattening with clearer tensor-sharding semantics, making shard boundaries predictable and composable, and making it easier to combine with expert parallelism and tensor parallelism.

    Illustrative configuration logic (pseudocode, expressing semantics only):

    1. # Declare the model partitioning strategy by shard dimension, then hand it to the training framework
    2. mesh = init_device_mesh("cuda", (num_nodes, gpus_per_node))
    3. model = shard_model(
    4. model,
    5. mesh=mesh,
    6. shard_dim=0, # Shard parameters along dimension 0
    7. mixed_precision="bf16",
    8. )
    9. optimizer = foreach_adam(model.parameters(), lr=1e-4)
    10. for step in range(total_steps):
    11. loss = model(batch) # Forward: all-gather parameters on demand
    12. loss.backward() # Backward: reduce-scatter gradients
    13. optimizer.step() # Update: local update of sharded states

    2.2 Gradient Synchronization and Numerical Stability

    In cross-node training, the most common source of problems is not compute but numerics. bf16 has a wide dynamic range but a short mantissa, so deep networks are prone to gradient-norm spikes. In engineering practice, this is usually handled with gradient clipping, loss scaling, and post-communication checks, with loss and grad norm treated as first-class monitoring metrics.

    2.3 Additional Complexity from Multimodality

    Multimodal training involves a vision encoder, a text backbone, and fusion layers at the same time. Data-loading throughput differs greatly across modalities, which can easily leave accelerators idle while waiting for data. This requires separate per-modality samplers, asynchronous prefetching, and memory budget allocation.

    3. How to Judge Stability: What 400 Steps Means

    400 consecutive optimizer updates is a meaningful short-range stability signal, but it is not equivalent to long-term stability. A three-level evaluation is recommended:

    Level Observation Window Core Metrics
    Smoke test 10–50 steps Whether it runs, whether loss is finite
    Short-range stability Hundreds of steps Whether grad norm is stable, whether overflow occurs
    Long-term stability and convergence Thousands to tens of thousands of steps Loss curve trend, checkpoint-resume success rate

    The criteria can be summarized in three points: values remain finite throughout, there is no abnormal interruption, and checkpoint resume is reproducible. The third point is the most easily overlooked, yet it directly determines the operational cost of thousand-card jobs.

    4. Engineering System: From “It Trains” to “Ready to Train Out of the Box”

    For “domestic chips training domestic models” to truly land, four types of capability need to be accumulated:

    1. Operator adaptation layer: Cover attention variants, normalization, mixed precision, and parallel communication primitives, and establish a precision-alignment baseline.
    2. Multi-card coordination layer: Topology-aware communication optimization, faulty-card isolation, and slow-node detection.
    3. Automated toolchain: One-click launch of distributed jobs, automatic shard configuration generation, and training visualization.
    4. Observability: Integrate log services, monitoring and alerting, and metrics dashboards into the training workflow to enable automatic anomaly localization.

    In cloud practice, these capabilities are typically combined with general-purpose cloud product categories such as container platform scheduling, object storage for hosting datasets, message queues for decoupling data pipelines, and monitoring and alerting for tracking job health. Baidu AI Cloud offers corresponding product categories for these general capabilities, which can be referenced when building a training platform.

    5. Practical Recommendations for Developers

    • Start with a small-scale “isomorphic reproduction” to confirm that the loss curve deviates from the reference implementation within an acceptable range before scaling up.
    • Set grad-norm spikes, communication timeouts, and single-card dropouts as alert items rather than investigating logs after the fact.
    • Prioritize solving throughput bottlenecks on the data side to avoid leaving expensive accelerators idle.
    • Be clear about external messaging: adaptation, training support, and pretraining must not be used interchangeably; this is both technical rigor and a basic requirement for avoiding business disputes.

    6. Conclusion

    A domestic full-feature GPU completing the training adaptation of a model with nearly a trillion parameters marks the filling of a key gap: full-chain stable training. However, going from 400 stable steps to long-term convergence at the trillion-parameter scale still requires continued refinement in operator coverage, combinations of parallel strategies, automated toolchains, and observability. For developers, viewing interim results rationally and establishing a layered evaluation system is the prerequisite for actually using domestic compute efficiently.