Validating a Training Pipeline for a Trillion-Parameter MoE Multimodal Model on a Domestic GPU

    This article examines the engineering validation of a training pipeline for a native multimodal model with 2.8 trillion parameters and a Mixture-of-Experts architecture on a domestic GPU platform. It covers the main training challenges, distributed execution with FSDP2, communication and memory optimization, a two-node 16-GPU validation setup, and the resulting loss, memory, and gradient behavior. The results demonstrate that the underlying operators, expert routing, multimodal branches, and distributed communication path were successfully connected under a reduced-scale configuration.

    As large models approach the trillion-parameter scale, Mixture-of-Experts (MoE) architectures and multimodal capabilities are becoming major directions of development. These trends place higher demands on hardware compute, interconnect bandwidth, and the software stack.

    Recently, a domestic GPU vendor completed the training-pipeline adaptation of a native multimodal model based on a 2.8-trillion-parameter MoE architecture. Continuous training validation was then performed on a two-node, 16-GPU configuration. The effort reflects a shift in domestic GPU development from competing on peak compute alone to establishing an end-to-end system capable of supporting extremely large and complex models.

    1. Training Challenges of Trillion-Parameter MoE Multimodal Architectures

    MoE architectures increase model capacity by dynamically activating only a subset of expert networks while keeping computational costs under control. In practice, however, dynamic sparse attention and expert routing introduce substantial engineering challenges.

    First, multi-GPU communication overhead can increase sharply. In an MoE layer, input tokens are distributed to different experts according to the routing network and then gathered after computation. This All-to-All communication pattern is highly sensitive to network topology and cross-node latency. If the communication path is not implemented efficiently, compute devices may spend considerable time waiting, significantly reducing the cluster’s effective training throughput.

    Second, memory management becomes extremely difficult. Even with mixed-precision training, the weights, gradients, and optimizer states of a 2.8-trillion-parameter model require far more memory than a single GPU can provide. Multimodal models typically also include large vision encoders and cross-modal projection modules, which further increase memory fragmentation and peak-memory pressure. Managing tensor lifetimes within limited GPU memory is therefore a core requirement for the training framework.

    2. Establishing the Distributed Training Pipeline

    The central challenge of this adaptation was not simply releasing the peak compute performance of a single GPU. It was connecting and validating the entire distributed training pipeline. The engineering team needed to implement the forward and backward passes for the model’s hybrid attention and MoE operators while keeping their behavior aligned with mainstream training frameworks.

    For parallelism, the implementation used FSDP2 (Fully Sharded Data Parallel 2) to shard parameters, gradients, and optimizer states. By distributing model states across compute nodes, FSDP substantially reduces per-GPU memory consumption and makes trillion-parameter training possible within limited hardware resources. Activation recomputation and memory-reuse strategies were also applied to reduce peak memory usage further.

    For cross-node communication, a dedicated cluster communication library, such as a standard collective-communication solution, handled collective operations including All-Reduce and All-to-All. Efficient communication is essential for delivering expert-routing data in time. Optimization of this low-level communication stack is therefore a key capability for domestic GPUs entering the large-scale training market.

    For example, Baidu announced at its Create conference that its fully domestic Kunlunxin P800 cluster had completed training for an important version of ERNIE 5.1, achieving an effective training rate of 97%. This also highlights the importance of communication and parallel-scheduling optimizations in domestic GPU clusters.

    3. Designing Validation Under a Reduced-Scale Configuration

    Because full-scale pretraining is extremely expensive, engineering teams commonly use a reduced configuration to validate training functionality and loss behavior first. The validation in this project was conducted on two nodes with 16 GPUs, using the following configuration:

    1. Truncated language backbone: The configuration retained 13 language-model layers and used 16 routed experts, with Top-8 expert activation. This substantially reduced computation and communication while preserving the core behavior of the MoE architecture.
    2. Multimodal modules retained: All 27 layers of the vision tower and the cross-modal projection module were retained. This ensured that the complete multimodal fusion path was tested.
    3. Data and initialization: Training used a publicly available image-text question-answering dataset with random initialization. Random initialization removed the influence of pretrained weights and provided a more direct test of operator correctness and gradient effectiveness in the current training pipeline.

    4. Training Monitoring and Results

    During 400 consecutive training steps, the system experienced no numerical overflow or abnormal interruption. To demonstrate the robustness of the pipeline, the engineering team disclosed detailed training information, which is relatively uncommon for engineering validation of a 2.8-trillion-parameter MoE model.

    • Loss convergence: The training loss decreased smoothly from 8.9365, averaged over steps 21–70, to 2.1802, averaged over the final 50 steps. Validation loss decreased from 6.5297 to 4.6873. This clear convergence trend indicates that the MoE routing mechanism and the vision branch were correctly connected through both forward propagation and backward gradient updates.
    • Resource consumption: Peak GPU memory usage was limited to 44.80 GiB. With the complete vision tower and cross-modal projection module enabled, this result indicates that FSDP sharding and memory reuse performed as expected. It also provides a data point for future expansion to larger clusters.
    • Gradient checks: The gradients of the hybrid attention and MoE operators were examined in detail. The checks found no abnormal scaling or vanishing gradients, supporting stable optimizer-state updates.

    5. Industry Status and Future Outlook

    Across the industry, domestic GPU vendors are accelerating their adaptation to large models. In addition to the vendor discussed here, multiple domestic compute companies are adapting mainstream multimodal models and extending their efforts to clusters with thousands or tens of thousands of GPUs. Some companies have reported that their compute platforms support hundreds of mainstream models, covering most non-proprietary models. Others have used thousand-GPU clusters for multimodal pretraining and reinforcement learning, with accuracy aligned with advanced international products.

    Overall, domestic GPU vendors are moving beyond basic compatibility testing toward the disclosure of deeper engineering details, including continuous training steps, loss curves, and gradient checks. Although this validation used a reduced configuration and does not represent full-scale pretraining, it removed key obstacles in low-level operators and communication, providing a foundation for future full-scale training.

    As Baidu AI Cloud and other domestic computing infrastructure providers continue to improve parallel strategies, communication libraries, and containerized scheduling platforms, domestic hardware and software ecosystems are positioned to play a more important role in the era of trillion-parameter multimodal models.