Practical Analysis: Adapting a Domestic Full-Function GPU for Trillion-Parameter Open-Source LLM Training

    This article analyzes the successful adaptation of a domestic full-function GPU for training a near-3-trillion-parameter open-source large language model. It clarifies the distinction between "training adaptation" and "pre-training," dissects the technical components including native FSDP2 implementation and the complete training pipeline, and discusses the future evolution from "capable of training" to "out-of-the-box training," emphasizing the importance of engineering systems and ecosystem maturity.

    1. Background: A Milestone-Defining Training Adaptation

    Recently, a domestic GPU enterprise announced that it has completed the training adaptation for a frontier open-source large language model (approaching 3 trillion parameters) based on its flagship integrated training and inference accelerator card and self-developed software stack. In a cross-node joint training test utilizing two machines with a total of 16 cards, all 16 training processes completed 400 continuous optimizer updates. The loss curve and gradient norm remained finite throughout the process, with no numerical overflow or abnormal interruptions.

    The significance of this news lies in the fact that it validates “stable training capability” rather than just “inference capability.” In the large model technology stack, the engineering difficulty between these two differs by more than an order of magnitude.

    2. Clarifying Concepts: Training Adaptation ≠ Pre-Training Production

    Before diving into the technical analysis, it is necessary to clarify a commonly misunderstood concept.

    “Training adaptation” refers to enabling a specific chip platform to correctly and stably run the target model’s training process, covering the complete sequence of forward computation, backpropagation, gradient synchronization, and optimizer updates. Conversely, stating that “the model was pre-trained on this chip” is an entirely different matter, involving the original computing cluster used during the pre-training phase.

    The industry has seen similar discussions before: some models’ technical reports validate different hardware routes in parallel, such as providing operator validation results on both NPUs and GPUs. However, such validations typically focus on the correctness and performance of inference operators, which does not equate to the base pre-training occurring on that hardware. Leading model teams generally do not officially disclose the specific sources of their pre-training compute.

    Therefore, the accurate understanding of this event’s positioning is: a domestic GPU has proven its engineering capability to support the full-pipeline training of frontier open-source large language models. This is a significant technical milestone, but it should not be exaggerated as “the model was born on domestic chips.”

    3. Technical Breakdown: Components of a Complete Training Adaptation

    1. Native FSDP2 Training Path

    One of the highlights of this adaptation is the construction of a native FSDP2 (Fully Sharded Data Parallelism 2) multimodal training path. The core idea of FSDP is to shard model parameters, gradients, and optimizer states across all cards, temporarily aggregating them onto specific cards only when necessary, thereby significantly reducing per-card memory usage.

    Compared to the first-generation implementation, FSDP2 typically relies on a more granular per-parameter sharding strategy, making it better suited for heterogeneous model structures like Mixture of Experts (MoE) and multimodal models. For a model with nearly 3 trillion parameters, without efficient sharding scheduling, relying solely on tensor parallelism or pipeline parallelism would struggle to fit the complete training state within a limited number of cards.

    2. Bridging the Complete Training Pipeline

    A stable large model training process must span multiple stages:

    • Model Loading: Sharded loading and memory mapping of massive checkpoints, involving deserialization efficiency and Host-Device bandwidth.
    • Shard Scheduling: Determining how parameters, gradients, and optimizer states are partitioned and reorganized across 16 cards.
    • Gradient Synchronization: Cross-node All-Reduce/Reduce-Scatter communication, typically relying on high-performance collective communication libraries and low-latency interconnects.
    • Optimizer Updates: Numerically sensitive operations such as loss scaling, gradient clipping, and parameter updates under mixed precision.

    Any operator precision defect or communication instability in any of these stages will be amplified into numerical overflow or loss divergence over thousands of training steps. Therefore, “400 steps of continuous stable operation” may not seem like many steps, but it serves as an effective smoke test for the quality of the entire pipeline.

    3. Validation Methods for Numerical Stability

    The two key metrics mentioned in the technical report—loss and gradient norm—are standard signals for monitoring training health:

    1. # Typical approach for training monitoring (schematic)
    2. for step in range(total_steps):
    3. loss = model(input_batch)
    4. loss.backward()
    5. grad_norm = clip_grad_norm_(model.parameters(), max_norm)
    6. if not torch.isfinite(grad_norm):
    7. raise RuntimeError("gradient overflow detected")
    8. optimizer.step()
    9. log_metrics(step, loss.item(), grad_norm)

    A finite gradient norm indicates that backpropagation has not suffered from explosion or vanishing; a continuously trainable loss indicates that the optimization path is normal. If NaN/Inf occurs, it usually requires investigating operator precision, loss scaling strategies, or data corruption during communication.

    4. From Single-Point Validation to an Engineering System

    The value of a successful adaptation experiment can only be scaled with the support of an engineering system. It was mentioned that the enterprise possesses the supporting capabilities ranging from “rapid inference deployment” to “full-pipeline stable training.” Behind this typically requires:

    1. Operator Layer: Complete coverage and precision alignment for core Transformer operators (attention, MoE routing, fused kernels).
    2. Parallelism Layer: Combined scheduling of multiple strategies including data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.
    3. Toolchain Layer: Supporting capabilities such as automated adaptation tools, training monitoring, checkpoint resumption, and fault diagnosis.
    4. Ecosystem Layer: Compatibility with mainstream open-source model frameworks, allowing researchers’ code to run with low migration costs.

    Furthermore, the team has prior experience in deploying large-scale training, including training a hundred-billion-parameter scientific foundation model from scratch, full-stack native training of a world model, and full-process training of embodied intelligence models, and is currently advancing the training of trillion-parameter models. This progressive route of “scaling from small to large, and from inference to training” is a reasonable path for building a domestic compute ecosystem.

    5. Outlook: From “Capable of Training” to “Out-of-the-Box Training”

    “Capable of training” implies technical feasibility and experimental reproducibility; “out-of-the-box training” means that standard developers can directly start mainstream large model training upon receiving the hardware without deep tuning. The latter imposes higher requirements on operator completeness, documentation quality, and toolchain usability.

    Future expected evolutionary directions include: improved automated coverage for operator adaptation, continuous optimization of multi-card collaborative communication efficiency, and standardized training templates for the open-source community. When these elements mature, domestic full-function GPUs can truly become the default compute foundation for large model research and development.

    For developers, the rational approach when following such progress is to look at the validation metrics (whether training is stable, step counts, and scale) and the engineering system (whether it is reproducible, whether tools are complete), rather than just observing “Day 0” style announcements of a single adaptation. Only in this way can an accurate judgment be made regarding the true maturity of the domestic compute ecosystem.