A Technical Analysis of Domestic GPU Adaptation for Ultra-Large Model Training

    This article analyzes the technical breakthrough of a domestic full-function GPU completing training adaptation for a near 3-trillion parameter model. It explores the critical differences between training and inference adaptation, the engineering value of FSDP2, and the key requirements for achieving long-term training stability. The piece also outlines a systematic path toward out-of-the-box training readiness and provides insights for developers evaluating domestic computing power.

    As large model parameter scales evolve from hundreds of billions to trillions, the demands on underlying computing power have reached unprecedented heights. Recently, a domestic GPU vendor successfully completed training adaptation for a flagship large language model with nearly 3 trillion parameters using its flagship training-inference integrated computing card and self-developed software stack. In a 2-node, 16-card cross-node environment, the setup achieved 400 continuous optimizer updates. Throughout the process, loss and gradient norms remained finite, with no numerical overflow or abnormal interruptions. This progress warrants a deep technical analysis: what key stages must domestic computing power bridge on the large model training path?

    1. The Essential Difference Between Training and Inference Adaptation

    First, it is crucial to clarify a commonly confused concept. In the industry, “Day 0 adaptation” usually refers to quickly enabling inference for a newly released model on a specific chip. This involves compatibility verification on the inference side, with most effort spent on operator coverage and graph optimization.

    Training adaptation is significantly more challenging, requiring:

    • Full Forward and Backward Coverage: Training requires complete automatic differentiation support. The implementation precision and performance of backward operators directly impact convergence quality.
    • Gradient Synchronization and Communication: Multi-card scenarios involve collective communications like AllReduce, AllGather, and ReduceScatter, where communication efficiency often becomes the bottleneck.
    • Optimizer State Management: Optimizers like AdamW introduce state memory several times the size of the parameters, placing stringent requirements on memory management and shard scheduling.
    • Long-term Numerical Stability: Mechanisms such as dynamic loss scaling in mixed-precision training, gradient clipping, and anomaly detection must operate reliably.

    Therefore, completing training adaptation for a trillion-parameter model marks a critical transition for a chip and its software stack from “capable of inference” to “capable of training.”

    2. FSDP2: The Engineering Value of Fully Sharded Data Parallel

    In this adaptation, a native FSDP2 multimodal training path was constructed. FSDP2 is an evolved version of the industry’s mainstream Fully Sharded Data Parallel approach. Its core idea is to shard model parameters, gradients, and optimizer states across all compute cards, aggregating them temporarily on-demand during forward and backward computations.

    Compared to earlier implementations based on flattened parameter wrapping, FSDP2 shards directly based on device-native tensors, bringing several advantages:

    1. Higher Memory Efficiency: Avoids additional memory copy and padding overhead.
    2. Natural Integration with Mixed Precision: The sharding granularity aligns with parameter dimensions, facilitating fine-grained management of bf16/fp16.
    3. Low Code Intrusion: Requires fewer modifications to model code, keeping migration costs manageable.

    Taking a 2-node, 16-card training setup as an example, a typical parallel structure can be illustrated as follows:

    1. # Pseudo-code: FSDP2 full sharding wrapping
    2. model = FSDP2(
    3. model,
    4. sharding_strategy="full_shard", # Full sharding for parameters/gradients/optimizer states
    5. mixed_precision_dtype="bf16",
    6. reduce_dtype="fp32", # Maintain high precision for gradient reduction
    7. device_mesh=init_device_mesh("cuda", (2, 8)) # 2-node 16-card topology
    8. )

    Bridging the complete pipeline—from model loading and shard scheduling to gradient synchronization—means that every stage, from data reading and shard initialization to backpropagation and optimizer updates, executes correctly and efficiently on the domestic hardware and software stack.

    3. Training Stability Verification: Why 400 Steps Matter

    The technical report stating that “16 training processes completed 400 continuous optimizer updates with loss and gradient norms remaining finite” may seem mundane, but it is a standard and critical validation step in large-scale training.

    The most common failure mode in large-scale training is not an explicit error exit, but rather silent numerical anomalies: gradient explosions, NaN losses, or individual ranks hanging due to communication timeouts. Validation strategies typically include:

    • Gradient Norm Monitoring: Logging the global gradient norm step-by-step; sustained growth or severe oscillation indicates instability.
    • Loss Curve Consistency: Comparing the loss at identical steps under different parallel configurations to verify numerical correctness.
    • Multi-Rank Health Checks: Ensuring all processes advance synchronously without any single card lagging or deadlocking.
    • Exception Interruption Rate Statistics: Long-term continuous operation is an effective means to test the stability of communication libraries, drivers, and schedulers.

    Completing 400 continuous updates without anomalies demonstrates that the entire chain, from underlying operators to the upper-level framework, possesses the reliability foundation required to support long-cycle training.

    4. A Systematic Path from “Capable of Training” to “Out-of-the-Box”

    It is worth noting that the vendor has prior implementation cases, including fully training a 236-billion-parameter scientific foundation model from scratch and supporting the full-process training of world models and embodied AI models, while currently advancing training for trillion-parameter models. This indicates that their capability is not a single-point breakthrough but a gradually formed engineering system, which can be summarized in three layers:

    1. Operator Layer: Covers the full set of forward/backward operators needed for training, with a focus on optimizing matrix multiplications, attention, and normalization operators that account for the highest proportion in large models.
    2. Collaboration Layer: Multi-card and multi-node communication optimization, topology-aware scheduling, and memory fragmentation management.
    3. Toolchain Layer: Automated adaptation tools, performance profiling, fault diagnosis, and checkpoint resumption capabilities, lowering the migration cost from other platforms.

    5. Implications for the Industry

    For developers and enterprise users focusing on domestic computing power, this progress conveys two signals. First, the shortcomings of domestic full-function GPUs on the training side are being systematically addressed, turning the concept of “domestic chips training domestic models” into a reproducible engineering practice. Second, when evaluating a training-inference chip, one should focus on whether it possesses complete training pipeline verification, parallel strategy support, and stability evidence, rather than just looking at peak computing power metrics.

    In the future, as operator adaptation, multi-card collaboration, and automated toolchains continue to mature, achieving “out-of-the-box” training for frontier large models on domestic GPUs will be a highly anticipated direction. For technical teams, proactively familiarizing themselves with universal methodologies like full-shard parallelism, mixed-precision training, and multi-node communication tuning remains a core capability worth long-term investment, regardless of how underlying hardware evolves.