Validating Trillion-Parameter MoE Multimodal Training Pipelines on Domestic AI Chips

    This article examines how a domestic AI chip laboratory validated the full training pipeline for a 2.8 trillion-parameter MoE-based native multimodal large model. It covers the architectural challenges of dynamic sparse attention and expert routing, the engineering approach using a pruned configuration on dual-node 16-GPU hardware, distributed optimization with FSDP2 and high-performance collective communication, and the resulting loss convergence and stability metrics over 400 training steps. Readers will gain a practical reference for evaluating the engineering capability of domestic GPUs in ultra-large model training.

    Validating Trillion-Parameter MoE Multimodal Training Pipelines on Domestic AI Chips

    Introduction: The Accelerating Alignment of Domestic Compute with Large Models

    As artificial intelligence moves toward the AGI stage, large model parameter counts are rapidly scaling from hundreds of billions to trillions, and native multimodal architectures are becoming the industry mainstream. Against this backdrop, domestic AI compute is being adapted at an accelerating pace. Industry forecasts suggest that shipments of high-end AI chips in China will grow substantially in the coming years, with domestic solutions expected to approach 90% market share.

    Recent industry developments show that several domestic compute vendors have disclosed progress on multimodal pretraining, reinforcement learning, and adaptation of mainstream open-source models. Some clusters have achieved effective training rates comparable to leading international systems, covering the vast majority of non-proprietary large models. However, few engineering details have been publicly shared regarding trillion-parameter MoE multimodal models. Recently, a domestic AI chip laboratory completed a training pipeline validation for a 2.8 trillion-parameter MoE native multimodal large model, offering valuable insight into the engineering capability of domestic GPUs in ultra-large model training.

    Architectural Characteristics and Challenges of Trillion-Parameter MoE Multimodal Models

    The model targeted in this validation has 2.8 trillion parameters, adopts a Mixture-of-Experts (MoE) architecture, and is natively multimodal. From an architectural standpoint, such models place extremely demanding requirements on hardware compute and communication bandwidth, mainly in two areas:

    1. Dynamic Sparse Attention

    Multimodal models must process heterogeneous data such as images and text. The cross-modal projection modules between the vision tower and the language backbone depend heavily on long-sequence context. Dynamic sparse attention can effectively reduce computational complexity, but its dynamic routing requires the GPU to compute attention masks at runtime, posing severe challenges to memory bandwidth and operator scheduling flexibility.

    2. Expert Routing

    The core of MoE architecture is replacing the feed-forward network (FFN) with multiple parallel expert networks. During each token’s forward pass, a routing gate dynamically selects the Top-K experts for computation. In multi-GPU distributed training, this means tokens must frequently be routed across cards and nodes to devices holding the corresponding expert weights, generating massive All-to-All communication overhead. Optimizing expert-routing communication latency without sacrificing accuracy is the key difficulty in bringing the training pipeline together.

    Engineering Practices for Training Pipeline Validation

    To systematically verify training functionality and loss trends, the laboratory ran continuous training on a dual-node, 16-GPU configuration. Given compute constraints and the validation goal, the test did not perform full-scale pretraining but instead adopted a carefully pruned configuration.

    1. Model Pruning with Configuration Preservation

    The validation used targeted pruning of the model structure:

    • Language backbone: 13 layers were retained, with 16 routing experts activated via a Top-8 strategy. This setup preserved the core MoE routing characteristics while significantly reducing memory usage.
    • Multimodal components: The full 27-layer vision tower and the cross-modal projection module were retained intact, ensuring complete multimodal feature extraction and alignment capability.
    • Dataset and initialization: Training was randomly initialized on the public MedPix-VQA image-text dataset to verify the model’s ability to learn image-text feature alignment from scratch.

    2. Distributed Training Optimization

    The engineering focus of this adaptation was not peak single-card compute, but systematically bringing the distributed training pipeline online. Key optimizations included:

    • Fully Sharded Data Parallel (FSDP2): The industry-standard FSDP2 technique was used to shard model parameters, gradients, and optimizer states. Compared with traditional FSDP, FSDP2 offers finer-grained memory management and tensor lifecycle control, effectively reducing memory fragmentation so that a single GPU can accommodate large MoE model shards.
    • High-performance collective communication: Cross-node communication was handled by a high-performance collective communication library aligned with common industry standards. The library was deeply optimized at the lower layers for MoE-specific All-to-All patterns, reducing network congestion and latency across the dual-node interconnect topology.

    Validation Results and Convergence Analysis

    After 400 consecutive training steps, the system showed no numerical overflow or abnormal interruption, demonstrating high stability. Key engineering data and training metrics:

    1. Loss Convergence

    • Training loss: Converged from a mean of 8.9365 (steps 21–70) to a mean of 2.1802 over the final 50 steps.
    • Validation loss: Decreased steadily from an initial 6.5297 to 4.6873.

    The smooth downward loss curve indicates that the domestic AI chip achieves strong numerical precision alignment in the forward and backward passes of hybrid attention mechanisms and MoE operators, and the vision branch parameters were successfully included in gradient updates.

    2. Resource Utilization and Stability

    In the dual-node 16-GPU configuration, peak memory was held at 44.80 GiB. This shows that, without enabling CPU offloading, a well-designed FSDP sharding strategy allows domestic GPUs to handle training of the pruned trillion-scale MoE model.

    Summary and Outlook

    This training pipeline validation is a significant industry benchmark. Although it was a functional validation on a pruned configuration and not equivalent to full-scale pretraining, the detailed disclosure of 400 consecutive training steps, loss curves, and gradient checks demonstrates the technical feasibility of domestic AI chips in handling complex MoE multimodal architectures.

    Looking ahead, as domestic AI chips continue to iterate on per-card compute, on-chip memory, and cluster interconnect bandwidth, and as the software stack ecosystem matures, the full-scale pretraining capability of domestic compute in thousand- and ten-thousand-GPU clusters will be further unleashed. This will not only ease the bottleneck in high-end compute supply but also lay a solid foundation for the independent and controllable development of the large model industry.