Training Trillion-Parameter Models on Domestic GPUs: 16 GPUs Stable Across 400 Steps

    Can domestic full-feature GPUs truly take on trillion-parameter-scale training? Using a recent case in which a domestic training/inference accelerator completed adaptation for a nearly 3-trillion-parameter open-source model with 16 GPUs across two nodes over 400 consecutive optimizer updates, this article explains the engineering gaps between "training runs" and "training stably and efficiently." It clarifies how inference adaptation differs from training adaptation, walks through the full adaptation pipeline from model loading to gradient synchronization, breaks down the four core challenges of cross-node training, presents a five-level (L0–L4) validation matrix for evaluating adaptation maturity, and offers a practical checklist for teams moving training workloads to domestic compute.

    Can domestic full-feature GPUs genuinely take on trillion-parameter-scale large-model training? What engineering hurdles separate “it can train” from “it can train stably and efficiently”? These are the questions every team planning to migrate training workloads to domestic compute must answer.

    Recently, a domestic vendor of unified AI training-and-inference accelerators disclosed that its flagship training/inference card, paired with its in-house unified system software, completed training adaptation for a nearly 3-trillion-parameter flagship open-source large model. The setup ran joint cross-node training across 16 accelerator cards on two machines: 16 training processes completed 400 consecutive optimizer updates, with the loss and gradient norm staying finite throughout—no numerical overflow and no training interruption.

    The value of this case goes beyond simply “getting it to run.” It moves training adaptation from a one-off validation toward a measurable, reproducible, and continuously refinable engineering stage. Drawing on this case, this article systematically reviews the technical pipeline of domestic-GPU training adaptation, its core challenges, and how to put it into practice.

    1. Clarifying the concepts: inference adaptation is not training adaptation

    When people discuss domestic compute “adapting to” large models, the most common misreading is conflating two fundamentally different kinds of work.

    • Inference adaptation: the goal is to correctly and efficiently execute forward computation on the target hardware. It focuses on operator coverage and precision alignment, model-weight loading, and memory and batch management, while balancing time-to-first-token and throughput.
    • Training adaptation: beyond the forward pass, it must fully support backpropagation, parameter updates, gradient synchronization, numerical stability, large-scale scaling, and long-run stability.

    The industry often says a chip achieved “Day 0 adaptation” for the latest open-source model, which usually means it could be deployed and served on release day—essentially inference-side adaptation. Completing training adaptation on top of that means the chip has entered the “production-ready” evaluation tier. But it must be stressed: successful adaptation or integration does not mean the model’s base pre-training was done on that chip.

    A typical example is the technical report of a certain open-source large model. It validated the technical paths of two accelerator chips side by side, with a focus on a fine-grained expert-parallelism scheme. The industry generally regards such side-by-side validation as inference-side operator and scheme testing; the original compute source for its base pre-training was not made clear in the report. From this we can distill a judgment principle:

    • To assess adaptation, look at scale, duration, and scope: the number of cards, the number of consecutive steps, and whether the full backprop-and-update pipeline is covered.
    • To assess training, distinguish where training happened from where validation happened—these are different facts.
    Comparison dimension Inference adaptation Training adaptation
    Compute scope Forward pass Forward + backward + parameter update
    Parallelism Mostly single-card or single-machine multi-card, optionally with pipeline parallelism, etc. Various combinations: data/sharded, tensor, pipeline, sequence, expert parallelism
    Numerical requirements Correct outputs are enough Backward gradients, optimizer updates, and loss curve must stay stable throughout
    Communication needs Mostly intra-node collective communication Cross-node gradient reduction, parameter sync, fault-tolerant recovery
    Runtime Second-level requests Hours to weeks of continuous running
    Impact of failure A single request fails and can be retried May interrupt the entire training run, wasting large amounts of compute

    2. The full training-adaptation pipeline: from model loading to gradient synchronization

    Taking the Fully Sharded Data Parallel (FSDP) scheme used in this case as an example, a complete training-adaptation pipeline typically includes the following stages.

    1. Model loading: read and convert weight formats, handle the sharding layout under different parallelism strategies, and accommodate different structures in multimodal components (vision encoders, text backbones, projection layers, etc.). At trillion-parameter scale, loading itself involves memory-peak control and correctness checks on the sharding.
    2. Sharded scheduling: model parameters, gradients, and optimizer states are uniformly sharded and distributed across the data-parallel group. Before forward and backward computation, the parameters needed for each layer are temporarily gathered layer by layer in execution order and released immediately after use; during backprop, the next batch of parameters is prefetched so communication overlaps with computation, preventing memory usage from growing linearly with the number of layers.
    3. Backpropagation: compute parameter gradients layer by layer via the chain rule. For layers with activation recomputation enabled, intermediate activations are discarded during the forward pass and recomputed during backprop—trading compute for memory to lower peak usage.
    4. Gradient synchronization: during backprop, a reduce-scatter is performed on the sharded gradients within each data-parallel group; each rank keeps and updates only the portion of parameters it owns, so all data-parallel replicas stay consistent after computation. When tensor, pipeline, or expert parallelism is involved, the corresponding collective communications are added on top.
    5. Numerical-stability safeguards: keeping FP32 master weights, mixed-precision training, gradient clipping, and real-time monitoring of loss and gradient norm with automatic abort on anomalies. This step is the most direct technical basis for “400 consecutive steps with no overflow.”

    3. Four core challenges of cross-node training

    3.1 Operator coverage and numerical alignment

    The gap between “can load the model” and “can train fast” often lies in the operators. For common operators such as matrix multiply, reduction, normalization, and attention, if they are only functionally correct without fusion and optimization, end-to-end training is slowed by a large number of small, fragmented operators. A layered adaptation strategy can be used:

    • Base layer: fill in missing operators with mathematically equivalent implementations to first “compute correctly.”
    • Optimization layer: implement fused operators (e.g., normalization-linear combinations, attention fusion) and configure auto-tuning for common shapes.
    • Validation layer: use the training framework’s reference implementation as the baseline, comparing per-operator forward and backward errors and end-to-end loss curves.

    MoE models also need attention to load balancing across routing/dispatch, expert computation, and result aggregation; a skewed routing distribution creates hotspots on some experts and lowers overall efficiency.

    3.2 Communication efficiency and topology awareness

    Cross-node training communication falls roughly into three categories:

    • Gradient reduction for data parallelism: high communication volume, but can overlap with backward computation.
    • Activation synchronization for tensor parallelism: sits on the critical path of the forward pass and is latency-sensitive, so it is usually confined to the high-speed interconnect domain within a node.
    • Point-to-point send/receive for pipeline parallelism: the “bubbles” are compressed through sensible partitioning and scheduling.

    A general and effective optimization technique is hierarchical collective communication:

    • First perform a reduction within each node;
    • then let only one representative process per node participate in the inter-node exchange;
    • finally broadcast the result back to all processes within the node.

    This reduces the data volume on cross-node links from the “number of processes” order of magnitude to the “number of nodes” order, while easing cross-node congestion.

    3.3 Numerical stability under mixed precision

    Low-precision training significantly improves throughput and reduces memory usage, but gradients have a wide dynamic range, and the differences in representable range among BF16, FP16, and FP32 require targeted handling:

    • FP16 needs loss scaling to avoid underflow of small gradients;
    • BF16 has a wider dynamic range and usually needs no scaling, but watch for update bias from insufficient mantissa precision;
    • typically keep FP32 master weights on the optimizer side, computing in low precision during backprop and updating in high precision;
    • periodically check the loss, gradient norm, and parameter norm, and abort immediately on any non-finite value to prevent a bad state from contaminating subsequent updates.

    3.4 Long-run stability and fault recovery

    The larger the training scale, the higher the probability of hardware and software anomalies. Long-run stability capability includes at least:

    • Periodic sharded checkpoints: saving and loading also use a sharded form, avoiding bottlenecks from concentrated single-machine read/write;
    • Asynchronous saving and resume-from-checkpoint: shortening recovery time after a failure;
    • Slow-node detection: promptly catching hidden faults such as slowdowns and communication timeouts.

    4. How to scientifically evaluate training-adaptation maturity

    It is recommended to build a five-level validation matrix that goes from operators up to the cluster, progressing level by level:

    Level What is validated Core metrics
    L0 Operator Forward/backward results vs. reference implementation Relative/absolute error, NaN/Inf counts
    L1 Single GPU Single-/few-step updates on a small model Loss-curve consistency, memory peak
    L2 Multi-GPU single node Data parallelism and sharded parallelism Scaling efficiency, sharding correctness
    L3 Cross-node Multi-node joint training Cross-node communication overhead, continuous-run stability
    L4 Long-run / scale Hundreds to thousands of steps or longer Effective throughput, failure rate, recovery time

    Measured against this case, a 16-GPU, 400-step test mainly answers four questions:

    1. Is cross-node collective communication reliable;
    2. Is parameter sharding correct in a cross-node setting;
    3. Can low-precision updates stay finite over a long period;
    4. Is the engineering pipeline complete and usable.

    But reaching formal pre-training at the thousand- or ten-thousand-GPU scale over weeks or months requires sustained investment at higher levels. Evaluation must especially guard against the “it just didn’t crash” fallacy:

    • A finite loss only means training didn’t crash; it does not mean the model is converging effectively;
    • The truly credible criterion is a small-scale controlled experiment against a reference implementation of comparable parameter count, comparing loss curves and final results under the same data and the same number of steps.

    The following pseudocode shows how to embed the necessary numerical safeguards in the training loop:

    1. # Pseudocode: key numerical safeguards in a sharded data-parallel training loop
    2. for step, batch in enumerate(dataloader):
    3. # 1. Mixed-precision forward + backward
    4. loss = model(batch)
    5. loss.backward()
    6. # 2. Gradient reduction, sharding, and clipping (done together)
    7. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    8. # 3. Log key metrics and abort on anomalies
    9. log_metrics(step=step, loss=loss.item(), grad_norm=grad_norm)
    10. if not isfinite(loss) or not isfinite(grad_norm):
    11. abort_and_checkpoint(step, reason="non-finite value") # preserve the state for debugging
    12. # 4. Optimizer update (only the shard held by this rank)
    13. optimizer.step()
    14. optimizer.zero_grad(set_to_none=True)
    15. # 5. Periodically save sharded checkpoints asynchronously
    16. if (step + 1) % save_interval == 0:
    17. save_checkpoint_async(step + 1)

    5. From “can train” to “ready to train”: four layers of an engineering system

    The case shows that the vendor did more than complete the point adaptations above. In larger-scale training practice, it also completed the full from-scratch training of a 236-billion-parameter scientific foundation model, supported full-stack native training of a multimodal world model, and jointly completed end-to-end training of an embodied-intelligence brain model with research institutions. Various parties are now jointly advancing trillion-parameter-scale model training. This experience ultimately needs to be distilled into a reusable engineering system, which can be summarized in four layers.

    1. Operator-adaptation layer: covers the operator set required by mainstream model architectures, continuously fills gaps, and improves performance through fusion and auto-tuning.
    2. Framework-adaptation layer: supports mainstream training-parallelism paradigms and provides common capabilities for model loading, sharding, checkpoint saving, and recovery, so model code needs little or no rewriting for the hardware.
    3. Toolchain layer: provides automation such as one-click environment deployment, automatic parallelism-strategy configuration, performance profiling, training-process visualization, and fault self-healing, lowering the barrier to use.
    4. Operations-assurance layer: relies on common cloud capabilities such as container platforms, task scheduling, logging services, and monitoring/alerting to make training tasks observable, diagnosable, and recoverable.

    “Ready to train” can therefore be understood as a capability benchmark:

    • Given an open-source model, once data and configuration are prepared in a standard environment, training can be launched directly on a domestic-GPU cluster;
    • During training, the loss curve stays consistent with the reference implementation;
    • When anomalies occur, the system can localize the problem and recover automatically.

    In terms of deployment form, large-model training can run on a self-built GPU cluster, or be hosted on cloud platforms such as Baidu AI Cloud using common services like containerized compute, distributed storage, logging, and monitoring. Judging whether a platform is suited to long-cycle training requires evaluating four things together: the completeness of large-scale parallel-training framework adaptation, task orchestration and fault-tolerant recovery, end-to-end observability, and the stability of elastic compute supply.

    6. Practical recommendations

    For teams planning to run large-model training on domestic GPUs, the following practical checklist is worth considering:

    • Define the adaptation goal: first state clearly “what validation is to be completed,” e.g., “two machines, 16 GPUs, 400 steps, with loss and grad_norm finite throughout,” and avoid treating inference-adaptation results as proof of training capability.
    • Start with small-scale comparisons: compare loss curves against a reference implementation on a single machine or small cluster, then scale to cross-node after passing.
    • Make numerical monitoring routine: fully collect the loss, gradient norm, parameter norm, communication latency, and memory usage, and configure automatic abort on anomalies and resume-from-checkpoint.
    • Take the data pipeline seriously: in large-model training, data reading and preprocessing often become hidden bottlenecks and need prefetching, caching, and sharded parallel reads.
    • Let scaling efficiency speak: in cross-node settings, pay attention to parallel scaling efficiency as the card count grows, not just single-machine throughput.
    • Stress-test for long-run stability: validate abnormal paths such as checkpoint recovery, slow-node eviction, and communication-timeout handling in advance.

    Conclusion

    From adapting a nearly 3-trillion-parameter open-source model for training, to from-scratch training of a hundred-billion-parameter model and end-to-end training of multimodal and embodied models, domestic GPUs are steadily completing the full large-model training pipeline, piece by piece. The significance of 16 GPUs across 400 steps is that it proves the foundational pipeline of “cross-node, sharded parallelism, and full-length numerical stability” is reliable. The next question for the industry is how to train at larger scale, for longer, and with higher efficiency—ultimately reaching “ready to train.” For technical teams, building a layered validation system and accumulating a reusable adaptation toolchain matter more than any single breakthrough.