Technical Analysis: Domestic GPU Verifies Trillion-Parameter MoE Training Pipeline
As large model parameters exceed the trillion-level, Mixture of Experts (MoE) and multimodal fusion have become core evolutionary paths in AI. This article analyzes a recent engineering breakthrough where a domestic GPU successfully verified the training pipeline for a 2.8 trillion-parameter MoE native multimodal model. Covering architectural challenges, progressive verification strategies, and engineering implementations like FSDP and cross-node communication optimization, the analysis highlights the feasibility of domestic GPUs in complex large-scale model training and outlines the remaining challenges for full-scale deployment.
As large model parameters exceed the trillion-level, Mixture of Experts (MoE) architectures and multimodal fusion have become core evolutionary paths in AI technology. However, massive parameters and complex network topologies impose stringent requirements on underlying computing infrastructure. Recently, a domestic GPU vendor successfully adapted the training pipeline for a 2.8 trillion-parameter MoE native multimodal model in a laboratory environment. Using a dual-node, 16-GPU configuration, the team completed 400 consecutive training steps without numerical overflow or abnormal interruption. This progress not only validates the engineering feasibility of domestic GPUs in handling ultra-large complex models but also provides a valuable engineering reference for the domestic compute ecosystem.
1. Architecture Challenges of Trillion-Parameter MoE Multimodal Models
The verified model is a native multimodal model featuring a 2.8 trillion-parameter MoE architecture. From an architectural perspective, its training process faces two core engineering bottlenecks: dynamic sparse attention and expert routing mechanisms.
- Dynamic Sparse Attention: In traditional Transformer architectures, memory usage and computational complexity grow quadratically with sequence length under full attention mechanisms. Dynamic sparse attention reduces the computational overhead of long-sequence processing by dynamically selecting key tokens for computation. However, this requires the underlying hardware to possess efficient non-contiguous memory access capabilities and fine-grained operator scheduling strategies; otherwise, severe performance bottlenecks can easily occur during execution.
- Expert Routing Mechanism: The MoE architecture replaces feedforward neural network layers with multiple “expert” networks and introduces a gating network to dynamically route input tokens to specific experts. This significantly increases the total number of model parameters without increasing inference computation. However, this dynamic routing causes load imbalance across multiple GPUs, triggering intensive cross-node All-to-All communication, which places extremely high demands on inter-GPU interconnect bandwidth and communication library scheduling efficiency.
2. Rapid Evolution and Full-Stack Adaptation of the Domestic Compute Ecosystem
From an industry perspective, the pace of adaptation between domestic GPUs and large models is continuously accelerating. Beyond single-point breakthroughs by individual vendors, multiple domestic compute providers are rapidly catching up to international standards through thousand-card and ten-thousand-card cluster scenarios.
For instance, some vendors have completed multimodal pretraining and reinforcement learning on thousand-card clusters, aligning precision with international products. Baidu AI Cloud, using a fully domestic cluster built on self-developed AI chips, successfully trained a significant large language model version, achieving a high effective training rate of 97% and covering over 99% of non-closed-source large models. These cases collectively demonstrate that the availability and stability of domestic high-end AI chips on the training side are gradually entering a mature phase.
3. Progressive Verification Strategy: Pipeline Breakthrough under Truncated Configuration
To focus on verifying training functionality and loss trends, the R&D team adopted a truncated configuration rather than directly conducting full-scale pretraining. This represents a typical engineering progressive verification approach.
In the truncated configuration, the model structure was adjusted as follows:
- Language Backbone: Truncated to the first 13 layers, retaining 16 routing experts with a Top-8 activation strategy.
- Multimodal Branch: Fully retained a 27-layer vision tower and cross-modal projection module.
- Training Data: Randomly initialized training based on public image-text datasets.
This truncation effectively reduced the memory and communication pressure during the initial pipeline breakthrough. According to disclosed data, in a dual-node, 16-GPU environment, the training loss steadily converged from an initial 8.9365 (average of steps 21-70) to 2.1802 (average of the last 50 steps). The validation set loss also dropped from 6.5297 to 4.6873. Meanwhile, peak memory usage during training was controlled at 44.80 GiB, and vision branch parameters updated normally.
Consecutive 400 steps of training without overflow or interruption, combined with a smoothly declining loss curve, indirectly verified the numerical correctness of this domestic GPU in implementing core operators such as MoE forward propagation, backward gradient calculation, and multimodal feature fusion.
4. Engineering Implementation: Distributed Parallelism and Cross-Node Communication Optimization
From an engineering perspective, the focus of this adaptation was not on pursuing single-card peak compute but on systematically unlocking the distributed training pipeline.
1. Operator Completion and Full Differentiation
For the MoE architecture, the R&D team not only implemented forward inference for mixed attention and expert routing operators but also completed the backward gradient calculation logic. In deep learning frameworks like PyTorch, custom operator backward propagation requires precise handling of gating gradient routing distribution, which is often the most error-prone aspect in domestic compute adaptation.
2. Fully Sharded Data Parallel (FSDP)
To address the memory wall caused by trillion parameters, this training utilized the industry-standard Fully Sharded Data Parallel (FSDP) strategy to globally shard model parameters, gradients, and optimizer states. FSDP shards optimizer states across different devices and uses Reduce-Scatter for shard aggregation during backward gradient calculation, significantly reducing single-card memory usage. The schematic logic is as follows:
# Pseudocode: FSDP model wrapping and sharding configurationfrom torch.distributed.fsdp import FullyShardedDataParallel as FSDP# moe_model is the model instance containing sparse attention and routing expertsmodel = moe_model.cuda()# Configure FSDP to shard parameters, gradients, and optimizer statesfsdp_model = FSDP(model,mixed_precision=mixed_precision_policy,sharding_strategy=ShardingStrategy.FULL_SHARD,device_id=torch.cuda.current_device())
3. Cross-Node Communication Optimization
Expert routing in multimodal MoE models heavily relies on efficient collective communication. In this pipeline verification, cross-node communication was handled by a high-performance collective communication library. This library was deeply optimized for the domestic GPU’s hardware interconnect architecture, ensuring low latency and high bandwidth for dual-node, 16-GPU execution of communication primitives like All-to-All and All-Reduce, thereby preventing GPU compute idling caused by communication blocking.
5. Leaping from Pipeline Verification to Full-Scale Training
Industry consulting institutions predict that shipments of high-end AI chips in the domestic market will experience rapid growth in the coming years, with local solutions taking a dominant market share. The disclosed 400-step consecutive training and gradient check results provide a crucial reference for the reproducibility of domestic GPUs on the training side.
However, it must be clearly recognized that this test remains a pipeline verification under a truncated configuration, which is not equivalent to full-scale pretraining. Expanding from the current dual-node, 16-GPU truncated model to a full-scale trillion-parameter model requires domestic compute to overcome two major tests:
- Communication Decay with Cluster Scaling: When scaling from dozens of cards to thousands or tens of thousands, network topologies become exceptionally complex. Communication latency and congestion control brought by multi-level network switching will be massive challenges. Ensuring linear speedup at large-scale clusters is a prerequisite for full-scale pretraining.
- Fault Tolerance for Long-Term Stability: Full-scale pretraining typically lasts for weeks or even months. During this period, hardware failures (such as GPU drops or network jitter) are almost inevitable. Building a robust checkpoint resume mechanism, asynchronous checkpoint saving, and automatic isolation and recovery for faulty nodes are the cornerstones of ensuring final training convergence.
In summary, the successful verification of the trillion-parameter MoE multimodal model training pipeline on domestic GPUs marks a new stage in the integration of underlying hardware and upper-layer model ecosystems. Moving forward, with continued investments in distributed scheduling, operator optimization, and cluster fault tolerance by cloud providers like Baidu AI Cloud and other domestic chip vendors, domestic compute is poised to play a pivotal role in true full-scale large model pretraining.
