Domestic GPU Training Adaptation for Large Models: From "It Trains" to "Train Out of the Box"

    A domestic GPU vendor recently completed training adaptation of a flagship open model with nearly 3 trillion parameters—16 accelerators across two nodes running 400 consecutive optimizer updates with the loss and gradient norm staying finite throughout—signaling that adaptation for full-function domestic GPUs is shifting from inference deployment to end-to-end training. This article clarifies the commonly confused concepts of inference adaptation, training adaptation, and pretraining; explains why training adaptation is far harder than inference; examines how a native FSDP2 full-shard data-parallel path connects the whole training chain; analyzes what a 400-step run does and does not prove; and outlines the engineering capabilities and practical, step-by-step guidance needed to move from "it trains" to "train out of the box."

    Recently, a domestic GPU vendor announced that it had completed training adaptation of a flagship open model with nearly 3 trillion parameters—released by an open-source team—on its flagship training-and-inference accelerator card and self-developed unified software stack. Across two nodes and 16 accelerators in total, the model ran 400 consecutive optimizer updates with the loss value and gradient norm staying finite throughout.

    What drew attention to this news is not “how many steps it ran,” but the fact that it signals a shift in the focus of adaptation for full-function domestic GPUs—from “inference deployment” to “end-to-end training.” Yet several concepts—“adaptation,” “training,” and “pretraining”—remain widely confused in the industry. This article first clarifies these concepts, then breaks down the technical challenges of training adaptation, and finally outlines the engineering capabilities and practical recommendations needed to move toward “train out of the box.”

    1. Inference adaptation, training adaptation, and pretraining are not the same thing

    Training adaptation ≠ inference adaptation

    After an open model is released, hardware vendors typically complete inference adaptation as soon as possible (often called “Day 0” in the industry), so the model can generate output on new hardware. Inference only requires a forward pass, executed once per call, with validation focused on operator functional correctness and numerical stability, KV-cache memory footprint, and single-request latency and throughput.

    Training requires a closed loop of forward pass, backward pass, gradient synchronization, and parameter updates—and it must stay numerically stable across thousands of iterations. The chain is longer, there are more variables, and the fault-tolerance window is smaller.

    “Training adaptation” ≠ “pretraining on that hardware”

    Successful adaptation means the model can load, run a forward pass, run a backward pass, and keep updating parameters on the new hardware. Where the base model was originally pretrained is a separate question.

    A typical misreading comes from a technical report: a leading open-model team recently published a report that validated fine-grained expert-parallelism approaches on both a domestic NPU and a mainstream international GPU, presenting them side by side. The industry widely interprets this as operator and approach validation on the inference side. As for where the original compute for the base model’s pretraining came from, the official statement does not make it explicit.

    So to judge whether “training happened on that hardware,” look at four points:

    • Is it continuing from existing weights, or starting from random initialization?
    • Is it full pretraining, continued pretraining, or fine-tuning / post-training?
    • Are the training data and the data pipeline complete?
    • Are there reproducible convergence curves and stability records?

    These three levels can be summarized in one progression table:

    Capability level Core work Completion marker
    Inference adaptation Forward operator coverage and performance tuning Output matches the reference implementation and meets throughput and latency requirements
    Training adaptation Full chain of forward + backward + gradient sync + parameter update Sustained multi-card iterations with finite loss and gradient norm
    Training from scratch Data pipeline, parallelism strategy, fault tolerance, long-run stability Large-scale, long-run training completed with model capability as expected
    Train out of the box Production-grade toolchain and ecosystem compatibility Model code runs with minimal to zero changes and trains stably on new hardware

    2. Why training adaptation is much harder than inference adaptation

    Operator coverage and compute-graph complexity grow by an order of magnitude

    Inference only needs to cover the operators used in the forward pass. Training must fill in everything the backward pass requires: weight and input gradients for linear layers, the backward of attention, the backward of normalization and activation functions, the loss function and optimizer update, and so on. Meanwhile, temporary forward results must be selectively retained or recomputed according to the needs of the backward pass, making compute-graph management clearly more complex.

    Take attention as an example: the forward pass can use a fused implementation that outputs only the attention result; the backward pass, however, must compute gradients with respect to the query, key, value, and weights at the same time, and some implementations also need to save extra intermediate statistics. Whether these backward operators are complete and whether their precision meets requirements directly determines whether training can proceed.

    Numerical stability: the most hidden failure mode

    Large-model training commonly uses low-precision formats such as BF16/FP16. The advantage of low precision is high throughput and low memory use; the cost is a limited dynamic range:

    • BF16 has more exponent bits, so it is less prone to overflow, but has fewer mantissa bits and a risk of underflow;
    • FP16 has more mantissa bits and better precision, but a limited maximum value, so gradient overflow easily occurs during the backward pass.

    The usual countermeasure is mixed precision: parameters and optimizer states stay at higher precision while the forward pass uses low precision; under FP16, loss scaling is applied to prevent gradient underflow. But after swapping hardware, the following details all affect numerical behavior:

    • the accumulation order of matrix multiplication;
    • the reduction precision inside normalization and softmax;
    • approximate implementations of functions such as exp;
    • the summation order of communication reductions.

    These problems may not surface during inference, but they can, after hundreds of training steps, make the loss suddenly become NaN, or appear as a slow and hard-to-detect convergence bias.

    Combinatorial complexity of parallelism strategies

    Real large-model training rarely relies on data parallelism alone. Common combinations include:

    • data parallelism;
    • tensor parallelism (TP);
    • pipeline parallelism (PP);
    • sequence / context parallelism;
    • expert parallelism (EP), used for mixture-of-experts models;
    • activation recomputation and optimizer-state offloading.

    Each dimension introduces specific collective communications, such as AllReduce, AllGather, ReduceScatter, and All-to-All. Different parallelism dimensions differ greatly in communication volume and pattern, and are highly sensitive to interconnect bandwidth and topology. A slight misstep in strategy choice can let the compute be swallowed by communication waits.

    Tight memory budget

    Training memory is roughly made up of four parts: parameters, gradients, optimizer states, and activations. Take the most common Adam-class optimizers as an example: under mixed precision, each parameter is accompanied—besides itself—by a low-precision gradient and an FP32 parameter copy, first-moment and second-moment states, i.e., the commonly cited “16 bytes/parameter” overhead; on top of that there is gradient and activation overhead. For a 236-billion-parameter model, these items alone theoretically occupy close to 3.8 TB, which must be absorbed through multi-card sharding and recomputation.

    If the new hardware differs in memory capacity, allocator behavior, or memory-pool fragmentation management, the model may run fine during inference yet frequently trigger out-of-memory errors once training begins.

    Communication library and cross-node stability

    The collective communication library is the “foundation” of distributed training. New hardware needs to:

    • implement complete collective communication primitives with consistent semantics;
    • guarantee correctness across different parallel topologies;
    • make full use of the high-speed network in cross-node scenarios.

    Network jitter, link degradation, or improper timeout handling can all cause training to hang or crash.

    Long-run fault tolerance

    Pretraining can last weeks or even months, and training must be able to:

    • periodically save and load checkpoints without interrupting training;
    • recover quickly after a node failure;
    • detect “silent errors” promptly—cases where the hardware still runs normally but the results have quietly gone wrong.

    For domestic hardware, long-run stable training capability needs to be validated repeatedly in real workloads.

    3. Technical path breakdown: how a native full-shard data-parallel path connects the whole chain

    What is the “native” FSDP2 path

    The core idea of full-shard data parallelism (FSDP) is: within the same data-parallel group, each card stores only a shard of the parameters, gradients, and optimizer states.

    • In the forward pass, full parameters are temporarily AllGathered layer by layer and released immediately after use;
    • In the backward pass, parameters are likewise gathered layer by layer, and after computation the gradients are reduced with ReduceScatter, so each card keeps only the shard it is responsible for.

    The second-generation implementation (commonly called FSDP2 in the industry) usually expresses the sharded state uniformly as sharded tensors (DTensor), keeping parameters, gradients, and optimizer states consistent at the semantic level and making them easier to combine with other parallelism dimensions such as TP and EP.

    The so-called “native path” means training runs on top of the operator libraries and framework support natively maintained by the hardware vendor, rather than relying on temporary code, forced operator fallbacks, or custom patches. Its value shows in three aspects:

    • Performance: core operators use kernels optimized by the vendor;
    • Maintainability: no need to keep modifying adaptation code as framework versions change;
    • Composability: FSDP2 can be stacked with strategies such as tensor parallelism and expert parallelism.

    Example code follows (function names are illustrative pseudocode):

    1. # Illustration: a single training step on the native FSDP2 path
    2. # (1) Load weights as sharded tensors (DTensor) to avoid fitting the full model on one card
    3. model = load_model_sharded(model_path, dtype="bf16")
    4. # (2) Wrap with sharded data parallelism: parameters / gradients / optimizer states are all sharded
    5. model = fsdp_wrap(model, reshard_after_forward=True)
    6. optimizer = AdamW(model.parameters(), lr=1e-4) # optimizer holds only this card's shard
    7. for step, batch in enumerate(dataloader):
    8. with mixed_precision(dtype="bf16"):
    9. loss = model(batch).loss # forward: AllGather parameters layer by layer, release after use
    10. loss.backward() # backward: AllGather layer by layer; after ReduceScatter, keep only the shard
    11. grad_norm = clip_grad_norm(model.parameters(), max_norm=1.0) # global gradient clipping
    12. if finite(loss) and finite(grad_norm):
    13. optimizer.step() # update only the parameter shard this card is responsible for
    14. else:
    15. optimizer.skip_step() # skip the update on NaN/Inf to avoid corrupting weights
    16. optimizer.zero_grad(set_to_none=True)

    Model loading. Open weights are usually stored in shards in a fixed format; new hardware needs to handle loading, format recognition, shard reassembly, and precision conversion. For models with extremely large parameter counts, it must also support reading shards directly from external storage, so the loading process does not saturate memory or GPU memory.

    Shard scheduling. When each parameter shard used in each computation phase is loaded and released must overlap with the compute stream, so communication is hidden as much as possible under computation.

    Forward and backward. Operators at each layer run on native kernels, with the activation recomputation strategy configured according to the memory budget.

    Gradient synchronization. ReduceScatter completes gradient reduction to keep shards consistent across cards; under pipeline parallelism, activations and gradients must also be passed between pipeline stages.

    Parameter update. Each card updates its optimizer states and parameter shard based on the local gradient shard, AllGathering the full parameters back at stage boundaries when necessary.

    Extra complexity from multimodal models

    A flagship model at the ~3-trillion-parameter scale is usually a multimodal architecture, often containing a vision encoder, projection layers, and a language decoder:

    • different modules have different parallelism partition points;
    • some modules may be frozen during training;
    • vision input resolutions vary, and sequence lengths differ widely.

    Multimodal training adaptation requires guaranteeing operator coverage and numerical consistency for text, images, and even more modalities on the same card at the same time. This also explains why the industry highlights a “native full-shard data-parallel multimodal training path” as a key result.

    4. What 400 consecutive steps on 2 nodes and 16 cards does—and does not—show

    What it shows. The significance of 400 steps lies in the time span, not the step count itself:

    • the learning rate typically completes warmup within the first few hundred steps, and 400 steps is generally past the warmup phase;
    • memory allocation has reached steady state, and fragmentation issues begin to surface;
    • communication buffers are fully reused.

    Throughout this period, with loss and gradient norm staying finite and no abnormal interruption, it shows that the closed loop of forward pass, backward pass, communication, and update is numerically stable and sustainable under this configuration—meaning the main chain of training adaptation has been connected.

    What it does not show. This result is a validation at the “training adaptation” level, and the following aspects cannot yet be concluded from it:

    • Whether it converges to reference quality: a finite loss does not mean the convergence behavior matches the reference implementation; loss curves, gradient norms, and weight changes still need to be compared;
    • Scalability: scaling from 16 cards to hundreds or thousands changes the nature of communication overhead, failure probability, and load balancing, and requires dedicated scalability testing;
    • Long-run stability: at the thousand-card scale, hardware failures are almost the norm, and fault-tolerance capability can only be verified through long real runs.

    5. Key engineering capabilities on the way from “it trains” to “train out of the box”

    The vendor also mentioned in its results the complete training from scratch of a scientific-computing foundation model (236 billion parameters), full-stack native training of a 5D world model, and end-to-end training of an embodied-intelligence brain model completed jointly with a research institution, and has partnered with collaborators to advance trillion-parameter model training. These cases complement the 400-step adaptation test and together point to several core engineering capabilities.

    Operator coverage and precision alignment

    Build an operator test matrix that covers forward, backward, and low-precision scenarios, and compare numerical error against the reference implementation one by one. When problems arise, they can be pinpointed to a specific operator or communication link, rather than repeated whole-system trial and error.

    Parallelism strategy and memory optimization

    For memory capacity, inter-card interconnect bandwidth, and cross-node networking, automatically or semi-automatically select a suitable combination of parallelism, recomputation granularity, and communication overlap, so that multi-card compute is genuinely converted into throughput.

    Stability and observability

    Fault tolerance and checkpoint resume

    Periodically and asynchronously save checkpoints, overlapping storage overhead with training compute as much as possible; after a failure, automatically detect and recover quickly, keeping the proportion of effective training time high.

    Ecosystem compatibility and low code changes

    The ideal state is “train out of the box”: the model definition code, parallelism configuration, and hyperparameters stay basically unchanged, and migration is done just by specifying the hardware backend in the launch configuration. This requires clear layering and stable interfaces among the model definition, parallelism library, communication library, and hardware operators.

    6. Practical advice for developers and enterprises

    For teams preparing to train on domestic compute, the recommended principle is “validate in small steps, then scale up progressively”:

    1. Single-card alignment: compare the loss curve and gradient norm on a single card to confirm the operators are numerically correct;
    2. Single-node multi-card: verify that gradient reduction under data parallelism is correct;
    3. Dual-node multi-card: verify cross-node communication and combinations of parallelism strategies;
    4. Scale stress testing: run hundreds to thousands of steps for long-run stability, inject node failures, and rehearse recovery;
    5. Convergence comparison: align with reference training results within a limited number of steps, to confirm it is not “runs but doesn’t learn well.”

    On the monitoring side, at least the following metrics should be covered:

    • Loss value and gradient norm: to spot NaN/Inf and gradient explosion immediately;
    • Magnitude of parameter updates;
    • Memory usage and fragmentation on each card;
    • Per-step time breakdown: how much is computation, communication, and data loading;
    • Checkpoint save and recovery time.

    These metrics can be wired into logging services and monitoring/alerting systems, notifying on-call staff in time when anomalies occur.

    Engineering-wise, also note:

    • verify data shard integrity before training;
    • avoid loading the main process with heavy data preprocessing;
    • retain sufficient diagnostic information during long-run stability tests.

    For enterprises that want to train directly in the cloud, large-scale training can be split into three layers—scheduling, storage, and observability:

    • the scheduling layer uses a container platform to orchestrate training jobs and manage failed nodes;
    • the storage layer uses object storage to hold training data and checkpoints;
    • the observability layer uses logging and monitoring/alerting systems to track loss, throughput, and anomalies.

    Take Baidu AI Cloud as an example: its AI compute, storage, and operations products can provide general underlying support for this kind of workload. This layered approach helps shorten the setup cycle for training jobs.

    7. Conclusion

    From inference adaptation to training adaptation, and then to training from scratch and “train out of the box,” the capability boundary of domestic GPUs is expanding level by level. 400 consecutive steps on 2 nodes and 16 cards, with loss and gradient norm finite throughout, prove that the chain is connected and numerically stable—not that “a domestic card trained a trillion-parameter model.” Technical discussion needs to keep these two things distinct.

    For developers, the more valuable question than “who adapted to whom” is: after swapping hardware, how do you confirm at minimal cost that training is correct, stable, and converging? Get the four things right—numerical alignment, parallelism optimization, observability, and fault tolerance—and training engineering stays under control no matter how the underlying hardware changes.