Validating a 2.8T-Parameter MoE Multimodal Training Pipeline on Domestic GPUs

    Training trillion-parameter multimodal models places extreme demands on compute infrastructure, distributed communication, and memory management. This article examines a validation exercise in which a domestic GPU vendor’s lab adapted the training pipeline for a 2.8-trillion-parameter native multimodal MoE model and ran 400 consecutive steps on a two-node, 16-GPU configuration without numerical overflow or abnormal termination. It covers the main challenges—dynamic sparse attention, expert routing and All-to-All communication, and numerical stability—and explains the cropped test configuration, loss convergence, and 44.80 GiB per-GPU peak memory. It then details engineering work on operator forward/backward implementations, FSDP-based sharding, and cross-node communication optimization. The results provide a practical reference for validating ultra-large distributed training pipelines on domestic GPU stacks.

    As large models move toward trillion-parameter scale, Mixture-of-Experts (MoE) architectures and multimodal fusion have become core paths for improving model capability. These complex architectures place extremely high demands on underlying compute infrastructure, distributed communication mechanisms, and memory management. Recently, a domestic GPU vendor’s lab completed training-pipeline adaptation for a 2.8-trillion-parameter native multimodal MoE model and ran 400 consecutive training steps on a two-node, 16-GPU configuration without numerical overflow or abnormal interruption. This marks a solid step forward for domestic GPUs in supporting ultra-large-scale distributed training pipelines. This article examines the technical challenges and engineering solutions behind this validation exercise.

    1. Training Challenges for Trillion-Parameter MoE Multimodal Models

    In the current evolution of large-model technology, MoE architectures dynamically activate a subset of expert networks, greatly expanding model parameter count without linearly increasing computation. Native multimodal models require deep fusion of visual, language, and other modalities at the underlying architecture level. A 2.8-trillion-parameter model combining these two approaches faces three core training challenges:

    1. Dynamic sparse attention and memory pressure: Multimodal models typically include large visual encoders and cross-modal projection modules. Combined with a trillion-level language backbone, overall memory usage is very high. At the same time, dynamic sparse attention requires highly flexible memory management to handle dynamic changes in input sequence length.
    2. Expert routing and cross-GPU communication bottlenecks: The core of MoE is routing tokens to the most suitable expert networks. In multi-GPU distributed training, experts are usually distributed across different GPUs. Before computation, each token must be sent through All-to-All communication to the GPU hosting its target expert, and the result must be sent back after computation. This high-frequency cross-node communication places heavy demands on network bandwidth and communication-library optimization.
    3. Operator precision and numerical stability: In multimodal mixed-precision training, the visual branch and language backbone have quite different data distributions. If FP16/BF16 operator implementations are not rigorous, numerical overflow or gradient anomalies can easily occur during backward gradient computation.

    2. Validation Strategy Under a Cropped Configuration

    To quickly and accurately validate the completeness and functional availability of the training pipeline under limited hardware resources, engineering teams typically use a “cropped configuration” for testing. This reduces hardware cost and helps focus on joint debugging of core modules.

    In this validation, the test team applied targeted cropping to the 2.8-trillion-parameter MoE multimodal model:

    • Language backbone truncation: Only 13 Transformer layers were retained, with 16 routed experts and a Top-8 activation strategy. This preserves MoE routing logic while significantly reducing per-step forward and backward computation.
    • Multimodal modules retained: The full 27-layer vision tower and cross-modal projection module were retained to ensure that multimodal feature extraction and alignment logic were tested realistically.
    • Training data: Random-initialization training was conducted on an open-source image-text multimodal dataset.

    The system ran 400 consecutive steps on a two-node, 16-GPU configuration and showed good stability. In terms of key metrics, training loss converged smoothly from an initial 8.9365 (mean over steps 21–70) to 2.1802 (mean over the last 50 steps). Validation loss also dropped from 6.5297 to 4.6873. For memory usage, the per-GPU peak was controlled at 44.80 GiB, and the vision branch participated normally in parameter updates. These data show that, at the cropped scale, the model’s distributed training functions and loss-decrease trend were completely normal, validating the correctness of the underlying operator implementations and communication pipeline.

    3. Core Engineering Breakthroughs: Systematically Connecting the Distributed Pipeline

    The focus of this adaptation was not to pursue the ultimate peak of single-GPU compute, but to systematically connect the distributed training pipeline. This involved key engineering areas such as completing underlying operators, memory-sharding management, and cross-node communication optimization.

    3.1 Completing Operator Forward and Gradient Implementations

    For the multimodal hybrid attention mechanism and MoE expert routing mechanism, the development team completed the forward and backward gradient implementations of the relevant operators on the domestic GPU software stack. In MoE routing, token allocation must be load-balanced to avoid overloading some experts while others remain idle. The pseudocode below shows the basic MoE routing logic:

    1. # Simplified example of MoE routing logic
    2. def moe_layer(tokens, experts, router):
    3. # Calculate routing weights
    4. router_logits = router(tokens)
    5. # Get Top-K expert indices and weights
    6. top_k_weights, top_k_indices = top_k(router_logits, k=8)
    7. # Cross-GPU communication: dispatch tokens to GPUs hosting experts (All-to-All)
    8. dispatched_tokens = all_to_all_dispatch(tokens, top_k_indices)
    9. # Expert computation
    10. expert_outputs = [experts[i](dispatched_tokens[i]) for i in range(num_experts)]
    11. # Cross-GPU communication: combine results back to original GPUs (All-to-All)
    12. combined_outputs = all_to_all_combine(expert_outputs, top_k_indices)
    13. # Weighted merge
    14. output = sum(combined_outputs[i] * top_k_weights[i] for i in range(8))
    15. return output

    Ensuring that gradients can be accurately propagated back through the routing weights in this process is key to avoiding numerical overflow and abnormal interruption.

    3.2 FSDP-Based Memory Sharding Management

    For trillion-parameter models, even with a cropped configuration, traditional data parallelism (DP) cannot carry the huge parameter count and optimizer states. This adaptation relied on Fully Sharded Data Parallel (FSDP) to finely shard model parameters, gradients, and optimizer states across GPUs.

    Under FSDP, only when a layer needs forward or backward computation are its full parameters gathered from other GPUs through All-Gather. After computation, those parameters are immediately released or re-sharded. This on-demand gathering and immediate sharding strategy reduces memory usage from “each GPU must hold the full model” to “each GPU holds only a partial shard,” bringing the 44.80 GiB peak memory within the affordable range of modern GPUs.

    3.3 Efficient Coordination of the Cross-Node Communication Library

    The core difficulty in the two-node, 16-GPU scenario is cross-machine communication latency. The adaptation used a dedicated cross-node communication library with low-level optimizations for collective communication primitives such as All-to-All and All-Reduce. Through techniques including computation-communication overlap, topology-aware routing, and gradient aggregation compression, the library effectively alleviated network congestion caused by frequent cross-GPU communication in MoE architectures and helped ensure collaborative compute efficiency across the two-node cluster.

    4. Industry Adoption Status and Future Outlook

    From an overall industry perspective, the pace of adaptation between domestic GPUs and large models continues to accelerate. More vendors are advancing training-side adaptation for mainstream large models and extending toward thousand-GPU and ten-thousand-GPU cluster scenarios.

    On the ecosystem side, Baidu has disclosed that a fully domestic cluster built with its self-developed AI chips successfully completed training of an important model version, with an effective training rate of 97%, demonstrating the potential of domestic compute in hardware-software co-optimization. Other domestic GPU vendors are also actively adapting hundreds of mainstream large models, covering most of the non-closed-source model ecosystem. Industry consultancies predict that China’s high-end AI chip shipments will reach about 5 million units in 2026, up 83% year over year, with local solutions’ market share expected to approach 90% (including cloud vendors’ self-developed chips).

    Conclusion

    From single-operator validation to full distributed pipeline connectivity, domestic GPUs are steadily crossing the engineering gap. This training-pipeline validation of a 2.8-trillion-parameter MoE multimodal model is still at the cropped-configuration stage, but the disclosed consecutive training steps, loss convergence curves, and gradient-check details provide valuable engineering practice for the industry. As sharding and parallelism strategies deepen and cross-node communication technologies mature, the era in which domestic compute fully supports ultra-large-scale multimodal pre-training is accelerating.