Training Pipeline Validation for Trillion-Parameter MoE Multimodal Models on Domestic GPUs
This article reviews a lab validation of a training pipeline for a trillion-parameter MoE native multimodal model on a 16-GPU, two-node domestic GPU configuration. It covers the engineering challenges of dynamic expert routing and multimodal memory pressure, the trimmed validation setup, loss convergence and gradient checks, distributed training orchestration, and the broader state of domestic GPU adaptation for large-model training.
As large language models evolve toward multimodality and ultra-large parameter scales, Mixture-of-Experts (MoE) architectures have become a mainstream choice for trillion-parameter models. MoE can substantially expand model parameter capacity without significantly increasing inference computation. However, combining MoE with multimodal capabilities imposes severe engineering challenges on GPU compute, distributed communication networks, and memory scheduling.
Recently, a domestic GPU vendor completed adaptation and validation of the training pipeline for a trillion-parameter MoE native multimodal model in a lab environment. The setup used a two-node, 16-GPU configuration and ran 400 consecutive training steps without numerical overflow or abnormal interruption. This engineering practice provides a useful technical reference for deploying domestic compute in complex large-model training.
Technical Challenges of Trillion-Parameter MoE Multimodal Models
Native multimodal MoE models, such as architectures with 2.8 trillion parameters, face core difficulties in coordinating dynamic sparse attention with expert routing. In traditional dense models, the computation graph is relatively static, and communication is dominated by All-Reduce in data parallelism or tensor parallelism. In MoE architectures, input tokens are dynamically assigned to different expert networks through a gating network.
This dynamic routing mechanism introduces two major challenges:
- Multi-GPU communication bottlenecks: When experts are distributed across different GPUs, tokens must be routed across devices, generating substantial All-to-All communication. If the load-balancing algorithm is not effective enough, network congestion and compute-unit waiting can easily occur, significantly reducing the cluster’s effective compute time ratio.
- Fragmented memory management: Multimodal data, such as long-sequence features encoded from high-resolution images by a vision tower, combined with the dynamic activation behavior of MoE, makes memory usage highly nonlinear. Without careful allocation of optimizer states, gradients, and activations in memory, out-of-memory (OOM) errors can easily occur.
Link Validation Design Under a Trimmed Configuration
Because full-scale pretraining of trillion-parameter models is expensive, the industry commonly uses a “trimmed configuration” for early functional validation of the training pipeline. This approach aims to fully verify the correctness of forward propagation, backward gradient computation, and parameter updates with minimal resource consumption.
In this validation practice, the trimmed configuration was designed as follows:
- Language backbone truncation: Only 13 Transformer layers were retained, and routed experts were reduced to 16 with a Top-8 activation strategy. This was sufficient to validate the correctness of MoE gating and routing.
- Multimodal module retention: The full 27-layer vision tower and cross-modal projection module were retained. Because visual features are often large, keeping the complete modules allowed the validation to realistically simulate peak memory pressure during multimodal fusion.
- Data and initialization: Random-initialization training was performed on an open image-text question-answering dataset to verify the integrity of data loading, feature alignment, and loss computation.
Key Training Metrics and Gradient Check Analysis
In the two-node, 16-GPU distributed environment, completing 400 consecutive training steps was a basic requirement for system stability. Based on the disclosed engineering details, the following metrics were particularly important:
- Loss curve convergence trend: Training loss converged from an early-stage mean of 8.9365 (steps 21–70) to a late-stage mean of 2.1802 (last 50 steps). Validation loss decreased from 6.5297 to 4.6873. This smooth downward trend indicates that, despite the trimmed model structure, weight updates proceeded in the correct direction and did not fall into a local dead end.
- Peak memory control: Peak memory remained stable at 44.80 GiB. Considering that vision-branch parameters were normally participating in updates, this indicates reasonable memory planning in the underlying operators, without large temporary cache leaks.
- Numerical stability and gradient checks: There was no numerical overflow across 400 consecutive steps, and detailed gradient checks were performed. This indicates solid precision alignment of underlying operators under mixed-precision training such as BF16. In particular, the forward and backward computation logic of mixed attention and MoE operators matched mathematical expectations.
Systematically Connecting the Distributed Training Pipeline
The core of large-scale training lies not only in per-GPU peak compute, but also in systematically connecting the distributed training pipeline. This adaptation focused on solving the following engineering issues:
- Parameter sharding management: Relying on a distributed training framework similar to FSDP2, model parameters, gradients, and optimizer states were sharded at a fine granularity. Each GPU holds only part of the state and aggregates it through efficient collective communication when computation is needed, thereby breaking the per-GPU memory wall.
- Cross-node communication optimization: Cross-node communication was handled by an underlying communication library such as MCCL. For MoE All-to-All communication patterns, the communication library needs to be optimized for the specific network topology to reduce cross-switch hops and network latency.
- Operator library adaptation: Complex fused operators related to dynamic sparse attention were completed, reducing Kernel Launch overhead and improving per-GPU compute efficiency.
Industry Adoption Status and Future Evolution
From an industry perspective, the pace of adaptation between domestic GPUs and large models is accelerating significantly. According to an industry research institution, China’s high-end AI chip shipments are forecast to reach about 5 million units in 2026, up 83% year over year, with domestic solutions expected to account for nearly 90% of the market.
Major compute providers are accelerating their efforts:
- A general-purpose GPU vendor completed multimodal pretraining and reinforcement learning on a thousand-GPU cluster, with precision aligned with international mainstream products.
- An AI chip vendor is advancing adaptation of mainstream open-source large models on the training side and extending to thousand-GPU and ten-thousand-GPU cluster scenarios.
- Baidu has disclosed that its self-developed Kunlunxin P800 all-domestic cluster completed training of an important ERNIE 5.1 version, with an effective training rate of 97%, demonstrating a high level of engineering maturity.
- Another vendor’s heterogeneous computing accelerator card has been adapted to more than 400 mainstream large models, covering 99% of non-closed-source large models.
Future Challenges and Outlook
Although domestic GPUs have achieved positive results in link validation under trimmed configurations, there is still a large gap to cross from functional validation to full-scale pretraining. The first challenge is cluster scale expansion. Scaling from 16 GPUs to thousands or even tens of thousands of GPUs increases communication topology complexity exponentially, and fault tolerance and checkpoint-resume mechanisms must withstand the test. The second is long-term stable operation. Large-model pretraining often lasts weeks or even months, and any minor hardware failure or software bug can be amplified.
Overall, disclosing engineering details such as consecutive training steps, loss curves, and gradient checks for a trillion-parameter MoE multimodal model provides a clear engineering milestone for the reproducibility of domestic GPUs on the training side. As distributed scheduling frameworks and underlying communication protocols continue to evolve, the performance of domestic compute in full-scale large-model training will be worth watching.
