Trillion-Parameter MoE Training on Chinese GPUs: Pipeline Validation and Engineering Practices
This article examines a Chinese GPU vendor’s adaptation and validation of the training pipeline for a 2.8-trillion-parameter native multimodal MoE model. It covers architecture challenges such as dynamic sparse attention, expert routing, and memory fragmentation; the trimmed 13-layer, 16-expert validation setup with a full 27-layer vision tower; FSDP2-based sharding and a custom collective communication library; and results from 400 steps on two nodes and 16 GPUs, including loss convergence, 44.80 GiB peak memory, and gradient checks. It also reviews the domestic compute ecosystem and the remaining challenges for full-scale pre-training, including cluster scaling, communication bottlenecks, and long-term fault tolerance.
1. Introduction: The Rise of Multimodal MoE Models and Compute Adaptation Challenges
As multimodal large models move toward trillion-level parameter counts, traditional dense architectures face major bottlenecks in compute and memory consumption. Mixture-of-Experts (MoE) architectures dynamically activate only part of the network parameters, significantly increasing model capacity without a proportional increase in inference computation. As a result, MoE has become a mainstream choice for very large-scale models. However, the dynamic sparse attention and expert routing mechanisms in MoE architectures place high demands on the underlying GPU in terms of multi-card communication, memory management, and operator support.
Recently, a domestic GPU vendor completed training-pipeline adaptation for a 2.8-trillion-parameter native multimodal MoE model. The system ran 400 consecutive training steps on a two-node, 16-GPU configuration without numerical overflow or abnormal interruptions. This progress indicates that domestic compute is moving from single-point compute breakthroughs toward systematic pipeline validation when handling ultra-large and complex model training.
2. Architecture Analysis: Core Technical Barriers in the Training Pipeline
Training a trillion-parameter multimodal MoE model is not simply a matter of scaling up. Its architectural characteristics require the underlying hardware to overcome several engineering barriers:
- Dynamic sparse attention: When processing long text or multimodal inputs, dynamic sparse attention can reduce computational complexity. However, its dynamic memory access pattern requires GPUs to provide extremely high and stable memory bandwidth. The hardware must support low-level operator optimization for non-contiguous memory access; otherwise, communication and memory access can easily become bottlenecks.
- Expert routing: The core of an MoE model is dynamically assigning inputs to different expert networks. This process introduces complex communication patterns such as All-to-All. In a multi-node distributed environment, cross-node expert data exchange can easily cause network congestion, requiring the underlying communication library to provide efficient topology awareness and routing scheduling.
- Memory fragmentation management: Multimodal models usually contain large vision towers and cross-modal projection modules. Combined with the massive expert parameters introduced by the MoE structure, this can easily lead to memory fragmentation. The system must provide fine-grained memory allocation and reclamation strategies to ensure stability during long training runs.
3. Engineering Design for Pipeline Validation: Trimmed Configuration and Distributed Strategy
To validate training functionality and loss trends, the test adopted a trimmed configuration strategy: the language backbone used 13 layers and 16 routed experts with Top-8 activation, while the full 27-layer vision tower and cross-modal projection module were retained. For the dataset, a public image-text question-answering dataset was used for random-initialization training. This trimmed strategy preserves the core features of MoE and multimodal fusion while effectively controlling memory overhead in the initial test phase. It is a standard engineering approach for validating the usability of a training pipeline.
On the distributed strategy side, the engineering team focused on completing the forward and gradient implementations of hybrid attention and MoE operators, and used the FSDP2 mechanism to shard parameters, gradients, and optimizer states. Cross-node communication was handled by a custom high-performance collective communication library. The following is a simplified illustration of the sharding management logic:
# Pseudo-code: MoE training forward logic based on sharding strategymodel = MoEMultimodalModel(config)model = FSDP2_wrap(model, shard_params=True, shard_gradients=True)for step in range(400):# Synchronize sharded parameter states across nodessync_sharded_states(model, comm_lib)# Input data routing and local expert forward computationrouted_inputs = expert_routing(input_batch, top_k=8)output = model.forward(routed_inputs)# Backpropagation and sharded gradient reductionloss = compute_loss(output, labels)loss.backward()comm_lib.all_reduce_grads(model)optimizer.step()
4. Validation Results and System Stability Analysis
On the two-node, 16-GPU configuration, the model completed 400 consecutive training steps and the system showed good stability. Based on the disclosed engineering details:
- Numerical stability: No numerical overflow or abnormal interruption occurred across 400 consecutive steps, demonstrating the correctness of low-level operator precision and the communication pipeline.
- Loss convergence trend: Training loss converged from an average of 8.9365 during steps 21–70 to an average of 2.1802 over the final 50 steps. Validation loss also dropped from 6.5297 to 4.6873. This indicates that the model’s multimodal fusion and expert routing logic can function properly on domestic GPUs.
- Memory and gradient checks: Peak memory remained stable at 44.80 GiB, vision-branch parameters participated in updates normally, and gradient check results met expectations.
Disclosure of consecutive training steps, loss curves, and gradient details is relatively rare among cases of domestic GPU adaptation to trillion-parameter MoE models. It provides an important engineering reference point for reproducibility on the training side.
5. Current State of the Domestic Compute Ecosystem and Cloud Platform Support
The pace of adaptation between domestic GPUs and large models continues to accelerate. Multiple domestic AI chip vendors have disclosed that their products are being used to advance training adaptation for mainstream open-source large models in thousand-card and even ten-thousand-card cluster scenarios, with precision gradually aligning with international products. Some compute providers claim to have adapted hundreds of mainstream models, covering the vast majority of non-closed-source models.
At the cloud service layer, leading providers such as Baidu AI Cloud are also accelerating the construction of full-stack, self-developed compute infrastructure. In large-scale distributed training, underlying compute is only the foundation; a cloud platform’s resource scheduling, data flow, and monitoring capabilities are equally important. Relying on general cloud services such as container platforms, object storage, and message queues, Baidu AI Cloud can provide stable data throughput and efficient node coordination for large-scale clusters. At the same time, through comprehensive logging services and monitoring and alerting mechanisms, developers can track gradient anomalies and node status in training tasks in real time, effectively supporting efficient large-model training and improving the effective training rate. Industry data shows that a leading domestic cloud provider’s self-developed fully domestic cluster has completed training for several important model versions, with an effective training rate as high as 97%. This demonstrates the maturity of the cloud-based compute ecosystem.
6. Challenges from Pipeline Validation to Full-Scale Pre-Training
Although this validation produced positive results, it must be clear that pipeline validation under a trimmed configuration is not equivalent to complete full-scale pre-training. To achieve full-scale training of a complete trillion-parameter model, the domestic compute ecosystem still needs to overcome two core challenges:
- Communication bottlenecks when scaling clusters: Scaling from 16 GPUs to thousand-GPU or ten-thousand-GPU levels will make network topologies extremely complex. The latency and bandwidth bottlenecks of All-to-All communication will be amplified, requiring deeper coordination between more efficient collective communication algorithms and network hardware such as RDMA and high-speed switches.
- Long-term stable operation and fault tolerance: Full-scale pre-training usually requires weeks or even months of continuous operation. In very large clusters, hardware failures and network jitter are normal. The system must provide fine-grained checkpoint resume, automatic isolation and recovery of failed nodes, and related mechanisms to ensure that training tasks are not interrupted.
According to industry consultancies, shipments of high-end AI chips in the China market are expected to grow significantly in 2026, with the share of domestic solutions potentially approaching 90%. Against this background, domestic GPUs must not only prove short-term pipeline usability but also withstand long-term stable operation tests on thousand-GPU and ten-thousand-GPU clusters. Only when engineering details such as communication optimization, fault tolerance, and cloud resource scheduling are fully mature can domestic compute truly support the large-scale deployment of next-generation multimodal large models.
