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

    As large language models evolve toward native multimodality and extremely large parameter counts, Mixture-of-Experts (MoE) architectures have become a key path to overcoming compute bottlenecks. Domestic AI chips have recently made significant progress in validating the training pipeline for a 2.8-trillion-parameter MoE native multimodal model, signaling growing system engineering maturity for domestic compute in complex distributed training scenarios. This article examines the practice from four angles: technical challenges, validation strategy, distributed architecture, and industry trends.

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

    As large language models evolve toward native multimodality and extremely large parameter counts, Mixture-of-Experts (MoE) architectures have become a key technical path to overcoming compute bottlenecks. Recently, domestic AI chips achieved significant progress in validating the training pipeline for a 2.8-trillion-parameter MoE native multimodal model, marking growing system engineering maturity for domestic compute in complex distributed training scenarios. This article analyzes this engineering practice from four dimensions: technical challenges, validation strategy, distributed architecture, and industry trends.

    1. Technical Barriers of Trillion-Parameter MoE Multimodal Models

    Training MoE multimodal models at this scale presents extremely high engineering barriers, with core difficulties concentrated in low-level support for dynamic sparse attention and expert routing mechanisms.

    First, native multimodal models typically consist of a vision tower, a cross-modal projection module, and a language backbone. The cross-modal fusion of visual and language features imposes strict requirements on how tensor parallelism splits data. Second, the expert routing mechanism in MoE means that in every training step, tokens are dynamically assigned to different expert networks for computation. This dynamic routing causes a surge in cross-device communication, with All-to-All communication overhead becoming a key factor limiting training efficiency.

    In addition, while dynamic sparse attention reduces the computational complexity of long sequences, its irregular memory access patterns pose major challenges for memory bandwidth and cache management. For domestic AI chips, efficiently scheduling memory resources and avoiding memory fragmentation or overflow during dynamic routing is the primary challenge in adapting to this type of architecture.

    2. Engineering Strategy for Pipeline Validation: Trimmed Configurations and Metric Analysis

    Because running full-scale trillion-parameter pretraining directly is extremely costly and carries uncontrollable risk, the industry typically adopts a “trimmed configuration” strategy for early-stage training pipeline validation. The goal is to verify, with low resource consumption, whether training functionality is complete and whether the loss trend is reasonable.

    Typical trimming strategies in engineering practice include:

    1. Language backbone truncation: Truncate part of the language backbone (e.g., the first 13 layers) to reduce the depth of forward and backward propagation and the per-device compute load.
    2. Routing expert retention: Keep a certain number of routing experts (e.g., 16) and activate a subset of them (e.g., Top-8 activation) to verify the correctness of MoE routing logic and the stability of communication links.
    3. Full multimodal module retention: Keep the complete 27-layer vision tower and cross-modal projection module to ensure the multimodal feature extraction and alignment pipeline is fully validated.

    In randomized-initialization training on a specific image-text dataset, developers need to closely monitor the following key metrics:

    • Training loss convergence: Within a few hundred training steps, the training loss should show a smooth and significant downward trend. For example, gradually converging from a high initial value to a low value around 2 demonstrates that the model has effective learning capability.
    • Validation loss: Validation loss should decrease accordingly, indicating no severe overfitting.
    • Peak memory control: In a dual-node, multi-device configuration, peak memory must be strictly kept within the hardware’s physical limit (e.g., around 45 GiB), with no numeric overflow or abnormal interruption.
    • Branch parameter updates: It must be confirmed that the vision branch parameters are updated normally during backpropagation, verifying cross-modal gradient connectivity.

    3. Distributed Training Architecture and Operator Adaptation

    Getting the validation pipeline working does not depend on single-device peak compute; it depends on systematically connecting the entire distributed training pipeline. This requires deep coordination across three layers of the underlying software and hardware stack: operator implementation, memory management, and cross-node communication.

    1. Operator Forward and Gradient Implementation

    For MoE architectures, the AI chip must natively support, or fill in via framework adaptation, the forward and backward gradient computation of hybrid attention mechanisms and MoE operators. This requires the chip’s underlying compiler to recognize and optimize dynamic control flow, ensuring tensor operations during expert routing dispatch and merging are efficient and accurate.

    2. Distributed Sharding Management

    To address the memory pressure from trillion parameters, the system typically relies on fully sharded data parallel techniques (such as the FSDP2 mechanism). This mechanism shards model parameters, gradients, and optimizer states at fine granularity across multiple devices and gathers them on demand during computation. This strategy substantially reduces per-device memory usage and is the foundation for supporting ultra-large-scale model training.

    3. Cross-Node Communication

    Communication in multi-node, multi-device scenarios is the core determinant of training efficiency. The system relies on a high-performance collective communication library (such as the industry-standard distributed communication frameworks) to handle cross-node data synchronization. Under MoE architectures, the communication library must deeply optimize All-to-All and other communication primitives, using RDMA networks to reduce latency and ensure token transfer during expert routing does not become a system bottleneck.

    Looking at the overall industry landscape, the pace of adaptation between domestic GPUs and large models continues to accelerate, moving from single-point functional validation toward systematic large-scale cluster training.

    On one hand, leading domestic tech companies are accelerating the deep coupling of their in-house chips with their own large models. For example, Baidu has built a fully domestic cluster using its self-developed Kunlunxin series of AI chips, successfully completing training of a major version of its ERNIE large model with a 97% effective training rate, and continues extending into thousand-card and ten-thousand-card cluster scenarios. Other domestic chip solutions have also achieved precision alignment with international products in scenarios such as multimodal pretraining and reinforcement learning.

    On the other hand, moving from trimmed-configuration pipeline validation to full-scale pretraining still requires overcoming many engineering challenges. Future tests will mainly focus on:

    1. Cluster scalability: Scaling from a dozen or so devices to thousands or tens of thousands introduces exponential growth in communication topology complexity, and network congestion handling and node fault-tolerance mechanisms will face severe tests.
    2. Long-term stability: Ultra-large-scale pretraining typically runs continuously for weeks or even months, making hardware long-term stability, cooling efficiency, and the reliability of checkpoint-resume mechanisms critical.

    In summary, completing continuous training and gradient checks of a trillion-parameter MoE multimodal model via trimmed configurations provides a highly valuable engineering reference for the reproducibility of domestic GPUs on the training side. As domestic compute infrastructure continues to improve, the market share of local AI chip solutions in the high-end segment will keep rising, and full domestic substitution for trillion-parameter large model training is drawing steadily closer.