Engineering Practices for Training Adaptation of a Nearly 3-Trillion Parameter LLM on Domestic GPUs

    This article explores the engineering practices and methodologies behind adapting a nearly 3-trillion parameter multimodal large model for training on non-NVIDIA GPUs. It details the core technical path involving native FSDP2, clarifies the differences between training adaptation, inference adaptation, and pre-training, and analyzes the significance of stability verification in a multi-node environment. Finally, it discusses the systematization of engineering capabilities and the future outlook for out-of-the-box training.

    1. Background: A Key Step for Domestic Compute Training Adaptation

    Recently, a domestic GPU manufacturer successfully completed the training adaptation of a flagship open-source large model with nearly 3 trillion parameters. Using its flagship AI training and inference cards and self-developed software stack, the team achieved stable operation for 400 continuous optimizer update steps on a dual-node, 16-GPU cluster. This progress marks a step forward in the ability of domestic GPUs to support large model training scenarios.

    For developers, the value of this event lies not only in the result but also in the training adaptation methodology behind it: how to build a complete training pipeline on a non-NVIDIA GPU architecture. This includes model loading, parameter sharding, forward and backward computation, and gradient synchronization while maintaining numerical stability. This is the core issue we will unpack in this article.

    2. Clarifying Concepts: Training Adaptation vs. Inference Adaptation vs. Pre-training

    When discussing such news, a highly confusing concept must be clarified first: successful adaptation or integration does not mean the model was pre-trained on that specific chip.

    The industry’s common “Day 0 adaptation” usually refers to inference adaptation—ensuring that the model’s inference operators run correctly on a specific chip on the day of its release, completing forward inference and outputting reasonable results. The engineering effort for inference adaptation is relatively controllable, focusing on operator coverage, precision alignment, and inference framework integration.

    Training adaptation is an order of magnitude more difficult. The training process requires not only forward computation but also backward propagation for gradient calculation, optimizer state updates, cross-card gradient synchronization, and numerical stability control under mixed precision. Any operator missing, precision deviation, or communication anomaly in any link will lead to loss divergence, gradient explosion, or training interruption. Therefore, “training adaptation completed” is a much stronger technical claim than “inference adaptation completed,” yet it still does not mean “the base weights of this model were born on this chip.” When reading such technical reports, developers should carefully distinguish whether the report validates inference operators, the training pipeline, or complete from-scratch pre-training, as their technical implications are entirely different.

    3. Core Technical Path: Building a Native Multimodal Training Pipeline

    A highlight of this adaptation is the construction of a native FSDP2 multimodal training path. FSDP (Fully Sharded Data Parallelism) is one of the mainstream parallel strategies for current large model training. Its core idea is to shard model parameters, gradients, and optimizer states across different devices, with each card holding only a shard of the complete state. Aggregation is performed on demand during computation to significantly reduce single-card memory usage.

    As an evolved version of this concept, FSDP2 further enhances sharding flexibility and communication efficiency. Building a native FSDP2 path on domestic GPUs means the software stack must solve the following key problems:

    1. Model Loading and Sharding Scheduling: A nearly 3-trillion parameter model cannot be loaded entirely in a traditional manner. Parameter on-demand sharding and distributed placement must be completed during the initialization phase, correctly handling the different computational and memory characteristics between the vision encoder and the language backbone in multimodal models.
    2. Operator Adaptation and Precision Alignment: A large number of operators involved in backward propagation (such as various normalizations, attention variants, expert routing, etc.) need corresponding implementations in the domestic software stack. Their numerical behaviors must align with the original framework under mixed precision (e.g., BF16/FP32 mixed).
    3. Gradient Synchronization and Communication Optimization: Cross-node gradient aggregation relies on efficient collective communication primitives. The software stack needs to implement high-performance versions of AllReduce, AllGather, and other operations on its self-developed communication library, reasonably overlapping them with the computation process to hide communication overhead.
    4. Complete Pipeline Connection: The entire chain, from data loading, forward computation, and backward propagation to gradient clipping and optimizer updates, must operate in a closed loop without breakpoints.

    4. Stability Verification: What Dual-Node 16-GPU 400-Step Means

    In the experiment, the adaptation team used a dual-node cluster with 16 AI cards to complete cross-node joint training tests. All 16 training processes completed 400 continuous optimizer updates, with loss and gradient norms remaining finite throughout the process, without numerical overflow or abnormal interruptions.

    These validation metrics are worth interpreting:
    First, “400 continuous optimizer update steps” indicates that the training is not just a smoke test of a few steps, but has undergone enough iterations to expose potential memory leaks, communication deadlocks, or numerical accumulation errors.
    Second, “loss and gradient norms remain finite” is a core signal of training health. Loss divergence or NaN/Inf in gradient norms usually indicates operator precision issues or inappropriate mixed precision strategies.
    Third, “all 16 processes completed” verifies synchronization consistency in a multi-process distributed environment.

    Of course, it must be objectively pointed out that 400 steps is a reasonable scale for engineering feasibility verification, which is still far from complete large-scale pre-training (usually requiring hundreds of billions of tokens and tens of thousands of iterations). It proves that “the pipeline is feasible and numerically stable,” while training efficiency and stability at larger scales and longer cycles still require support from more real-world data.

    5. From Individual Cases to Systems: Accumulating Engineering Capabilities

    The success of a single adaptation can rely on a team’s concerted efforts, but sustainable competitiveness comes from an engineering system. It is understood that the manufacturer has previously landed multiple achievements in training domestic models on domestic compute, including from-scratch complete training of a 200-billion parameter scientific foundation model, full-stack native training of a 5D world model, and full-process training of an embodied intelligence brain model. They are also advancing the training of trillion-level parameter models.

    These cases collectively point to a mature support system: a training framework adaptation layer covering mainstream parallel strategies (data parallelism, tensor parallelism, pipeline parallelism, expert parallelism), standardized operator development and precision verification processes, multi-card collaborative communication and scheduling optimization, and training fault tolerance mechanisms like checkpoint resumption and fault detection. Once this system matures, the adaptation cycle for new models can be compressed from “months” to “weeks” or even “days.”

    6. Outlook: Moving from “Trainable” to “Out-of-the-Box Training”

    The ultimate goal of the domestic GPU training ecosystem is “out-of-the-box training”—developers can directly start training on domestic compute after getting the model code without worrying about underlying chip differences. To achieve this, continuous investment is needed in three layers:
    First, the breadth and depth coverage of the operator library to keep pace with the rapid evolution of model architectures.
    Second, the construction of automated toolchains, including automatic parallel strategy search, performance analysis, and bottleneck locating tools.
    Third, deep compatibility with mainstream training frameworks to reduce developer migration costs.

    Overall, this training adaptation of the nearly 3-trillion parameter model is a solid footprint in the evolution of domestic compute from “usable” to “easy to use.” For developers focusing on large model training infrastructure, understanding the technical connotations of training adaptation, the interpretation methods of stability verification, and the construction path of the engineering system holds more long-term value than just following the news itself.