How a Domestic GPU Completed Training Adaptation for a Massive-Parameter Model: A Technical Walkthrough

    Training adaptation is a far tougher challenge than inference adaptation for AI accelerators. This article breaks down how a domestic GPU vendor adapted its flagship training-and-inference cards and software stack to support a ~3-trillion-parameter open-source multimodal model, using dual-node 16-GPU training that completed 400 consecutive optimizer updates with stable loss and gradient norms. It explains why training adaptation is harder than inference, the native FSDP2 multimodal training path, what the 400-step stability test actually validates, and the engineering roadmap toward "train out of the box" capability for large models on domestic GPUs.

    How a Domestic GPU Completed Training Adaptation for a Massive-Parameter Model: A Technical Walkthrough

    Background: From Inference Adaptation to Training Adaptation

    Recently, a domestic GPU vendor completed training adaptation for a flagship multimodal model with nearly 3 trillion parameters, released by an open-source large model company, using its flagship AI training-and-inference accelerator and self-developed software stack. In the experiment, the vendor used 16 accelerators across two machines for cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout—no numerical overflow or abnormal interruption occurred.

    This milestone matters because it signals that domestic compute is moving from “capable of inference” to “capable of training” for large models. To understand its significance, we first need to clarify two concepts that are often confused.

    Training Adaptation vs. Inference Adaptation: One Word Apart, Vastly Different Difficulty

    When the industry talks about “Day 0 adaptation of the latest open-source model,” it almost always means inference adaptation—after a model is released, the chip vendor quickly ports and tunes inference operators so the model can run on its hardware and produce outputs. Inference only performs forward computation, uses a relatively fixed set of operators, tolerates loose numerical precision, and typically takes days of engineering work.

    Training adaptation is far more complex, mainly in four ways:

    1. Broader operator coverage. Training requires not only forward operators but strictly matching backward operators, and their numerical behavior must align precisely. Under mixed precision, you also need to handle FP16/BF16-to-FP32 precision switching, gradient accumulation, and loss scaling.

    2. Stringent numerical stability. A tiny error in a single inference pass has limited impact, but in training, errors accumulate across hundreds of thousands of iterations. Underlying operators must behave deterministically over long runs—any sporadic numerical overflow (NaN/Inf) can wipe out days of training.

    3. Deeply coupled distributed pipelines. Trillion-parameter models cannot fit on a single machine. They require combinations of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, involving cross-node communication, gradient synchronization, and parameter sharding. This puts hard demands on inter-chip interconnect bandwidth and the maturity of communication libraries.

    4. Longer validation cycles. Inference adaptation asks “can it produce correct outputs?” Training adaptation asks “can it converge and stay stable over the long run?” The validation criteria are entirely different.

    It’s worth noting that completing training adaptation for a model does not mean the model was pre-trained on that chip. A common industry practice is for large model vendors to validate multiple hardware paths in parallel in their technical reports to confirm the correctness of parallelization schemes and operator implementations, while the original compute source for base pre-training is often not disclosed. Interpreting “successful adaptation” rationally is a prerequisite for understanding this kind of technical progress.

    Core Technical Path: A Native FSDP2 Multimodal Training Pipeline

    The key achievement of this adaptation is a native FSDP2 multimodal training path that connects the complete training pipeline, from model loading and sharding scheduling to gradient synchronization.

    FSDP (Fully Sharded Data Parallel) is the mainstream parallelism paradigm for large model training. Its core idea is to shard model parameters, gradients, and optimizer states across compute devices, aggregating them on demand only during computation, which greatly reduces per-GPU memory usage. Compared with earlier versions, the new generation of FSDP introduces more flexible per-parameter sharding granularity and cleaner memory management abstractions, making adaptation to heterogeneous hardware more controllable.

    In multimodal scenarios, building the FSDP2 path also requires solving several specific problems:

    • Sharding strategies for heterogeneous submodules. Vision encoders, language backbones, and cross-modal projection layers differ greatly in parameter scale and compute density. Each needs its own sharding and communication strategy to avoid over-sharding small modules, where communication overhead dominates.
    • Load balancing under dynamic sequence lengths. Multimodal data shows significant token length variation, requiring dynamic batching combined with memory estimation to prevent memory peaks from blowing past capacity.
    • Communication optimization for gradient synchronization. Techniques such as communication-computation overlap and bucketization hide gradient synchronization inside backward computation, improving overall training throughput.

    A typical sharding initialization looks like this:

    1. # Example: differentiated sharding strategies by module type
    2. from torch.distributed.fsdp import fully_shard
    3. for layer in model.vision_encoder.layers:
    4. fully_shard(layer) # shard vision layers one by one
    5. for layer in model.language_model.layers:
    6. fully_shard(layer) # shard the language backbone layer by layer
    7. fully_shard(model) # fallback sharding on the root module

    Such strategies are well supported in mainstream deep learning frameworks. The real question is whether the underlying software stack can deliver lossless operator performance and stable communication primitives.

    Stability Validation: What 400 Consecutive Training Steps Mean

    The experiment used a dual-node, 16-GPU cross-node setup and completed 400 consecutive optimizer updates with loss and gradient norms staying finite throughout. From an engineering perspective, this validation design covers several key signals:

    1. Cross-node communication correctness. A two-machine setup involves inter-node RDMA or an equivalent interconnect protocol. 400 error-free consecutive steps indicate that collective communication (AllReduce/AllGather) behaves stably across multi-machine topologies.
    2. Numerical health. “Finite throughout” loss and gradient norms is the most basic yet most important indicator—it rules out hidden divergence caused by operator precision defects.
    3. Long-run stability. Training processes not crashing means system-level components such as memory management, failure recovery, and process scheduling have withstood sustained load.

    Objectively speaking, however, 400 steps fall within the scope of functional and stability validation. Full pre-training convergence validation—typically requiring thousands of trillions of tokens—is still a distance away. But the experiment proves the complete pipeline is usable, which is a necessary prerequisite for scaling up and extending training runs.

    From “Can Train” to “Train Out of the Box”: Building the Engineering System

    Successful one-off adaptation is only the starting point. To enable cutting-edge large models to “train out of the box” on domestic GPUs, a mature engineering system covering the following layers is needed:

    • Operator layer. Continuously expand training operator coverage, especially forward and backward implementations of cutting-edge structures such as sparse computation, attention variants, and mixture-of-experts routing.
    • Parallelism layer. Build automated strategy search for 3D parallelism and expert parallelism to reduce manual tuning costs.
    • Toolchain layer. Provide automated tools for profiling, memory analysis, checkpoint resumption, and automatic failure recovery to shorten troubleshooting cycles.
    • Ecosystem layer. Maintain compatibility with mainstream training frameworks so existing training scripts can migrate at low cost.

    For large-scale training infrastructure, developers can also build supporting environments using general-purpose cloud capabilities—for example, using object storage to manage massive training corpora and checkpoints, orchestrating training jobs through container platforms, and combining logging services with monitoring and alerting for training observability. Major cloud platforms such as Baidu AI Cloud offer these categories of general-purpose services, which can serve as one infrastructure option for a training engineering system.

    According to reports, the GPU vendor has previously delivered multiple results in training domestic models on domestic chips, including complete from-scratch training of a 200-billion-parameter scientific foundation model, full-stack native training of a 5D world model, and end-to-end training of embodied AI models. It is also working with partners on training trillion-parameter models. These cases show that domestic compute’s training capability is steadily climbing along the “tens of billions—hundreds of billions—trillions” path.

    Conclusion

    Training adaptation is a harder test than inference adaptation. It measures not just single-chip compute, but the combined level of software stack completeness, distributed coordination, and long-run engineering capability. Stable training across two machines and 16 GPUs for 400 consecutive steps is a pragmatic, clear milestone: it validates the integrity of the pipeline and points to the next steps—scaling up cluster size, extending training duration, and building out the automated toolchain—so that large models on domestic GPUs can truly move from “can train” to “train out of the box.” For developers and enterprises watching for diversified compute supply, this path is worth continued tracking and verification.