Validating Trillion-Parameter Multimodal Model Training on Domestic GPUs: An Engineering Practice
A domestic GPU vendor has completed end-to-end training validation of a 2.8-trillion-parameter MoE native multimodal model, running 400 consecutive steps on a 16-GPU, two-node setup without numerical overflow or interruption. This article analyzes the training challenges of trillion-scale MoE multimodal models, the trimmed-configuration validation approach, and the key distributed training technologies involved.
As large language models scale toward the trillion-parameter range, Mixture-of-Experts (MoE) architectures and native multimodality have become the mainstream direction of technical evolution. However, such complex architectures impose extremely demanding requirements on underlying compute infrastructure in terms of communication bandwidth, memory scheduling, and operator precision. Recently, a domestic GPU vendor completed training pipeline adaptation for a 2.8-trillion-parameter MoE native multimodal model, running 400 consecutive training steps on a two-node, 16-GPU configuration without numerical overflow or abnormal interruption. This engineering milestone indicates that the ability to systematically bring up end-to-end pipelines for ultra-large-scale multimodal model training on domestic compute is maturing.
1. Training Barriers for Trillion-Parameter MoE Multimodal Models
The core characteristics of a 2.8-trillion-parameter native multimodal model lie in dynamic sparse attention and the expert routing mechanism. While these two techniques greatly enhance model expressiveness, they also pose significant engineering barriers:
- Memory fragmentation from dynamic sparse attention: Unlike full attention, dynamic sparse attention decides at runtime which tokens participate in computation. This leads to extremely frequent memory allocation and deallocation, which can easily cause memory fragmentation and places stringent demands on the GPU’s memory manager.
- Communication overhead from expert routing: The core of MoE architecture is that each token activates only a subset of experts (e.g., Top-8 activation). In multi-node, multi-GPU environments, experts are typically distributed across different devices. When data flows in, tokens must be sent to the corresponding expert nodes via cross-device All-to-All communication, computed, and then collected back. Such high-frequency cross-node communication can easily become a training bottleneck.
2. Pipeline Validation with a Trimmed Configuration
In real large-scale pretraining, directly committing thousands of GPUs to validate a full model is extremely risky. Therefore, using a “trimmed configuration” for pipeline validation is a common engineering practice to reduce cost.
In this validation, the team extracted the first 13 layers of the language backbone, retained 16 routed experts (using a Top-8 activation strategy), and kept the complete 27-layer vision tower and cross-modal projection module. Training data was randomly initialized based on the MedPix-VQA image-text dataset. The core purposes of this configuration were:
- Functional usability verification: Ensuring that the operator logic for multimodal feature fusion, MoE forward computation, and backward gradient propagation is correct.
- Convergence trend observation: Verifying that the model can update parameters along the expected optimization curve in the domestic GPU environment.
According to the disclosed engineering details, the training loss steadily converged from an initial 8.9365 (average of steps 21–70) to 2.1802 (average of the final 50 steps), while the validation loss dropped from 6.5297 to 4.6873. Peak memory usage was controlled at 44.80 GiB, and the vision branch participated normally in parameter updates. The 400 consecutive steps ran without overflow or interruption, and gradient checks showed no abnormal spikes—fully demonstrating the numerical stability of the training pipeline.
3. Key Technologies Behind the Distributed Training Pipeline
The focus of this adaptation was not on pursuing single-card theoretical peak compute, but on systematically bringing up the distributed training pipeline. This involves deep coordination between low-level operator completion and upper-level distributed strategies:
3.1 Operator-Level Adaptation: Hybrid Attention and MoE Implementation
Domestic GPUs need to customize or optimize their underlying operator libraries for specific model architectures. The team completed the forward and gradient operators for the hybrid attention mechanism, as well as the MoE routing and expert computation operators. In the MoE operator implementation, special attention must be paid to the numerical stability of the gating network (e.g., using Softmax with a small bias to prevent numerical underflow) and efficient parallel computation for Top-K selection.
# Pseudocode example of MoE gating and routing logicdef moe_forward(tokens, experts, gate_network):# Compute gating weights and select Top-K expertsgate_logits = gate_network(tokens)top_k_weights, top_k_indices = torch.topk(gate_logits, k=8, dim=-1)# Dispatch tokens across devices (All-to-All communication)dispatched_tokens = all_to_all_dispatch(tokens, top_k_indices)# Expert computationexpert_outputs = experts(dispatched_tokens)# Collect results across devices (All-to-All communication)combined_output = all_to_all_combine(expert_outputs, top_k_indices)return combined_output * top_k_weights
3.2 Distributed Strategy: FSDP2 Sharding Management
Facing the memory pressure from trillion-scale parameters, the pipeline validation relied on FSDP2 (Fully Sharded Data Parallel 2) technology. FSDP2 evolves the traditional ZeRO-3 concept, achieving fine-grained sharding management of parameters, gradients, and optimizer states. In the domestic GPU adaptation, FSDP2 effectively reduced per-GPU memory usage, allowing a 16-GPU configuration to host the model weights including the complete vision tower. Its core lies in hierarchical parameter aggregation and the timing of shard release, which must work closely with the underlying communication framework.
3.3 Communication Framework: Efficient Cross-Node Coordination
Cross-node communication is handled by a dedicated collective communication library (e.g., MCCL). In a two-node, 16-GPU scenario, the latency of All-to-All and AllReduce operations directly determines end-to-end training throughput. The domestic communication library needs deep optimization for PCIe/NVLink topology and cross-node networks (such as RoCE) to reduce waiting time as tokens circulate among expert nodes.
4. Industry Progress and Future Outlook
Across the industry as a whole, the pace of adaptation between domestic AI chips and large models is accelerating significantly. Some cloud vendors’ self-developed AI chips (such as Baidu’s Kunlunxin P800) have completed training of major large model versions on fully domestic clusters, achieving an effective training rate of 97%. Other leading compute vendors have disclosed that their products have been adapted to hundreds of mainstream large models, covering the vast majority of non-closed-source model families. These cases show that reproducibility on the training side with domestic GPUs is establishing a reliable engineering reference.
However, moving from this disclosed “pipeline validation with a trimmed configuration” to “full-scale pretraining of the complete trillion-parameter model” still requires crossing several dimensions of challenges:
- Communication degradation at cluster scale: When scaling from 16 GPUs to thousands or tens of thousands, network topology becomes more complex, and communication congestion and node failure rates rise exponentially.
- Fault tolerance for long-running stability: Full-scale pretraining typically lasts weeks or even months, placing extremely high demands on hardware stability, checkpoint-and-resume mechanisms, and automatic isolation of failed nodes.
In summary, domestic GPUs have been effectively validated in single-node multi-GPU and even dual-node multi-GPU environments in terms of operator precision, memory management, and basic distributed communication. Looking ahead, as the underlying software stack matures further and cluster operations systems improve, domestic compute is expected to play an increasingly central role in the full-scale training of trillion-parameter multimodal large models.
