Adapting Domestic GPUs for Ultra-Large Model Training: Technical Paths and Engineering Practice
This article analyzes how a Chinese full-function GPU vendor adapted a nearly 3-trillion-parameter flagship open-source model for training on a two-node, 16-card cluster. It covers FSDP2-based model loading and weight sharding, cross-node communication and gradient synchronization, numerical stability validation, engineering capabilities such as operator precision alignment and automated adaptation pipelines, and the broader evolution path of domestic GPU training ecosystems. Readers gain a technical view of what training adaptation actually validates and what remains before production-scale pretraining.
1. Background: Crossing the Threshold from Inference to Training
In the large-model technology ecosystem, adapting compute chips to open-source models is usually divided into two levels. The first is inference adaptation: enabling a model to load and run inference on specific hardware, which validates operator coverage and runtime compatibility. The second is training adaptation: enabling the model to complete the full loop of forward computation, backpropagation, gradient synchronization, and optimizer updates on that hardware.
The latter is far more difficult than the former. It requires not only correct forward operators, but also production-grade stability across the entire chain: backward operators, gradient reduction, mixed-precision numerical behavior, memory management, and fault-tolerance mechanisms.
Recently, a Chinese full-function GPU vendor completed training adaptation for a flagship open-source model with nearly 3 trillion parameters, using its flagship training-and-inference intelligent compute card and self-developed software stack. In a cross-node joint training test with two machines and 16 cards in total, all 16 training processes completed 400 consecutive optimizer updates. The loss curve and gradient norm remained finite throughout, with no numerical overflow or abnormal interruption. This result is technically significant, and this article provides a technical breakdown and analysis of the event.
One common misconception should be clarified: training adaptation means the model can stably execute the training process on this type of chip. It validates the engineering maturity of the software and hardware stack; it does not mean the model’s base pretraining was completed on that chip. The industry generally considers that the multi-hardware validation listed by leading labs in technical reports is mostly operator-level and training-pipeline-level parallel validation, while the original pretraining compute source is usually arranged separately. Understanding this distinction helps objectively evaluate the real position of domestic compute in the ecosystem.
2. Core Technical Pipeline of Training Adaptation
2.1 Model Loading and Weight Sharding
For models with trillions of parameters, a single accelerator card’s memory is far from sufficient to hold the complete model weights, optimizer states, and activations. Therefore, the first step in training adaptation is to build a native model-loading and sharding scheduling path. Taking the industry-mainstream FSDP2 (Fully Sharded Data Parallel 2) architecture as an example, its core ideas are:
- Parameter sharding: Split model parameters along the device dimension, so each device holds only one shard of the complete parameters.
- AllGather / Free: Temporarily aggregate parameters when needed for forward and backward computation, and release them immediately after use, compressing peak memory to a level related to the shard size.
- Optimizer state sharding: Shard optimizer states such as Adam momentum and second-moment estimates as well, further reducing memory usage.
A schematic sharding wrapper is shown below:
# Pseudocode: FSDP2-style fully sharded data parallelismmodel = Transformer(num_layers=N, hidden=H, experts=E)sharded_model = fully_shard(model,sharding_strategy=FULL_SHARD, # Full sharding of parameters, gradients, and optimizer statesmixed_precision_policy=bf16_policy # bf16 mixed-precision policy)for layer in sharded_model.layers:fully_shard(layer) # Layer-wise sharding to reduce peak memory
This adaptation built a native FSDP2 multimodal training path. That means it did not simply apply the default configuration of a general framework. Instead, it customized sharding granularity and communication strategies for the heterogeneous structure of multimodal models, including the vision encoder, language backbone, and cross-modal alignment modules, and connected the complete training pipeline from model loading and sharding scheduling to gradient synchronization.
2.2 Cross-Node Communication and Gradient Synchronization
Two machines with 16 cards means training crosses node boundaries, and inter-node communication bandwidth is usually significantly lower than intra-node interconnect bandwidth. To prevent communication from becoming a bottleneck, typical engineering methods include:
- Computation-communication overlap: Schedule gradient reduction in backpropagation in parallel with computation of subsequent layers to hide communication latency.
- Gradient bucketing: Merge small gradient tensors into larger buckets before reduction to reduce the number of communication operations.
- Quantized communication: Transmit gradients at lower precision while maintaining convergence accuracy.
- Topology-aware collective communication scheduling: Prioritize local reduction within a node before inter-node aggregation, i.e., a hybrid Ring + Hierarchical strategy.
2.3 Numerical Stability Validation
The most common failure mode in large-scale training is not that training cannot start, but that the loss suddenly diverges or produces NaN after a number of steps. This is closely related to numerical behavior under mixed precision. In this test, the significance of “400 consecutive optimizer updates, finite loss and gradient norm throughout, and no numerical overflow” is as follows:
- Finite loss indicates that forward computation is numerically correct under bf16/fp16 mixed precision.
- Finite gradient norm indicates that backpropagation does not show abnormal patterns such as gradient explosion or vanishing.
- 400 consecutive updates without interruption indicates that the hardware failure rate, driver stability, and fault-tolerance mechanisms have passed an initial test.
In engineering practice, gradient clipping, dynamic loss scaling, and anomaly detection based on gradient norm monitoring are usually combined to ensure stability:
# Typical combination for stability assurancetotal_norm = compute_grad_norm(model.parameters())if total_norm > max_norm:clip_grad_norm_(model.parameters(), max_norm)scaler.step(optimizer) # Optimizer step with dynamic loss scalingscaler.update()log_metrics(loss, total_norm) # Monitor loss and gradient norm
3. Engineering System: A Key Moat for Training Capability
There is a huge engineering gap between running a training job once and possessing continuous full-pipeline stable training capability. A mature engineering system usually includes the following layers:
- Operator coverage and precision alignment: Establish an operator-level unit test system, numerically compare each custom operator with a reference implementation, and ensure precision error remains within a threshold.
- Automated adaptation pipeline: When a new open-source model is released, use an automated toolchain to quickly complete model structure parsing, operator mapping, distributed strategy recommendation, and smoke testing, achieving an experience close to “out-of-the-box training.”
- Checkpoint resume and fault tolerance: Large-scale clusters inevitably encounter hardware failures during long runs. Efficient checkpoint saving and fast recovery are foundational infrastructure for stable training.
- Observability: A complete monitoring system covers core metrics such as throughput, MFU (Model FLOPs Utilization), memory watermark, and communication time, helping quickly locate performance bottlenecks.
4. What the Adaptation Case Reveals About the Evolution of Domestic Training Ecosystems
Public information shows that in large-scale training practice, the relevant team has delivered multiple results in domestic chips training domestic models, including complete from-scratch training of a scientific foundation model with more than 200 billion parameters, full-stack native training of a 5D world model, and full-process training of an embodied intelligence brain model. The team is currently advancing training of trillion-parameter large models.
From a technical evolution perspective, the maturation of domestic GPU training capability roughly follows a clear path:
- Inference adaptation first: Build ecosystem presence through Day 0-level inference adaptation for new models.
- Training pipeline connectivity: Validate the correctness of the training loop on small and medium-scale models.
- Scale validation: Prove engineering reliability through long-term stable operation across multiple machines and cards.
- Frontier model alignment: Complete training adaptation for flagship models with trillions of parameters, proving that the software and hardware stack can support the most advanced model architectures, such as fine-grained expert parallelism, multimodality, and long context.
- Toolchain consolidation: Package experience into automated tools, ultimately achieving “out-of-the-box training.”
Among these, Expert Parallelism (EP) is a key parallel strategy for training mixture-of-experts models. Different experts are placed on different devices, and token routing across devices is completed through All-to-All communication. Fine-grained EP schemes place extremely high demands on communication topology and schedulers. Whether such schemes can be supported stably is an important benchmark for measuring the maturity of a domestic training stack.
5. Final Thoughts
A domestic full-function GPU completing training adaptation for a nearly 3-trillion-parameter model marks a shift of the domestic compute stack from “can run” to “can train stably.” Objectively, however, from verification-level training at the 400-step scale to production-level pretraining at the hundreds-of-thousands-step scale, multiple challenges remain in data scale, cluster scale, failure rate, and overall efficiency. The core competition in the future will not be limited to single-card performance, but will be a comprehensive contest across operator ecosystems, communication efficiency, automated toolchains, and engineering systems. For developers and enterprise users, focusing on the completeness of the training pipeline, numerical stability validation methods, and toolchain maturity is more practical than focusing on single-point execution. As the technology stack continues to mature, “out-of-the-box training” is expected to become the next milestone for domestic compute.
