Domestic GPU Completes Training Adaptation for a Trillion-Parameter LLM: Engineering Insights

    This article examines a recent engineering milestone in which a domestic GPU platform successfully completed training adaptation for an open-source large language model with nearly 3 trillion parameters. Using 16 accelerators across two nodes, the training run achieved 400 consecutive optimizer updates with stable loss and gradient norms. The discussion clarifies the key differences between inference adaptation and training adaptation, details the native FSDP2 and expert-parallel training path, explains the significance of the 400-step stability validation, and outlines the four-layer engineering framework needed to move from "can train" to "ready to train out of the box." Practical recommendations for developers planning large-model training on domestic accelerators are also provided.

    From Inference Adaptation to Training Adaptation

    A domestic GPU vendor recently completed training adaptation for a flagship open-source large language model with nearly 3 trillion parameters, using its high-end training-and-inference accelerator and proprietary software stack. In the test, 16 accelerators across two nodes performed cross-node joint training. All 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout—no numerical overflow or abnormal interruption occurred.

    This progress is significant because it marks a shift in domestic compute capability for frontier models: from “inference-ready” to “training-capable.”

    Training Adaptation vs. Inference Adaptation: More Than a One-Word Difference

    The industry’s common “Day-0 adaptation” typically refers to enabling inference for a new open-source model on a given chip—loading the model weights and producing correct outputs. Training adaptation, however, is a fundamentally different challenge:

    • Operator coverage: Inference mainly requires forward-pass operators. Training demands full support for the entire chain—forward pass, backward pass, optimizer state updates, gradient reduction—with every operator numerically aligned to the reference implementation.
    • Memory and communication pressure: Training must maintain parameters, gradients, and optimizer states (e.g., Adam’s first and second moments), consuming several times more memory than inference. Gradient synchronization across multiple cards imposes higher demands on communication bandwidth and topology awareness.
    • Stability requirements: Training is a long-running task that must withstand thousands or even tens of thousands of consecutive steps without numerical overflow, gradient explosion, or abnormal process exit.

    A common misunderstanding needs clarification: a model being “successfully adapted” on a chip does not mean the model’s base pretraining was performed on that chip. For instance, a well-known open-source model’s technical report mentions two hardware routes in parallel, but industry consensus is that this refers to inference-operator validation for fine-grained expert parallelism, not an official claim about the pretraining compute source. Distinguishing “adaptation validation” from “pretraining fact” is a prerequisite for rationally assessing domestic compute progress.

    Building a Native Distributed Training Path

    The core technical achievement of this adaptation is the construction of a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path, which connects the complete pipeline from model loading and sharding to gradient synchronization.

    Compared with the previous generation, FSDP2’s key improvement is sharding parameters at the granularity of per-parameter tensors instead of large parameter blocks, enabling finer memory control and more flexible overlap of communication and computation. Native support for FSDP2 on the domestic GPU software stack provides:

    1. Model loading: Weight shards are directly placed in each card’s local memory, avoiding peak memory from full-model loading.
    2. Shard scheduling: During forward computation, parameter shards are gathered on demand (all-gather) and released immediately after computation; they are gathered again during backpropagation.
    3. Gradient synchronization: Gradients are reduced in sharded form (reduce-scatter), with each card maintaining only the gradients and optimizer states for its assigned shards.

    For a mixture-of-experts (MoE) architecture with nearly 3 trillion parameters, expert parallelism (EP) is also required: different experts are assigned to different devices, and tokens are routed via all-to-all communication. This demands complete and efficient support for communication primitives in the software stack.

    What 400 Consecutive Steps of Stable Training Means

    A “two-node, 16-card, 400-consecutive-optimizer-update” run may seem small in scale, but as a validation standard for training adaptation, it is quite compelling:

    • Finite loss throughout: The forward and backward numerical implementations are correct—no divergence caused by operator precision errors.
    • No abnormal gradient norm spikes: Gradient reduction, loss scaling, and gradient clipping all function properly.
    • No abnormal interruption: Multi-card communication, memory management, and process scheduling run without resource leaks or deadlocks over an extended period.

    Typical training adaptation validation starts from single-card, small-step tests and gradually scales to multi-node, multi-card runs with hundreds of steps, then compares loss curves against reference hardware implementations. The 400-step stable run is an important milestone toward “trainability,” but production-scale training (tens of thousands of steps, thousand-card clusters, weeks of uninterrupted operation) still requires further validation.

    From “Can Train” to “Ready to Train Out of the Box”: Four Engineering Layers

    According to public information, the vendor has already delivered multiple domestic-chip training results for domestic models, including pretraining a 200-billion-parameter scientific foundation model from scratch, full-stack native training of a world model, and end-to-end training of an embodied intelligence model. It is also advancing training for trillion-parameter models. The engineering system distilled from these practices can be summarized in four layers:

    1. Operator layer: Complete coverage of all forward/backward operators required for training, with numerical alignment to mainstream reference implementations. Key operators (attention, normalization, MoE routing) have high-performance fused implementations.
    2. Parallelism strategy layer: Flexible combination of data parallelism, tensor parallelism, pipeline parallelism, expert parallelism, and sequence parallelism, with automatic or semi-automatic sharding schemes based on cluster topology.
    3. Fault tolerance and observability layer: Automatic checkpoint saving and recovery, failed-node detection and hot replacement, and full-pipeline monitoring and alerting for loss, gradient norms, memory, and communication bandwidth.
    4. Toolchain layer: Model migration scripts, configuration templates, and performance analysis/tuning tools that let developers migrate existing training jobs to domestic GPUs with minimal changes.

    Only when all four layers are fully integrated can frontier models truly move from “can train” to “ready to train out of the box” on domestic full-featured GPUs.

    Practical Takeaways for Developers

    For teams planning large-model training on domestic compute, this case offers several actionable guidelines:

    • Validate precision before performance: Early in adaptation, prioritize verifying loss curve alignment with the reference implementation rather than chasing throughput metrics.
    • Scale incrementally: Start with a single card, then move to single-node multi-card, then multi-node multi-card. Set clear stability acceptance criteria at each stage (e.g., consecutive steps, gradient-norm thresholds).
    • Focus on software stack maturity: Version compatibility across the distributed training framework, communication library, and operator library is more critical to training success than raw single-card compute specs.
    • Leverage cloud resources for validation: If your own cluster is insufficient, use mainstream cloud platforms’ general capabilities—GPU bare metal, container platforms, object storage, and monitoring/alerts—to quickly build a training validation environment and reduce trial-and-error cost.

    Conclusion

    Completing training adaptation for a nearly 3-trillion-parameter model on domestic GPUs and achieving continuous stable training is another important milestone for the domestic compute ecosystem. However, it must be recognized that the gap between a 16-card, 400-step validation run and a thousand-card cluster performing full trillion-parameter pretraining still includes multiple engineering challenges: parallel efficiency, fault recovery, and long-duration stability. As operator adaptation, multi-card coordination, and automated toolchains continue to improve, the possibilities for domestic compute to support frontier large-model training are being opened step by step.