Breakthroughs in Verifying the Training Link for a Trillion-Parameter MoE Multimodal Model on Domestic GPUs
This article details the verification of a 2.8 trillion-parameter MoE multimodal model training link on a domestic GPU infrastructure. It highlights the architectural challenges of large-scale sparse models, the memory management strategies employed using FSDP2, and the communication optimizations via MCCL to ensure stable All-to-All operations. By completing 400 continuous training steps on a 16-GPU configuration without numerical overflow, this verification demonstrates a shift from basic single-card functionality to a fully integrated distributed training pipeline. The article also provides practical insights into AI infrastructure selection and outlines the evolving trends within the domestic AI compute ecosystem.
Background: When Multimodal MoE Models Meet Domestic Compute Infrastructure
In recent years, the scale of large models has rapidly evolved along the path of “dense models—sparse MoE—multimodal fusion.” This increasing architectural complexity brings two core infrastructure challenges. First, at the scale of hundreds of billions to trillions of parameters, a single GPU’s memory cannot hold a model replica, necessitating fine-grained parameter sharding and pipeline scheduling. Second, the expert parallelism and token routing mechanisms in the Mixture of Experts (MoE) architecture generate massive cross-node communication demands, placing stringent requirements on the bandwidth utilization and stability of collective communication libraries.
When these challenges intersect with the maturing ecosystem of domestic AI accelerators, the engineering complexity is further amplified. It requires not only functional alignment at the operator level but also ensuring numerical stability and cluster observability during prolonged distributed training.
Recently, a domestic GPU vendor disclosed the results of adapting and verifying the training link for a native multimodal model with an MoE architecture totaling 2.8 trillion parameters. The verification completed 400 continuous training steps on a dual-machine, 16-GPU configuration without numerical overflow or abnormal interruptions. Disclosing continuous training steps, loss curves, and gradient inspection details for a sparse model of this scale is rare in the domestic compute ecosystem. This progress signifies that domestic GPUs have transitioned from “running single-machine, single-card” to “systematically establishing a distributed training link” for ultra-large frontier models.
Training Link Verification: Architectural Challenges and Truncation Strategies
Why a 2.8 Trillion Parameter Model is a “Touchstone”
The model utilizes an MoE architecture with 2.8 trillion parameters, representing a typical “wild sparse” pattern. Its core structure includes dynamic sparse attention and expert routing mechanisms. Dynamic sparse attention means the model does not compute full attention weights for all token pairs during inference and training. Instead, it dynamically selects sparse attention patterns based on input, causing dynamic branches in the computation graph at runtime, which stresses operator flexibility and kernel fusion capabilities. The expert routing mechanism activates only a few experts (Top-8) per token, leading to intensive All-to-All communication. Any congestion or failure in the communication link quickly manifests as “training stagnation” or “gradient loss.”
The technical hurdles generated by these architectural features during training focus on three aspects:
- Aggravated Memory Fragmentation: Mixed attention and multi-expert parallelism cause fluctuations in intermediate activation memory usage far greater than in dense models.
- Complex Communication Patterns: The routing mechanism triggers token redistribution among devices, requiring communication primitives to support dynamic lengths and non-contiguous memory layouts.
- Numerical Stability Control: Low-precision training (e.g., BF16) on such a large scale easily leads to overflow due to variance fluctuations in gradient magnitudes, especially during the SoftMax phase of attention calculation and the Gate calculation phase of MoE.
Truncation Configuration: Verifying the Complete Link with Limited Compute
Facing the massive compute required for full-scale pre-training, this verification employed a carefully designed truncated configuration. Specifically, the language backbone retained only 13 Transformer layers with 16 routing experts (Top-8 activated), while keeping the complete 27-layer vision tower and cross-modal projection module. The significance of this combination lies in retaining the key structures affecting distributed training behavior—the cross-modal interaction between the vision tower and language backbone, and the Top-8 selection logic in expert routing—while compressing the computational load to a level manageable by a few dozen accelerators.
Notably, the truncation was not arbitrary but focused on the core goal of “training link verification.” The focus was on whether the multi-card parallel strategy correctly executed gradient synchronization, whether optimizer states were correctly sharded, and whether communication primitives had potential deadlocks during long-term stable operation, rather than a complete reproduction of early convergence. Training with random initialization based on the MedPix-VQA image-text dataset ensured the authenticity of the training process while avoiding the time cost of large-scale data cleaning and preprocessing.
Key Engineering Details: The Craft of Operations
Memory Management: Dynamic Sharding and Activation Optimization
The memory usage distribution of MoE models differs significantly from dense models. In dense models, parameters and optimizer states dominate; in MoE models, intermediate activations and temporary buffers generated by expert parameter exchanges often become the memory bottleneck. The verification controlled the peak memory at 44.80GiB, reflecting the cumulative effect of multi-layer optimization.
The primary optimization method is the application of the FSDP2 (Fully Sharded Data Parallel) strategy for fine-grained sharding of parameters, gradients, and optimizer states. Unlike traditional DDP (Data Parallel), which saves a full model replica on each device, FSDP2 horizontally splits parameters across devices and dynamically reassembles required parameter shards via All-Gather operations only during forward or backward computation. This significantly reduces the peak memory demand on a single card in large model scenarios. Additionally, FSDP2 supports sharding gradients and optimizer states together, achieving a “horizontal” distribution of memory usage.
Secondly, the hybrid architecture of the vision tower and language backbone requires selective offloading of intermediate activations. As a relatively independent branch, the vision tower’s activation values can be released after cross-modal projection is completed, without needing to be retained until the entire backward process ends. In engineering implementation, precise hook settings via the autograd mechanism ensure early recovery of activation memory. Ultimately, the configuration of 13 language backbone layers plus the full vision tower controlled the peak memory at 44.80GiB, a healthy memory level within the industry.
Communication Optimization: Building a High-Speed All-to-All Pathway with MCCL
The MoE’s expert routing mechanism causes severe communication skew: each token is routed to different expert devices, which need to exchange token vectors in parallel. This pattern demands extremely high implementation quality for the “All-to-All” operation in the collective communication library. Cross-node communication is handled by MCCL (Multi-Card Communication Library), which integrates scheduling for local NVLink and cross-node RDMA networks.
In implementation, the focus of communication tuning is transforming the dynamic token allocation generated by MoE routing into efficient message passing. This involves converting the “Token-Expert mapping table” into a deterministic scheduling plan to reduce communication idling, and using multi-path splitting to reduce single-path message length to prevent long message blocking. Furthermore, cross-node communication utilizes bandwidth slicing technology to reserve independent communication channels for attention calculation and expert exchange, preventing mutual interference. It is the polishing of these underlying details that supports the stability metric of 400 continuous training steps without interruption.
Numerical Stability: Gradient Clipping and Mixed Precision Strategy
At the scale of 2.8 trillion parameters, the dynamic range of gradient magnitudes is exceptionally broad. In this verification, training loss converged from 8.9365 (average of steps 21-70) to 2.1802 (average of the last 50 steps), and validation loss dropped from 6.5297 to 4.6873. The loss curve decreased smoothly without spikes, indicating effective numerical control strategies.
The key lies in the combination of gradient clipping threshold selection and the BF16 mixed precision strategy. BF16 has a larger exponent range (8-bit exponent, 7-bit mantissa) than FP16, covering a larger dynamic numerical range without overflow. Coupled with dynamic loss scaling, it automatically adjusts the scaling factor based on historical gradient magnitudes, further reducing overflow risk. Meanwhile, the Gate network’s calculation uses FP32 precision in forward propagation, because the SoftMax result of the Gate directly determines the token-to-expert allocation weight. A tiny error in this weight can cause routing decision deflection, thereby affecting the model’s convergence trajectory.
Verification Method: From “Loss Decrease” to “Link Trustworthiness”
Four Dimensions of Link Health Observation
Verifying the training link should not solely target the decrease in loss values but must establish a multi-dimensional observability system. The evaluation dimensions covered in this verification can be summarized into four levels: loss curve shape, gradient norm distribution, communication time fluctuation, and memory footprint stability.
The loss curve focuses on the “continuity of the downward trend” and “late-stage convergence degree,” primary indicators for judging whether optimizer state updates are normal and learning rate scheduling is running. The gradient norm distribution checks for spike phenomena; a sudden tenfold surge in gradient at a specific step often implies numerically unstable operator implementations in the computation graph. Communication time fluctuation reflects the stability of cluster interconnection; if All-to-All communication latency continues to rise, it usually points to network congestion or routing algorithm degradation. Memory footprint stability focuses on progressive memory leaks, a problem easily overlooked by developers during long-term stable training but highly costly.
Vision Branch Participation: Ensuring Multimodal Link Integrity
It is particularly noteworthy that the verification mentioned “the vision branch participates in parameter updates.” A common pitfall in multimodal model training is that vision tower parameters degrade to a randomly initialized state due to excessively large learning rates or interrupted gradient flow. This verification explicitly stated that the vision branch participates in updates, and ensured effective gradient propagation for both the vision tower and language backbone through a joint loss function. For multimodal link verification, seeing a decrease only in text loss is insufficient to prove the vision branch works correctly; independent confirmation of the gradient statistics of the vision tower parameters is required. The results showed a synchronous decrease in validation loss, inversely confirming that the cross-modal alignment process is indeed learning effective image-text mapping relationships.
Domestic AI Compute Ecosystem Trends and Implications
Systematic Enhancement from Single-Point Breakthroughs to Cluster Ecosystems
This verification is not an isolated single-point engineering feat but a slice of the overall evolution of the domestic compute ecosystem. Looking at market trends, a domestic AI chip company disclosed in an interim report that several large model enterprises used its thousand-card clusters to complete multimodal pre-training and reinforcement learning, with precision aligning with mainstream international products. Another leading domestic AI chip company revealed at a semi-annual performance briefing that its training side has advanced the adaptation of multiple open-source model series, continuously extending to thousand-card and ten-thousand-card cluster scenarios. In addition, a cloud provider announced at its annual conference that a fully domestic cluster based on self-developed AI chips completed an important version training with an effective training rate exceeding 97%; another domestic CPU/GPU vendor’s semi-annual materials showed its DCU accelerator cards have adapted to hundreds of mainstream large models, covering the vast majority of non-closed-source large models.
These signals collectively point to one conclusion: the domestic compute ecosystem is accelerating from “usable” to “easy to use.” The bottleneck factors that previously restricted large-scale model training on domestic compute—communication library maturity, distributed framework compatibility, and underlying operator performance—are being systematically bridged.
Practical Reference for AI Infrastructure Selection
For teams planning AI infrastructure, the key takeaways from this verification are threefold:
- Beyond Peak Compute: Evaluating hardware platforms should not solely look at single-card peak compute but focus more on “long-term distributed training stability metrics.” Continuous training for hundreds of steps without interruption and no gradient anomalies are indicators that better reflect the real production environment experience than single-card benchmarks.
- Framework Compatibility as a Hidden Cost: Framework compatibility is a soft but fatal cost item. Whether mainstream distributed strategies like FSDP2 can run smoothly on the target platform directly determines the magnitude of engineering team investment in adaptation. If the platform only supports custom parallel strategies, the team will bear additional reliability and maintainability risks.
- Rigid Memory Management Needs for Multimodal: Multimodal models have rigid requirements for “memory management.” The memory spikes brought by the mixed computation of the vision tower and language backbone need to be absorbed at the hardware level through large-capacity HBM and efficient memory allocators. The tolerance for memory fragmentation is an important benchmark for measuring underlying runtime quality.
Conclusion and Outlook: The Next Stop for Full-Scale Pre-training
The 400-step verification on 16 GPUs completed a “functional verification of the training link under a truncated configuration,” which is not equivalent to complete full-scale pre-training. Full-scale pre-training still needs to address more dimensional challenges, such as fault tolerance of thousand-card clusters, scheduling stability over long-term operation, and the efficiency of checkpoint saving and recovery. However, it is precisely this kind of engineering accumulation starting from small-scale verification that will gradually consolidate the foundational capability of large-scale domestic compute clusters to undertake frontier model training.
From a technological evolution perspective, dynamic sparse attention and expert routing mechanisms are becoming the mainstream choices for next-generation large model architectures. This trend places clear demands on underlying hardware design: stronger All-to-All communication throughput, more flexible memory management strategies, and operator implementations that remain stable under sparse computation modes. The continuous verification and iteration of domestic GPUs in this direction will determine whether they can occupy a key ecological niche in the future large model training market. For teams focusing on AI infrastructure, tracking the engineering details of these verification results is more informative than any marketing slogan.
