Training Adaptation for a Near-3-Trillion-Parameter Model on Domestic Full-Function GPUs: A Practical Analysis

    This article examines what it takes to adapt a near-3-trillion-parameter open-source flagship model for training on a domestic full-function GPU and its software stack. It first distinguishes Day 0 inference adaptation from full-pipeline training adaptation, then breaks down the engineering requirements: native model loading, FSDP-style sharding, cross-node gradient synchronization, stability validation over 400 consecutive optimizer updates on 16 cards across two nodes, and mixed-precision numerical consistency. It also reviews reported domestic-chip training deployments, including a 236B scientific foundation model and world/embodied models, and outlines how developers can evaluate domestic training platforms by model coverage, scaling efficiency, numerical validation, and toolchain automation.

    Training Adaptation for a Near-3-Trillion-Parameter Model on Domestic Full-Function GPUs: A Practical Analysis

    1. Background: The Gap Between “Day 0 Adaptation” and Full-Pipeline Training

    In the integration of large models and domestic compute ecosystems, two concepts are often confused and should be clarified first.

    Inference adaptation/integration refers to a chip and its software stack quickly completing inference-side operator coverage and deployment validation after a new model is released, often called “Day 0 adaptation.” This work mainly tests operator compatibility and the efficiency of porting inference frameworks; it verifies that the model “can run on the hardware.”

    Training adaptation is far more demanding. Training must cover not only forward operators but also the full pipeline: backpropagation, optimizer updates, gradient synchronization, mixed-precision numerical management, and fault recovery. According to public reports, a domestic GPU vendor recently used a flagship training-and-inference AI card and an in-house software stack to complete training adaptation for an open-source flagship model with nearly 3 trillion parameters. It is important to note that training adaptation does not mean the model was pre-trained on such chips. Industry technical reports often validate inference operators across multiple hardware routes in parallel, which is separate from the actual compute source of base pre-training.

    Understanding this distinction is a prerequisite for assessing real progress in domestic compute for large-model training.

    2. Technical Requirements of Training Adaptation

    2.1 Building a Native Training Path

    To train a trillion-parameter multimodal model stably on non-mainstream hardware, the first step is to build a native training path rather than simply applying a training framework designed for specific hardware. The key technologies mentioned in the report include:

    • Model loading: Trillion-parameter models are typically stored in multiple shards and formats. The loading stage must handle weight partitioning, type conversion, and metadata validation.
    • Shard scheduling: A second-generation scheme similar to FSDP (Fully Sharded Data Parallel) shards model parameters, gradients, and optimizer states across cards or even machines, greatly reducing per-card memory pressure.
    • Gradient synchronization: Cross-node training relies on efficient all-reduce/reduce-scatter collective communication, and the communication library must be deeply optimized for the custom interconnect topology.

    A typical pseudocode example for fully sharded data parallel training is as follows:

    1. # Pseudocode: training step under fully sharded data parallel
    2. for batch in dataloader:
    3. with autocast(dtype=bfloat16): # Mixed-precision forward pass
    4. loss = model(batch)
    5. loss.backward() # Backward pass; gradients aggregated by shard
    6. reduce_scatter(grads) # Cross-node gradient synchronization
    7. optimizer.step() # Sharded optimizer update
    8. optimizer.zero_grad()

    2.2 Stability Validation for Cross-Node Joint Training

    According to the technical report, the experiment used two nodes with 16 training cards in total for a cross-node joint training test. All 16 training processes completed 400 consecutive optimizer updates. During this period, the loss curve and gradient norms remained finite throughout, with no numerical overflow or abnormal interruption.

    Why is this validation important? In large-scale training, stability problems often do not appear as “it cannot run,” but as “it crashes after running for a while”:

    • Numerical overflow: In low-precision training such as bf16/fp16, if the dynamic range of activations or gradients exceeds its bounds, the loss can suddenly become NaN.
    • Gradient norm anomaly: A continuously increasing gradient norm usually indicates training divergence and requires fallback measures such as gradient clipping and learning-rate warmup.
    • Process cascading failure: In cross-node training, any process hang or communication timeout can interrupt the entire job.

    Therefore, “400 consecutive steps without anomalies and with controlled loss and gradient norms” is not a large absolute step count, but for hardware just entering the training track, it is a key milestone in completing the numerical pipeline. It validates full-stack correctness from operator precision and communication consistency to optimizer implementation.

    2.3 Mixed Precision and Numerical Consistency Engineering Details

    To achieve training quality comparable to mainstream solutions on custom hardware, the following are typically required:

    1. Operator-level precision alignment: Key operators such as matrix multiplication, LayerNorm, Softmax, and rotary positional encoding must be aligned layer by layer with reference implementations in low-precision implementations.
    2. Communication precision strategy: Gradient aggregation can use a compromise of low-precision communication plus high-precision accumulation, balancing bandwidth and convergence.
    3. Random number consistency: Random sources such as dropout and data shuffling must be reproducible to facilitate issue localization.

    3. Domestic Chips for Domestic Models: Deployment Progress and Ecosystem Significance

    According to reports, the vendor has multiple deployments in large-scale training practice: completing full training from scratch of a 236-billion-parameter (236B) scientific foundation model, supporting full-stack native training of a world model, and supporting full-process training of an embodied intelligence brain model. It is currently advancing trillion-parameter model training.

    From an ecosystem perspective, the common significance of these cases is that they demonstrate that the domestic software stack has the engineering capability to move frontier complex models from “rapid inference deployment” to “full-pipeline stable training.” The accumulation of training capability is an iterative process—each new model adaptation feeds back into the improvement of operator libraries, communication libraries, and automated toolchains.

    4. Outlook and Developer Perspective

    The future goal in this direction is to push frontier large models on domestic full-function GPUs from “can train” to “train out of the box.” This requires continuous refinement across three layers:

    • Operator adaptation layer: Expand operator coverage and improve key operator performance.
    • Multi-card collaboration layer: Optimize collective communication, topology-aware scheduling, and fault tolerance.
    • Automated toolchain layer: Provide one-stop tools from environment deployment and precision alignment validation to training monitoring.

    For developers evaluating a domestic training platform, key considerations include: model coverage and adaptation timeliness, cross-node scaling efficiency, numerical stability validation methodology, and the degree of toolchain automation. As engineering capability on the training side gradually matures, the compute supply landscape for large-model training will become more diverse and controllable.