Adapting Domestic AI Chips for Trillion-Parameter MoE Multimodal Model Training Pipelines
This article explores the engineering practice of adapting domestic AI chips to train trillion-parameter Mixture-of-Experts (MoE) multimodal models. It covers the technical challenges of MoE routing, dynamic sparse attention, and multimodal integration, alongside the engineering solutions for distributed training using FSDP2 and custom communication libraries. It also reviews the results of a 400-step training pipeline validation on a 16-GPU configuration and discusses the remaining gaps before full-scale pretraining can be achieved.
Adapting Domestic AI Chips for Trillion-Parameter MoE Multimodal Model Training Pipelines
1. Background: Systemic Challenges of Large Model Training on Domestic AI Chips
Recently, the scale of large model parameters has continued to climb, with trillion-parameter Mixture-of-Experts (MoE) architectures becoming a mainstream technical approach. Taking a 2.8-trillion-parameter native multimodal model released by a leading laboratory as an example, it utilizes dynamic sparse attention and expert routing mechanisms to achieve significant breakthroughs in model capabilities. However, this imposes engineering requirements on the underlying computing platform far exceeding those of dense models.
Unlike inference adaptation, training adaptation is a systems engineering challenge. It requires not only sufficient compute and memory on a single GPU but also stable and efficient communication links across multiple GPUs and nodes. Parallelism strategies, memory management, and operator implementations at the framework level must all be fully integrated. A missing link in any of these areas means the training task cannot be initiated, let alone converge.
Recently, a domestic GPU vendor’s laboratory announced the successful adaptation of the training pipeline for this trillion-parameter MoE multimodal model. They completed 400 steps of training validation on a dual-node, 16-GPU configuration without numerical overflow or abnormal interruptions. This milestone provides a reference engineering sample for observing the maturity of domestic AI chips on the training side.
2. Technical Challenges: Why MoE and Sparse Attention Are Difficult to Adapt
2.1 Load Balancing and Communication Pressure from Expert Routing
In the MoE architecture, each token activates only a subset of experts (this case uses 16 routing experts with Top-8 activation). This means:
- Dense All-to-All Communication: Tokens must be distributed and collected among experts based on routing results. Cross-GPU communication frequency is much higher than in dense models, demanding extremely high bandwidth utilization and low latency from the communication library.
- Dynamic Load Changes: Routing decisions drift dynamically during training. If parallelism strategies and memory planning are not meticulous, single-GPU memory overflow or computational voids can easily occur.
- Complex Gradient Synchronization: Different experts are activated at varying frequencies, leading to significant differences in gradient sparsity. Optimizer state management requires specialized design for MoE characteristics.
2.2 Implementation Thresholds for Dynamic Sparse Attention Operators
The model uses a hybrid attention mechanism, whose forward and backward propagation operator implementations cannot be directly replaced by general dense attention. Adapters must implement forward and gradient operators for this hybrid attention within the training framework and ensure numerical precision aligns with the reference implementation. Any minor numerical deviation may accumulate into loss divergence after thousands of training steps.
2.3 Additional Complexity of the Multimodal Pipeline
As a native multimodal model, its vision tower and cross-modal projection modules must participate in gradient updates jointly with the language backbone. Preprocessing of mixed image-text data, memory fluctuations from variable-length sequences, and the continuous gradient flow across cross-modal modules are all points that must be verified item by item in the pipeline.
3. Engineering Solution: Systematic Integration of the Distributed Training Pipeline
The core of this adaptation is not single-GPU peak compute, but the overall integration of the distributed training pipeline. The technical highlights can be summarized in three layers:
1. Operator Layer Completion. For hybrid attention and MoE routing, complete forward and gradient operators were implemented. This ensures that vision branch parameters can normally participate in backward propagation and updates, avoiding a “fake adaptation” where forward passes work but parameters cannot be trained.
2. Parallelism and Memory Management Layer. Relying on the Fully Sharded Data Parallel 2 (FSDP2) strategy, model parameters, gradients, and optimizer states are sharded across 16 GPUs, keeping the single-GPU peak memory at 44.80GiB. This “state sharding + on-demand aggregation” approach is key to making ultra-large models trainable under limited memory.
3. Cross-Node Communication Layer. Gradient and parameter aggregation between the two nodes is handled by the vendor’s self-developed collective communication library. Link scheduling was optimized for the MoE All-to-All traffic pattern, ensuring that communication did not become a bottleneck or point of failure during the 400-step continuous training.
A simplified training configuration is shown below:
parallel_config = {"strategy": "fsdp2", # Full sharding of parameters/gradients/optimizer states"devices": 16, # Dual-node 16 GPUs"moe_experts": 16,"moe_top_k": 8,"language_layers": 13, # Pruned language backbone"vision_tower_layers": 27, # Fully retained"precision": "bf16",}
4. Verification Method: Training Pipeline Validation Under a Pruned Configuration
It must be clarified that this validation is not a full-scale pretraining, but a training pipeline validation under a pruned configuration: the language backbone is truncated to 13 layers, while the vision tower and cross-modal projection modules are fully retained, trained from random initialization based on a public image-text QA dataset.
This “small-step, fast-run” validation strategy is common in engineering. Its purpose is to confirm three things with controllable costs: whether training functions are complete, whether numerical values are stable, and whether the loss trend is normal. From the disclosed data:
- Training loss converged from 8.9365 (average of steps 21-70) to 2.1802 (average of the last 50 steps);
- Validation loss decreased from 6.5297 to 4.6873;
- Throughout the 400 steps, there were no numerical overflows, no abnormal interruptions, and gradient checks were normal;
- Vision branch parameters were confirmed to participate in updates.
The simultaneous decrease in training and validation loss, along with normal updates in the vision branch, indicates that the entire forward-backward-optimization pipeline is integrated in the multimodal scenario, rather than just idling on the language side. Compared to the common industry narrative of simply “announcing successful adaptation,” disclosing continuous step counts, loss curves, and gradient check details significantly enhances the reproducibility and credibility of the results.
5. Industry Perspective: The Gap from Pipeline Validation to Full-Scale Training
From an industry trend perspective, the pace of adaptation between domestic AI chips and large models is accelerating overall. Multiple vendors have disclosed multimodal pretraining and reinforcement learning practices on thousand-GPU clusters, as well as extensions toward ten-thousand-GPU cluster scenarios. According to third-party consulting firm predictions, the shipment of high-end AI chips in the Chinese market will reach about 5 million units by 2026, a year-on-year increase of about 83%, with the local solution share approaching 90%. The ecological maturity on the training side is becoming the core watershed for domestic AI chip competition.
However, it must be clearly recognized that there are still several thresholds between pruned configuration validation and full-scale pretraining of the complete trillion-parameter model:
- Cluster Scale Expansion: Expanding from 16 to thousands or tens of thousands of GPUs will cause non-linear changes in communication topology, failure rates, and parallel efficiency, requiring re-validation.
- Long-Term Stability: 400 steps of stability cannot be extrapolated to a training cycle of hundreds of thousands of steps. Resilient mechanisms such as checkpoint recovery, fault self-healing, and slow node detection are essential.
- Convergence Efficiency Alignment: Whether loss convergence speed and final precision under full-scale training can align with international mainstream platforms requires longer training cycles and more data validation.
- Software Ecosystem Maturity: The completeness of training frameworks, debugging tools, performance profiling, and monitoring alarm systems directly determines the actual deployment efficiency of large-scale training.
6. Conclusion
The successful integration of the dual-node 16-GPU, 400-step continuous training pipeline is a solid step for domestic GPUs on the training side of trillion-parameter MoE multimodal models. Its value lies not in proving that “we can already fully train trillion-parameter models,” but in proving with reproducible engineering data that the most challenging technical links—sparse attention, expert routing, and joint multimodal training—have achieved systematic integration on domestic AI chip platforms. From pipeline validation to full-scale pretraining, continuous efforts in cluster expansion and long-term stability are still needed, but the path is clear and the milestone is established.
