A Domestic NPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: A 400-Step Run on 16 Cards Across Two Nodes

    This article examines a recent training adaptation in which a domestic AI chip vendor ran a flagship model of nearly three trillion parameters on 16 accelerators across two nodes, completing 400 consecutive optimizer updates with finite loss and gradient norms. It clarifies the difference between training adaptation and pre-training from scratch, explains why adaptation at this scale is a hard engineering problem across memory, communication, and numerical stability, and breaks down the native FSDP2 multimodal training path covering model loading, sharding, gradient synchronization, and observability. A verification checklist and transferable engineering practices are included to help developers assess adaptation claims and reproduce stable runs on domestic compute platforms.

    1. What Happened: A Training Adaptation, Not Pre-Training from Scratch

    A domestic AI chip vendor recently announced that, using its flagship training-and-inference accelerator card and its in-house software stack, it completed the training adaptation of a flagship model with nearly three trillion parameters. The experiment used two nodes with 16 accelerators 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 task interruption.

    One common misunderstanding needs to be cleared up first: a successful training adaptation does not mean the model was pre-trained from zero on this chip. Adaptation solves the problem of whether a model can be correctly loaded, correctly sharded, correctly updated, and run stably on new hardware and a new software stack. Pre-training solves the problem of learning general capabilities from massive corpora starting from random initialization. The two are completely different in engineering pipeline, cost structure, and validation criteria.

    This distinction matters. In recent years, the industry has often used phrases such as “Day 0 adaptation of the latest open-source model,” meaning that inference or training pipeline integration is validated on the day a model is released, emphasizing ecosystem responsiveness. The subject discussed here, however, is a complex model with a parameter count close to the trillion scale, and the difficulty of its adaptation concentrates on four dimensions: memory capacity, cross-card and cross-node communication, parallelism strategy, and numerical stability.

    2. Why Adapting a Trillion-Parameter Model Is a Hard Engineering Problem

    2.1 The Memory Wall: Triple Amplification of Parameters, Gradients, and Optimizer States

    Take mixed-precision training as an example. A single copy of parameters usually needs to coexist in memory with gradients and optimizer states (such as first-order and second-order momentum). For trillion-scale parameters, even with parameter sharding, the slice carried by each card is still a stack of “parameters + gradients + optimizer states + activations.” Activations grow linearly or even quadratically with batch size and sequence length, and multimodal inputs add the extra overhead of vision encoders and projection layers. So the first step of adaptation is not “can it run” but “does it fit on a single card after sharding.”

    2.2 The Communication Wall: Cross-Node Bandwidth Becomes the Main Bottleneck

    Single-node multi-card setups typically rely on high-bandwidth interconnects, while cross-node communication relies on the network. When a parallelism strategy spreads shards across multiple nodes, communication volume jumps from an intra-node scale to a cross-node scale. If the parallelism dimensions are designed poorly—for example, placing the most communication-intensive tensor parallelism across different physical machines—computation ends up waiting on communication and communication crowds out bandwidth. This shows up as a sharp throughput drop rather than a direct error, and such problems are the easiest to misjudge as a “successful adaptation.”

    2.3 The Numerical Wall: Stability in Large-Model Training Is Essentially a Numerical Problem

    In trillion-parameter training, a loss that suddenly becomes NaN or a gradient norm that spikes is often not a model-structure problem but the accumulated result of details such as low-precision accumulation error, differences in normalization-layer implementations, and differences in attention computation order. Therefore, the statement “400 consecutive updates with finite values throughout” is actually validating whether the operator implementations and parallel reduction order in the software stack are reliable.

    3. Key Technical Breakdown: What the Native FSDP2 Multimodal Training Path Connects

    The report mentions that the adaptation built a native FSDP2 multimodal training path, connecting the complete chain from model loading and shard scheduling to gradient synchronization. It can be understood in four parts.

    3.1 Model Loading and Sharding

    The core idea of fully sharded data parallelism is that each card stores only one shard of the parameters. During the forward pass, the parameters needed for the current layer are aggregated on demand (all-gather) and released immediately after use. During backpropagation, they are aggregated once more to compute gradients, and then reduce-scatter writes the gradient shards back to the regions each card is responsible for. Compared with traditional data parallelism, where each card holds full parameters plus a full gradient reduction, memory usage drops significantly, at the cost of more communication.

    The illustrative pseudocode below highlights the “aggregate—compute—release” lifecycle:

    1. for layer in model.layers:
    2. params = all_gather(layer.shards) # Temporarily aggregate this layer's parameters
    3. out = layer.forward(params, x) # Forward computation
    4. del params # Release immediately to control peak memory
    5. activations.append(out)
    6. for layer, act in reversed(list(zip(model.layers, activations))):
    7. params = all_gather(layer.shards)
    8. grads = layer.backward(params, act) # Backward computation
    9. reduce_scatter(grads, layer.shards) # Write gradient shards back
    10. del params

    3.2 What Makes the Multimodal Pipeline Special

    A multimodal model’s training graph is not a single sequence: the vision branch, text branch, fusion layers, and loss head have different requirements for sharding granularity. Reusing the sharding approach of a pure text model can easily lead to some branches being over-sharded, causing fragmented communication, or some layers not being sharded at all, causing memory spikes. The value of a native path is that it aligns the sharding strategy with the model structure instead of forcibly stitching things together with bolt-on patches.

    3.3 Gradient Synchronization and Computation Overlap

    The engineering key to stable operation is hiding communication behind computation: as backpropagation proceeds in reverse layer order, a reduction is launched as soon as a layer’s gradients are ready, overlapping with the computation of subsequent layers. If the software stack lacks fine-grained scheduling, communication degrades into a serial “compute, then transfer” pattern and throughput drops sharply.

    3.4 Fault Tolerance and Observability

    Running 400 consecutive steps without interruption implies requirements for logging, monitoring and alerting, exception handling, and checkpoint-resume capability. In engineering practice, this usually means recording loss, gradient norm, parameter update norm, per-card peak memory, and communication time at every step, and triggering protection as soon as a metric goes out of bounds, rather than investigating only after a process crashes.

    4. How to Judge Whether a Training Adaptation Is Credible: A Verification Checklist

    When facing adaptation conclusions published by vendors, developers can use the checklist below for cross-validation and avoid being misled by “it ran once”:

    1. Whether scale and parallelism configuration are disclosed: Are the number of cards, number of nodes, combination of parallelism dimensions, sequence length, and batch size clearly stated? A claim of “stable operation” without this information lacks comparability.
    2. Steps and metric curves: Are continuous step counts and the trends of loss and gradient norms provided, rather than only single-point values? A flat curve is more convincing than a single finite point.
    3. Whether adaptation and pre-training are distinguished: Does it clearly state whether this is integration validation or training from scratch, avoiding conceptual confusion?
    4. Numerical precision strategy: Are details such as mixed precision, accumulation precision, and reduction order explained? This is the root cause of stability.
    5. Failure-scenario coverage: Were boundary cases such as long sequences, variable-length inputs, and abnormal samples tested?
    6. Reproducibility: Are configuration descriptions and launch instructions provided so that third parties can reproduce under the same conditions?

    5. Transferable Engineering Practice Recommendations

    For teams that need to complete large-model training adaptation on domestic compute platforms, the recommended order is:

    • Align at small scale first, then scale up: Run the complete pipeline on a single node with a few cards and lock down the loss curve, then expand to multiple nodes gradually, avoiding amplified costs while small problems are still undiagnosed.
    • Fix the numerical baseline first: Once the precision strategy and reduction order are determined, freeze them and only adjust the parallelism strategy afterward, making attribution easier.
    • Bring communication into monitoring metrics: When throughput drops, look at the communication share first rather than suspecting the model structure.
    • Establish layered logging: Separate framework-layer, operator-layer, and communication-layer logs to shorten the localization path.
    • Retain checkpoint-resume capability: In long-running tasks, being able to resume matters more than being able to start.

    6. Conclusion

    The value of “400 consecutive stable updates on 16 cards across two nodes” lies not in claiming that a model has finished training on this hardware, but in demonstrating that the complete chain from model loading and shard scheduling to gradient synchronization works, that the numerics are stable, and that the engineering system is reusable. For developers, what truly matters is verifiable metrics, clear boundary definitions, and reproducible configurations. Against the backdrop of diversified compute supply, this adaptation methodology centered on stability and observability is becoming a common infrastructure capability for large-model engineering deployment, and it aligns with Baidu AI Cloud’s continued investment in heterogeneous compute scheduling and training observability.