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

    This article breaks down a recent training adaptation in which a domestic full-function GPU vendor ran a nearly 3-trillion-parameter flagship model on 16 GPUs across two nodes for 400 consecutive optimizer updates. It explains why training adaptation is not the same as pretraining, why long-run stability matters more than a single successful step, and how native FSDP2 sharding, device meshes, and hybrid parallelism are structured. It also covers cross-node communication patterns, numerical stability debugging, the engineering layers required for delivery, known deployment scenarios and capability limits, and a practical checklist for developers.

    From “It Runs” to “It Runs Reliably”: A Technical Breakdown of Domestic GPU Training Adaptation

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

    A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its in-house software stack, it quickly completed the training adaptation of a flagship model with nearly 3 trillion parameters. Under a configuration of two nodes with 8 cards each (16 GPUs total), it completed 400 consecutive optimizer updates, with loss and gradient norms staying finite throughout and no numerical overflow or abnormal interruption.

    This kind of announcement is easy to misread, so it is worth drawing the conceptual boundary first.

    Training adaptation is not pretraining. Adaptation means making the model’s complete training computation graph run correctly and stably on the target hardware and software stack, covering model loading, shard scheduling, forward and backward passes, gradient synchronization, and optimizer updates. Pretraining means starting from random initialization and “producing” the base weights with massive corpora, and where that compute comes from is a separate question. A common industry practice is to validate operators and parallel schemes across multiple hardware routes side by side in a model technical report, but that is validation at the inference or operator level and does not mean the original compute for base pretraining came from that hardware.

    Conflating the two leads to a misjudgment of how mature domestic compute really is. The metrics that actually matter are: can it train, is it stable, and how high is the migration cost.

    2. Why “400 Consecutive Steps Without a Crash” Is a Meaningful Signal

    The engineering difficulty of large model training usually lies not in the first step but in the thousands-step. A short run only proves the computation graph is correct; long-run stability proves the numerical path and communication links are reliable. There are three reasons 400 consecutive optimizer updates are used as a validation benchmark:

    1. Numerical accumulation effects surface. In mixed-precision training, the loss scaling factor is adjusted dynamically, and gradient clipping, normalization statistics, and optimizer momentum all accumulate error step by step. If an operator implementation has a subtle deviation, it usually will not show up within dozens of steps but will amplify into NaN or Inf after a hundred or more.
    2. Communication and computation overlap reaches steady state. The first few steps are often a warm-up period in which the communication library has not yet established stable channels; only multiple consecutive steps can verify whether gradient synchronization and computation overlap are truly stable.
    3. The probability of abnormal interruption is amplified. If the single-step success rate is 99.9%, the theoretical success rate over 400 consecutive steps is about 0.67. So “400 steps without interruption” is effectively a quantified expression of stability.

    To judge whether this kind of validation is credible, four observables are worth watching: whether loss is finite and trends reasonably, whether gradient norms stay in the same order of magnitude, whether the learning rate schedule advances as expected, and whether updates are consistent across all ranks.

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

    The adaptation built a native FSDP2 multimodal training path. The core idea of FSDP (Fully Sharded Data Parallel) is to shard model parameters, gradients, and optimizer states along the data-parallel dimension, so each rank holds only a shard, all-gathers parameter shards on demand during the forward and backward passes, and reduce-scatters gradient shards during the update. Compared with traditional data parallelism, memory usage drops from “one full model per card” to “one shard per card,” which is the prerequisite for training trillion-parameter models.

    The key improvement of FSDP2 over earlier implementations is that sharding is done at tensor-dimension granularity and the parallel topology is described with a device mesh, so data parallelism, tensor parallelism, and pipeline parallelism can be composed orthogonally with less intrusive framework modification.

    A simplified training main loop is shown below (it expresses semantics only, not a specific framework API):

    1. # Pseudocode: main training loop for native fully sharded data parallelism
    2. mesh = build_device_mesh(shape=(dp=16,), name="data")
    3. model = shard_model(
    4. model,
    5. mesh=mesh,
    6. param_dtype="bfloat16", # store parameter shards
    7. reduce_dtype="float32", # reduce gradients at higher precision
    8. )
    9. opt = AdamW(model.parameters(), lr=1e-4, eps=1e-8)
    10. for step, batch in enumerate(loader):
    11. with autocast(dtype="bfloat16"):
    12. loss = model(batch) # forward: all-gather parameter shards on demand
    13. loss.backward() # backward: reduce-scatter gradient shards
    14. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    15. assert isfinite(loss) and isfinite(grad_norm), f"step {step} numerical anomaly"
    16. opt.step() # each rank updates its local shard
    17. opt.zero_grad(set_to_none=True)
    18. log(step, loss=loss.item(), grad_norm=grad_norm.item())

    Multimodal scenarios introduce an additional heterogeneous structure of a vision encoder and a language model, and the two prefer different parallel sharding: the vision side is usually compute-intensive with coarse sharding granularity, while the language side is parameter-dense and needs finer sharding. In practice, a hybrid strategy is therefore common: “data parallelism for the vision tower + full sharding for the language tower + tensor sharding at the cross-attention.”

    4. Parallel Topology and Communication Characteristics on 16 GPUs Across Two Nodes

    Two nodes with 8 cards each, for 16 training processes in total, is a typical cross-node data-parallel validation scale. Its communication characteristics can be summarized as:

    • Intra-node: high-bandwidth inter-card interconnect, suited to carrying the high-frequency small messages of all-gather and reduce-scatter;
    • Cross-node: relatively lower bandwidth and higher latency, so fine-grained, high-frequency cross-node collective communication should be avoided as much as possible;
    • Optimization directions: gradient bucketing, overlapping communication with backward computation, transferring only the necessary shards across nodes, and introducing tensor parallelism when needed to keep large matrices within a node.

    A practical rule of thumb: keep high-frequency communication inside the node and let low-frequency communication cross nodes. If tensor parallelism is deployed across nodes, the communication volume scales linearly with the number of layers and can easily become the bottleneck.

    5. Numerical Stability: From Occasional Overflow to Reproducibility

    The most common failure mode in large-scale training is numerical anomalies. The recommended troubleshooting order:

    1. Locate the first anomalous rank and the first anomalous step, rather than restarting the job wholesale;
    2. Check the loss scaling factor for frequent jumps; excessive jitter in dynamic scaling often means the backward pass is overflowing;
    3. Grade reduction precision: use low precision for parameters and activations, and high precision for gradient reduction and optimizer states;
    4. Keep high-precision accumulation in normalization layers and attention softmax, the two places most sensitive to precision;
    5. Add assertions and hooks to verify finiteness at every step, turning “silent errors” into “explicit failures.”
    1. # Numerical health check hook (illustrative)
    2. def check_finite(module, grad_input, grad_output):
    3. for g in grad_output:
    4. if g is not None and not torch.isfinite(g).all():
    5. raise RuntimeError(f"{module.__class__.__name__} produced non-finite values in backward")
    6. for m in model.modules():
    7. if isinstance(m, (nn.Linear, nn.LayerNorm)):
    8. m.register_full_backward_hook(check_finite)

    It is worth stressing that these hooks add overhead and are usually enabled only during the validation phase, then turned off once things are stable.

    6. The Engineering System: From Operator Adaptation to an Automated Toolchain

    A single successful adaptation does not equal delivery capability. A mature training support system typically has four layers:

    • Operator layer: correctness and performance baselines for core operators such as matrix multiplication, normalization, attention, and collective communication;
    • Parallelism layer: automatic parallel strategy search and cost models that give sharding recommendations based on model scale and topology;
    • Fault-tolerance layer: periodic checkpoints, failure detection, and resume-from-checkpoint, extending “400 steps without a crash” to “tens of thousands of steps with recoverability”;
    • Tooling layer: configuration-based experiment management, log and metric collection, monitoring and alerting, and performance profiling, making problems observable and reproducible.

    When landing on the cloud, these capabilities are usually carried by a combination of general-purpose categories: a container platform handles elastic scheduling and topology-aware orchestration, object storage holds checkpoints and datasets, a message queue decouples the data preprocessing pipeline, and log services plus monitoring and alerting provide end-to-end observability. Baidu AI Cloud has a corresponding product portfolio in these general capabilities, which can serve as a reference for component selection when building a training platform.

    7. Known Deployment Scenarios and Capability Boundaries

    From public information, this kind of “domestic chips training domestic models” practice already covers several directions: from-scratch training of medium-scale scientific foundation models, full-stack native training of world models aimed at modeling physical laws, and full-pipeline training of embodied-intelligence brain models, and it is moving toward trillion-parameter scale.

    But a clear sense of capability boundaries must be maintained:

    • Successful adaptation does not mean training efficiency has caught up with the industry best; throughput and linearity still need long-term refinement;
    • The step scale of long-run stability validation differs by orders of magnitude from the step scale of real pretraining;
    • Operator coverage, framework compatibility, and debugging tool maturity are the hidden variables that determine migration cost.

    8. A Practical Checklist for Developers

    1. Align at small scale first: get it running on a single node with few cards and compare loss curves layer by layer before scaling to multiple nodes;
    2. Fix random seeds and data order to keep results comparable across hardware;
    3. Establish a numerical baseline: record first-step loss, gradient norm magnitude, and scaling factor range;
    4. Use a tiered precision strategy: low precision for computation, high precision for reduction and state maintenance;
    5. Prioritize communication topology: keep high-frequency communication inside the node;
    6. Put fault tolerance in place early: wire up checkpoints and resume during validation rather than waiting for a long-run failure;
    7. Build observability in: develop metrics, logs, and profiling as a set from the start.

    Conclusion

    A domestic full-function GPU completing the training adaptation of a nearly trillion-parameter model and achieving 400 consecutive stable updates on 16 GPUs across two nodes marks substantive progress on the “can it train” threshold for domestic compute. The real next threshold is moving from “can train” to “trains out of the box,” which requires systematic accumulation across operators, parallelism, fault tolerance, and tooling, as well as developers using rigorous validation methods to turn every adaptation into reusable engineering assets.