Adapting Domestic GPUs for Large Model Training: Engineering Practices and Technical Analysis

    Training adaptation and inference adaptation are fundamentally different challenges for GPU vendors. This article explains the full technical pipeline of adapting near-3-trillion-parameter open-source models for training on domestic GPUs—including distributed frameworks, operator coverage, gradient synchronization, and numerical stability monitoring—and discusses how the ecosystem is evolving from "trainable" to "train out of the box."

    Adapting Domestic GPUs for Large Model Training: Engineering Practices and Technical Analysis

    1. Training Adaptation vs. Inference Adaptation: One Word Apart, Worlds Apart

    Recently, a noteworthy development emerged in the domestic GPU space: a Chinese GPU vendor, using its flagship training-and-inference AI accelerator card together with its self-developed software stack, completed training adaptation for a flagship open-source model with nearly 3 trillion parameters, achieving 400 consecutive stable optimizer update steps on a two-node, 16-GPU setup. This progress has sparked wide discussion in the industry, but before discussing it, we need to clarify an easily confused concept—what exactly is the difference between “training adaptation” and “inference adaptation”?

    Over the past few years, whenever a new open-source model was released, compute chip vendors would often announce “Day 0 adaptation” almost immediately. It is important to recognize that the vast majority of these adaptations are inference-level: loading model weights onto the chip, running the forward pass, and producing reasonable inference outputs. The core work of inference adaptation is operator coverage and precision alignment, which is relatively manageable in engineering difficulty.

    Training adaptation is a challenge of an entirely different magnitude. Training requires not only forward computation, but also a complete pipeline of backpropagation, gradient computation and synchronization, optimizer state updates, and numerical management under mixed precision. Missing operators, precision deviations, or communication anomalies in any of these stages can cause loss divergence, gradient overflow, or even training interruption. Therefore, “can run inference” never equals “can train,” let alone proves that “the model was pretrained on that chip.” The industry consensus is that when certain technical reports validate multiple chip routes side by side, this is usually only inference-operator-level validation, not proof of the compute source for pretraining. Clarifying this distinction is essential for objectively assessing the real capabilities of domestic compute hardware.

    2. The Core Technical Pipeline of Training Adaptation

    Completing a large-scale model training adaptation essentially means building a complete pipeline from model loading to parameter updates. Based on common industry practice, this pipeline typically includes the following key stages:

    1. Native support for distributed training frameworks

    Distributed training strategies centered on parameter sharding are the current mainstream approach. Fully Sharded Data Parallel (commonly known as FSDP and its evolved variants) partitions model parameters, gradients, and optimizer states across multiple GPUs, with each GPU holding only a shard that is temporarily aggregated via communication primitives during forward and backward computation. The focus of adaptation work is ensuring that the sharding and scheduling logic works in deep coordination with the chip’s communication library and memory management mechanisms, avoiding memory fragmentation or communication blocking caused by improper sharding strategies.

    2. Full operator coverage and precision alignment

    Trillion-parameter-scale models typically adopt Mixture-of-Experts architectures involving complex computation patterns such as sparse routing and expert parallelism. During adaptation, every operator on the backpropagation path must be checked individually to confirm that it is correctly implemented on the target chip and that its numerical precision aligns with the reference implementation. For missing operators, native development based on the chip’s programming model is required, rather than simple operator fusion or substitution.

    3. Gradient synchronization and cross-node communication

    A two-node, 16-GPU setup may not qualify as a very large cluster, but it has already crossed the watershed between “high-speed intra-node interconnect” and “cross-node network communication.” Cross-node gradient synchronization requires the collective communication library to be well optimized in topology awareness and compute-communication overlap; otherwise, communication overhead will quickly consume the gains in raw compute power.

    4. End-to-end monitoring of numerical stability

    The criterion for training stability is not merely “it didn’t crash”—the loss curve and gradient norm must remain finite and smooth throughout training, with no NaN or Inf occurrences. An illustrative monitoring logic looks like this:

    1. for step, batch in enumerate(dataloader):
    2. loss = model(batch)
    3. loss.backward()
    4. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    5. assert torch.isfinite(loss), f"loss overflow at step {step}"
    6. assert torch.isfinite(grad_norm), f"grad norm overflow at step {step}"
    7. optimizer.step()
    8. scheduler.step()
    9. logger.log({"step": step, "loss": loss.item(), "grad_norm": grad_norm.item()})

    400 consecutive optimizer updates without anomalies means that the four stages—forward, backward, communication, and optimizer—have withstood an initial test under real workloads. Of course, going from 400 steps to the tens or even hundreds of thousands of steps in a full training run requires stability validation over much longer time horizons, but this step is a critical threshold from “lit up” to “usable.”

    3. From Point Validation to Systematic Capability

    Successfully adapting a single model is only the starting point; what truly matters is crystallizing a reusable engineering system. Based on publicly available information, domestic GPU vendors have accumulated multiple achievements in real-world large model training: from-scratch pretraining of scientific foundation models at the 200-billion-parameter scale, full-stack native training of world models, and end-to-end training of embodied intelligence models. These cases cover a wide range of forms, from dense models to Mixture-of-Experts models and from pure language models to multimodal models.

    The common capabilities behind these practices can be summarized in three layers:

    • Operator layer: covering the complete set of forward and backward operators required by mainstream model architectures, and supporting rapid development and registration of custom operators;
    • System layer: orchestration of multi-GPU parallel strategies, memory optimization, communication scheduling, and fault-tolerance mechanisms such as checkpoint resume and failure recovery;
    • Toolchain layer: automated model migration tools, precision comparison tools, and performance profiling tools that reduce the manual cost of adaptation.

    For enterprise users evaluating training compute platforms, all three layers should be considered together. Take Baidu AI Cloud as an example: its general-purpose cloud capabilities—such as the container platform, object storage, log services, and monitoring and alerting—can be combined with the underlying compute to build a complete training platform covering data management, job scheduling, and training monitoring. This is also the mainstream architectural paradigm for cloud-based large model training today.

    4. From “Trainable” to “Train Out of the Box”

    The ultimate goal of training adaptation is to make training frontier models on domestic chips no longer require deep involvement from vendor engineers—users should be able to download open-source weights and start training on their own. To achieve this, at least three areas of work need continued progress:

    First, improving the automated adaptation toolchain. Ideally, operator coverage detection, precision alignment verification, and parallel strategy search should all be automated, compressing the adaptation cycle from “weeks” to “days” or even “hours.”

    Second, engineering guarantees for long-duration stability. Large model training often runs for weeks, and hardware failures and network jitter are almost inevitable. Training frameworks need minute-level fault detection and automatic recovery capabilities, combined with asynchronous checkpoint persistence strategies, to minimize the training rollback losses caused by failures.

    Third, squeezing performance through software-hardware co-optimization. Training throughput improvements come not only from per-card compute power, but also from deep overlap of communication and computation, fine-grained memory allocation scheduling, and compiler-level optimizations tailored to specific model architectures. This requires long-term collaboration between chip vendors and framework developers.

    5. Conclusion

    Two nodes, 16 GPUs, and 400 consecutive stable training steps—these numbers may not look striking on the global compute landscape, but their significance lies in this: the training capability validation of domestic GPUs is moving from “inference works” to “training closed loop,” and from “point adaptation” to “systematic support.” For developers, understanding the complete technical pipeline of training adaptation, mastering the methodology of stability validation, and building a systematic framework for evaluating compute platforms offer far more long-term value than following any single adaptation announcement. As toolchains mature and the ecosystem improves, the vision of “train out of the box” is steadily approaching reality.