Validating a Trillion-Parameter MoE Multimodal Model Training Pipeline on Domestic GPUs
This article describes a validation of the training pipeline for a 2.8-trillion-parameter, MoE-based native multimodal model on domestic GPUs. The test ran on two nodes with 16 cards in total, using a trimmed model configuration. The team ran 400 consecutive training steps without numerical overflow or abnormal interruption. The article covers the operator adaptation, FSDP sharding, cross-node communication work, and the training loss, validation loss, and peak memory results.
Introduction: An Accelerating Phase for Domestic Compute and Large Models
As large models scale toward the trillion-parameter level, especially as mixture-of-experts (MoE) architectures combine with native multimodal capabilities, the underlying compute infrastructure faces demanding requirements. In recent years, domestically developed GPUs have adapted to large models at an accelerating pace. Their use has extended from single-card inference to pretraining and reinforcement learning on clusters of thousands to tens of thousands of cards.
Some domestic compute vendors have reached precision alignment with international products in multimodal pretraining, and have adapted multiple series of mainstream large models on the training side. For example, Baidu announced at its Create conference that its all-domestic Kunlunxin cluster completed training of an important version of a large model, with an effective training rate of 97%. Other vendors reported that their heterogeneous computing units have been adapted to hundreds of mainstream large models, covering most non-closed-source large model ecosystems.
Against this backdrop, validating the training pipeline for ultra-large MoE multimodal models has become an important test of domestic GPU engineering capability. Recently, a domestic GPU lab completed the training pipeline adaptation for a 2.8-trillion-parameter native multimodal model. The model uses an MoE architecture that is mainstream in the industry. On a configuration of two nodes with 16 cards, the team ran 400 consecutive training steps without numerical overflow or abnormal interruption. This article examines the engineering details and technical challenges of this validation.
Engineering Challenges of Trillion-Parameter MoE Multimodal Models
The validated model has 2.8 trillion parameters, uses an MoE architecture, and has native multimodal capabilities. From an architectural standpoint, this type of model faces two main hurdles in distributed training:
- Dynamic sparse attention: To handle very long contexts and large volumes of multimodal data, the model introduces dynamic sparse attention. This mechanism makes computation graph construction and memory allocation highly dynamic. It requires operators that offer high compute throughput and flexible memory scheduling, so that frequent memory fragmentation or overflow is avoided.
- Expert routing: The MoE architecture uses Top-K routing to assign tokens to different expert networks. In multi-card distributed training, this step triggers intensive All-to-All communication. At the trillion-parameter scale, communication bandwidth and latency between cards often become the bottleneck for training efficiency. Imbalanced routing can also cause memory pressure to spike on some compute cards.
Configuration and Trimming Strategy for Pipeline Validation
Pretraining a full-scale trillion-parameter model requires a very large compute cluster. This adaptation therefore focused on verifying training functionality and loss trends. It used a trimmed configuration to bring the pipeline up end to end. In the industry, this kind of engineering practice is still exploratory, and few cases publicly disclose such engineering details.
The test ran in a two-node, 16-card environment. The trimming and initialization strategy was as follows:
- Language backbone: 13 layers of the network were retained, with 16 routed experts and a Top-8 activation strategy. This keeps the core MoE routing logic while substantially reducing the computation per step.
- Vision and cross-modal modules: The full 27-layer vision tower and the cross-modal projection module were kept. This preserves the integrity of multimodal feature extraction and alignment.
- Dataset and initialization: Training started from random initialization on an open-source image-text dataset. This validated the model’s forward and backward propagation from scratch.
Core Engineering: Operators and Distributed Strategy
The core goal of this adaptation was not peak single-card performance. It was to bring up the distributed training pipeline as a whole. The work covered several key areas.
1. Filling Gaps in Hybrid Attention and MoE Operators
To support these architectures on domestic GPUs, the development team had to rewrite or optimize the forward and gradient implementations of the hybrid attention mechanism and the MoE operators for the underlying hardware. This required precise handling of index operations on dynamic sparse matrices and of masking logic in expert routing. The team also had to keep gradient updates numerically stable during backpropagation.
# Pseudocode: MoE routing and forward computationdef moe_forward(tokens, experts, router):# 1. Routing computation and Top-K selectionrouter_logits = router(tokens)routing_weights, selected_experts = top_k(router_logits, k=8)# 2. Communication and dispatchdispatched_tokens = all_to_all(tokens, selected_experts)# 3. Expert computation (custom operators on the domestic GPU)processed_tokens = experts_forward(dispatched_tokens, experts)# 4. Communication and aggregationoutput_tokens = all_to_all(processed_tokens, reverse=True)# 5. Weighted combinationfinal_output = combine(output_tokens, routing_weights)return final_output
2. Fully Sharded Data Parallel (FSDP) Management
Given the large parameter count and memory pressure, the team used Fully Sharded Data Parallel (FSDP) to shard parameters, gradients, and optimizer states. Each compute node keeps only a portion of the parameter shards. During forward and backward passes, the shards are gathered through communication when needed. This substantially reduces the memory footprint on each card.
3. Cross-Node Communication Optimization
In the two-node, 16-card setup, cross-node network latency is a key limiting factor. The training pipeline used a dedicated cross-node communication library, an optimized collective communication library. The team tuned communication primitives such as All-to-All and All-Reduce. Overlapping computation with communication effectively hid the communication latency and kept training running continuously.
Training Validation Results and Data Analysis
Under this configuration, the domestic GPU cluster completed 400 consecutive training steps. No numerical overflow or abnormal interruption occurred, and the key engineering metrics were stable:
- Training loss convergence: Training loss fell from 8.9365 (the mean of steps 21 to 70, in the initial stage) to 2.1802 (the mean of the last 50 steps). This indicates that the forward computation and backward gradient update logic work correctly, and that the loss decline follows the expected trend.
- Validation loss: Validation loss dropped from 6.5297 to 4.6873. This shows that the model retains some generalization ability under the trimmed configuration, and that the vision branch parameters also took part in parameter updates.
- Peak memory: In the 16-card distributed run, peak memory per card stayed at 44.80 GiB. This reflects the effectiveness of the FSDP sharding strategy and memory reuse mechanisms. It also provides a memory planning basis for scaling to larger clusters.
Industry Perspective and Summary
This validation under a trimmed configuration represents more than one vendor’s technical breakthrough. It reflects the broader systems engineering capability of domestic GPUs on very large models. Across the industry, domestic compute such as Baidu’s Kunlunxin has already supported large-scale pretraining on clusters of thousands to tens of thousands of cards, with a high effective training rate. Other domestic compute units are also quickly filling out their adaptation coverage for mainstream large models.
For large model development teams, bringing up the training pipeline for trillion-parameter MoE multimodal models on domestic GPUs means more diverse and self-controlled options in the compute supply chain. Looking ah
