Technical Analysis: Adapting Domestic GPUs for Trillion-Parameter LLM Training

    This article explores the technical practice of adapting domestic GPUs for training large-scale models with nearly three trillion parameters. It clarifies the critical distinction between training adaptation and inference adaptation, details the construction of a native distributed training path using FSDP2-style sharding, and analyzes stability verification metrics across multiple nodes. Finally, it outlines the engineering system required to transition from single-point validation to out-of-the-box training capabilities.

    I. Training Adaptation vs. Inference Adaptation: Two Commonly Confused Concepts

    Recent news highlighted a domestic full-function GPU vendor successfully adapting its flagship computing cards and proprietary software stack for training an open-source large language model with nearly three trillion parameters. This development has drawn industry attention, but it is crucial to first clarify a commonly confused concept: training adaptation is not pre-training, and successful adaptation does not mean the model was natively born on that specific chip.

    In the compute chip industry, “Day 0 adaptation” usually refers to completing inference-side adaptation on the day an open-source model is released, allowing users to run model inference immediately on the target hardware. This type of adaptation primarily solves operator compatibility for inference—mapping the forward-pass operators to the target hardware’s compute libraries and verifying output correctness.

    Training adaptation is an order of magnitude more difficult. Training requires not only forward computation but also backpropagation, gradient calculation, optimizer state updates, and parameter synchronization. It imposes stringent requirements on operator coverage, numerical precision, memory management, and multi-GPU communication capabilities. In other words, inference adaptation verifies if a “model can run,” whereas training adaptation verifies if a “model can learn.”

    Typical industry cases also validate this distinction: certain leading models verify multiple hardware routes in their technical reports. However, a closer analysis reveals that most of these parallel verifications target operator validation for inference scenarios, such as fine-grained expert parallelism (EP), rather than serving as declarations of the compute source for base model pre-training. Therefore, evaluating the training capability of a domestic chip requires verifying whether it has established a complete training loop, not merely an inference interface.

    II. Building a Native Distributed Training Path

    A core outcome of this adaptation is the construction of a native Fully Sharded Data Parallel (FSDP2-style) multimodal training path, enabling the complete training loop from model loading and sharding to gradient synchronization. This path involves several key stages:

    1. Model Loading and Sharding

    For a model with nearly three trillion parameters, a single GPU’s memory cannot hold the complete model weights, gradients, and optimizer states. The full sharding strategy distributes parameters, gradients, and optimizer states across all participating GPUs. Each card only holds its assigned shard and dynamically gathers the required parameters via collective communication during computation. The illustrative initialization logic is as follows:

    1. # Illustrative code: Full sharding training initialization flow
    2. model = load_model(config) # Load model structure
    3. sharded_model = fully_shard(model) # Shard parameters/gradients/optimizer states
    4. optimizer = build_optimizer(sharded_model)
    5. for batch in dataloader:
    6. loss = sharded_model(batch) # Gather parameters on-demand during forward pass
    7. loss.backward() # Shard and reduce gradients during backward pass
    8. optimizer.step() # Update local shards only

    2. Sharding Scheduling

    Multimodal models often contain heterogeneous components such as vision encoders, language backbones, and alignment modules, each with significantly different compute densities and memory footprints. Effective sharding scheduling must determine the sharding granularity and recomputation strategies based on module characteristics, striking a balance between memory pressure and communication overhead.

    3. Gradient Synchronization

    In cross-node training, gradient reduction and sharding rely on high-performance collective communication libraries. Communication bandwidth, topology awareness, and communication-computation overlap mechanisms directly determine multi-GPU scaling efficiency.

    III. Stability Verification: The Significance of 400 Continuous Steps on 2 Nodes and 16 GPUs

    During experimental verification, the vendor utilized 2 nodes with 16 GPUs for cross-node joint training tests. All 16 training processes completed 400 continuous optimizer updates. The training loss and gradient norm remained finite throughout, with no numerical overflow or abnormal interruptions.

    While this data seems basic, it is highly informative:

    • 400 continuous optimizer updates: This means it didn’t just complete a single forward-backward pass but went through complete parameter update loops. Numerical issues (e.g., gradient underflow in mixed precision, precision loss in communication) often only surface after accumulating several steps. Running stable for hundreds of steps is a critical signal of training loop health.
    • Finite loss and gradient norm: The most common failure mode in large model training is loss mutating to NaN/Inf, usually stemming from numerical overflow, operator precision defects, or communication data errors. Remaining finite throughout cross-validates the correctness of operator implementation, precision strategies, and communication links.
    • 16 processes across nodes without interruption: This verifies fault tolerance and coordination in multi-node environments, including network stability, process group management, and memory fragmentation control.

    From an engineering rigor perspective, a stability test of several hundred steps is a necessary but not sufficient condition for “trainability.” A complete pre-training run often requires tens of thousands to hundreds of thousands of steps, presenting much harsher tests for hardware failure rates, checkpoint recovery, and long-term numerical stability.

    IV. From Single-Point Verification to an Engineering System

    More noteworthy is the engineering maturation of training capabilities. The vendor has reportedly implemented several achievements in training models on domestic chips: completing a full from-scratch training of a 200-billion-parameter scientific foundation model, supporting full-stack native training of a multi-dimensional world model, and completing full-process training of an embodied AI brain model in collaboration with research institutions. They are currently advancing trillion-parameter model training with ecosystem partners.

    These cases outline a clear capability evolution: from-scratch pre-training validates long-cycle reliability, vertical domain model training validates the completeness of the full-stack toolchain, and the trillion-parameter goal pushes the scaling limits of distributed systems. A mature large model training engineering system typically needs to cover the following layers:

    • Operator Layer: High-performance operators covering mainstream model structures, supporting mixed precision and custom operator extensions.
    • Parallel Strategy Layer: Flexible combination and automatic search of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.
    • System Layer: Memory pool management, communication-computation overlap, asynchronous checkpointing, and fast fault recovery.
    • Toolchain Layer: End-to-end tools from model migration and performance profiling to automated tuning, reducing migration costs.

    V. Outlook: From “Can Train” to “Out-of-the-Box Training”

    The ultimate goal of using domestic computing power to support large model training is to allow developers to migrate training tasks to these GPUs at near-zero cost, without worrying about underlying hardware differences. This means future efforts will shift from “tackling individual models” to “platform capability building.” Through standardized operator interfaces, automated parallel strategy search, comprehensive debugging and diagnostic tools, and deep compatibility with mainstream training frameworks, “out-of-the-box training” for frontier large models will become a reality.

    For enterprises and developers evaluating domestic training compute, it is recommended to focus on three dimensions: the completeness of the training loop rather than single-point demos; long-term stability data rather than short-term run-throughs; and the actual migration costs dictated by toolchain maturity. As domestic full-function GPUs continue to refine operator adaptation, multi-GPU coordination, and automated toolchains, the co-evolution of compute and models is promising. Furthermore, on the cloud side, supporting general cloud capabilities like object storage, container platforms, and monitoring will further lower the engineering barrier for large-scale training.