Validating a Trillion-Parameter MoE Multimodal Training Pipeline on Domestic Chinese GPUs

    This article documents a validation run of a trillion-parameter MoE multimodal training pipeline on domestic Chinese GPUs. Using a scaled-down configuration on 16 GPUs across two nodes, it covers the two main challenges of MoE multimodal training (cross-device communication overhead and uneven memory load), the operator, sharding, and communication work required for adaptation, the disclosed validation metrics and their limitations, and the information still needed for reproduction. The goal was to verify that the pipeline runs end to end, not to train a usable final model.

    As large models scale toward trillions of parameters, Mixture-of-Experts (MoE) architectures and native multimodal designs have become mainstream. These models place high demands on communication bandwidth, memory scheduling, and distributed training frameworks. Domestic Chinese GPUs have made steady progress in hardware-software co-design in recent years and now provide a foundation for large-scale model training. This article reviews a training pipeline validation based on a scaled-down configuration, outlining the main challenges encountered during adaptation and how they were addressed. Note that the goal of this validation was to check whether the pipeline could run end to end, not to train a usable final model.

    1. Two Main Challenges in MoE Multimodal Training

    1. High cross-device communication overhead. In MoE, experts are typically distributed across different compute nodes. Tokens are sent to their assigned experts based on routing results, so forward propagation requires heavy All-to-All communication. In multimodal scenarios, visual and textual features are fused, making the communication timing even more complex. If the collective communication library is not well optimized, the share of time spent on communication rises noticeably and slows down overall training.

    2. Imbalanced memory load. Dynamic sparse activation means each expert’s load varies with the input. Some GPUs may run out of memory, and frequent allocation and deallocation also create fragmentation. With limited resources such as 16 GPUs across two nodes, running a large MoE structure stably requires careful memory management.

    2. The Scaled-Down Configuration

    Full-scale pretraining is expensive. This validation used a scaled-down configuration to expose problems in the operators and communication pipeline at lower cost.

    Table 1. Scaled-down configuration

    Module Configuration Purpose
    Language backbone 13 layers retained Reduces compute from depth
    Routed experts 16 experts, Top-8 activation Preserves MoE routing communication patterns while controlling peak memory
    Vision tower Full 27 layers retained Tests the image-text fusion pipeline and gradients in the vision branch
    Data and initialization Public image-text QA dataset, random initialization Tests the training flow and loss trend, without pursuing model accuracy

    The original model has 2.8 trillion parameters. The total and activated parameter counts of the scaled-down version were not provided in the original disclosure, so this article does not estimate them. Readers who need to assess the size of the scaled-down version should first complete the parameter accounting.

    3. Core Implementation: Operators, Sharding, and Communication

    1. Operator completion. When adapting a new architecture to domestic GPUs, the first step is to fill in missing or incomplete low-level operators. Dynamic sparse attention requires optimized forward and backward implementations to ensure memory access efficiency with variable-length sequences. The MoE gating network and expert computation need fused implementations, and gradients must propagate back correctly along the routing paths to avoid numerical overflow or gradient truncation.

    2. FSDP2 sharding. FSDP2 shards parameters, gradients, and optimizer states. Before computation, parameters are gathered on demand via All-Gather; after computation, gradients are synchronized and sharded via Reduce-Scatter. Memory pressure is thus spread across nodes, lowering the per-GPU peak.

    3. Cross-node communication. Within a node, communication typically relies on NVLink or PCIe Switch; across nodes, on InfiniBand or RoCE. The All-to-All traffic can be roughly estimated: per layer, per direction, the send volume is approximately “tokens per GPU × Top-K × hidden dimension × bytes per element.” Optimizing this operation and overlapping communication with computation is key to improving effective training time.

    4. Validation Results

    The reported pipeline ran continuously for 400 steps on a two-node, 16-GPU configuration, with no numerical overflow or abnormal interruption. The table below lists the disclosed metrics along with the missing measurement conditions.

    Table 2. Validation metrics

    Metric Disclosed value Missing information Conclusion
    Training loss Mean of 8.9365 over steps 21–70; mean of 2.1802 over the final 50 steps Batch size, sequence length, precision The forward, loss, and backward update pipeline runs; loss shows a downward trend
    Validation loss Decreased from 6.5297 to 4.6873 Evaluation steps, evaluation data size Validation loss decreases in the same direction
    Peak memory 44.80 GiB Per-GPU vs. cluster scope, measurement tool, optimizer state sharding scope Limited credibility; should not be cited directly until conditions are clarified
    Vision branch parameter updates Gradient checks show the vision branch participates in parameter updates Details of the checking method Multimodal gradient backpropagation is not blocked

    5. Information to Confirm Before Reproduction

    The original disclosure lacks the following, which must be filled in before reproduction:

    • PyTorch and FSDP2 versions
    • Domestic GPU model and per-GPU memory capacity
    • Collective communication library and its version
    • Network topology and inter-node bandwidth
    • Parallelism configuration (how data parallelism and expert parallelism are partitioned) and precision settings
    • Launch scripts, checkpoint save paths, and read/write permission requirements

    6. Risks and Troubleshooting

    • Training interruptions: In multi-node jobs, a single node failure takes down the entire job. Save checkpoints periodically and verify that training can resume from the most recent checkpoint.
    • Numerical overflow: MoE gating and low-precision computation are prone to overflow. Monitor gradient norms and watch for NaN or Inf in the loss, and keep a mechanism for skipping anomalous steps.
    • Communication deadlock: All-to-All requires consistent send/receive ordering across GPUs. If an expert receives no tokens, or routing results are inconsistent, the job may hang. Set timeouts and log per-GPU routing statistics.
    • Checkpoint rollback: After resuming training, confirm that the loss curve is continuous, so that incorrect sharded-state loading is not silently ignored.

    7. Validation Boundaries and Ecosystem Status

    This validation checked whether the pipeline can run; it does not represent the results of full-scale training. Random initialization, 400 training steps, and the scaled-down configuration all limit how far the conclusions can be generalized. Readers should not treat these results as direct proof of the feasibility of training a trillion-parameter model.

    The domestic compute ecosystem is moving from single-GPU functional validation toward multi-GPU and cluster scenarios. This article has not verified industry figures such as effective training rates, shipment volumes, or market share; refer to original reports from vendors or institutions for those numbers. Going forward, MoE communication efficiency and effective training rates on 10,000-GPU clusters remain engineering challenges that require continued work.