Trillion-Parameter MoE Multimodal Training on Chinese-Made GPUs: Pipeline Adaptation in Practice
This article examines the engineering validation of a training pipeline for a 2.8-trillion-parameter MoE-native multimodal model on Chinese domestic GPUs. It outlines the main challenges of dynamic sparse attention memory scheduling and expert-routing All-to-All communication, then describes a trimmed dual-node 16-GPU validation setup that retains 13 Transformer blocks, 16 routed experts with Top-8 activation, and the full 27-layer vision tower and cross-modal projection module. Using FSDP2 and a topology-aware collective communication library, the test completed 400 steps without NaN/Inf or interruption, with training loss converging from an 8.9365 average at steps 21–70 to 2.1802 over the final 50 steps, validation loss falling from 6.5297 to 4.6873, and peak memory at 44.80 GiB. The article concludes with practical implications for enterprises migrating large-model workloads to domestic compute.
Introduction: Accelerating Adaptation Between Domestic Heterogeneous Compute and Large Models
As large-model parameter scales move toward the trillion level, multimodal architectures are becoming an industry standard. In this context, the supply and adaptation of underlying compute resources have become key factors constraining model iteration. In recent years, Chinese domestic GPUs have made notable progress in software-hardware co-optimization, and the pace of adaptation to large models has continued to accelerate.
Across the industry, multiple domestic compute vendors are actively advancing adaptation work on the large-model training side. For example, Baidu AI Cloud previously disclosed that a cluster built on fully self-developed AI chips had successfully completed training of an important model version, with an effective training rate of 97%. This validated the feasibility of domestic compute in thousand-card and even ten-thousand-card cluster scenarios. In addition, industry research institutions predict that high-end AI chip shipments in the China market will reach about 5 million units in 2026, up 83% year over year, with the share of local solutions expected to approach 90%, including cloud vendors’ self-developed ASICs. This indicates that domestic GPUs are not only catching up in single-card performance but also achieving a qualitative leap in distributed system-level engineering capability.
This article takes the training-pipeline validation of a 2.8-trillion-parameter MoE-native multimodal model as an example and analyzes in depth the challenges and engineering practices involved in adapting Chinese-made GPUs to such complex architectures.
Adaptation Challenges of Trillion-Parameter MoE Multimodal Models
A 2.8-trillion-parameter MoE (Mixture of Experts) architecture combined with native multimodal features imposes extremely high engineering requirements on underlying hardware and training frameworks. The core challenges are mainly concentrated in the following two dimensions.
1. Memory and Compute Scheduling for Dynamic Sparse Attention
Multimodal models typically need to process long sequences of image-text data. Although dynamic sparse attention mechanisms can effectively reduce computational complexity, their irregular memory access patterns can easily lead to memory fragmentation. In multi-GPU distributed training, efficiently managing the Key-Value Cache and avoiding frequent cross-node memory access is a difficult problem in GPU memory management.
2. Communication Bottlenecks in Expert Routing
The core of the MoE architecture is “sparse activation,” in which each token is routed to only a small number of expert networks for computation. This mechanism requires high-frequency All-to-All communication when deployed across multiple GPUs or even across nodes. If GPU interconnect bandwidth or communication library optimization is insufficient, communication latency will far exceed computation time and seriously degrade overall training efficiency.
Engineering Practice for Training-Pipeline Validation
To validate the completeness and correctness of the training pipeline for a trillion-parameter MoE model under limited resources, the testing team adopted a pipeline validation scheme based on a trimmed configuration rather than directly performing full-scale pretraining. This is a highly cost-effective engineering validation approach.
1. Trimmed Configuration Strategy Design
With a dual-node 16-GPU hardware configuration, fully loading 2.8 trillion parameters is clearly unrealistic. Therefore, the testing team deliberately trimmed the model structure in a structured way:
- Language backbone truncation: Only 13 Transformer Blocks were retained to reduce compute and storage pressure.
- Routing expert reduction: 16 routed experts were configured with a Top-8 activation strategy to validate the connectivity logic of expert routing.
- Multimodal module retention: The full 27-layer vision tower and cross-modal projection module were retained to ensure the authenticity of the multimodal feature fusion logic.
This configuration greatly reduced resource requirements while fully preserving the core computation graph of the MoE architecture and multimodal fusion.
2. Distributed Training Architecture and Optimization
At the distributed training level, this adaptation focused on systematically connecting the forward and gradient implementations of hybrid attention and MoE operators. It relied mainly on the following technologies:
- FSDP2 (Fully Sharded Data Parallel 2): The FSDP2 framework was used for fine-grained sharding and management of model parameters, gradients, and optimizer states. Compared with traditional ZeRO stages, FSDP2 provides more flexible memory management and more efficient communication overlap natively in PyTorch.
- Cross-node communication optimization: Inter-node and intra-node communication was handled by a specialized distributed communication library, such as a high-performance collective communication library similar to MCCL. For the All-to-All pattern specific to MoE, the communication library applies topology-aware optimization at the low level to reduce the number of cross-machine data hops.
Training Validation Results and In-Depth Data Analysis
Under the dual-node 16-GPU configuration, the pipeline completed 400 consecutive training validation steps without any numerical overflow such as NaN or Inf, or abnormal interruption. This indicates that the stability of the underlying operator implementation and framework scheduling has been preliminarily validated.
1. Loss Curves and Gradient Health
- Training loss: With random initialization training on an open-source image-text VQA dataset, training loss steadily converged from an average of 8.9365 at steps 21–70 to an average of 2.1802 over the final 50 steps.
- Validation loss: Validation loss decreased from an initial 6.5297 to 4.6873.
The effective decline in loss directly proves the correctness of the forward computation logic and the unobstructed path of backward gradient propagation. Vision branch parameters also successfully participated in gradient updates, indicating that the gradient synchronization mechanism of the cross-modal projection module is operating normally.
2. Memory Usage Control
Under the trimmed configuration, peak system memory usage was controlled at 44.80 GiB. For a dual-node 16-GPU setup, where per-GPU memory is typically in the tens of GB range, this peak indicates that FSDP2’s sharding strategy effectively suppressed memory expansion from parameters and optimizer states, reserving room for subsequent scaling to larger batches or full-scale training.
Industry Trends and Engineering Implications
This engineering validation shows that the focus of current domestic GPU adaptation has shifted from competition over single-card theoretical peak performance to practical capability building for systematically connecting distributed training pipelines. Disclosing engineering details such as consecutive training steps, loss curves, and gradient checks for a 2.8-trillion-parameter MoE multimodal model remains rare in the industry, providing valuable reference for developers.
For enterprise developers preparing to migrate large-model workloads to domestic compute, there are several implications:
- Progressive validation strategy: Full pretraining is costly. It is advisable to first validate the correctness of the computation graph and communication pipeline by trimming model structure, reducing layers, or reducing the number of experts.
- Prioritize MoE communication optimization: When selecting domestic GPU clusters, look not only at single-card compute but also at how deeply the collective communication library supports irregular communication patterns such as All-to-All.
- Embrace native frameworks: Make full use of the native sharding capabilities of mainstream training frameworks such as FSDP to reduce custom development costs and accelerate adaptation.
In summary, the adaptation of domestic GPUs to trillion-parameter multimodal large models is entering a deeper phase. With the continued accumulation of engineering practice, local compute solutions will play an even more central role in future AI infrastructure construction.
