Ultra-Large Model Training Adaptation on a Homegrown AI Computing Base: Full-Link Engineering Practices

    This article examines how a homegrown AI computing base moves beyond inference adaptation to support full-link pretraining and fine-tuning of ultra-large models. Using a flagship open-source model with nearly 3 trillion parameters, it covers the distinction between inference and training adaptation, a native FSDP2 multimodal training path, dual-node 16-GPU stability validation over 400 optimizer updates, and the engineering work needed to progress from "can train" to "out-of-the-box training."

    As large-model parameter counts move toward the trillion scale, compute demand is rising sharply. After completing basic ecosystem integration, homegrown GPUs are gradually moving from inference adaptation toward the more demanding work of full-link pretraining and fine-tuning. Recently, an AI computing provider used its flagship training-and-inference integrated AI accelerator card and self-developed software stack to complete training adaptation for a flagship open-source model with nearly 3 trillion parameters. This progress marks a key step for homegrown compute in handling ultra-large and complex models.

    1. The Essential Divide Between Training Adaptation and Inference Adaptation

    In the AI compute ecosystem, “Day 0 adaptation” usually means completing inference-level integration and getting a model running on the first day an open-source large model is released. This mainly depends on operator library compatibility and front-end adaptation of the inference framework. However, successful inference adaptation does not mean that a chip can support large-scale pretraining or continuous fine-tuning of the model. Training involves massive parameter updates, complex parallelism strategies, and strict numerical stability requirements.

    For example, well-known open-source teams often validate inference solutions across different underlying compute paths, such as mainstream NPUs and GPUs, when publishing technical reports. But this is often limited to fine-grained expert parallel (EP) inference operator validation, rather than validation of a complete foundation-model pretraining compute base. In fact, few open-source models officially announce where the original compute for foundation-model pretraining came from. Therefore, achieving true “training adaptation” means homegrown compute must connect the full path from low-level memory management and communication optimization to upper-layer distributed training frameworks, build a mature engineering system, and support frontier complex large models from “rapid inference deployment” to “full-link stable training.”

    2. Building a Native FSDP2 Multimodal Training Path

    For a giant model with nearly 3 trillion parameters, the memory capacity of a single GPU is insufficient. Full Sharded Data Parallel (FSDP2) becomes a core technology for addressing this bottleneck. In this adaptation practice, the technical team built a native FSDP2 multimodal training path and successfully connected the full training链路 from model loading and shard scheduling to gradient synchronization.

    1. Model loading and shard scheduling: The system shards model parameters, gradients, and optimizer states across multiple GPUs. Through an efficient memory allocation strategy, it avoids memory peak overflow during loading and ensures that the weights of the multimodal network structure, including the vision encoder and language model, can be smoothly distributed to each compute node.
    2. Forward/backward computation and gradient synchronization: Parameters are aggregated on demand during forward propagation, and gradients are synchronized during backpropagation. This requires the underlying communication library to provide extremely high collective communication bandwidth and very low latency. The self-developed software stack provides fine-grained operator support in this process, ensuring precision alignment in complex operations and avoiding training failures caused by computation graph truncation or missing operators.

    3. Dual-Node Multi-GPU Stability Validation and Monitoring

    Training stability is a touchstone for the reliability of a compute base. In this two-node, 16-GPU cross-node joint training test, the system completed 400 consecutive optimizer updates. During this process, the technical team closely monitored core metrics:

    • Loss curve and gradient norm: There was no numerical overflow (NaN/Inf) or abnormal interruption throughout the process. Loss decreased steadily, and the gradient norm remained within a reasonable range. This proves that the numerical logic of the underlying operators under mixed-precision training is correct and that training did not collapse due to floating-point overflow.
    • Cross-node communication robustness: Dual-node training tests the stability of cross-server networking. The 16 training processes completed 400 iterations without heartbeat timeouts or communication deadlocks, indicating that multi-GPU coordination and distributed scheduling mechanisms are maturing.

    In this process, integrating Baidu AI Cloud’s container platform and monitoring and alerting system could further improve the operations efficiency of distributed training tasks. By collecting training logs in real time through the logging service and plotting Loss and communication throughput curves in real time with cloud-native monitoring dashboards, second-level alerting and automatic fault-tolerant recovery for training anomalies can be achieved, greatly improving the training resilience of large-scale clusters.

    4. Engineering Evolution from “Can Train” to “Out-of-the-Box Training”

    A single successful adaptation is only the first step. The real barrier lies in the maturity of the engineering system. Currently, multiple successful cases of “homegrown compute training homegrown models” have emerged, covering full-stack native training in frontier areas such as hundreds-of-billions-parameter scientific foundation models, 5D world models, and embodied brain models. These practices not only validate the full-stack native training capability of the compute base but also accumulate valuable experience for subsequently advancing the training of trillion-parameter large models.

    To achieve “out-of-the-box training,” three dimensions of work need to be completed:

    1. Full operator library coverage and performance optimization: Prebuilt high-performance operators for mainstream large-model architectures, such as Transformer variants and MoE architectures, ensure that training tasks can be launched on Day 0.
    2. Improved automated toolchain: Provide an integrated toolchain covering environment configuration, distributed strategy selection, and checkpoint resume, reducing the cognitive burden on developers. With Baidu AI Cloud’s object storage and high-performance file storage, efficient parallel reading of training data and second-level snapshots of weights can be achieved, helping protect training progress.
    3. Full-link ecosystem integration: Deep compatibility with mainstream open-source frameworks allows users to seamlessly switch underlying compute providers without substantially modifying business code.

    5. Conclusion and Outlook

    Completing training adaptation for a large model with nearly 3 trillion parameters is not only a single-point technical breakthrough but also a concentrated demonstration of homegrown GPUs’ full-link software stack and distributed training engineering capabilities. From building a native FSDP2 path to achieving long-term stable operation across dual-node multi-GPU setups, homegrown compute is gradually crossing the threshold from “usable” toward a mature commercialization stage that is “easy to use and easy to operate.” In the future, as operator adaptation, multi-GPU coordination, and automated toolchains continue to be refined, and as integration with cloud-native infrastructure deepens, “out-of-the-box training” of frontier large models on homegrown full-function GPUs will become a new industry norm.