Adapting Ultra-Large Open-Source LLMs for Training on Domestic GPUs: A Practical Analysis

    Recently, a domestic GPU enterprise successfully completed the training adaptation for a nearly 3-trillion-parameter open-source large model across 16 accelerator cards on dual nodes. This article analyzes the fundamental differences between training adaptation and Day 0 inference adaptation, exploring core challenges such as memory walls, cross-node communication efficiency, numerical stability, and multimodal operator coverage. It details the technical pipeline from model loading to optimizer updates, highlighting key engineering practices like FSDP2 sharding and automated toolchains. Finally, it discusses the industry significance of this capability leap from basic inference compatibility to stable, large-scale pre-training.

    1. Background: The Capability Leap from “Day 0 Adaptation” to “Training Adaptation”

    Recently, a domestic general GPU enterprise disclosed that it successfully completed the training adaptation for a flagship open-source large model with nearly 3 trillion parameters using its flagship AI training and inference card and self-developed software stack. In testing, 16 accelerator cards across dual machines completed cross-node joint training verification, running 400 consecutive optimizer updates. The loss curve and gradient norm remained finite throughout the process, with no numerical overflow or abnormal interruptions.

    This news is significant because “training adaptation” is fundamentally different from the industry’s common “Day 0 inference adaptation”:

    • Inference Adaptation: Refers to the chip platform quickly achieving inference operator compatibility shortly after a new model is open-sourced, enabling the model to run inference services on the hardware. It validates operator coverage and inference engine compatibility.
    • Training Adaptation: Requires the platform to打通 the complete training pipeline, from model loading, parameter sharding, and gradient calculation to gradient synchronization and optimizer updates. This imposes an order of magnitude higher demand on hardware computing power, interconnect bandwidth, memory capacity, numerical precision, and software stack stability.

    A common misconception in the industry needs clarification: a model completing training adaptation on Platform A does not mean the model’s base pre-training was conducted on Platform A. Some public technical reports simultaneously verify multiple heterogeneous computing routes, but their conclusions often focus on the feasibility of inference operators and parallel strategies, without disclosing the true source of pre-training computing power. Therefore, “can train” and “has trained” are two technical concepts that must be distinguished.

    2. Core Challenges of Ultra-Large Model Training for Computing Platforms

    To stably train a model with nearly 3 trillion parameters on a domestic GPU, several layers of challenges must be overcome:

    2.1 Memory Wall and Parameter Sharding

    Storing 3 trillion parameters in FP16/BF16 requires TB-level memory, far exceeding the capacity of a single card or even a single machine. The industry’s standard solution is Fully Sharded Data Parallel (FSDP), which shards parameters, gradients, and optimizer states across multiple devices, performing on-demand all-gather and reduce-scatter communications during forward and backward computations. This requires extremely high scheduling precision from the software stack—any single sharding restoration error will lead to training numerical divergence.

    2.2 Cross-node Communication Efficiency

    Dual machines with 16 cards mean that training must traverse two communication domains: intra-node interconnects (like PCIe/NVLink) and inter-node networks. The bandwidth utilization of gradient synchronization and the overlap between communication and computation directly determine training throughput. Domestic platforms must deeply optimize their collective communication libraries for their own interconnect topologies to maintain acceptable scaling efficiency in large-scale scenarios.

    2.3 Numerical Stability

    The most common failures in large-scale training are loss spikes, gradient explosions, or NaNs. Maintaining finite loss and gradient norms over 400 consecutive optimizer updates proves that the platform’s implementation of mixed precision strategies, loss scaling, and gradient clipping is correct. This is one of the “hardest” metrics in training adaptation—inference can tolerate occasional errors, but training must ensure numerical pipeline consistency throughout.

    2.4 Operator Coverage and Multimodal Support

    Flagship open-source large models typically integrate multimodal structures like text and vision, involving complex components such as attention variants, expert parallelism, and fused operators. Building a native multimodal training path means the software stack must not only fill in the operators but also natively support these structures at the framework level, rather than relying on temporary compatibility layers.

    3. Technical Path Breakdown: How a Complete Training Pipeline is Established

    Based on public information, this adaptation built a native FSDP2 multimodal training path. The pipeline can be abstracted into the following stages:

    1. Model Definition and Loading
    2. ↓ Weights initialized based on sharding strategy to avoid full residence on a single card
    3. Parameter Sharding and Scheduling
    4. ↓ Split by layer/device, aggregated on-demand during forward and backward passes
    5. Forward Computation (Multimodal Encoding + Backbone Inference)
    6. ↓ Mixed precision execution, fused operator acceleration
    7. Backward Propagation and Gradient Sharding
    8. ↓ reduce-scatter completes gradient split and reduction
    9. Cross-node Gradient Synchronization
    10. ↓ Collective communication library coordination, communication-computation overlap
    11. Optimizer Update
    12. ↓ Optimizer states sharded and resident, parameter consistency determines loss trend

    Several key engineering points are worth expanding on:

    (1) Sharding Consistency Verification. In multi-node environments, parameter initialization must ensure that the random seeds and sharding logic for the same layer are consistent across all processes; otherwise, training is doomed to fail from the first step. Mature engineering systems typically have built-in sharding hash verification mechanisms.

    (2) Gradient Norm Monitoring. Keeping the gradient norm finite for 400 consecutive steps indicates that the platform possesses fine-grained training health observation capabilities. In practice, stability is ensured through periodic recording of grad norms, loss spike detection, and outlier truncation.

    (3) Automated Toolchain. From operator adaptation and precision alignment to multi-card debugging, the cost of manual intervention is extremely high. Only a training system equipped with automated precision alignment tools and distributed debugging tools can compress the adaptation cycle for new models from months to weeks or even days.

    4. Industry Significance: The Evolution Logic of Domestic Computing Power from “Inference” to “Training”

    Public information shows that the vendor has previously implemented multiple achievements in training domestic models with domestic chips, including completing the full training of a 100-billion-parameter scientific foundation model from scratch, supporting the full-stack native training of world models, and the full-process training of embodied AI models. Currently, it is advancing training collaborations for trillion-parameter models.

    This evolution path presents a clear capability ladder:

    1. Inference Compatibility: Validates operator coverage and model loading capabilities, serving as the entry threshold.
    2. Fine-tuning: Validates the correctness of the gradient pipeline and medium-to-small scale parallelism.
    3. Pre-training from Scratch: Validates the system stability of long-duration, large-scale distributed training, which is the true watershed.
    4. Trillion-Parameter Training: Requires comprehensively reaching international mainstream standards in communication, scheduling, fault tolerance, and numerical stability.

    The gap from “can train” to “out-of-the-box training” lies essentially not in single-point performance, but in engineering maturity. Toolchain capabilities such as automatic operator adaptation, automatic distributed strategy tuning, automatic fault recovery, and automatic precision alignment determine the actual cost for developers to use domestic computing power. As more cutting-edge open-source models complete training verification on domestic platforms, the software ecosystem of domestic full-function GPUs will form a positive cycle of “model adaptation—ecosystem feedback—toolchain improvement.”

    5. Conclusion

    The significance of the dual-machine, 16-card cross-node stable training verification does not lie in a specific number, but in proving a more critical fact: domestic GPU platforms already possess the system capability to support the complete training pipeline of cutting-edge, complex large models. For the industry, judging the true capability level of domestic computing power should shift from “whether it can run inference” to the higher standard of “whether it can stably complete large-scale training.” In the future, with continuous improvements in toolchain automation, domestic full-function GPUs are expected to truly achieve “out-of-the-box training” for cutting-edge large models, providing a solid foundation for an autonomous and controllable AI infrastructure.