Domestic GPU Completes MoE Multimodal Training Pipeline Validation with a Pruned Configuration

    This article explains a training pipeline validation on domestic GPUs using a pruned MoE multimodal configuration—not full pretraining of a 2.8-trillion-parameter model. It covers the engineering challenges of combining MoE with multimodal training, the pruned setup used, operator implementation, FSDP2 sharding and cross-node communication, how to interpret the disclosed metrics, remaining bottlenecks on the path to 10,000-GPU clusters, and what to record when reproducing similar work.

    This article describes a training pipeline validation under a pruned configuration. It is not full pretraining of the 2.8-trillion-parameter model. Readers should keep this boundary in mind to correctly interpret the data and conclusions below.

    1. Where Do the Training Challenges Come From When MoE Meets Multimodality?

    Trillion-parameter native multimodal models typically rely on two core mechanisms, each imposing different demands on memory and communication.

    Mechanism Compute and Memory Access Pattern Main Engineering Risk What to Check During Validation
    Dynamic sparse attention Selects tokens for computation on demand; reduces compute but makes memory access irregular Fluctuating memory bandwidth utilization; heavy cache scheduling pressure Whether bandwidth and latency stay stable across sequence lengths
    Expert routing (MoE) A gating network selects Top-K experts per token; communication shifts from All-Reduce to All-to-All Cross-node communication becomes the bottleneck; dynamic routing causes load imbalance Communication time share; whether memory pre-allocation is sufficient
    Vision tower and cross-modal projection Heterogeneous dual-branch architecture for text and images Complex memory layout; multimodal alignment prone to anomalies Whether gradients propagate back through the vision branch correctly

    In a conventional Transformer, attention compute grows quadratically (N²) with sequence length. Dynamic sparse attention reduces compute by limiting the tokens involved, but token selection is dynamic, which makes memory access patterns irregular.

    MoE replaces the feed-forward layers with multiple parallel expert networks. On each forward pass, the gating network decides which experts process each token. Inter-GPU communication therefore shifts from regular All-Reduce to complex All-to-All. In multi-node, multi-GPU setups, cross-node All-to-All communication easily becomes the bottleneck, and careful memory pre-allocation is needed to buffer load imbalance.

    2. The Pruned Configuration: How to Validate the Pipeline at Small Scale

    Pretraining a full trillion-parameter model usually requires clusters of thousands to tens of thousands of GPUs. As a result, the industry commonly uses pruned configurations to first verify pipeline correctness. The main settings in this validation were:

    • The language backbone kept 13 layers with 16 routed experts and Top-8 activation. This preserves the dynamic routing behavior of MoE while keeping compute within an acceptable range.
    • The vision tower kept the full 27 layers, including the cross-modal projection module, so the multimodal feature alignment mechanism was fully exercised.
    • The dataset was MedPix-VQA, an image-text dataset.
    • The model was trained from random initialization, with no pretrained weights.

    Random initialization makes it easier to expose numerical stability issues in low-level operators under sharp gradient changes. The trade-off is that training loss does not reflect real model capability, so a falling loss should not be read as evidence that the model performs well.

    3. Operators, Sharding, and Communication: Three Critical Pieces

    Operator implementation and precision. Domestic GPUs need forward and backward implementations of hybrid attention and MoE operators built from scratch. The MoE operator must handle token dispatch and collection as well as the derivative of the gating function during backpropagation. Any numerical deviation can be amplified in backpropagation, causing gradient explosion or vanishing. No numerical overflow occurred during the 400 training steps, which suggests the operators are basically stable under this configuration. It does not, by itself, prove that precision is sufficient at full scale.

    FSDP2 sharding. Parameters, gradients, and optimizer states are all sharded following FSDP2. During the forward pass, parameter shards are pulled from other GPUs on demand; after the backward pass, gradients are likewise stored in sharded form. The peak memory footprint on a single GPU is thereby spread across nodes.

    Cross-node communication. According to the original material, cross-node collective communication is handled by dedicated communication libraries such as MCCL. In a two-node, 16-GPU setup, the library must schedule both PCIe and high-speed interconnect links to complete FSDP2 parameter synchronization and MoE All-to-All communication. Communication latency and bandwidth utilization directly determine the share of effective compute time.

    4. How to Read the Disclosed Test Data

    The original material provides the following figures but does not state the measurement methodology. These numbers should be treated as reference values pending verification.

    • Training loss: mean of 8.9365 over steps 21–70; mean of 2.1802 over the final 50 steps.
    • Validation loss: decreased from 6.5297 to 4.6873.
    • Peak memory: 44.80 GiB under the pruned configuration, including the full vision tower and cross-modal projection.
    • Gradient check: the vision branch participated in parameter updates, and gradient checks found no anomalies.

    These results show a downward loss trend and confirm that the vision branch was updated. However, 44.80 GiB is only the peak for this pruned configuration and cannot be extrapolated to the full model’s memory requirements.

    BF16 weights alone for the full model would be about 5.6 TB (2.8 trillion parameters × 2 bytes). Adding gradients and optimizer states pushes total memory demand into the tens of terabytes. This estimate and the pruned configuration’s 44.80 GiB are measured on different bases and should not be compared directly.

    5. Industry Context and Data Sources

    Adaptation between domestic GPUs and large models is accelerating. According to Baidu’s public statements at its Create conference, its fully domestic Kunlunxin P800 cluster completed training of an important version of ERNIE 5.1 with a 97% effective training rate. This figure comes from the vendor itself and has not been independently verified here.

    As for predictions about the domestic share of high-end AI chips in China by 2026, the original material does not cite the institution or report name, so this article does not quote specific percentages. Readers who need such figures should locate the original report and check its methodology first.

    6. From Two Nodes and 16 GPUs to 10,000 GPUs: Remaining Problems

    1. The communication wall: as node counts grow, network topology becomes more complex, and latency and congestion control for any-to-any communication become the main bottlenecks.
    2. Long-term stability: when a 10,000-GPU cluster runs continuously for months, hardware failures and network jitter occur frequently. Training requires fault tolerance, frequent checkpointing, and resume-from-checkpoint capability, or progress will be repeatedly interrupted.

    7. What to Record When Reproducing

    To reproduce a similar validation, record at least the following:

    • Versions of hardware, drivers, operator libraries, and communication libraries
    • Parallelism strategy, including FSDP2 sharding scheme and MoE parallelism degree
    • Communication topology and inter-node network configuration
    • Batch size, sequence length, precision format, and optimizer settings
    • Loss statistics window and validation set split
    • Peak memory measurement methodology, including whether activations and optimizer states are included and whether the figure is per GPU or global
    • Gradient checking method and the threshold for flagging anomalies

    Conclusion

    This pruned-configuration validation shows that domestic GPUs can run MoE multimodal training end to end in a two-node, 16-GPU environment, with stable operators, working FSDP2 sharding, and gradients flowing correctly through the vision branch. It validates the pipeline, not the full-scale model: questions of precision at scale, cross-node communication efficiency, and long-duration stability on large clusters remain open and require further verification.