Chinese GPU Validation of Trillion-Parameter MoE Multimodal Training Pipeline

    As large models move toward trillion-parameter scale, MoE architectures and multimodal fusion are becoming mainstream directions. This article examines the training challenges of a 2.8-trillion-parameter native multimodal MoE model and describes how a domestic GPU vendor validated its training pipeline in a laboratory environment using a trimmed configuration on two nodes with 16 GPUs. It covers dynamic sparse attention memory access, expert-routing All-to-All communication, numerical stability and loss convergence over 400 continuous steps, FSDP2-based sharding, operator coverage, and the engineering gap between pipeline validation and full-scale pretraining.

    As large models move toward the trillion-parameter level, MoE (Mixture of Experts) architectures and multimodal fusion have become mainstream evolution directions. Against this backdrop, how domestic GPUs can efficiently and stably adapt complex training pipelines while catching up with advanced international compute has become a central concern for the industry. Recently, a domestic GPU vendor completed training-pipeline adaptation and validation for an industry 2.8-trillion-parameter MoE native multimodal large model in a laboratory environment. On a two-node, 16-GPU configuration, the system completed 400 continuous training steps without numerical overflow or abnormal interruption. This engineering milestone provides a valuable reference for the reproducibility of domestic compute in complex large-model training.

    1. Training Challenges of Trillion-Parameter MoE Multimodal Models

    From an architectural perspective, a 2.8-trillion-parameter MoE model places extremely high demands on multi-GPU communication and memory management at the underlying hardware level due to its dynamic sparse attention and expert-routing mechanisms.

    1.1 Memory-Access Complexity of Dynamic Sparse Attention
    Traditional Transformer models use dense self-attention, whose computational complexity grows quadratically with sequence length. Dynamic sparse attention reduces computation by dynamically selecting only a subset of tokens to attend to. However, this “dynamic” behavior breaks the continuous memory-access pattern of traditional fixed windows, causing GPUs to face large amounts of irregular memory access during execution. This places strict requirements on memory bandwidth and cache hit rates.

    1.2 Communication Bottlenecks of Expert Routing
    The core of the MoE architecture is splitting a large feed-forward network (FFN) into multiple “experts,” with each token activating only a small subset of them, such as Top-8 activation. This mechanism increases the total parameter count while controlling the amount of computation per invocation. The direct challenge is that tokens assigned to different GPU cards may need to be sent to specific experts on other cards for computation, triggering intensive All-to-All cross-node communication. If the routing algorithm is imbalanced, some experts can become overloaded, leading to out-of-memory (OOM) errors.

    1. # Pseudocode: MoE Top-K routing and expert dispatch logic
    2. def moe_router_and_dispatch(hidden_states, router_weights, top_k=8):
    3. # 1. Compute routing probabilities
    4. router_logits = torch.matmul(hidden_states, router_weights)
    5. routing_probs, selected_experts = torch.topk(
    6. torch.softmax(router_logits, dim=-1), top_k, dim=-1
    7. )
    8. # 2. Use All-to-All communication to send tokens to GPUs hosting the target experts
    9. dispatched_tokens = all_to_all_dispatch(hidden_states, selected_experts)
    10. # 3. Expert computation...

    2. Training-Pipeline Validation Under a Trimmed Configuration

    To address the challenges above and verify hardware compatibility with the distributed framework as well as the reasonableness of training trends, the test team did not start full-scale pretraining directly. Instead, it used a scientifically trimmed configuration for pipeline validation.

    2.1 Fine-Grained Trimming of the Test Architecture
    The test used a trimmed configuration: the language backbone was truncated to 13 layers, 16 routed experts were retained with Top-8 activation, and the 27-layer vision tower and cross-modal projection module were fully preserved. The strength of this trimming strategy is that it reduces the parameter scale to fit limited compute while fully retaining the core mechanisms of multimodal fusion and MoE routing. Random-initialization training on a standard industry image-text dataset can genuinely reflect the model’s data throughput and cross-modal alignment capabilities.

    2.2 Numerical Stability and Convergence Trends
    On the two-node, 16-GPU configuration, the system completed 400 continuous training steps. According to the disclosed engineering details:

    • Training loss steadily converged from 8.9365 (average of steps 21–70) to 2.1802 (average of the last 50 steps).
    • Validation loss dropped from 6.5297 to 4.6873.
    • Peak memory usage was controlled at 44.80 GiB, and the vision branch participated normally in parameter updates.

    This result demonstrates that the domestic GPU implemented each operator correctly when handling multimodal gradient backpropagation, without gradient explosion or vanishing caused by precision truncation or operator logic errors. The smooth decline of the loss curve is the strongest evidence that the underlying compute pipeline has been connected end to end.

    3. Systematic Integration of the Distributed Training Pipeline

    The focus of this adaptation was not to pursue single-card peak compute, but to systematically integrate the distributed training pipeline. This involves full-stack coordination from low-level operators to upper-layer frameworks.

    3.1 Completing Mixed-Attention and MoE Operators
    To run the model on domestic GPUs, the first task was to complete the forward and gradient implementations of mixed-attention and MoE operators. This required developers to go deep into the hardware instruction set and optimize basic operators such as matrix multiplication and nonlinear activation so that their output precision aligns with mainstream industry frameworks. In particular, for MoE Top-K selection and weighted summation, the indices and weights must correspond one-to-one during gradient backpropagation.

    3.2 Distributed Sharding Management and Cross-Node Communication
    Facing trillion-parameter scale, even the trimmed model remains large. The test relied on the industry-standard FSDP2 (Fully Sharded Data Parallel) strategy to perform fine-grained sharding management of parameters, gradients, and optimizer states. Cross-node collective communication was handled by a general multi-node communication library, such as a library with MCCL-equivalent capabilities, ensuring low-latency data movement between nodes.

    1. # Pseudocode: FSDP-based model sharding wrapper logic
    2. from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
    3. model = MultiModalMoEModel(config)
    4. # Apply FSDP wrapping to shard parameters and optimizer states
    5. fsdp_model = FSDP(
    6. model,
    7. process_group=dist_group,
    8. sharding_strategy=ShardingStrategy.FULL_SHARD,
    9. device_id=torch.cuda.current_device(),
    10. use_orig_params=True
    11. )

    4. Industry Observations on Domestic Compute and Large-Model Adaptation

    From an industry perspective, the pace of adaptation between domestic GPUs and large models continues to accelerate.

    Public information shows that several large-model companies have used domestic thousand-GPU clusters to complete multimodal pretraining and reinforcement learning, with precision gradually aligning with international products. Some vendors are advancing training adaptation for mainstream open-source large-model series on the training side and extending toward thousand-GPU and ten-thousand-GPU cluster scenarios. Notably, Baidu announced at a related technology conference that its Kunlun P800 all-domestic cluster completed training of an important version of ERNIE 5.1, with an effective training rate of 97%. This indicates that domestically developed compute, through software-hardware co-optimization, is already capable of supporting large-scale commercial training. In addition, some domestic heterogeneous compute units have adapted more than 400 mainstream large models, covering 99% of non-closed-source large models, showing significant ecosystem growth.

    5. From Pipeline Validation to Full-Scale Pretraining

    Although pipeline validation under the trimmed configuration has achieved interim results, it is important to recognize that a large engineering gap remains between a trimmed configuration and full-scale training of a complete trillion-parameter model.

    5.1 The Test of Cluster Scale Expansion
    When the number of nodes expands from 16 GPUs to thousands or even tens of thousands of GPUs, network topology becomes extremely complex. Mixed Ethernet and InfiniBand networking, hierarchical switch latency, and cross-rack bandwidth degradation can all have a severe impact on All-to-All communication. Achieving load balancing and communication overlap in ultra-large-scale clusters is a core problem that full-scale training must solve.

    5.2 Fault Tolerance and Monitoring for Long-Running Stability
    During long-cycle full-scale pretraining, which typically lasts weeks or even months, hardware failures are normal. This requires the training framework to have high-frequency automatic checkpoint saving and fast recovery mechanisms. At the same time, a comprehensive monitoring and alerting system must be deployed to track anomalies such as memory fragmentation, compute-node disconnection, and numerical precision drift in real time.

    According to industry consultancy forecasts, shipments of high-end AI chips in the Chinese market will grow substantially in 2026, and the share of local solutions is expected to approach 90%, including cloud vendors’ in-house ASICs. The continuous training and gradient-check results disclosed by the domestic GPU vendor not only provide the industry with a referenceable engineering milestone, but also indicate that domestic compute is crossing the deep-water zone from “usable” to “easy to use.” In the future, as cluster expansion and long-running stability technologies mature, full support for trillion-parameter full-scale pretraining by domestic compute will become increasingly realistic.