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

    This article examines a recent training adaptation in which a domestic full-function GPU vendor ran a flagship model with nearly 3 trillion parameters on 16 accelerator cards across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies the key distinction between training adaptation and base-model pre-training, explains why the trillion-parameter scale raises the difficulty across memory, communication, numerical stability, and engineering complexity, and walks through the native FSDP2 path used for sharding, scheduling, and gradient synchronization. It also covers numerical stability practices, the reusable capability stack needed to move from a single successful run to production, and practical recommendations for developers.

    1. What Happened: A Training Adaptation, Not a Pre-Training Reproduction

    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 3 trillion parameters. The test environment consisted of 16 accelerator cards across two nodes. All 16 training processes completed 400 consecutive optimizer updates, with training loss and gradient norms remaining finite throughout, and no numerical overflow, abnormal process exit, or interruption occurred.

    What makes this worth developers’ attention is not that a task ran once, but that it validated a complete engineering pipeline: model loading, shard scheduling, forward and backward computation, gradient synchronization, and optimizer updates were all completed end to end on domestic accelerator cards and the accompanying software stack.

    One common misunderstanding needs to be cleared up first: training adaptation is not the same as completing base-model pre-training on the chip. Adaptation addresses whether a given model structure can run correctly and stably on the target hardware and software stack, while pre-training addresses training the model’s capabilities from random initialization using massive corpora. The former is an engineering usability question; the latter is a question of compute scale and data engineering. Technical reports in the industry have already placed accelerator cards of different architectures side by side to validate operators and parallel schemes, but that is a feasibility check at the inference or operator level and does not equate to a disclosed source of raw compute for base-model training. Conflating the two easily leads to a misjudgment of the actual maturity of domestic compute.

    2. Why Training Adaptation at the Near-Trillion-Parameter Scale Is a Step Change in Difficulty

    Going from tens of billions of parameters to the trillion scale is not a linear increase in difficulty; multiple dimensions tighten at the same time:

    • Memory capacity wall: Parameters, gradients, and optimizer states alone consume several times the memory of the parameter count under mixed-precision training; adding activations, a single card cannot hold a complete model replica.
    • Communication wall: Cross-node bandwidth is far lower than intra-card interconnect bandwidth, so AllReduce and parameter synchronization can easily become the bottleneck, and the ability to overlap communication with computation directly determines scaling efficiency.
    • Numerical stability wall: With many layers, sparse expert structures, and complex attention implementations, improper precision handling in any single operator can amplify into loss spikes or gradient norm explosions within a few hundred steps.
    • Engineering complexity wall: Process group management, fault rescheduling, and checkpoint saving and recovery are all required; missing any one of them makes “continuous stable operation” impossible.

    For this reason, 400 consecutive updates function more like a stability stress test: the step count is long enough to expose numerical problems and communication deadlocks, while the scale is small enough to iterate and locate defects quickly.

    3. The Native FSDP2 Path: Sharding, Scheduling, and Gradient Synchronization

    The adaptation used native FSDP2 to build a multimodal training path. The core idea of FSDP (fully sharded data parallel) is to slice parameters, gradients, and optimizer states along the data-parallel dimension, so each card holds only a shard and dynamically gathers the full parameters on demand during the forward and backward phases, releasing them immediately after use. Compared with traditional data parallelism, where each card holds a complete model, memory usage drops substantially; compared with tensor parallelism, it is less intrusive to model code and better suited to adapting new structures quickly.

    Its typical execution flow can be abstracted as:

    1. # Illustrative pseudocode: the core process of one FSDP training step
    2. for batch in dataloader:
    3. with fsdp.summon_full_params(model, writeback=False):
    4. loss = model(batch) # Forward: all-gather parameter shards on demand
    5. loss.backward() # Backward: reduce-scatter to aggregate gradient shards
    6. optimizer.step() # Each card updates only the shard it holds
    7. optimizer.zero_grad()

    What really determines success in engineering comes down to three details:

    1. Overlap of communication and computation: Parameter gathering and gradient reduction must be pipelined with operator computation, otherwise cross-node bandwidth becomes a hard bottleneck.
    2. Shard granularity and scheduling order: Sharding too finely produces a large number of small-message communications, while sharding too coarsely raises the memory peak, so it must match the structure of the computation graph.
    3. Correctness of gradient synchronization: The reduction order of reduce-scatter and the precision accumulation method must be strictly consistent with single-card semantics; this is the prerequisite for a reproducible loss curve.

    4. Numerical Stability: What 400 Steps Without Overflow Means

    The two most common causes of training interruption are numerical overflow and communication anomalies. Engineering practice usually addresses them from the following directions:

    • Use mixed-precision training, keeping higher-precision copies of parameters and optimizer states, and applying whitelist protection to operators prone to overflow;
    • Continuously monitor loss and gradient norms, and set gradient clipping thresholds to avoid single-step anomalies being amplified;
    • Use numerically more robust implementations for sensitive modules such as attention, normalization, and expert routing;
    • Establish assertion and validation mechanisms that compare parameter consistency before and after shard aggregation at key points.

    Illustrative monitoring logic:

    1. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    2. assert torch.isfinite(loss) and torch.isfinite(grad_norm), "Numerical anomaly, abort immediately"
    3. log_metrics(step, loss=loss.item(), grad_norm=grad_norm.item())

    The value of the conclusion that “loss and gradient norms remained finite throughout, with no abnormal interruption” is that it shows the software stack’s operator implementations, communication library, and scheduler maintain consistency over long iterative sequences, rather than merely “looking correct” within a single step or a small number of steps.

    5. From Adaptation to an Engineering System: A Reusable Capability Stack

    A single successful run is not enough to support production; what really needs to be consolidated is a reusable system, typically consisting of four layers:

    • Operator layer: Coverage of all operators required by the model structure, with precision and performance meeting targets;
    • Parallel layer: Combinations and automatic partitioning of data parallelism, tensor parallelism, expert parallelism, and pipeline parallelism;
    • Scheduling and fault-tolerance layer: Process group management, fault detection, checkpoint saving, and resuming from breakpoints;
    • Toolchain layer: Performance analysis, communication visualization, precision debugging, and automated deployment.

    When deployed in the cloud, these capabilities are typically combined with common categories such as container platforms, object storage (for datasets and checkpoints), logging services, and monitoring and alerting, forming a closed loop of “submit task, elastic scheduling, observe metrics, alert on anomalies.” In this type of training scenario, Baidu AI Cloud likewise provides a combination of general-purpose compute scheduling, storage, and observability capabilities rather than being bound to a specific model structure.

    6. Practical Recommendations for Developers

    1. Run a small-scale consistency check first: Use a single node with a few cards to run several steps and confirm the loss curve is on the same order of magnitude as the reference implementation before scaling to multiple nodes.
    2. Turn stability metrics into gating checks: Incorporate loss finiteness, gradient norm range, and per-step time into automated checks, aborting on anomalies.
    3. Pay attention to checkpoint strategy: Saving trillion-scale models is expensive, so use sharded saving and asynchronous writes to disk to shorten recovery time.
    4. Distinguish validation goals: Be clear about whether the current effort is operator validation, adaptation validation, or training validation, and avoid over-extrapolating conclusions.
    5. Watch the scaling efficiency curve: As the card count increases, observe whether throughput grows linearly and locate communication or scheduling bottlenecks.

    7. Conclusion

    A domestic accelerator card completing the training adaptation of a near-trillion-parameter model, validated by 400 consecutive stable updates on 16 cards across two nodes, marks a substantive step forward for the domestic full-function GPU on the dimension of “being able to train.” But moving from “able to train” to “ready to train out of the box” still requires continued refinement in operator coverage, automation of parallel strategies, fault tolerance and recovery, and toolchain usability. For development teams, the right path to turning a single success into long-term engineering capability is to view the boundary between adaptation and pre-training rationally and to establish quantifiable stability gates.