国产GPU万亿参数MoE多模态训练链路验证实践解析
A Chinese GPU vendor has validated the training pipeline for a 2.8-trillion-parameter MoE multimodal model on a two-node, 16-GPU setup. This article examines the experimental configuration, loss and memory results, MoE and multimodal engineering challenges, FSDP-based memory management, cross-node communication, and the gap between a short pipeline validation and full-scale pretraining.
Engineering Validation of a Trillion-Scale MoE Multimodal Training Pipeline on Domestic GPUs
1. Background: Domestic Compute Enters the Deep End of Large-Model Adaptation
A Chinese GPU vendor recently announced that its laboratory had completed training-pipeline adaptation for a native multimodal model based on a 2.8-trillion-parameter Mixture-of-Experts (MoE) architecture. Using two servers equipped with 16 GPUs in total, the team completed 400 consecutive training steps without numerical overflow or unexpected interruption.
Although the work remains an engineering validation rather than a full-scale pretraining run, the level of detail disclosed—including loss curves, gradient checks, and peak memory usage—is relatively uncommon among domestic compute-adaptation cases. It therefore provides useful material for analyzing the current state of large-model training on locally developed hardware.
Across the industry, adaptation between domestic AI accelerators and large models is accelerating. Multiple chip vendors have reported pretraining and reinforcement-learning workloads on clusters ranging from thousands to tens of thousands of GPUs. These efforts cover dense and sparse models with parameter counts ranging from tens of billions to trillions, and now include most widely used non-closed-source models. Some vendors have also published metrics such as effective training throughput and numerical-accuracy alignment.
Against this backdrop, disclosing detailed training-pipeline engineering results offers a useful reference point for building reproducible training practices on domestic compute platforms.
2. Why MoE Multimodal Models Are Particularly Difficult to Adapt
2.1 Communication Pressure from Dynamic Sparsity
Unlike conventional dense models, MoE architectures use an expert-routing mechanism. During the forward pass, each token is dynamically dispatched to a subset of experts—for example, activating the top eight experts from 16 routed experts. This creates several engineering challenges:
- Intensive all-to-all communication: Tokens must be transferred between GPUs hosting different experts. The communication pattern is irregular and changes during training, placing stringent demands on interconnect bandwidth and the reliability of communication libraries.
- Load-balancing challenges: Uneven routing can turn some GPUs into hotspots and reduce overall throughput. Auxiliary losses and routing strategies must work together to maintain a more balanced distribution.
- Mixed attention patterns: If the model combines global and local attention, its memory-access behavior becomes more complex, requiring carefully optimized kernels.
2.2 Additional Complexity Introduced by Multimodal Training
The model uses a native multimodal architecture that includes a complete vision tower and a cross-modal projection module. Multimodal training introduces several additional issues:
- Image-text preprocessing is heterogeneous with respect to the language pipeline, so data delivery can become a bottleneck.
- The vision and language branches may produce gradients with substantially different magnitudes, making gradient anomalies more likely during mixed-precision training.
- GPU memory must accommodate activations from two heterogeneous networks. Cross-modal projection and alignment calculations also introduce additional intermediate tensors.
For these reasons, successfully running the complete training pipeline on such a model is a meaningful test of the maturity of a GPU hardware and software stack.
3. Experimental Configuration and Key Results
It is important to clarify that this test used a reduced configuration. Its purpose was to verify the correctness of the training pipeline, not to achieve the results of full-scale pretraining.
- Model: The language backbone was reduced to 13 layers with 16 routed experts and top-eight activation. The complete 27-layer vision tower and cross-modal projection modules were retained.
- Data: A publicly available medical image-text question-answering dataset was used, with parameters initialized randomly.
- Hardware: Two servers with 16 GPUs in total.
The reported training results were consistent with the expected behavior of a functioning pipeline:
| Metric | Early Stage | Later Stage | Notes |
|---|---|---|---|
| Training loss | 8.9365, averaged over steps 21–70 | 2.1802, averaged over the final 50 steps | Normal convergence trend |
| Validation loss | 6.5297 | 4.6873 | No sign of divergence |
| Peak GPU memory | 44.80 GiB | — | Within a manageable range |
Two points are particularly important.
First, the 400-step run completed with no numerical overflow or unexpected interruption. This indicates that gradient scaling and overflow detection operated correctly under mixed-precision training.
Second, the vision branch was confirmed to participate in parameter updates. This demonstrates that the cross-modal gradient path was fully connected, rather than only the language branch running while the visual component remained effectively inactive.
4. Key Engineering Components
4.1 Complete Forward and Backward Implementations for MoE and Mixed Attention
The main focus of the adaptation was not peak single-GPU compute performance, but completing both the forward and backward implementations of two critical operator categories.
Some adaptation efforts support only forward inference and then claim model compatibility. Training requires the backward pass to be both correct and efficient. Backpropagation through an MoE layer also requires special handling of routing gradients. In many implementations, the routing decision itself is not differentiable, while gradients flow through the selected experts. These details are easy to implement incorrectly and must be numerically validated through gradient checks.
4.2 Parameter Sharding and Memory Management
Fully Sharded Data Parallel (FSDP) is used to shard parameters, gradients, and optimizer states. This type of memory management is a prerequisite for running trillion-scale models with a limited number of GPUs.
The basic process can be illustrated with the following pseudocode:
# Core logic for sharded FSDP training (illustrative)for batch in dataloader:# 1. Gather the required parameter shards before the forward passall_gather_params(layer)output = layer(batch) # Forward computationrelease_full_params(layer) # Immediately release full parameters and keep only shardsloss = compute_loss(output)loss.backward() # Backward pass with sharded gradients# 2. The optimizer updates only local parameter shardsoptimizer.step() # Each rank updates its own 1/N parameter shard
The reported peak memory usage of 44.80 GiB suggests that activation recomputation, parameter-sharding policies, and communication-buffer configuration achieved a relatively effective balance.
4.3 Cross-Node Communication
In the two-node configuration, all-to-all communication for expert parallelism and gradient synchronization for data parallelism were coordinated through the communication library.
The quality of the communication library’s abstraction over the underlying interconnect directly affects the scalability of MoE training. This remains one of the core components that domestic GPU software stacks need to continue refining.
5. Maintaining Perspective: From Pipeline Validation to Full-Scale Pretraining
The significance of this work lies in providing a reproducible engineering milestone. Four hundred consecutive training steps, converging losses, successful gradient checks, and controlled memory usage are objective results that can be referenced and independently evaluated.
However, a reduced-configuration validation remains substantially different from full-scale pretraining:
- Scaling the cluster: Moving from 16 GPUs to thousands or tens of thousands of GPUs introduces order-of-magnitude increases in complexity across communication topologies, fault recovery, and checkpointing.
- Long-term stability: A 400-step run and a training job lasting hundreds of thousands of steps place very different demands on hardware reliability and fault-tolerant scheduling. Effective training throughput is ultimately the more important metric.
- Full parameter scale: The memory pressure, pipeline bubbles, and expert load-balancing behavior of the reduced 13-layer model cannot be directly extrapolated to the complete model.
6. Conclusion
China’s high-end AI-chip market is expected to continue growing, with domestically developed solutions taking an increasing share. While domestic GPUs have achieved relatively mature adoption for inference, reproducibility on the training side is becoming the next major area of competition.
The engineering details disclosed in this validation—especially the loss curves, gradient checks, and peak memory measurements—provide a useful reporting model for the industry. Verifiable engineering evidence is more informative than a general statement that adaptation has been completed.
The path from reduced validation to full-scale training still requires solving major challenges in cluster scaling and long-term stable operation. However, the direction is becoming increasingly clear.
