Training MoE Multimodal Models on Domestic GPUs: Engineering Considerations for Trimmed Configuration Validation

    This article explores the engineering practices for validating the training pipeline of trillion-parameter Mixture-of-Experts (MoE) multimodal models on domestic GPUs. Using a trimmed configuration validation rather than full-scale pretraining as a case study, it analyzes core training challenges like All-to-All communication bottlenecks and memory footprint issues. The article details a three-tier adaptation strategy spanning operator, framework, and cluster communication layers, presents quantitative validation results from a 2-node 16-GPU environment, and outlines pre-deployment checklists and troubleshooting steps.

    This article discusses how domestic GPUs support the training pipeline for trillion-parameter Mixture-of-Experts (MoE) multimodal models. The case study presented is a pipeline validation using a trimmed configuration, not a full-scale trillion-parameter pretraining. Please keep this premise in mind when reading.

    I. Where Are the Training Difficulties?

    In MoE models, each token is routed to a Top-K number of expert networks via a routing mechanism. In multi-card and multi-node scenarios, this process generates massive All-to-All communication, with traffic fluctuating based on the number of experts and token distribution. Without targeted optimization of the training pipeline, communication often becomes the bottleneck.

    Dynamic sparse attention can reduce some computational volume, but its memory access patterns are irregular. This leads to a lower GPU on-chip cache hit rate, making memory bandwidth more difficult to plan. Therefore, a reduction in computational volume does not equate to a reduction in end-to-end latency; this must be evaluated based on the specific implementation and hardware testing.

    Multimodal models also consist of a language trunk, a vision tower, and a cross-modal projection module. The memory footprint is composed of parameters, gradients, optimizer states, and activations. The capacity of a single GPU is typically insufficient, necessitating sharding and recomputation. However, sharding and recomputation alter the communication and computation volumes, and their impact on precision requires separate verification.

    II. Key Stages of Adaptation Engineering

    Adaptation is generally advanced across three layers: the operator layer, the framework layer, and the cluster communication layer.

    Operator Layer: This layer requires implementing the forward computation related to expert routing and the corresponding backward gradient implementation. Developers should compare the forward output with the backward gradients to ensure the numerical error is within an acceptable range. If the numerals are not aligned, the results of subsequent distributed training will be difficult to interpret.

    Framework Layer: A fully sharded scheme similar to FSDP2 is commonly used. This approach shards parameters, gradients, and optimizer states across GPUs. During computation, the required shards are aggregated on demand via All-Gather, and the memory of non-current shards is released after computation to lower the peak memory usage on a single GPU. The actual effectiveness depends on the framework version, sharding granularity, whether CPU offload is enabled, and whether activation recomputation is utilized. As public cases do not disclose these details, this article only explains the basic principles of this direction.

    Cluster Communication Layer: The focus here is on cross-node communication. In a 2-node, 16-GPU configuration, the latency and bandwidth of the cross-node link directly impact the All-to-All latency. Common practices include optimizing the placement topology of experts across nodes to reduce cross-node traffic, and using pipelining to overlap computation with communication.

    III. A Validation Case Using a Trimmed Configuration

    A public case demonstrated continuous training for 400 steps in a 2-node, 16-GPU environment. The model was trimmed: the language trunk retained 13 layers and was configured with 16 routed experts with Top-8 activation per token; the 27 layers of the vision tower and the cross-modal projection module were fully retained. The training data was the image-text pair dataset MedPix-VQA, and the model was randomly initialized.

    Under the premise of a 2-node, 16-GPU setup with sharding, CPU offload, recomputation, and a trimmed configuration, this pipeline successfully completed validation. Note that this conclusion cannot be generalized to full-scale trillion-parameter pretraining.

    The results were as follows: Peak VRAM remained stable at 44.80GiB, with no numerical overflow or abnormal interruptions during training. The average training loss between steps 21 and 70 was 8.9365, dropping to an average of 2.1802 for the last 50 steps. The validation set loss decreased from 6.5297 to 4.6873. The parameters of the vision branch also participated in the updates.

    What do these numbers indicate? They show that the training pipeline is functional, the loss decreases with steps, and the vision branch is indeed learning. However, they do not directly prove the convergence quality of the full-scale model. The original case did not disclose the batch size, sequence length, learning rate, data partitioning, sampling method, or memory measurement methodology. Without this information, other teams cannot reproduce these numbers, nor is it appropriate to directly compare this loss with other configurations.

    To reuse this validation approach, you can first fix a minimal configuration and record the aforementioned parameters. Subsequently, gradually increase the number of layers, experts, and GPUs, observing the changes in memory and loss at each step.

    IV. Industry Progress and Data Requiring Verification

    Domestic compute vendors have recently continued to advance the adaptation of mainstream large models on the training side. The competitive focus is shifting from single-chip peak compute power to the connectivity and stability of distributed systems.

    According to public disclosures by Baidu at the Create 2026 conference, its Kunlunxin P800 all-domestic cluster completed the training of a significant version of the ERNIE model, achieving an effective training rate of 97%. This figure is vendor-reported. The disclosure did not specify the statistical criteria for the effective training rate, cluster size, task duration, or how faults were accounted for. This article cannot independently verify this and advises citing the original source.

    Other solutions claim to have adapted hundreds of mainstream large models and achieved precision alignment in multimodal pretraining and reinforcement learning scenarios. Such claims regarding coverage and precision alignment also lack public test sets and comparative conditions, and should currently only be treated as vendor statements.

    V. Pre-Deployment Checklist

    Domestic substitution should not be deployed directly to production environments. Before going live, the following tasks are recommended:

    1. Conduct compatibility testing: Cover combinations of framework versions, operator library versions, and driver versions.
    2. Perform precision regression: Compare the loss and evaluation metrics on the domestic devices item-by-item against the reference platform.
    3. Prepare a rollback plan: Retain checkpoints and startup scripts that allow switching back to the original platform.

    If anomalies occur during training, you can troubleshoot in the following order: whether All-to-All communication is congested, whether VRAM has overflowed, whether the loss has become NaN, whether computation and communication are actually overlapping, and whether the activation recomputation switch is consistent with the configuration.