Adapting a Domestic Chinese GPU for Trillion-Parameter LLM Training: A Technical Breakdown

    A domestic Chinese GPU vendor recently completed training adaptation for a nearly 3-trillion-parameter flagship model using 16 accelerators across two nodes, running 400 consecutive optimizer steps without numerical overflow or interruption. This article explains why training adaptation is fundamentally harder than inference adaptation, dissects the FSDP2-based training pipeline, and analyzes the engineering significance of cross-node joint training and the path toward out-of-the-box training on domestic silicon.

    1. Background: A Key Step for Domestic Compute in Training Adaptation

    A domestic Chinese GPU vendor recently completed training adaptation of an AI company’s flagship model with nearly 3 trillion parameters, using its flagship training-and-inference accelerator card and a self-developed software stack. In the experiment, 16 accelerator cards across two servers ran a cross-node joint training test: all 16 training processes completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout — no numerical overflow, no abnormal interruption.

    This progress drew industry attention because it touches a long-standing question: can domestic GPUs genuinely support the training phase of frontier large models, not just inference deployment? To understand the technical weight of this adaptation, several easily confused concepts must first be clarified.

    2. Training Adaptation ≠ Inference Adaptation ≠ Base Model Pretraining

    In industry discourse, “Day 0 adaptation” usually refers to rapid inference-level integration: right after a model is released, the compute platform implements the required operators and connects the inference pipeline so the model can run inference on that hardware. The barrier here is relatively modest — inference involves only forward computation, and the operator coverage, numerical precision requirements, and distributed complexity are all far below those of training.

    Training adaptation is an engineering challenge of an entirely different magnitude. It requires:

    1. Complete implementation of backpropagation operators: not only forward operators but also their gradient counterparts, with verified numerical correctness;
    2. Deep coordination with distributed training frameworks: data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism must all be efficiently supported at the hardware communication library level;
    3. Numerical stability over long runs: training spans thousands to tens of thousands of steps, where any precision drift, communication fault, or memory leak can be amplified into training failure;
    4. Optimizer state and mixed-precision management: gradient synchronization, loss scaling, and outlier handling at massive parameter scales all demand co-design of software and hardware.

    It must also be clear: successful training adaptation does not mean the model’s base pretraining was done on that chip. There are precedents where inference operators were validated across multiple hardware platforms while the provenance of the base training was never officially disclosed. Therefore, such achievements should be evaluated by the depth of the technical pipeline they verify, not over-interpreted as “a model was born on a chip.” The value of this adaptation lies in building a native FSDP2 multimodal training path, connecting the complete training pipeline from model loading and shard scheduling to gradient synchronization — a direct demonstration of training capability.

    3. Dissecting the Key Technologies of the FSDP2 Training Pipeline

    For a model with nearly 3 trillion parameters, a single GPU’s memory is nowhere near sufficient, making Fully Sharded Data Parallel (FSDP)-style techniques a necessity. Following the industry’s standard sharding approach, the complete training pipeline includes the following stages:

    1. Model loading and shard initialization

    Model parameters are sharded across processes at load time, avoiding the memory peak caused by loading the full model at a single point and then distributing it. Sharding granularity typically covers three layers — parameters, gradients, and optimizer states. Full three-layer sharding reduces per-GPU memory usage to 1/N of the original (where N is the degree of parallelism).

    2. Forward computation with on-demand parameter gathering

    Before each layer executes, communication primitives gather that layer’s complete parameters on demand; once computation finishes, they are immediately released, trading time for memory. Illustrative pseudocode:

    1. for layer in model.layers:
    2. all_gather(layer.params) # gather this layer's parameters
    3. output = layer.forward(input) # forward computation
    4. release(layer.params) # release parameters outside this shard

    3. Backpropagation and gradient reduction

    The backward pass likewise requires on-demand parameter gathering. After gradients are computed, a reduce-scatter is executed so each process retains only the gradient shard it owns, which feeds directly into the optimizer update.

    4. Gradient synchronization and numerical stability monitoring

    In cross-node scenarios, the communication efficiency and correctness of gradient synchronization determine training success. Loss curves and gradient norms must be continuously monitored: a sudden spike in gradient norm, or loss turning NaN/Inf, typically signals numerical overflow, communication errors, or misconfigured precision. In this experiment, “loss and gradient norms remained finite across all 400 steps” is precisely a validation of pipeline stability. Although 400 steps is still a small-scale verification compared with full pretraining (typically tens of thousands to hundreds of thousands of steps), consecutive anomaly-free execution already demonstrates the engineering correctness of the pipeline.

    5. Native support for the multimodal path

    Multimodal models introduce heterogeneous modules such as vision encoders, whose sharding strategies and memory usage patterns differ significantly from text-only models. Native support means the framework uniformly handles sharding and scheduling of different modality submodules, rather than patching them in ad hoc.

    4. Engineering Significance of 16-GPU Cross-Node Joint Training on Two Servers

    Compared with single-server multi-GPU setups, cross-node training introduces a critical new variable: network communication. A two-server, 16-GPU configuration may look small in scale, but its validation value lies in:

    • Cross-node communication pipeline established: inter-node gradient reduction depends on high-bandwidth interconnects and efficient collective communication implementations — the prerequisite for scaling to larger clusters;
    • Exposure of failure surfaces: in multi-process, multi-node environments, any defect in process scheduling, memory management, or communication timeouts tends to surface during continuous runs; 400 steps without interruption indicates the foundational engineering system is mature;
    • A baseline for scalability: from 16 GPUs to thousands or tens of thousands, the core pipeline logic remains the same; the main challenges shift to communication topology optimization and fault-tolerant scheduling.

    5. From “Can Train” to “Train Out of the Box”: Building the Engineering System

    Connecting a single pipeline is only the starting point. To achieve “train out of the box” for frontier large models on domestic full-function GPUs, a complete engineering system is required:

    1. Automation of operator adaptation: new model architectures emerge constantly; manually implementing operators one by one is unsustainable. Pipelines for automatic operator generation, compilation optimization, and correctness verification are needed;
    2. A mature communication library for multi-GPU coordination: covering mainstream parallelism strategies, supporting topology-aware communication scheduling, and reducing performance degradation when scaling across nodes;
    3. Automated toolchain: including training job orchestration, checkpoint resumption, automatic fault recovery, performance profiling, and bottleneck identification. Drawing on general cloud platform capabilities, container platforms, log services, and monitoring/alerting infrastructure can be deeply integrated with training frameworks to provide resource scheduling and observability for large-scale training jobs;
    4. Ecosystem compatibility: compatibility with mainstream training frameworks and model formats, lowering model migration costs so developers can switch the compute foundation without rewriting training scripts.

    From industry practice, “domestic chips training domestic models” has already produced several landmark results: complete from-scratch training of scientific foundation models with hundreds of billions of parameters, full-stack native training of world models, end-to-end training of embodied intelligence models — and progress toward training models at the trillion-parameter scale. These cases show that the shortcomings of domestic compute in the training phase are being systematically addressed.

    6. Conclusion

    Training adaptation is the litmus test for an AI chip’s maturity. From inference’s “can run” to training’s “can train,” and onward to engineering-ready “train out of the box,” each step requires the co-evolution of operators, frameworks, communication, and toolchains. Two servers with 16 GPUs completing 400 consecutive stable training steps is a solid starting point; validation at larger scales and over longer horizons will be the core task for the domestic compute ecosystem in the next phase. For developers, focusing on the general technical principles and engineering best practices of training pipelines holds more long-term value than following the marketing language of any single product.