Trillion-Parameter MoE Multimodal Training on Chinese GPUs: Engineering Practices

    This article explores the engineering requirements for running the training pipeline of a 2.8-trillion-parameter native multimodal MoE model on Chinese GPUs, using a two-node, 16-GPU, 400-step validation run as a reference. It covers dynamic sparse attention, expert-routing communication, heterogeneous multimodal memory use, operator and gradient completeness, FSDP-style sharding, collective communication, validation design and metrics, and the remaining gaps between trimmed pipeline validation and full-scale pretraining.

    1. Background: Accelerating Adaptation Between Chinese Compute and Large-Model Training

    Over the past two years, large-model parameter counts have continued to rise. Trillion-parameter mixture-of-experts (MoE) architectures and native multimodal capabilities have gradually become mainstream technical routes. At the same time, adaptation of Chinese AI chips on the training side has clearly accelerated: from inference deployment to pretraining and reinforcement learning, and from single-machine, single-card setups to thousand-card or larger clusters. Several vendors have disclosed training adaptation progress on mainstream open-source models.

    A representative engineering milestone in this trend is that a lab at a Chinese GPU vendor completed training pipeline adaptation for a 2.8-trillion-parameter MoE native multimodal model. It ran 400 consecutive training steps on a two-node, 16-GPU configuration without numerical overflow or abnormal interruption. It is important to emphasize that this was training pipeline validation under a trimmed configuration, not full-scale pretraining. Nevertheless, it provides a reproducible engineering reference point for Chinese GPUs on the training side.

    This article does not focus on any specific vendor’s product. Instead, it uses this case as an entry point to systematically break down the core technical issues involved in getting the training pipeline of a trillion-parameter MoE multimodal model to run on Chinese GPUs.

    2. Why MoE Multimodal Models Are a Hard Target for Training Adaptation

    2.1 Compute Challenges of Dynamic Sparse Attention

    In ultra-long-context scenarios, dense attention compute grows quadratically with sequence length. Dynamic sparse attention reduces overhead by selecting attention blocks to participate in computation on demand. However, sparse patterns are determined dynamically at runtime, which means:

    • Compute graph shapes are no longer statically fixed, placing higher demands on operator scheduling and memory reuse strategies.
    • Gather/scatter operations for sparse indices are sensitive to memory access bandwidth and can easily become pipeline bottlenecks.
    • Sparse operator implementations differ significantly across hardware architectures, so forward and backward operators must be completed for the target chip.

    2.2 Communication Pressure from Expert Routing

    In an MoE layer, each token activates only Top-K experts. Taking 16 routed experts with Top-8 activation as an example, dynamic token-to-expert dispatch generates a large amount of All-to-All communication: tokens must first be sent to the devices hosting the corresponding experts according to routing results, and after computation is complete, they are merged back to their original positions. This communication pattern has uneven traffic, strong burstiness, and latency sensitivity. It is a key scenario for testing the maturity of multi-GPU interconnect solutions such as collective communication libraries.

    2.3 Memory Heterogeneity in Multimodal Structures

    Multimodal models usually consist of a language backbone, a vision tower, and a cross-modal projection module. Compute density and memory footprint differ significantly across these parts. When the vision tower processes high-resolution features, activation values are large, while the language backbone bears the main overhead of parameters and optimizer states. The training system must coordinate memory allocation, gradient synchronization cadence, and dataflow scheduling across branches, ensuring that parameters in all branches participate correctly in updates.

    3. Key Engineering Work for Connecting the Training Pipeline

    3.1 Operator Layer: Completing Forward and Gradient Implementations

    The first step in adaptation work is operator completeness. Mixed attention and MoE-related operators—such as routing gating, expert dispatch, and load-balancing loss—must have both correct forward computation and backward gradient implementations on the target hardware. Many cases where “inference runs but training does not” are caused precisely by missing gradient operators or precision deviations. In practice, gradient checking is commonly used to verify operator correctness by comparing numerical differentiation results with automatic differentiation results.

    3.2 Parallel Strategy: Sharding Parameters, Gradients, and Optimizer States

    Even after trimming, a trillion-parameter model cannot fit complete state on a single GPU. The industry commonly adopts fully sharded data parallel approaches (FSDP-like solutions), sharding parameters, gradients, and optimizer states across all devices and aggregating them on demand during computation. An illustrative configuration logic is as follows:

    1. # Illustrative code: sharding strategy configuration approach
    2. sharding_config = {
    3. "shard_params": True, # Parameter sharding
    4. "shard_grads": True, # Gradient sharding
    5. "shard_optimizer": True, # Optimizer state sharding
    6. "offload_policy": "auto", # Offload to host memory when necessary
    7. "mixed_precision": "bf16", # Low-precision training to control memory
    8. }

    The effect of such strategies is directly reflected in memory usage: in the reference case, peak memory on the two-node, 16-GPU configuration was about 44.8 GiB, indicating that the combination of sharding and activation recomputation played a role.

    3.3 Communication Layer: Cross-Node Collective Communication

    Cross-node communication is handled by the collective communication library. It must simultaneously carry gradient AllReduce for data parallelism, All-to-All for expert parallelism, and point-to-point transfers for pipeline parallelism. The communication library’s utilization of the underlying interconnect—such as high-speed buses and RDMA networks—determines the effective share of training compute available during large-scale expansion.

    4. Pipeline Validation Methodology: What 400 Training Steps Show

    4.1 Validation Design

    The reference case adopted a representative trimming strategy: the language backbone was truncated to 13 layers, 16 routed experts were retained with Top-8 activation, and the full 27-layer vision tower and cross-modal projection module were kept. Training used random initialization on a medical image-text question-answering dataset. This design deliberately preserves the completeness of the multimodal structure and allows the vision branch to participate in parameter updates, so what is validated is the pipeline for “all module types,” not only a single text path.

    4.2 How to Interpret the Validation Metrics

    • Training loss: It converged from 8.9365 (mean over steps 21–70) to 2.1802 (mean over the last 50 steps). The downward trend was healthy, indicating that the entire chain of forward computation, backward computation, and optimizer updates was numerically correct.
    • Validation loss: It dropped from 6.5297 to 4.6873, moving in the same direction as training loss and ruling out pseudo-convergence caused by gradient errors.
    • Stability: There was no overflow and no interruption across 400 steps, providing preliminary validation of the robustness of the mixed-precision strategy and communication link.

    4.3 Boundaries That Must Be Made Clear

    Validation under a trimmed configuration is not the same as full-scale pretraining. The former answers “can it train correctly,” while the latter must also answer “can it run continuously for weeks on thousands or tens of thousands of GPUs at a high effective training rate.” Between the two lie multiple challenges such as cluster scale expansion, fault recovery, and long-term stable operation.

    5. What Remains to Be Crossed from Pipeline Validation to Full-Scale Training

    1. Cluster scaling efficiency: When the number of GPUs expands from 16 to thousands, the communication share rises. Expansion efficiency must be maintained through techniques such as compute-communication overlap and topology-aware scheduling.
    2. Long-term stable operation and fault tolerance: Hardware failures are normal during extremely long training cycles. Fast checkpoint save/restore, automatic removal of faulty nodes, and elastic rescheduling are essential capabilities.
    3. Accuracy alignment: Training curves must be aligned with those on mainstream international hardware, including multi-dimensional validation of loss values and downstream task metrics.
    4. Supporting platform capabilities: Engineering deployment also depends on general cloud infrastructure categories—such as container platforms for orchestrating training jobs, object storage for carrying massive corpora, and logging services and monitoring/alerting to ensure cluster observability.

    6. Conclusion

    Training adaptation for trillion-parameter MoE multimodal models is essentially a comprehensive test of the chip operator ecosystem, parallel frameworks, communication libraries, and systems engineering capabilities. Completing 400 consecutive training steps is a valuable engineering milestone. It proves the correctness and initial stability of the pipeline, but what the industry truly needs is continuous evolution from “can run” to “runs stably, economically, and fast.” For developers, focusing on quantifiable indicators such as loss curves, peak memory, and gradient checks is a better way to judge the real maturity of a training solution than focusing on the peak compute of any single hardware device.