Training Trillion-Parameter Multimodal MoE Models on China-Developed GPUs: An Engineering Analysis of a Truncated Validation

    This article analyzes a truncated configuration validation in which a 2.8-trillion-parameter native multimodal MoE model completed 400 training steps on two nodes with 16 cards in total, with no numerical overflow or unexpected interruption. It breaks down the operator implementation, FSDP2 sharding, cross-node communication, and convergence data from the validation, and explains what the results do and do not prove.

    1. Background: Domestic GPU Adaptation Enters the Engineering Detail Stage

    In recent years, adaptation work between China-developed GPU vendors and mainstream large language models has accelerated noticeably. However, the depth of disclosure varies widely. Some vendors only mention in earnings reports or investor briefings that they have “adapted certain model series” or are “extending to clusters of a thousand or ten thousand cards.” Some cloud providers have published that they completed training of important model versions on fully domestic clusters, and have reported quantitative metrics such as effective training rate. By comparison, very few vendors are willing to publish fine-grained engineering data such as training loss curves, gradient checks, and peak memory usage.

    Recently, the laboratory of a China-developed GPU vendor completed a representative validation. For a native multimodal model with a 2.8-trillion-parameter MoE architecture, it ran 400 consecutive training steps on two nodes with 16 cards in total, with no numerical overflow or abnormal interruption. Although this was only a link validation under a truncated configuration, the information disclosed is dense enough to support a complete engineering analysis. This article uses the case to break down how the training pipeline for a trillion-parameter multimodal model was made to work on China-developed GPUs.

    2. Why Trillion-Parameter MoE Multimodal Models Are Hard to Adapt

    1. Communication Pressure from Dynamic Sparse Attention

    Unlike traditional dense Transformers, this class of model uses dynamic sparse attention, where the attention computation pattern changes with the input. This creates two engineering challenges:

    • Load imbalance: Computation varies significantly across sequence blocks. This can cause skew across cards and slow down the overall step time.
    • Complex communication patterns: After sparsification, KV transfer and synchronization paths are no longer regular. This places higher demands on the stability of the collective communication library.

    2. Expert Routing Stresses Both Memory and Network

    MoE expert routing is another major hurdle. Suppose the model is configured with 16 routed experts and Top-8 activation, so each token activates half of the experts in every layer. In multi-card distributed training, this means:

    • Very large All-to-All traffic: Tokens must be dispatched to the devices that hold their experts, then gathered back after computation. The bandwidth utilization of this process directly determines throughput.
    • Compounded memory usage: Expert parameters are stored in a distributed way. Together with routing buffers and activation caches, peak memory can easily exceed the capacity of a single card.
    • Numerical stability risk: The softmax computation over routing weights can overflow under mixed precision and needs careful handling.

    3. Extra Complexity from the Multimodal Two-Tower Structure

    This class of model typically includes three parts: a vision tower, a language backbone, and a cross-modal projection module. The vision and language branches differ considerably in parameter scale and gradient magnitude. When they are updated jointly, the loss terms are not on a consistent scale, which can cause one branch to fail to learn or cause training to oscillate. This adds requirements for optimizer state management and gradient checking.

    3. Validation Design: Checking the Full Pipeline with a Small Configuration

    This validation used a methodology worth learning from, called truncated configuration validation:

    • The language backbone is truncated to 13 layers. The full model has far more.
    • The full routing logic is kept, with 16 routed experts and Top-8 activation.
    • The 27-layer vision tower and the cross-modal projection module are kept intact, so the multimodal data flow is not simplified.
    • Training starts from random initialization on publicly available image-text question answering datasets.

    The key to this design is to reduce the scale without reducing the difficulty. Fewer layers lower the memory pressure, but the structures that really test adaptation quality, including MoE routing, sparse attention, and cross-modal projection, are all retained. The goal of the validation was not to train a high-performance model. It was to answer three questions:

    1. Are the forward and backward computations numerically correct?
    2. Are the distributed states (parameters, gradients, and optimizer states) consistently sharded?
    3. Does the loss show a reasonable convergence trend?

    4. Breaking Down the Key Technical Steps

    1. Operator Implementation: Forward and Gradient Paths for Hybrid Attention and MoE

    Domestic GPUs cannot directly reuse operator libraries optimized for mainstream international hardware, so the operators must be implemented in-house:

    • The forward computation and backward gradients for hybrid attention, which combines sparse and dense patterns.
    • The MoE gating, expert dispatch, expert computation, and merging, along with the corresponding gradient backpropagation path.

    After the operators are implemented, the results are typically checked against a reference implementation through numerical alignment tests. Output error is compared layer by layer to confirm that it stays within tolerance.

    2. FSDP2 Sharding: A Memory Strategy for Trillion-Parameter Models

    Even after truncation, a trillion-parameter model far exceeds the memory of a single card. The validation used FSDP2, the second generation of Fully Sharded Data Parallel, which shards all three types of state: parameters, gradients, and optimizer states.

    1. # Training pseudo-workflow (illustrative)
    2. for step in range(400):
    3. all_gather(params) # Gather sharded parameters before the forward pass
    4. loss = forward(batch) # Includes vision tower and cross-modal projection
    5. reduce_scatter(grads) # Reduce and shard gradients after the backward pass
    6. optimizer_step(sharded) # Update optimizer states on each shard

    This approach matches the sharding concepts commonly used in Baidu’s distributed training frameworks, and it is a mainstream general solution in the industry for the memory pressure of very large models. According to the disclosure, the validation reached a peak memory usage of 44.80 GiB, which suggests the sharding strategy fits the truncated configuration well.

    3. Cross-Node Communication: The Role of an In-House Collective Communication Library

    Two nodes with 16 cards in total means communication crosses node boundaries, where bandwidth is far lower than the intra-node NVLink-class interconnect. In this validation, cross-node communication was handled by a collective communication library developed in-house by the vendor. It had to correctly handle several primitives: All-to-All for MoE routing, All-Gather for parameter gathering, and Reduce-Scatter for gradient reduction. Keeping the run free of interruptions across 400 steps is itself a meaningful test of the library’s stability.

    5. What the Convergence Data Shows

    The disclosed values provide a fairly complete chain of convergence evidence:

    Metric Early Stage Late Stage
    Training loss (mean over 70-step windows) 8.9365 2.1802 (mean of last 50 steps)
    Validation loss 6.5297 4.6873

    Several key observations:

    • Training loss fell about 4x and declined smoothly. This suggests the forward, backward, and optimizer update numerical paths are basically correct, with no hidden gradient explosion or vanishing.
    • Validation loss fell at the same time. This suggests the model is learning in a generalizable way, rather than overfitting to training noise.
    • The vision branch participates in parameter updates. This confirms that the joint multimodal training path is actually active, and that the language branch is not running alone.

    In addition, gradient checking, which numerically verifies gradients for specified layers, is stronger correctness evidence than loss curves alone. Details like this have been rare in prior disclosures about domestic GPU adaptation.

    This validation should be read soberly. It is a functional validation under a truncated configuration, not full-scale pretraining:

    • A 13-layer language backbone cannot represent the convergence behavior or scaling efficiency of the full model.
    • Two nodes with 16 cards are far from real training scenarios with thousands or tens of thousands of cards. The differences in communication topology, fault recovery, and elastic scheduling are large.
    • 400 steps can only show that the pipeline runs and the trend looks right. They cannot assess long-term stability, such as loss spikes or the buildup of communication deadlocks.

    A reasonable technical path is to first complete operator correctness and pipeline integrity validation at small scale, then extend to larger clusters for scalability testing, and only then move to full-scale pretraining. This work corresponds to the first step, and its quality is relatively high.

    7. Industry Implications and Outlook

    Across the industry, competition in domestic GPU adaptation is shifting from “whether a model has been adapted” to “how deeply it has been adapted”:

    1. Disclosure transparency is becoming a new benchmark. Loss curves, gradient checks, and peak memory data are more convincing than statements that adaptation is complete, and they make cross-vendor evaluation easier for the industry.
    2. Validation methods are moving toward standardization. Truncated configuration validation may become a routine way for vendors to demonstrate engineering capability, because it is low cost, short in duration, and rich in information.
    3. The next core challenge is scaling. Maintaining effective training rate on clusters of a thousand or more cards, handling fault recovery, and keeping checkpoints consistent are the real tests of whether domestic GPUs can take on large-model pretraining.

    For developers following the domestic computing ecosystem, public engineering details like these are valuable primary material for judging hardware maturity. Rather than looking at spec sheets, it is more useful to check whether a real training problem can be run, run stably, and produce a credible convergence curve.