Trillion-Parameter Multimodal MoE Training on Chinese Domestic GPUs: An Engineering Practice
This article examines the engineering work required to run a 2.8-trillion-parameter MoE multimodal model on Chinese domestic GPUs. It reviews a 400-step validation run on a two-node, 16-GPU configuration and explains the key challenges in operator support, FSDP2 sharding, collective communication, and memory management. It also summarizes the validation methodology and practical lessons for teams building large-model training infrastructure.
Trillion-Parameter Multimodal MoE Training on Chinese Domestic GPUs: An Engineering Practice
1. Background: Large-Model Training Puts New Demands on Hardware Adaptation
In recent years, the parameter scale of large models has continued to rise, and Mixture-of-Experts (MoE) architectures plus native multimodal design have gradually become mainstream technical routes. Take a 2.8-trillion-parameter MoE multimodal model as an example. It uses dynamic sparse attention and expert routing. While increasing model capacity, this also pushes engineering complexity to a new level: each forward pass must dynamically route and activate a small number of experts from many candidates, the frequency and volume of cross-card and cross-node communication increase substantially, and memory management must carefully balance parameters, gradients, optimizer states, and activations.
Against this backdrop, whether domestic GPUs can support the training pipeline for such models has become a key benchmark for their maturity. Recently, a Chinese GPU vendor announced that its lab had completed training-pipeline adaptation for this trillion-parameter MoE multimodal model: on a two-node, 16-GPU configuration, it ran 400 consecutive training steps with no numerical overflow and no abnormal interruptions, and both training loss and validation loss showed healthy convergence. This case offers a concrete window into the engineering capability of domestic training platforms.
It is worth noting that industry adaptation is also accelerating: multiple domestic chip vendors have disclosed pretraining and reinforcement-learning practices on thousand-card and even ten-thousand-card clusters, and coverage for mainstream open-source large models continues to improve. Industry consulting firms predict that domestic high-end AI chip shipments will maintain rapid growth and that the share of local solutions will expand significantly. In short, domestic compute is moving from “inference-capable” toward “training-capable.”
2. Why MoE Multimodal Training Is a Hard Problem
To understand the technical significance of this validation, it helps to break down three challenges posed by the target model.
First: the operator complexity of dynamic sparse attention. A hybrid attention mechanism requires kernels to support both dense and sparse computation paths, and both forward and backward propagation need targeted implementations. If the underlying operator library lacks the corresponding implementation, or if numerical precision is handled improperly, training can easily suffer gradient explosion or loss divergence.
Second: communication pressure from expert routing. In an MoE architecture, tokens are dispatched according to routing results to the devices hosting different experts, and then combined after computation. This generates a large amount of All-to-All communication. In a 16-GPU, two-node environment, bandwidth differences between intra-node and inter-node links further amplify communication overhead. Whether communication and computation can overlap effectively directly determines effective training throughput.
Third: multidimensional memory pressure. Even after trimming, a trillion-parameter model still consumes massive memory for parameters, gradients, and optimizer states such as Adam second moments. In addition, the vision tower in a multimodal model produces high-resolution activations, making single-GPU memory a likely bottleneck. In this validation, peak memory was 44.80 GiB, indicating that sharding and activation recomputation strategies played a key role.
3. Four Core Engineering Steps in Building the Training Pipeline
3.1 Operator Layer: Completing Forward and Gradient Implementations
The first step in adaptation is to fill in all the compute primitives required by the model at the operator level. For hybrid attention and MoE structures, this requires:
- forward and gradient kernels for sparse attention;
- dispatch and combine operators for expert routing;
- matrix multiplication and normalization operators for cross-modal projection modules.
Operator implementations must be not only functionally correct but also numerically stable. A common industry practice is to align intermediate results with a reference implementation and compare error ranges layer by layer, ensuring that mixed-precision training does not introduce cumulative bias.
3.2 Parallel Strategy: State Sharding with FSDP2
This validation adopted Fully Sharded Data Parallel (FSDP2), which shards parameters, gradients, and optimizer states across devices. Each GPU holds only one shard of the full state, gathers it temporarily before computation, and releases it afterward. The value of this strategy is that:
- memory usage decreases approximately linearly with the number of devices, allowing large models to fit on a limited number of GPUs;
- finer sharding granularity makes it easier to combine with activation recomputation and mixed-precision strategies;
- for MoE architectures, expert parameters and non-expert parameters can use differentiated sharding strategies to further balance load.
3.3 Communication Layer: The Role of the Collective Communication Library
Cross-node communication is handled by a companion collective communication library, which is responsible for efficient execution of AllReduce, AllGather, All-to-All, and other primitives on multi-machine, multi-GPU topologies. Key engineering optimizations include pipeline overlap of communication and computation, gradient bucketing to reduce small-packet communication, and hierarchical communication algorithms selected according to intra-node and inter-node bandwidth differences. For MoE models, the scheduling quality of All-to-All is often a dividing line for training efficiency.
3.4 Validation Method: Interpreting Short-Run Training Scientifically
The test used a trimmed configuration: the language backbone was truncated to 13 layers with 16 routed experts and Top-8 activation, while the full 27-layer vision tower and cross-modal projection module were retained. Training was randomly initialized and run for 400 steps on an image-text question-answering dataset. The results deserve careful interpretation:
- training loss dropped from 8.9365 (mean of steps 21–70) to 2.1802 (mean of the last 50 steps), a significant decline with a smooth trend, indicating that the optimizer, learning-rate schedule, and gradient computation were all working normally;
- validation loss dropped from 6.5297 to 4.6873, moving in the same direction as training loss and ruling out pure overfitting to the training set;
- vision-branch parameters were updated, proving that backpropagation through the multimodal pipeline was fully connected rather than only the language part running.
One reminder for developers: pipeline validation is not equivalent to full pretraining. The 400-step trimmed configuration validates functional correctness and a healthy loss trend. Measuring true platform capability still requires stability data from longer runs, larger batches, and full-scale parameters. From an engineering perspective, however, public disclosure of loss curves and gradient-check details is itself a sign of confidence in implementation quality. In public discussions, cases that disclose such details for trillion-level MoE multimodal models are not common.
4. Implications for Developers
For teams that want to conduct large-model training on domestic compute, this case offers several reusable lessons:
- Pipeline first, scale later. Use trimmed configurations to quickly validate operator correctness and convergence trends, then gradually expand to full scale. This is the best path to controlling debugging costs.
- Watch the “three alignments.” Operator numerics should align with the reference implementation; gradients under parallelism should align with single-GPU results; loss curves should align with theoretical expectations. Missing any one of these can cause failures in long training runs.
- Leave headroom in the memory budget. The peak memory result of 44.80 GiB suggests that engineering teams should combine sharding, activation recomputation, and memory-pool management to reserve space for long sequences and larger batches.
- Evaluate the platform ecosystem. Beyond hardware itself, the companion collective communication library, distributed framework support, monitoring and alerting, and logging services are also important guarantees for training stability. Chinese cloud providers such as Baidu AI Cloud have mature general-purpose capabilities in container platforms, distributed training scheduling, and observability, and can be considered as one option when building training infrastructure.
5. Conclusion
From single-GPU compute to cluster training pipelines, competition among domestic GPUs is shifting from peak metrics to systems engineering capability. Building the training pipeline for a trillion-parameter MoE multimodal model demonstrates that domestic platforms already have foundational capabilities in operator implementation, distributed parallelism, and communication optimization to support frontier model architectures. Of course, moving from a 400-step validation to full-scale pretraining still leaves a series of issues to solve, including long-run stability, throughput efficiency, and fault recovery. As software-hardware co-optimization deepens, domestic compute is expected to play an increasingly important role in the large-model training landscape.
