Trillion-Parameter Multimodal MoE Model Training Pipeline Validation: An Engineering Practice

    This article examines the engineering practice of validating the training pipeline for a 2.8-trillion-parameter native multimodal MoE model on a domestic GPU platform. It covers the background and challenges of large-scale MoE training verification, the use of a trimmed configuration for functional and loss-trend validation, mixed-attention and MoE operator adaptation, FSDP-based memory optimization, and analysis of training loss, validation loss, and memory usage over 400 training steps on a 16-GPU setup.

    As large language models rapidly evolve toward trillion-parameter scale and native multimodality, the Mixture-of-Experts (MoE) architecture has become the mainstream choice across the industry. However, the dynamic sparse attention and expert routing mechanisms of these models impose extremely high technical demands on multi-GPU communication efficiency and memory management at the underlying compute layer.

    Recently, the pace of hardware adaptation in the industry has continued to accelerate. Companies such as Baidu have announced that their self-developed chip clusters have successfully completed training of major model versions, achieving an effective training rate of 97%. At the same time, multiple domestic compute vendors have disclosed progress in adapting mainstream open-source large model training. Against this backdrop, a domestic GPU vendor’s laboratory successfully completed the training pipeline adaptation and validation for a 2.8-trillion-parameter native multimodal MoE model. This article provides an in-depth analysis of this engineering practice.

    1. Background and Challenges of Validating Ultra-Large MoE Training Pipelines

    When working with an MoE multimodal model at the 2.8-trillion-parameter level, directly launching full-scale pretraining not only incurs enormous compute costs but also makes numerical anomalies and communication bottlenecks highly likely if the pipeline has not been fully verified. Therefore, using a “trimmed configuration” for functional and trend validation is a common engineering prerequisite in the industry.

    This validation was conducted on a two-node, 16-GPU configuration, with the core goal of verifying training functionality and loss trends rather than pursuing peak per-GPU compute performance. To ensure the validity of the verification, the model configuration was selectively trimmed:

    • Language backbone: 13 layers were retained, with 16 routed experts and a Top-8 activation strategy.
    • Multimodal modules: The full 27-layer vision tower and cross-modal projection modules were preserved.
    • Dataset: Random-initialization training was performed on an open-source image-text dataset.

    This trimming strategy significantly reduces memory and communication overhead while fully preserving the architectural characteristics of MoE routing and multimodal alignment, enabling effective verification of the correctness of underlying operators and the distributed pipeline.

    2. Core Operator Adaptation and Distributed Engineering Practice

    For MoE-based multimodal models, the focus of engineering adaptation lies in systematically enabling the distributed training pipeline. This practice involved deep engineering optimization across two main dimensions:

    2.1 Mixed Attention and MoE Operator Implementation

    Dynamic sparse attention and expert routing mechanisms require the underlying hardware to support complex conditional branching and irregular memory access. In this adaptation, the GPU vendor fully implemented the forward propagation and gradient backward computation for the relevant operators. Taking MoE routing as an example, its core logic dynamically selects Top-K experts for computation based on input features:

    1. # Pseudocode example of the MoE routing mechanism
    2. def moe_layer(inputs, experts, top_k=8):
    3. # Compute routing weights
    4. router_logits = dense_layer(inputs)
    5. # Select Top-K experts
    6. top_k_weights, top_k_indices = top_k_softmax(router_logits, top_k)
    7. # Dispatch input data to the corresponding experts for computation
    8. dispatched_inputs = dispatch(inputs, top_k_indices)
    9. expert_outputs = [experts[i](dispatched_inputs[i]) for i in range(num_experts)]
    10. # Combine expert outputs weighted by routing weights
    11. combined_output = combine(expert_outputs, top_k_weights, top_k_indices)
    12. return combined_output

    In this process, efficiently handling cross-GPU token dispatch and combination is critical to avoiding memory peak spikes and communication blocking.

    2.2 Memory Optimization Based on Fully Sharded Data Parallelism

    Given the enormous parameter count, gradients, and optimizer states of a trillion-parameter model, this training relied on Fully Sharded Data Parallel (FSDP) for management. FSDP shards model parameters, gradients, and optimizer states across the data-parallel dimension, so each GPU holds only a portion of the state and aggregates parameters on demand through communication during forward and backward computation.

    Cross-node data exchange is handled by a dedicated multi-node collective communication library, ensuring that All-Gather and Reduce-Scatter operations across the two nodes and 16 GPUs achieve high bandwidth and low latency, thereby systematically enabling distributed training.

    3. Training Results and Memory Monitoring Analysis

    On the two-node, 16-GPU configuration, the training pipeline completed 400 consecutive training steps without any numerical overflow or abnormal interruption. Based on the disclosed engineering details, the model demonstrated a healthy convergence trend:

    • Training loss: Converged significantly from 8.9365 (average over steps 21–70) to 2.1802 (average over the final 50 steps).
    • Validation loss: Decreased steadily from 6.5297 to 4.6873.
    • Memory usage: Peak memory during training was controlled at 44.80 GiB, and the vision branch also participated normally in parameter updates.

    The smooth decline of the loss curve, together with the synchronized reduction in validation loss, indicates that the operator implementations are correct and the model is effectively learning multimodal features. The 44.80 GiB memory peak demonstrates the effectiveness of the FSDP sharding strategy in avoiding out-of-memory (OOM) issues. Furthermore, the successful update of vision branch parameters verifies that the gradient backpropagation path between the cross-modal projection modules and the language backbone is fully connected.

    4. Conclusion and Outlook

    Compared with previous disclosures that merely announced cluster sizes or adaptation lists, this release of specific training steps, loss curves, and gradient verification details for a 2.8-trillion-parameter MoE multimodal model provides the industry with a more valuable engineering reference.

    It should be made clear that this validation is still at the stage of pipeline verification under a trimmed configuration and does not equate to complete full-scale pretraining. Going forward, as domestic GPUs continue to improve in operator library completeness, collective communication performance, and cluster stability, it is an inevitable trend for domestic compute infrastructure to extend toward thousand-GPU and ten-thousand-GPU cluster scenarios and to support full-scale native multimodal large model pretraining. This represents not only a breakthrough in individual hardware capability, but also the maturation of an entire technology ecosystem spanning the compute foundation, communication frameworks, and parallelism strategies.