Validating Trillion-Parameter MoE Multimodal Model Training on Domestic GPUs
This article details the engineering practice of validating a 2.8-trillion-parameter Mixture-of-Experts (MoE) multimodal model training pipeline on a dual-server, 16-GPU cluster using domestic Chinese GPUs. It examines the core architectural bottlenecks of dynamic sparse attention and expert routing, outlines a scaled-down validation strategy, and explores key distributed engineering efforts including operator adaptation, fully sharded data parallel, and cross-node communication optimization. The results, including loss convergence trends and memory peak control, demonstrate stable training behavior and represent a significant step toward full-scale pre-training on domestic AI accelerators.
1. Introduction: Compute Challenges in Multimodal MoE Training
As large language models scale from hundreds of billions to trillions of parameters, Mixture-of-Experts (MoE) architectures and native multimodal capabilities have become central to industry advancement. MoE dynamically activates a subset of expert networks, substantially increasing model capacity without proportionally increasing inference compute. Multimodal capability, meanwhile, requires models to process heterogeneous data types such as text and images simultaneously.
These complex architectures place extreme demands on underlying GPU compute, memory bandwidth, and distributed communication. In recent years, domestic GPUs have accelerated their ecosystem adaptation and engineering maturity, progressing from single-card operator compatibility toward complex training pipeline validation on thousand-card and ten-thousand-card clusters. This article examines a 2.8-trillion-parameter MoE native multimodal model and its training pipeline validation on a dual-server, 16-GPU configuration.
2. Core Architectural Bottlenecks of Trillion-Parameter MoE Models
In a 2.8-trillion-parameter native multimodal model, dynamic sparse attention and expert routing stand as the two core technologies and, simultaneously, the primary hardware adaptation bottlenecks.
Dynamic Sparse Attention. The self-attention mechanism in traditional Transformer models exhibits quadratic computational complexity with sequence length. Dynamic sparse attention mitigates this by dynamically selecting key tokens for computation, reducing overall complexity. However, this dynamism causes the computational graph to change frequently at runtime, imposing strict requirements on GPU memory allocation and release mechanisms. Without meticulous memory management, severe fragmentation can occur, potentially leading to out-of-memory errors.
Expert Routing. In the MoE architecture, a gating network dynamically routes tokens to the Top-K expert networks during each forward pass based on input features. This results in imbalanced computational loads across GPUs, and inter-expert data exchange relies heavily on efficient All-to-All communication. Optimizing high-bandwidth cross-node communication with minimal All-to-All latency is a critical enabler for domestic GPUs to achieve a functional training pipeline.
3. Validation Strategy with a Scaled-Down Configuration
Pre-training a trillion-parameter model at full scale on a cluster is not only cost-prohibitive but also makes it difficult to isolate engineering issues. A common industry practice is the “scaled-down configuration validation” approach—reducing model dimensions locally to verify training functionality and loss trends. This validation was conducted on a dual-server, 16-GPU setup with the following scaled-down design:
Model Architecture Pruning: The language backbone was truncated to 13 layers, with 16 routed experts and a Top-8 activation strategy. Meanwhile, the full 27-layer vision tower and cross-modal projection modules were preserved intact. This “partial pruning with complete cross-modal retention” design effectively verifies whether the alignment between visual features and the language model proceeds smoothly.
Training Data and Initialization: Training was performed from random initialization using a medical visual question answering dataset. Random initialization eliminates interference from pre-trained weights, allowing pure validation of low-level operator correctness and distributed training framework stability.
Training Steps: A continuous 400-step training run was executed, with close monitoring for numerical overflow or unexpected interruptions. During this process, stable compute infrastructure and monitoring platforms from domestic cloud providers enabled efficient tracking of resource utilization and training status.
4. Distributed Engineering: Operator Adaptation and Sharded Communication
The focus of this adaptation was not on maximizing single-card peak throughput, but on systematically establishing the distributed training pipeline. Engineering efforts centered on three dimensions:
Low-Level Operator Completion and Adaptation: Domestic GPUs required implementing forward and backward propagation kernels for mixed attention mechanisms and MoE operators from scratch. This demanded deep understanding of PyTorch’s operator scheduling, with custom CUDA kernels written for numerically stable Softmax in the expert gating network, Top-K selection, and weighted fusion of expert features.
Distributed Sharding Management: To manage the memory pressure of trillion-parameter models, the validation employed the widely used Fully Sharded Data Parallel (FSDP) technique. This approach shards model parameters, gradients, and optimizer states across all GPUs. During forward and backward passes, parameters are dynamically aggregated via communication primitives as needed. This reduces per-GPU memory consumption to minimal levels, allowing even a 16-GPU configuration to run a trillion-parameter-scale pipeline.
Cross-Node Communication Optimization: The primary bottleneck in dual-server, multi-GPU training is cross-node communication bandwidth. This validation leveraged dedicated cross-node communication libraries with deeply optimized collective communication primitives, ensuring efficient All-to-All communication during MoE expert routing and preventing communication from becoming the system bottleneck.
5. Training Results and Gradient Health Analysis
Based on publicly disclosed engineering details, this validation not only completed 400 continuous training steps but also documented loss curves and gradient statistics—a level of transparency that is relatively uncommon among similar adaptation efforts.
Loss Convergence: Training loss converged from 8.9365 (average of steps 21–70) to 2.1802 (average of the final 50 steps), with validation loss dropping from 6.5297 to 4.6873. The smooth loss decline confirms that both forward computation logic and backward gradient updates were correct, and that visual branch parameters successfully participated in joint updates.
Peak Memory Control: On the dual-server, 16-GPU configuration, the single-GPU peak memory reached only 44.80 GiB. This result validates the effectiveness of the fully sharded data parallel strategy, demonstrating stable accommodation of an ultra-large parameter model within constrained hardware resources.
Gradient Health Checks: No numerical overflow or abnormal interruptions were observed, indicating that gradient computation in the low-level operators did not suffer from severe truncation or saturation under mixed-precision training. Stable gradient norms provide the foundation for long-horizon training of multimodal MoE models.
6. From Pipeline Validation to Full-Scale Pre-Training
While the scaled-down validation achieved notable results, it is important to recognize that this does not equate to success in full-scale pre-training. Transitioning from an engineering milestone to large-scale commercial deployment requires overcoming two significant hurdles:
Cluster-Scale Expansion. Scaling from 16 GPUs to thousands or tens of thousands introduces exponential complexity in communication topology. Network congestion and node failures become the norm rather than the exception. The system requires robust fault tolerance and checkpoint-based resume mechanisms.
Long-Duration Stability. Large-scale pre-training typically spans weeks or even months, during which hardware aging and temperature fluctuations can cause precision drift in computation.
Industry projections indicate substantial growth in domestic high-end AI chip shipments in the coming years, with the local solution share continuing to rise. Domestic GPUs have taken a solid step forward in training-side reproducibility. As the ecosystem matures and engineering experience accumulates, breakthroughs in full-scale pre-training of trillion-parameter multimodal models on domestic compute platforms are within reach.
