A Domestic GPU Completes Training Adaptation for a Trillion-Parameter Model

    A domestic AI chip vendor announced that it had quickly adapted its flagship training-and-inference accelerator and software stack to a near-three-trillion-parameter open-source model. This article explains why that claim is a validation of training-pipeline usability rather than a from-scratch pretraining run. It clarifies the difference between inference access, training adaptation, and pretraining from zero; breaks down the native FSDP2 sharded data-parallel path and why global gradient clipping, decoupled reduction precision, and cross-rank fault detection matter; assesses what a 16-card, 400-step run can and cannot prove; and offers a practical verification checklist for teams evaluating domestic accelerators.

    1. The Event: A Pipeline Validation, Not a Model Retrain

    A domestic AI chip vendor announced that, using its flagship training-and-inference compute card and accompanying software stack, it had quickly completed the training adaptation for an open-source flagship large model with close to three trillion parameters. The test environment was two nodes with 16 accelerators in total; all 16 training processes completed 400 consecutive optimizer updates. Throughout the run, the loss and gradient norm stayed within finite bounds, with no numerical overflow and no abnormal interruption.

    Let me set the conclusion straight first: this is a validation of training-pipeline availability, not an announcement of “pretraining a trillion-parameter model from scratch on domestic chips.” The two carry very different engineering implications, and conflating them leads to either overestimating or underestimating the maturity of domestic compute.

    2. Concept Clarification: Adaptation ≠ Pretraining

    Discussions about “chip adaptation for large models” often lose focus because they collapse three fundamentally different things into one:

    1. Inference access (Day 0 adaptation): The goal is to get the model to “run” on new hardware, focusing on operator coverage, memory footprint, and the correctness and throughput of a single forward pass. The pipeline is short, and failures are quick to localize.
    2. Training adaptation: The goal is to make the closed loop of “forward + backward + parameter update” run correctly and stably on new hardware. It does not require matching the accuracy of a pretrained model, but it does require that backward operators, mixed-precision behavior, and collective-communication semantics align with the hardware.
    3. Pretraining from zero: The goal is to run the model on the original corpus, with a designed data mix and training strategy, through tens of thousands to hundreds of thousands of steps, and finally converge to the intended general capabilities. It demands long-cycle stability (weeks to months) without failure, large-scale (hundreds to thousands of cards) linear scaling, and automatic recovery after failures.

    A phenomenon mentioned in the source illustrates the point: in the technical reports of some foundation models, results are validated alongside both domestic NPUs and mainstream international GPUs, and the industry generally reads this as inference-side operator validation. The reports do not officially disclose the original compute used for base-model pretraining. This is not deliberate vagueness; rather, the strength of evidence for “inference is verifiable” and “training is verifiable” is inherently different. Inference is deterministic, reproducible, and verifiable in a single check; training is long-cycle, statistical, and can only be judged from trends across tens of thousands of steps.

    The correct reading of “two nodes, 16 cards, 400 consecutive steps” is therefore this: the training pipeline is numerically self-consistent, and its communication and scheduling work. It is a necessary condition for “being able to train,” but not a sufficient condition for “training well.”

    3. Technical Breakdown: Why Take the Native Sharded Data Parallel Path

    The source noted that the vendor built a “native FSDP2 multimodal training path” and connected the full training pipeline of “model loading — shard scheduling — gradient synchronization.” The key word here is native.

    3.1 From Data Parallelism to Fully Sharded Data Parallelism

    Traditional data parallelism (DDP) has each process hold a full copy of the model parameters and only performs an all-reduce on gradients during the backward phase. For a model approaching a trillion parameters with a multimodal encoder, this path is immediately ruled out by memory capacity:

    • Parameters stored in BF16: 1 trillion parameters ≈ 2 TB;
    • The backward pass must retain activations; with high-resolution multimodal inputs, activation memory is not negligible;
    • Mixed-precision training also requires a master copy of the weights (FP32) and optimizer states (two FP32 tensors for Adam’s momentum and variance).

    The core idea of the FSDP family is to shard parameters, gradients, and optimizer states along the model-layer dimension across all data-parallel ranks: when a layer is needed in forward or backward, its full parameters are temporarily aggregated via all-gather and released immediately after computation; gradients are reduced via reduce-scatter, with each rank keeping only its own shard; and the optimizer update is executed only on the local shard.

    3.2 The Weight of the Word “Native”

    A non-native path usually means adaptation through patches, monkey patches, third-party communication backends, or a rewritten scheduler. The costs of this approach are implicit:

    • Collective-communication operators may fall back to generic implementations rather than the vendor’s optimized ones, reducing bandwidth utilization;
    • The overlap strategy between computation and communication cannot be finely coordinated with the hardware’s flow control, producing bubbles;
    • Once the upstream framework is upgraded, the patches break, turning maintenance into a long-term burden.

    The native path, by contrast, pushes shard semantics, communication primitives, and scheduling logic down into the software stack and handles them with the vendor’s own implementations. This directly determines whether “16 cards stable for 400 steps” can later be extended to “thousands of cards stable for weeks.”

    3.3 A Minimal Runnable Native Sharded Training Skeleton

    The following pseudocode illustrates the key points of this pipeline (framework-agnostic):

    1. # 1) Loading: parse the structure of an oversized model from metadata,
    2. # avoiding materializing the full weights on CPU
    3. model = build_model_from_config(config, meta_device=True)
    4. # 2) Shard wrapping: apply the sharding policy per layer (not the whole model)
    5. for block in model.transformer_blocks: # multimodal models must also cover each encoder branch
    6. apply_shard(block, mesh=dp_mesh_2d) # mesh usually has two dims: (dp, tp)
    7. apply_shard(model.output_head, mesh=dp_mesh_2d)
    8. # 3) Mixed precision: explicitly control reduction precision under sharding
    9. model.set_precision(param_dtype=BF16,
    10. reduce_dtype=FP32, # use FP32 for gradient reduction to lower accumulation error
    11. buffer_dtype=BF16)
    12. # 4) Training loop: forward, backward, grad clipping, update
    13. for step, batch in enumerate(dataloader):
    14. loss = model(batch).loss
    15. loss.backward() # internally performs reduce-scatter
    16. clip_grad_norm_(model.parameters(), max_norm=1.0)
    17. optimizer.step() # updates only the local parameter shard
    18. optimizer.zero_grad(set_to_none=True)
    19. # 5) Observability: must aggregate across all ranks before judging; do not look at rank0 alone
    20. if loss.isnan() or grad_norm.isnan():
    21. raise NumericalFault(step, global_grad_norm=grad_norm)

    This skeleton hides three correctness issues that are easy to overlook:

    • Gradient clipping must compute a global norm under shard semantics. If each rank independently computes and clips its local shard norm, it effectively changes the clipping scale, and long-cycle training will gradually drift from the expected trajectory.
    • Gradient reduction precision should be decoupled from parameter precision. Accumulating gradients directly in BF16 is usually harmless within a few hundred steps, but in long-cycle training the accumulation error is amplified by the optimizer’s momentum.
    • Anomaly detection must aggregate across ranks. When a single card produces a NaN, other ranks may hang while waiting on collective communication, ultimately appearing as “no output from the task” rather than an error, which makes troubleshooting extremely costly.

    4. Stability Verification: What 400 Steps Can and Cannot Prove

    4.1 What It Can Prove

    • Backward operator chain correctness: A decreasing loss requires numerical consistency between forward and backward; a finite gradient norm throughout indicates no systematic error in the backward computation.
    • Correct collective-communication semantics: With 16 processes continuously participating in all-gather / reduce-scatter, errors in topology, rank mapping, or communication-domain partitioning typically surface within the first few steps.
    • Scheduling and memory management converge: 400 steps is enough for the memory allocator to reach a steady state, exposing fragmentation and peak-leak issues.
    • No silent failure: Continuous running without interruption indicates that the driver, runtime, and communication libraries have acceptable basic robustness under load.

    4.2 What It Cannot Prove

    • Linear scaling: 16 cards cannot extrapolate to thousand-card communication efficiency. Performance cliffs across cross-node topology tiers (intra-node NVLink domain, inter-node network domain, inter-rack domain) only appear at larger scale.
    • Long-cycle fault tolerance: The single-card failure rate rises linearly with card count, and the mean time between failures of a thousand-card cluster is usually measured in hours. Checkpoint frequency, elastic rescheduling, and resume-from-checkpoint are the real keys to long-term stability, not “400 consecutive steps.”
    • Convergence quality: Training adaptation cares about “not crashing,” while pretraining cares about “converging to the target.” The latter depends on the joint design of data mix, learning-rate scheduling, initialization strategy, and parallelism strategy.
    • Multimodal-specific challenges: The high-resolution activations of the vision encoder, the unequal-length sequences of image-text pairs, and the loss-weight balancing between modalities all need to be observed over longer training.

    4.3 The Real Levers for Long-Term Stability in Practice

    Risk type Typical symptom Common mitigation
    Numerical instability Loss spikes, gradient-norm jumps, NaN/Inf Gradient clipping, loss-spike skip and rollback, higher reduction precision, selectively skipping optimizer updates when necessary
    Silent hardware errors Occasional wrong results without any error Periodic checksum comparison, deterministic-operator switches for spot-check review
    Single point of failure A card going offline hangs collective communication Communication timeout thresholds, heartbeat detection, fast fault localization to the card
    Progress loss Full restart after hours of training Asynchronous sharded checkpoints, shard save plus metadata consistency checks
    Throughput long tail Individual ranks slowing down the whole Layered profiling to distinguish operator, communication, and data-loading bottlenecks

    The checkpoint step is often underestimated: under sharded training, what is saved is not a complete model but “the slice each rank is responsible for,” and the parallelism-topology metadata must be recorded at the same time; otherwise, parameters cannot be correctly reassembled when resuming with a different card count.

    5. From “Can Train” to “Train Out of the Box”: Three Missing Pieces

    The source mentioned that the vendor has already delivered several “domestic chips training domestic models” results, covering base models trained from scratch, full-stack native training of world models, and end-to-end training of embodied-intelligence models, and is currently advancing trillion-parameter-scale model training. Taken together, these cases point to a complete maturity ladder. To keep climbing that ladder, three capabilities usually need to be filled in:

    1. Dual satisfaction of operator coverage and performance. Coverage is the passing grade; performance is the competitive edge. In practice, what really takes time is the long tail of operators: custom attention variants, sparse/grouped convolutions, position-encoding extrapolation, complex reduce semantics, and so on. These operators are often outside standard benchmarks yet decide whether a model can be migrated as-is.

    2. Automation of parallel strategies. Manual tuning (combinations of TP/PP/DP/SP, recomputation granularity, micro-batch size) is nearly impossible on trillion-parameter models. A mature approach feeds memory budget, communication cost, and topology information into an automatic parallelism search that outputs feasible, near-optimal partitioning schemes.

    3. Observability and tooling. A general-purpose training platform is usually combinatorial: the container platform handles elastic scheduling and fault isolation, object storage carries checkpoints and datasets, logging services aggregate multi-rank output, and monitoring and alerting trigger notifications on conditions such as abnormal loss, abnormal card temperature, and communication timeouts. Taking the general-purpose components offered by cloud platforms such as Baidu AI Cloud as an example, their value lies not in any single feature but in turning “troubleshooting multi-node, multi-card training” from manually sifting through logs into a localization problem under an observability system.

    6. A Practical Checklist for Practitioners

    If you are evaluating a domestic accelerator’s training-adaptation capability, verify in the order below rather than judging from a single demonstration:

    1. Prioritize numerical correctness: First run single-card and dual-card comparisons on a small model (hundreds of millions of parameters), comparing loss curves and gradient norms to confirm there is no systematic bias.
    2. Operator coverage audit: Statically scan the model’s compute graph, list uncovered operators, and assess whether usable equivalent substitutes exist and what accuracy impact they carry.
    3. Communication stress test: Use a pure-communication benchmark to measure bandwidth utilization at different scales and locate the scale ranges where performance cliffs occur.
    4. Scalability verification: Measure throughput scaling efficiency on 8/16/32 cards, observe whether it is close to linear, and pinpoint the bottleneck layer.
    5. Long-run and fault tolerance: Run continuously for no fewer than a few hundred steps while injecting faults (actively kill a process), and verify detection speed, localization precision, and resume correctness.
    6. Resume consistency: Restore from a checkpoint after changing the parallel topology, and confirm the degree of overlap between the loss and the uninterrupted trajectory.
    7. End-to-end small-task convergence: Run a full pass on a small proxy task to verify not just “not crashing” but “able to converge.”

    7. Conclusion

    “Two nodes, 16 cards, 400 consecutive steps, with loss and gradient finite throughout” carries its weight in moving the discussion from “can it run” to “is the training loop correct and is the numerical behavior controllable.” This marks a dividing line for a pipeline going from nothing to something, and it is the prerequisite for all subsequent large-scale attempts.

    At the same time, a clear head is needed: from training adaptation to long-cycle pretraining capable of carrying trillion-parameter models, three gates still stand in between — scale-up, fault-tolerance and recovery, and convergence quality. The path to realizing the value of a full-featured domestic GPU is most likely not a single breakthrough, but the compounded result of long-term refinement across the operator library, parallel framework, cluster scheduling, and observability system. For developers and enterprise users, the pragmatic strategy is to first complete correctness verification and bottleneck localization at a scale you control, then gradually expand training scale as the ecosystem matures — this captures the benefits of domestic compute early without betting a critical training task on an unverified scale.