Trillion-Scale MoE Multimodal Training on Domestic GPUs: A Technical Analysis
This article examines how domestic GPUs (within China's compute ecosystem) can support the training pipeline of a native multimodal large model with roughly 2.8 trillion parameters built on a Mixture-of-Experts (MoE) architecture. Rather than reviewing a single vendor announcement, it distills a reusable engineering methodology: which critical stages must be connected when domestic GPUs are expected to train trillion-scale multimodal MoE models, and how to scientifically verify whether the pipeline is truly usable. It covers dynamic sparse attention and expert routing, the dual pressure of multi-card communication and memory management, operator-level correctness, fully sharded data parallelism, and collective communication. It also offers practical recommendations and clarifies that trimmed-configuration validation confirms functional correctness and loss convergence, not full-scale pretraining performance.
In recent years, the pace of adapting domestic compute to large models has clearly accelerated. Several domestic accelerator vendors have reported that their products completed training adaptation for mainstream open-source and in-house large models at thousand-card and even ten-thousand-card cluster scales, with accuracy gradually converging to international levels. Among these developments, the validation of the training pipeline for a native multimodal large model with roughly 2.8 trillion parameters built on a Mixture-of-Experts (MoE) architecture is especially worth a close read by developers, because its disclosed engineering details are relatively complete.
This article does not focus on any specific vendor announcement. Instead, it abstracts a reusable engineering methodology: when domestic GPUs are asked to support a trillion-scale multimodal MoE model, which critical stages must be connected, and how can we scientifically verify whether the pipeline is truly usable?
1. Why the Training Pipeline of a Trillion-Scale MoE Multimodal Model Deserves Separate Validation
To understand the value of this validation, we first need to see two “high-threshold” architectural characteristics of this class of model.
The first is dynamic sparse attention and the expert routing mechanism. The MoE architecture decouples part of the feed-forward computation into multiple “experts,” and a gating network dynamically selects a small number of experts to activate for each token. Taking the trimmed configuration as an example, the language backbone uses 16 routed experts with a Top-8 activation strategy, meaning each token activates only half of the experts. This design increases model capacity while making the implementation of the forward pass and the backward gradient far more complex than for a dense model: gating scores, Top-K selection, weight normalization, token dispatch, and result aggregation must each guarantee numerical stability and correct gradient backpropagation.
The second is the dual pressure of multi-card communication and memory management. At the trillion-parameter scale, a single card cannot hold the complete parameters, gradients, and optimizer states, so distributed parallelism must be used to partition them. Meanwhile, in a multimodal architecture the vision tower and the language backbone differ greatly in scale, and the routing between experts introduces irregular communication patterns. Cross-card and cross-node communication scheduling and load balancing therefore become the core variables that determine whether training can proceed stably.
It is precisely these two points that make “training pipeline validation” more than simply running a demo. It is a systematic examination of the coordinated capabilities of operator implementation, parallel strategy, communication libraries, and numerical stability.
2. What Does the “Trimmed Configuration Validation” Actually Validate
One important boundary must be stated first: this validation uses a trimmed configuration and is a functional validation of the training pipeline, not a full-scale pretraining run. The two have different goals and should not be conflated.
Specifically, the trimmed configuration works as follows: the language backbone is truncated to 13 layers and retains 16 routed experts (Top-8 activation); the 27-layer vision tower and the cross-modal projection module are fully retained, and training is performed on a public image-text question-answering dataset with random initialization. The reason for fully retaining the vision tower and the cross-modal projection is to ensure the cross-modal interaction path of the multimodal pipeline is genuinely exercised rather than simplified away.
From the disclosed key metrics, the effectiveness of this pipeline is reflected across several dimensions:
- Training loss convergence: dropping from a mean of 8.9365 over steps 21–70 to a mean of 2.1802 over the last 50 steps;
- Validation loss reduction: from 6.5297 to 4.6873;
- Peak memory: 44.80 GiB;
- Gradient path integrity: the vision branch genuinely participated in parameter updates.
The point that especially deserves emphasis here is “the vision branch participates in parameter updates.” In multimodal training, a common pitfall is that some modality branches become “present but ineffective” due to data, loss weighting, or operator implementation issues: they appear to train but do not actually learn. Confirming through a gradient check that the vision branch truly receives updates is a key part of validating the correctness of the pipeline. A continuously decreasing loss curve, no numerical overflow, and no abnormal interruptions together form the basic evidence chain for “this pipeline is usable.”
3. The Engineering Dimension: Systematically Connecting the Distributed Pipeline
If the metrics are the results, then the engineering implementation is the real focus of this adaptation. It does not lie in single-card peak compute, but in completing the forward and gradient implementations of the hybrid attention and MoE operators and keeping the entire distributed training framework running stably.
3.1 Completing Correctness at the Operator Layer
The forward and backward passes of an MoE layer must ensure numerical consistency between gating and expert computation. The following is illustrative code explaining the core logic of gating routing:
def moe_forward(x, router, experts, top_k=8):# 1. Score with the gating network and normalizelogits = router(x) # [num_tokens, num_experts]probs = softmax(logits, dim=-1)# 2. Select Top-K experts and re-normalize the weightstopk_probs, topk_idx = topk(probs, k=top_k)topk_probs = topk_probs / topk_probs.sum(dim=-1, keepdim=True)# 3. Dispatch tokens and aggregate expert outputs with weightsout = zeros_like(x)for k in range(top_k):idx = topk_idx[:, k]out = out + topk_probs[:, k:k+1] * experts[idx](x)return out
In real training, this logic must also handle engineering details such as expert capacity, load balancing, and overflow dropping, and must ensure that gradients on both the gating and expert sides accumulate correctly during backpropagation. The operator implementation of hybrid attention must likewise keep its forward and gradient strictly aligned numerically; otherwise the mismatch will be amplified into training instability after several iterations.
3.2 Parameter Sharding and State Management
Facing trillion-scale parameters, the training framework adopts a fully sharded data parallel strategy that shards the parameters, gradients, and optimizer states separately. Its core idea is that each card permanently holds only a portion of the complete model state, aggregating it on demand when computation is needed and releasing it after use, thereby reducing memory usage from “full residency” to “sharded residency.” Working together with techniques such as activation recomputation and mixed precision, this mechanism is the foundation for pushing the peak memory down to 44.80 GiB and running long-sequence training.
3.3 Cross-Node Coordination of Collective Communication
In multi-card, multi-node scenarios, forward aggregation, gradient reduction, and the All-to-All communication of expert routing are all scheduled by a collective communication library. An MCCL-type communication library handles cross-node communication, and its efficiency and stability directly affect end-to-end throughput. The irregular All-to-All communication pattern of MoE places higher demands on the library’s load balancing and fault tolerance, which is also the key support for whether the pipeline can run “400 continuous steps with no abnormal interruptions.”
4. Practical Recommendations for Developers
Synthesizing this validation, we can distill several general recommendations aimed at engineering practice:
- Validate the pipeline before scaling. Using a trimmed configuration to get the functionality and loss trend working is a necessary prerequisite before investing in full pretraining, and it effectively reduces the cost of large-scale trial and error.
- Include “gradient checks” in the acceptance checklist. In multimodal scenarios, be sure to confirm that every modality branch is genuinely updating, to avoid the hidden defect of “trained but did not learn.”
- Focus on numerical stability, not just peak numbers. No overflow, no abnormal interruptions, and a smoothly decreasing loss often reflect pipeline maturity better than single-card peak values.
- Coordinate the tuning of communication and parallel strategies. Parameter sharding, collective communication, and expert routing should be optimized as a whole rather than as isolated stages.
It should be noted objectively that validation on a trimmed configuration measures functional correctness and the loss convergence trend; it is not equivalent to the performance and final results of a full-scale pretraining run. It is a key bridge: it proves that domestic GPUs are able to support the complex and complete training pipeline of a trillion-scale MoE multimodal model. As the operator library, parallel framework, and communication capabilities continue to be refined, this evolution from “getting it to run” to “running it well” is the real path toward the maturity of the domestic compute ecosystem.
