Validating a Trillion-Scale MoE Training Pipeline on Chinese-Developed AI Compute: Challenges and Engineering Practices
This article covers the technical barriers in training trillion-parameter, natively multimodal Mixture-of-Experts (MoE) models. It describes a reduced-configuration training pipeline validation run on Chinese-developed AI compute, and reports the results: loss convergence, validation loss reduction, and peak per-card memory usage on a two-node, 16-card setup. It also discusses the gap between pipeline validation and full-scale pretraining.
Chinese-developed AI compute has matured quickly over the past few years. Scaling from thousand-card multimodal pretraining to ten-thousand-card clusters, domestic solutions are closing the gap with leading international products in computational precision and stability. Baidu and other vendors have publicly disclosed that a fully domestic cluster built on in-house compute chips completed training of an important large-model version, with an effective training rate of 97%. Several Chinese compute companies have also reported that their chips support hundreds of mainstream open-source and other non-proprietary large models.
Against this background, a Chinese compute company recently announced that its lab had completed training pipeline adaptation for a natively multimodal model with 2.8 trillion parameters, based on a MoE architecture. On a two-node, 16-card configuration, the team completed 400 consecutive training steps without numerical overflow or abnormal interruptions. This work fills a gap in Chinese GPU support for very large multimodal model training, and it offers useful engineering lessons for the industry.
1. Technical Barriers in Trillion-Parameter MoE Multimodal Training
Natively multimodal models at the trillion-parameter scale, especially MoE-based designs, place demanding requirements on the underlying compute infrastructure. Their main technical barriers fall into three areas:
- Dynamic sparse attention: To handle very long contexts and multimodal inputs, these models typically use dynamic sparse attention. This creates irregular memory access patterns, which put heavy pressure on GPU cache hit rates and memory bandwidth scheduling. Irregular tensor operations can easily fragment memory and cause out-of-memory (OOM) errors.
- Expert routing: MoE architectures use Top-K routing to assign tokens to different expert networks. This introduces substantial All-to-All communication across devices. In multi-node training, network latency and bandwidth bottlenecks can seriously slow down training. Efficiently regrouping and distributing tensor data is a problem the underlying communication library must solve.
- Memory pressure: At 2.8 trillion parameters, the weights alone require enormous storage, and optimizer states and activations grow rapidly. Traditional tensor parallelism and data parallelism can easily hit the physical memory limit of a single card at this scale.
2. Validating the Training Pipeline with a Reduced Configuration
Full-scale pretraining consumes vast compute resources. In the early adaptation phase, the industry commonly validates the training pipeline with a reduced configuration. For this validation, the team used the following strategy:
- Language backbone truncation: The model keeps 13 Transformer layers, configures 16 routed experts, and activates them in Top-8 mode. This preserves the complexity of MoE routing while keeping the compute cost per step manageable, which allows fast iteration when verifying operator precision.
- Complete multimodal modules: The full 27-layer vision tower and the cross-modal projection module are retained. This ensures the validation reflects real tensor dimension changes during image-text fusion, as well as the correctness of cross-modal attention computation.
- Dataset: The team trained from random initialization on a public image-text question-answering dataset. This dataset covers complex mappings between images and text, and it is sufficient to test whether parameter updates in the vision branch take effect.
With this strategy, the focus of validation shifted from peak single-card compute to whether the distributed training pipeline works end to end. The goal was to confirm that training functions and loss trends match expectations.
3. Distributed Parallelism and Communication Optimization
Training a model of this size on two nodes with 16 cards requires an efficient distributed parallelism framework. The implementation shows substantial work on system optimization:
- Hybrid attention and MoE operator implementation: The team re-implemented the forward and backward passes of dynamic sparse attention and MoE expert routing for the instruction set architecture of the Chinese GPU. This requires the numerical results to match reference precision while also keeping memory access efficient.
- FSDP2 sharding: The team used Fully Sharded Data Parallel 2 (FSDP2) to manage model parameters, gradients, and optimizer states at fine granularity. Compared with the first-generation FSDP, FSDP2 uses a lower-level, tensor-level sharding mechanism. This reduces Python-side overhead and significantly cuts memory redundancy, which makes it possible to fit a large model within limited memory.
- Cross-node communication optimization: A customized distributed communication library handles All-to-All communication and parameter synchronization across cards. The library uses topology-aware optimizations for the multi-node layout. It overlaps computation with communication to hide the latency introduced by MoE routing.
The following conceptual FSDP2 sharding configuration shows the core logic for managing large parameter sets under limited memory:
import torchfrom torch.distributed.fsdp import FullyShardedDataParallel as FSDPfrom torch.distributed.fsdp import ShardingStrategy# Assume model is the trimmed MoE multimodal large modelmodel = MoEMultimodalModel(num_layers=13,num_experts=16,top_k=8,vision_tower_layers=27)# Apply the FSDP2 strategy for fine-grained sharding of parameters, gradients, and optimizer statesfsdp_model = FSDP(model,sharding_strategy=ShardingStrategy.FULL_SHARD,device_id=torch.cuda.current_device(),use_orig_params=True # Handles parameter management for the MoE structure)optimizer = torch.optim.AdamW(fsdp_model.parameters(), lr=1e-4)
4. Loss Convergence and System Stability
Whether the training pipeline works is most clearly shown by the loss curve and memory stability. According to the lab’s disclosed data, the validation produced the following results:
- Training loss convergence: Training loss fell from 8.9365 to 2.1802. The starting value is the average over steps 21 to 70, excluding early warm-up fluctuations. The final value is the average over the last 50 steps. This indicates that after cross-modal projection, parameter updates in the vision branch and language backbone move in the right direction, and gradient backpropagation shows no abnormal behavior.
- Validation loss reduction: Validation loss dropped from 6.5297 to 4.6873. Given random initialization and a small number of training steps, this decline suggests the model did not overfit severely and has some capacity to generalize.
- Peak memory control: On the two-node, 16-card configuration, peak memory per card stayed at 44.80 GiB. For a model with this many parameters, this result suggests the FSDP2 sharding strategy and memory reuse mechanisms work as intended, and it leaves room for scaling up the cluster.
5. From Pipeline Validation to Full-Scale Pretraining
This validation covers only a reduced configuration. It does not equal full-scale pretraining. Even so, the disclosure of continuous training steps, loss curves, and gradient checks for a 2.8-trillion-parameter MoE model is uncommon in the industry. It points to Chinese GPUs maturing in their underlying software stack and ecosystem.
According to a forecast from an industry consulting firm, shipments of high-end AI chips in China will reach about 5 million units in 2026, up 83% year over year. Domestic solutions, including in-house accelerators from cloud providers, are expected to account for close to 90% of that share. As Baidu AI Cloud and other compute platforms keep evolving, and as vendors explore cluster deployments at the thousand-card and ten-thousand-card scale, Chinese compute is moving from “functionally usable” toward “production-ready at scale.”
Looking ahead, further improvements to operator libraries, higher network bandwidth, and more robust fault-tolerance mechanisms should expand the use of Chinese compute in full-scale multimodal model pretraining. Moving from reduced-configuration validation to complete pretraining requires more than adding compute capacity. It depends on a broad improvement in system-level engineering capability.
