Engineering Practice: Validating Trillion-Parameter Multimodal MoE Training on Domestic GPUs
As large models scale to the trillion-parameter level, the integration of Mixture of Experts (MoE) and multimodal architectures imposes stringent requirements on distributed training infrastructure. This article analyzes a recent training pipeline validation by a Chinese GPU vendor for a 2.8-trillion-parameter native multimodal MoE model. By employing a tailored slim configuration, the validation systematically verifies functional correctness, loss convergence, and gradient integrity. The analysis covers key engineering details including dynamic sparse attention, expert routing, FSDP2 implementation, and cross-node communication, providing a valuable engineering benchmark for emerging AI accelerators and outlining future challenges for full-scale training.
1. Background: Challenges of Trillion-Level MoE Multimodal Models to Training Infrastructure
As large model parameters scale to the trillion level, model architectures have evolved from early dense Transformers to Mixture of Experts (MoE) and multimodal fusion architectures. While these models improve inference efficiency and multimodal understanding capabilities, they impose extremely demanding requirements on distributed training infrastructure. Taking a recently spotlighted 2.8-trillion-parameter native multimodal MoE model as an example, its core architecture exhibits two significant features: dynamic sparse attention mechanisms and expert routing mechanisms.
The dynamic sparse attention mechanism means that when computing attention weights, the model dynamically selects a subset of tokens to participate in the calculation based on the semantic relevance of the input data, rather than computing the full volume. Although this mechanism significantly reduces computational overhead during inference, it introduces high uncertainty in computational patterns during the training phase, making static planning for memory allocation strategies ineffective and challenging the dynamic scheduling capabilities of the memory manager. Additionally, the irregular memory access patterns brought by sparse attention can easily cause idle waiting for GPU compute units, slowing down overall training throughput.
The expert routing mechanism is another key challenge of the MoE architecture. In each forward pass, the model must route different tokens to activated expert sub-networks. Token distribution across devices (and even across nodes) entails massive All-to-All communication. When the model scale reaches the trillion-parameter level and the number of experts scales to hundreds or thousands, communication volume will expand exponentially, and the communication-to-computation ratio may completely overturn the parallel strategy design assumptions of traditional dense models. Maintaining high training efficiency under limited communication bandwidth is a core threshold that all domestic AI chips must cross in large model training scenarios.
Facing these challenges, various domestic AI computing power vendors have accelerated the process of adapting to mainstream large model architectures for training. However, there are significant differences among vendors regarding the depth of validation and the disclosure of engineering details. The latest training pipeline validation results disclosed by a domestic GPU vendor, analyzed in this article, represent an important engineering observation sample within this industry context.
2. Training Pipeline Validation: Systematic Integration via Slim Configuration
It is worth noting that this validation was not conducted under the full 2.8-trillion-parameter scale, but rather utilized a carefully designed slim configuration. Specifically, the language backbone was truncated to 13 Transformer layers, routing experts were reduced to 16 (using a Top-8 activation strategy), and 27 layers of the vision encoder tower and the cross-modal projection module were fully retained. The training data utilized a medical image Visual Question Answering (VQA) dataset, with training started from scratch using randomly initialized weights.
2.1 Engineering Logic of the Slim Strategy
Why adopt a slim configuration rather than the full parameter scale? This must be analyzed from the perspective of the phased goals of engineering validation. The core purpose of this validation was not to pursue the final model performance, but to systematically verify whether the training function was correct, whether the loss could stably converge, and whether there were hidden defects in the distributed training pipeline. Under full trillion-parameter scale, if issues such as numerical overflow, gradient vanishing/exploding, or communication deadlocks occur, the search space for problem localization becomes immensely large, leading to extremely low troubleshooting efficiency. Through a slim configuration, engineers can complete hundreds of training steps within a few hours, quickly exposing and resolving basic defects in underlying operators or parallel strategies, thereby clearing obstacles for subsequent full-scale training.
From the perspective of memory footprint, the peak memory in this validation was 44.80 GiB (approximately 44.8GB), a figure lower than the single-card memory capacity of mainstream enterprise-grade accelerators. Under the slim configuration, memory capacity is not the bottleneck; the key lies in whether the memory management strategy can support the memory fragmentation issues caused by dynamic sparse attention—a hidden killer in large-scale training that is easily overlooked but affects long-term stability.
2.2 Core Solutions for Hybrid Parallelism and State Sharding
Examining from the engineering implementation dimension, the core work of this adaptation was not focused on squeezing the peak compute power of a single card, but rather on the systematic integration of the distributed training pipeline. The specific tech stack includes:
- Operator Layer Completion: For the hybrid attention and sparse expert routing operators unique to multimodal MoE models, CUDA-level operator implementations and numerical precision validations for both forward and backward propagation were completed.
- Parameter Parallelism Strategy: Introduced the industry-standard FSDP2 (Fully Sharded Data Parallel) mechanism to uniformly shard and manage model parameters, gradients, and optimizer states (such as the first and second moments of Adam). This allows continued training via tiered offloading between CPU and GPU even when the model scale far exceeds single-card memory capacity.
- Cross-Node Communication: Adopted MCCL (a collective communication library similar to NCCL) to manage cross-machine communication topologies, ensuring bandwidth utilization efficiency for All-to-All communication under a 16-card, dual-machine configuration.
From a design perspective, this technical combination is not a proprietary solution of a specific vendor, but rather the mainstream technical path in the current large model distributed training field. It is commendable that fully integrating the operator compatibility layer for FSDP2 and MCCL on a domestic GPU platform is itself a systematic engineering effort involving extensive low-level assembly and scheduling optimization. Its difficulty is much higher than application-layer development on existing ecosystems (like CUDA).
3. Training Convergence Validation: From Loss Curves to Gradient Checks
To verify the correctness of the training pipeline, the validation process focused not only on the numerical convergence of the loss curve but also emphasized checking gradient integrity. Under hybrid parallelism and sharding strategies, gradients are highly susceptible to silent corruption during cross-device synchronization due to missing communication or incorrect All-Reduce ordering. Such defects will not throw explicit errors but will directly lead to training divergence or model performance degradation. Therefore, explicitly verifying the norm distribution and finiteness (Finite Check) of each shard’s gradient after each round of gradient aggregation is a critical step in ensuring long-term stable training.
3.1 Quantitative Observation of Loss Convergence
According to publicly disclosed training logs, the mean training loss in the initial phase (steps 21 to 70) gradually converged from 8.9365 to 2.1802 in the last 50 steps, and the validation set loss also decreased from 6.5297 to 4.6873. Analyzing the numerical trend, the model achieved a more than halved loss reduction within only a few hundred steps of training, and the validation loss decreased synchronously with the training loss, showing no obvious signs of overfitting. This result preliminarily verifies the correctness of gradient computation and the effectiveness of optimizer updates.
It is worth noting that there may be a certain degree of fluctuation in the loss curve during the early stages of training (within the first 20 steps). This phenomenon is relatively common in multimodal MoE architectures because the scale inconsistency between the vision tower and the language backbone during the random initialization phase leads to unstable cross-modal attention distribution. From an engineering perspective, effectively absorbing the fluctuations in the first few dozen steps and maintaining numerical stability is a direct test of the gradient scaling strategy (Loss Scaling) and dynamic loss scaling parameter tuning in mixed-precision training.
3.2 Parameter Update Validation for the Vision Branch
A notable detail in this validation is that the vision branch participated in parameter updates throughout the entire process. In the training of some multimodal models, to reduce training difficulty, engineers often freeze the parameters of the vision encoder tower and only train the language part and the projection layer. The active update of the vision branch in this validation means that the gradients of the backward propagation chain must traverse multi-layer fusion modules of varying depths, involving more complex operator dependency relationships, which further enhances the coverage breadth of the validation.
4. Industry Benchmarking: Divergence and Commonality in Domestic GPU Adaptation
Observing this validation within the broader context of the domestic AI computing ecosystem, the divergences and commonalities among different vendors in adaptation strategies can be clearly identified:
| Adaptation Dimension | Vendor A (Thousand-card cluster multimodal) | Vendor B (Mainstream LLM series adaptation) | Vendor in this analysis |
|---|---|---|---|
| Model Scale | Over 100 billion (Multimodal) | 10B to 100B (Language-focused) | 2.8 Trillion (Slim configuration) |
| Validation Focus | Precision alignment and cluster scaling | Coverage expansion to 1,000/10,000 cards | Single-step engineering details and numerical stability |
| Disclosure Depth | Result-oriented (training completed) | Result-oriented (number of adaptations) | Process-oriented (loss curves + gradient checks) |
From the above comparison, it is evident that most domestic GPU vendors’ adaptation validations tend to output conclusive information like “adapted/runnable,” whereas the 400-step continuous training details, phased loss means, memory peaks, and gradient check schemes disclosed in this case represent a rare practice of publishing process-oriented engineering data. This difference does not mean the former lacks technical depth; rather, it reflects the fundamental distinction between two types of validation paths:
- Path A (Full-scale Validation): Directly running pre-training with the full model on a relatively large-scale cluster to validate the effectiveness of the final result. The pros and cons of this path lie in its long testing cycle, high resource consumption, and extreme difficulty in problem localization once a failure occurs.
- Path B (Slim Validation): First validating the correctness of the functional pipeline with a minimal configuration, then gradually expanding to full-scale training. This path can efficiently expose underlying operator and communication library defects upfront, but it cannot fully cover the communication topology and scheduling complexity issues newly introduced during cluster scale expansion.
The validation results disclosed this time belong to a typical Path B. Its engineering value lies in providing a reproducible reference benchmark for training nodes, but it cannot yet be equated with a complete proof of capability for full-scale trillion-parameter training.
5. Key Bottlenecks and Future Outlook
From a slim configuration to the full-scale training of a complete trillion-parameter model, two core tests still lie ahead:
5.1 The Linearity Challenge of Cluster Scale Expansion
In a 16-card dual-machine configuration, the communication topology is relatively simple, and the bandwidth bottleneck of All-to-All communication is not yet prominent. However, when the scale expands to a thousand-card or even ten-thousand-card cluster, cross-node communication will heavily traverse multi-layer switching networks, and communication latency and congestion control will become the primary factors restricting training efficiency. Whether the hybrid scheduling strategy of Expert Parallelism and Data Parallelism in the MoE architecture can maintain an approximately linear scaling ratio at the 10,000-card scale is a critical issue that domestic GPUs must solve before fully entering the main battlefield of large model training.
5.2 The Reliability Test of Long-Term Stability
A complete pre-training cycle of tens of thousands or even hundreds of thousands of steps usually lasts from weeks to months. During this period, extremely stringent requirements are placed on the hardware failure rate of GPUs, the fault-tolerance recovery capability of communication libraries, and the Checkpoint and Restart mechanisms of the training framework. This validation only completed 400 steps of training, which accounts for less than 0.1% of a complete pre-training cycle. Issues such as memory leaks, communication deadlocks, and cabinet overheating frequency reduction under long-term operation still need to be fully tested over longer training cycles.
6. Conclusion: From “Runnable” to “Reproducible”
The process of adapting domestic GPUs to large model training is undergoing a phase transition from “running certain models” to “stably reproducing production-grade training results.” The slim configuration validation by a single vendor for a trillion-parameter multimodal MoE architecture provides the industry with a rare engineering analysis sample—it does not mean the absolute success of full-scale training, but it marks that domestic AI computing power, in the process of catching up with the international mainstream training stack, is gradually bridging the most critical “process transparency” gap in engineering validation. For the vast number of developers and AI infrastructure architects, focusing on the numerical stability of the training pipeline and the detailed validation of distributed strategies is of more practical reference value than simply focusing on single-card peak compute power. In the future, as domestic GPU clusters continue to accumulate long-term stable training cases at the 10,000-card scale, the maturity of the distributed training software stack will become the core yardstick for measuring the true competitiveness of domestic computing power.
