Technical Deep Dive: Adapting a Domestic GPU for Training Near-3-Trillion-Parameter LLMs

    This article explores how a domestic full-function GPU successfully adapted to the training of a near-3-trillion-parameter large language model. It covers the technical gap between inference and training adaptation, the implementation of native FSDP2 for multimodal training, cross-node communication challenges in a dual-node 16-GPU setup, and the evolutionary path from "capable of training" to "out-of-the-box training."

    1. Why This Training Adaptation Matters

    Recently, a domestic GPU manufacturer disclosed that it rapidly completed the training adaptation for a near-3-trillion-parameter open-source large model using its flagship unified training and inference compute card and proprietary software stack. The adaptation was conducted in a dual-node, 16-GPU environment and completed 400 consecutive optimizer updates. Throughout the process, loss and gradient norms remained finite, with no numerical overflow or abnormal interruptions.

    While this may appear to be a routine “successful adaptation,” understanding the engineering difficulty of large-scale model training reveals that its technical threshold is significantly higher than a typical “Day 0 inference adaptation.”

    There are generally two types of adaptation in the industry:

    1. Inference Adaptation: This involves loading model weights, executing forward computation, and generating reasonable outputs. It primarily validates operator coverage and inference engine compatibility, which has a relatively lower barrier.
    2. Training Adaptation: This requires supporting complete backpropagation, gradient synchronization, and optimizer updates, while ensuring numerical consistency and long-term stability across multiple GPUs and nodes. This involves the entire training pipeline, presenting a magnitude of increased difficulty.

    To put this into perspective: a 3-trillion-parameter model requires approximately 6TB of memory space just to store weights in BF16 precision, far exceeding the capacity of any single machine. To get training running, systematic methods such as parameter sharding, gradient sharding, and optimizer state sharding are essential. To keep training stable, issues like cross-node communication efficiency, numerical precision under mixed precision, and exception recovery must be resolved. Therefore, 400 consecutive stable updates, though far from a full pre-training scale, is a critical milestone for validating the correctness of the training pipeline.

    2. The Technical Core: Native FSDP2 Training Path

    Based on the disclosed information, this adaptation built a native FSDP2 (Fully Sharded Data Parallelism 2) multimodal training path, streamlining the complete pipeline from model loading and sharded scheduling to gradient synchronization.

    Advantages of FSDP2 over Traditional Data Parallelism

    Traditional DistributedDataParallel (DDP) requires each GPU to hold a complete replica of the model, computing gradients locally and synchronizing the full set during training. This approach is entirely unfeasible for models at the hundreds-of-billions parameter scale—a single GPU’s memory cannot hold the parameters, gradients, and optimizer states.

    The core idea of FSDP is to shard parameters, gradients, and optimizer states across all GPUs. During forward and backward computation for a specific layer, the parameters for that layer are temporarily aggregated on-demand and immediately released once computed. The memory footprint can be roughly compared as:

    1. DDP memory ≈ Full parameters + Full gradients + Full optimizer states + Activations
    2. FSDP memory ≈ (Total above / N GPUs) + Temporary aggregation for current layer + Activations

    With 16 GPUs as an example, the theoretical static memory pressure is reduced to 1/16th of the original. Combined with activation recomputation and CPU Offload, training ultra-large models becomes possible.

    Improvements in FSDP2

    Compared to the first generation, FSDP2 utilizes a per-parameter sharding approach based on DTensor, rather than the traditional flattened 1D sharding. This brings several practical benefits:

    • More Controllable Sharding Granularity: Sharding strategies can be finely tuned at the parameter dimension, avoiding parameter boundary alignment issues caused by flat sharding.
    • Better Compatibility with Quantization and Mixed Precision: Parameter shapes remain intact after sharding recovery, making it easier to apply layer-by-layer precision strategies.
    • More Suitable for Multimodal Scenarios: In multimodal models, the parameter scales of visual encoders, language models, and projection layers differ vastly. Per-parameter sharding allows flexible scheduling tailored to different modules.

    This is why this adaptation specifically highlights the “multimodal training path.” Flagship open-source models at the 3-trillion-parameter level typically adopt a native multimodal architecture, where the differing training behaviors of vision and language modules impose higher demands on sharding and scheduling.

    3. Dual-Node 16-GPU: Cross-Node Training Challenges

    Intra-node GPU interconnects typically use high-bandwidth dedicated interfaces, whereas cross-node communication relies on networks with bandwidth one to two orders of magnitude lower. The dual-node 16-GPU setup means that training must genuinely cross node boundaries, validating:

    1. Cross-node Scheduling for Parameter All-Gather: During forward/backward passes, each layer requires aggregating parameters from all 16 processes. Whether the “prefetch” strategy—designed to overlap communication with computation—works effectively directly dictates training throughput.
    2. Correctness and Efficiency of Gradient Reduce-Scatter: After backpropagation, gradients must be reduced and sharded. This step is critical for numerical consistency.
    3. Optimizer State Synchronization: 400 optimizer updates mean 400 complete parameter updates and state maintenance. Any numerical deviation accumulated over these updates could lead to loss divergence.
    4. Fault and Numerical Protection: Gradient overflow, common in mixed-precision training, requires mechanisms like dynamic loss scaling. The report emphasizes that “loss and gradient norms remained finite,” indicating the numerical protection system functioned correctly.

    For domestic GPUs, this step tests not only hardware computing power but also the software stack’s communication libraries, collective communication operator optimizations, and compatibility layers with mainstream training frameworks. Running 400 stable steps proves that the engineering maturity of the entire pipeline has crossed the threshold of “capable of training.”

    4. Clarification: Training Adaptation ≠ Pre-training

    The reporting party also clarified a common public misconception: successful training adaptation does not mean the model was pre-trained on these specific chips.

    For instance, a large model vendor previously validated both a domestic NPU and mainstream GPUs in a technical report, verifying the feasibility of fine-grained expert parallelism and other training/inference operators. This falls under technical route validation. Conversely, what compute infrastructure was used for the base model’s pre-training is typically not officially disclosed.

    The distinction can be understood as follows:

    • Operator Validation/Training Adaptation: Proves that “this chip + software stack has the capability to run the model’s training.” It is a capability validation.
    • Base Pre-training: Requires clusters of thousands of chips or more running continuously for months with high availability. It is a comprehensive project of scale and economics.

    Confusing the two can lead to misjudgments regarding the maturity of domestic compute power. Accurately speaking, training adaptation is the critical leap from “can infer” to “can train stably,” while large-scale pre-training requires continuous breakthroughs in cluster scale, fault recovery, and MFU (Model FLOPs Utilization).

    5. From “Capable of Training” to “Out-of-the-Box Training”: The Evolution Path

    Notably, this manufacturer has previously executed several large-scale training practices, including: completing a full from-scratch training of a scientific foundation model with over 200 billion parameters; supporting the full-stack native training of the world’s first 5D world model; and collaborating with research institutions to complete the full-process training of an embodied AI brain model, while currently advancing trillion-parameter model training collaborations.

    These practices outline a clear evolution path for domestic AI compute power:

    1. Operator Adaptation Phase: Filling in the required operators so mainstream open-source models “can run.”
    2. Inference Deployment Phase: Refining inference engines and quantization schemes to achieve “rapid deployment.”
    3. Training Pipeline Phase: Enabling sharded parallelism, gradient synchronization, and mixed precision to achieve “stable training.”
    4. Toolchain Automation Phase: Solidifying operator adaptation, multi-GPU coordination, and performance tuning into an automated toolchain, ultimately achieving “out-of-the-box training”—where new models can be adapted without deep manual intervention.

    From a developer’s perspective, the core value of this evolution is lowering the barrier to entry. When training adaptation relies heavily on manual work, only expert teams from the chip manufacturer can complete it. Once the toolchain matures, ordinary algorithm teams can fine-tune and train large models on domestic GPUs just as easily as they would on mainstream GPUs. For building autonomous and controllable AI infrastructure, “out-of-the-box training” is the true hallmark of maturity.

    6. Conclusion

    Dual-node 16-GPU, 400 stable updates—these numbers may not seem grand, but they validate the most critical step: domestic full-function GPUs now possess the capability to support the entire pipeline of cutting-edge, ultra-large model training. From operator coverage to the native FSDP2 training path, and from cross-node communication to numerical stability protection, each step represents a hard metric for software stack engineering. Moving forward, as automated toolchains mature and cluster scales expand, domestic compute power is poised to transition from “usable” to “user-friendly” in the core scenario of large model training.