Engineering Practices and Verification Methods for Adapting Domestic GPUs to Train Trillion-Parameter LLMs

    Recently, a Chinese GPU vendor announced the successful training adaptation of a nearly 3-trillion parameter open-source model, achieving 400 steps of continuous stable training on a dual-node, 16-GPU setup. This article explores the engineering practices and verification methods behind adapting domestic GPUs for large-scale model training. It clarifies the critical difference between training and inference adaptation, details the construction of a native FSDP2 training pipeline, and explains the 400-step continuous verification method. Finally, it outlines the engineering path required to transition from "capable of training" to "out-of-the-box training" for AI infrastructure.

    Introduction

    Recently, a Chinese GPU vendor announced the successful training adaptation of a frontier open-source model with nearly 3 trillion parameters. Using its flagship integrated AI training and inference card and proprietary software stack, the vendor achieved 400 steps of continuous stable training across a dual-node, 16-GPU setup. While this progress has attracted significant industry attention, it is essential to clarify a commonly confused concept before discussing its value: training adaptation and inference adaptation are two distinct things.

    1. The Essential Difference Between Training and Inference Adaptation

    1.1 What is Day 0 Inference Adaptation?

    Over the past few years, domestic compute chip vendors have frequently announced “Day 0 adaptation” on the release day of new open-source LLMs. This primarily refers to inference-level adaptation: ensuring the model’s inference operators execute correctly on the chip, with output results aligned with the reference implementation. Inference adaptation has a relatively limited verification scope, focusing mainly on operator coverage and numerical precision along the forward computation path.

    1.2 The Technical Threshold of Training Adaptation

    Training adaptation is far more complex. Beyond correct forward computation, it requires:

    • A complete and usable gradient computation path for backpropagation, involving gradient registration and implementation for numerous composite operators;
    • Full readiness of training components like optimizer state management, learning rate scheduling, and gradient clipping;
    • Stable and efficient communication primitives (e.g., AllReduce, AllGather, ReduceScatter) within multi-GPU parallel frameworks;
    • Robust numerical stability control mechanisms (loss scaling, overflow detection) for mixed-precision training.

    A typical counter-example is when a frontier model’s technical report verifies multiple hardware routes; the industry consensus is that this represents inference-level operator verification, not proof that the base model was pre-trained on that hardware. Therefore, “successful adaptation” does not equal “pre-trained on this chip.” When evaluating any chip vendor’s adaptation results, it is crucial to identify which type of adaptation was actually achieved.

    2. Training Pipeline Breakdown: From Model Loading to Gradient Synchronization

    2.1 Building a Native FSDP2 Training Path

    For models with trillions of parameters, a single GPU’s memory cannot hold the complete model weights, gradients, and optimizer states; thus, parameter sharding is mandatory. FSDP (Fully Sharded Data Parallel) is the industry-standard strategy, and its second-generation implementation (FSDP2) offers further optimizations in sharding granularity and compute-communication overlap.

    The GPU vendor built a native FSDP2 multimodal training path, establishing the following complete pipeline:

    1. Model Loading: Supports weight sharding loading for ultra-large parameter scales, avoiding single-node memory bottlenecks.
    2. Shard Scheduling: Distributes parameters, gradients, and optimizer states across training processes according to sharding strategies.
    3. Communication Scheduling: Overlaps computation with communication for forward AllGather and backward ReduceScatter.
    4. Gradient Synchronization: Ensures numerical correctness and temporal consistency for cross-node gradient aggregation.

    2.2 Verification Method: 400-Step Continuous Optimizer Updates

    Verifying training adaptation cannot stop at “it runs”; it must prove “it trains stably.” This verification utilized a dual-node, 16-GPU setup for cross-node joint training. All 16 training processes completed 400 continuous optimizer updates. Key observation metrics included:

    • Loss: Remained finite throughout, showing an expected convergence trend.
    • Gradient Norm (grad norm): No explosions or abnormal fluctuations.
    • Numerical Health: No NaN/Inf overflow.
    • Stability: No abnormal interruptions, communication timeouts, or process deadlocks.

    This “N continuous steps without anomalies” verification method is actually a standard health check in large model engineering. It covers tests across three dimensions: memory pressure (optimizer state residency), communication pressure (cross-node collective communication), and numerical pressure (gradient updates under mixed precision). The schematic monitoring code logic is as follows:

    1. for step in range(400):
    2. loss = model(batch)
    3. loss.backward()
    4. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    5. assert torch.isfinite(loss), f"loss overflow at step {step}"
    6. assert torch.isfinite(grad_norm), f"grad overflow at step {step}"
    7. optimizer.step()
    8. optimizer.zero_grad()
    9. log_metrics(step, loss.item(), grad_norm.item())

    It is important to note that 400 steps represent an early milestone in adaptation verification. While there is still a distance to go before true long-cycle pre-training (which typically requires tens of thousands of steps or more), it proves that the shortest closed loop of the training pipeline has been established.

    3. Implementation Results and Capability Boundaries

    3.1 Verified Training Practices

    According to public information, the vendor has achieved several milestones in training domestic models on domestic chips:

    • Completed full from-scratch training of a 236-billion-parameter scientific foundation model, verifying full-cycle from-scratch pre-training capabilities.
    • Supported the full-stack native training of the world’s first 5D world model by a university, covering complex multimodal and world model architectures.
    • Collaborated with research institutions to complete the full-process training of an embodied AI brain model, involving vision-language-action joint modeling.
    • Is currently advancing joint training of trillion-parameter models.

    3.2 Objective Assessment of Capability Boundaries

    Objectively, these results prove the feasibility of from-scratch pre-training on domestic GPUs at scales ranging from tens of billions to hundreds of billions of parameters. However, regarding ultra-large scale (trillion-level) pre-training in terms of cluster size, MFU (Model FLOPs Utilization), and long-term stability, the industry still requires more public data for verification. Assessments should focus on:

    • Continuous training duration and failure rates in clusters with over 1,000 GPUs.
    • The gap in end-to-end MFU compared to similar solutions.
    • The maturity of production-grade features like checkpoint resumption and automatic fault tolerance.

    4. The Engineering Path from “Capable of Training” to “Out-of-the-Box Training”

    The ultimate goal of training adaptation is to lower the barrier to entry. A complete engineering system should encompass four layers:

    1. Operator Layer: Covers all forward and backward operators of mainstream model architectures, supporting mixed-precision and low-precision training.
    2. Parallel Layer: Supports flexible combinations of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, providing automatic parallel strategy search.
    3. Toolchain Layer: Provides automated tools such as training configuration templates, performance profilers, memory analyzers, and communication topology tuning.
    4. Ecosystem Layer: Maintains compatibility with mainstream open-source training frameworks to reduce migration costs, while integrating with general cloud infrastructure like container platforms, object storage, logging services, and monitoring/alerting to build an end-to-end training Ops system.

    For enterprise users, a practical adoption recommendation is to first validate full fine-tuning and instruction tuning on small to medium-sized models on domestic compute, then gradually scale up to large-scale continued pre-training, and finally consider from-scratch pre-training. This progressive path allows for accumulating engineering experience while keeping risks manageable.

    5. Conclusion

    The recent training adaptation of the nearly 3-trillion-parameter model marks a critical step for domestic GPUs transitioning from “usable for inference” to “trustworthy for training.” Stable training across a dual-node, 16-GPU setup for 400 steps is a solid engineering milestone, but the more noteworthy aspect is the underlying complete FSDP2 training pipeline and engineering system. As automated toolchains mature and real-world data from 1,000-GPU-class clusters accumulates, the evolution of frontier LLMs on domestic full-function GPUs from “capable of training” to “out-of-the-box training” will become a vital direction for AI infrastructure development.