Trillion-Parameter MoE Multimodal Training: Pipeline Validation and Domestic GPU Adaptation
This article examines the training-pipeline validation of a 2.8-trillion-parameter MoE native multimodal model on domestically produced GPUs, where a two-node, 16-GPU setup completed 400 consecutive training steps without numerical overflow. It explains why trillion-scale MoE multimodal models are hard to adapt, analyzes the disclosed results—training loss, validation loss, peak memory, and numerical stability—and details the distributed-training engineering behind them: parallelism strategies, MoE routing and expert parallelism, hybrid attention, collective communication, and gradient checks. It also provides a reproducible acceptance checklist, outlines the gap between trimmed-configuration validation and full-scale pretraining, and offers three practical recommendations for adaptation teams.
1. Background: Why Trillion-Scale MoE Multimodal Models Are Hard to Adapt
In mid-November 2025, a domestic GPU vendor announced that it had completed training-pipeline adaptation for a 2.8-trillion-parameter MoE native multimodal large model. On a two-node, 16-GPU configuration, it trained for 400 consecutive steps without numerical overflow or abnormal interruption, and publicly released the loss curves and gradient-check details. Among the publicly available information on models of this parameter scale, cases that disclose such engineering details are rare.
Two points to clarify up front:
- This was a pipeline validation under a trimmed configuration, aimed at verifying that the training functionality works end-to-end and that the loss trend is reasonable;
- It is not equivalent to a full-parameter pretraining run at full scale.
Architecturally, this type of model stacks three layers of complexity:
- Sparse MoE layers: each token is routed to only a few experts. This creates two problems:
- Beyond sharding parameters, you must additionally partition experts;
- Inter-node All-to-All communication becomes a training hotspot.
- Hybrid/dynamic sparse attention: some layers use linear or sparse attention to reduce long-sequence overhead, while others keep full attention. The forward and backward implementations of these operators are complex and need dedicated maintenance.
- Native multimodality: the vision encoder (vision tower), the cross-modal projection module, and the language backbone are trained end-to-end jointly, and the parallelism strategies, load, and numerical behavior on the language side and vision side differ from each other.
The combination of all three means that whether an accelerator can handle the training does not depend on single-card peak compute, but on whether the full pipeline is connected: whether the operators exist, whether the numerics are correct, whether the sharding and collective communication are correct, and whether there is enough memory headroom. If you stop at “single-card inference works” or “a few forward steps can be completed,” you cannot answer the question enterprises actually care about: can it support a long, stable, reproducible pretraining run?
From an industry-tempo perspective, several domestic compute vendors are accelerating adaptation. The following all come from public vendor disclosures:
- One vendor says several large-model companies have completed multimodal pretraining and reinforcement learning on its thousand-GPU-class clusters;
- One vendor disclosed that it is advancing adaptation for multiple mainstream open-source model series and extending toward thousand- and ten-thousand-GPU cluster scenarios;
- Baidu publicly disclosed that its fully domestic AI chip cluster completed the training of a major ERNIE model version, with an effective training rate of 97%;
- Another vendor claims its accelerators have adapted over 400 mainstream large models, covering 99% of non-closed-source models.
The metrics differ, and so do the emphases: some stress adaptation count, some stress cluster scale and effective training rate, and some focus on the engineering details of one specific model architecture. For buyers, the key is not to compare whose headline number is bigger, but to understand what question each type of disclosure actually answers.
Third-party research firms forecast that China’s high-end AI chip shipments will reach about 5 million units in 2026, up roughly 83% year over year, with domestic solutions holding nearly 90% share (including cloud vendors’ in-house ASICs). The number of ecosystem adaptations is growing fast, but the accumulation of training-side engineering credibility is still at a critical stage. A well-documented, reproducible pipeline validation is a valuable node in that accumulation.
2. Representative Case: Pipeline Validation Under a Trimmed Configuration
2.1 The Design Logic of the Trimmed Configuration
This case did not launch full-scale trillion-parameter training directly; instead, it designed a “validate much with little” trimmed configuration:
| Module | Trimming strategy | Design intent |
|---|---|---|
| Language backbone | Truncated to 13 layers | Layers greatly reduced while preserving the backbone structure type |
| MoE layers | 16 routed experts, Top-8 activated | Preserve sparse routing and the All-to-All communication path |
| Vision tower | Full 27 layers retained | Do not trim vision-side operators; ensure gradient backpropagation |
| Cross-modal projection | Fully retained | Validate the image-text alignment path |
| Training method | Random-initialization training on an image-text dataset | No reliance on pretrained weights; tests the ability to train from scratch |
This configuration sends a clear signal: keeping the vision tower intact shows that the focus of this validation was the training pipeline, not compute scale. Random-initialization training means the model must learn the vision side and the language side together via backpropagation; if the vision branch’s gradients are not propagated back correctly, the loss curve will show anomalies immediately.
2.2 Disclosed Results
| Metric | Start | End | Change |
|---|---|---|---|
| Training loss (mean) | 8.9365 (steps 21–70) | 2.1802 (last 50 steps) | ~75.6% decrease |
| Validation loss | 6.5297 | 4.6873 | ~28.2% decrease |
| Peak memory | — | 44.80 GiB | vision branch participates in parameter updates |
Two more key facts:
- 400 steps of continuous training with no numerical overflow or abnormal interruption;
- Inter-node communication was handled by the vendor’s in-house collective communication library.
3. Interpreting the Results: What These Four Numbers Say
3.1 Training Loss: From “Near the Theoretical Ceiling” to Steady Decline
At random initialization, the model output is approximately a uniform distribution, and the expected language-modeling loss is about ln(V), where V is the vocabulary size. For a vocabulary of about 16,000, ln(16000)≈9.68, which is the same order of magnitude as the measured starting point of 8.9365. This indicates that:
- The cross-entropy computation and loss-masking logic are basically correct;
- There is no loss “blow-up” caused by an inappropriate initialization scale.
The subsequent drop to 2.1802 shows that backpropagation, gradient clipping, and optimizer updates form an effective closed loop. But two points should be noted:
- Window means, not single points: using the means of steps 21–70 and the last 50 steps as start and end points avoids interference from the random-initialization phase and individual spikes. This reporting approach is worth borrowing.
- 400 steps is far from the convergence plateau: the large drop mainly shows that “the pipeline is connected” and cannot be used directly to infer model capability.
3.2 Validation Loss: Generalization Is Not Yet Established
Training loss dropped by about 6.76, while validation loss dropped by only about 1.84, and the gap between them is widening. Under the conditions of a small dataset, random initialization, and only 400 steps, this “training loss drops fast, validation loss follows slowly” pattern is typical: the model first memorizes the training samples, and generalization only begins to accumulate. It is therefore not possible to conclude how much knowledge the model has learned. Pipeline validation examines whether training is “correct,” not whether the model is “smart.”
3.3 Peak Memory 44.80 GiB: Headroom Is What Matters
Whether the peak is “safe” depends on per-card memory capacity and headroom:
- If per-card memory is 64 GiB, the headroom is about 30%;
- If it is 48 GiB, less than 10% remains.
Peaks across different configurations are not horizontally comparable. What is more worth attention is what parts make up the peak, and which parts will be “squeezed out” first when the full-scale configuration is restored and batch size or sequence length is increased.
3.4 400 Steps Without Overflow or Interruption: Initial Evidence of Numerical Stability
- Mixed precision: with bf16, no loss scaling is needed; with fp16, dynamic loss scaling is usually needed to prevent gradient underflow.
- Numerical risk points: the many “sum” operations in the backward pass should specify fp32 accumulation; otherwise large activations can easily cause overflow or precision collapse.
- Scattered points are not long-term stability: 400 steps can only rule out obvious defects; “loss spikes” that appear over thousands of consecutive steps still need to be addressed via learning-rate scheduling, gradient clipping, and other means.
4. Engineering Perspective: Key Technical Points of the Distributed Pipeline
4.1 Parallelism Strategy: Full Sharding of Parameters, Gradients, and Optimizer State
Take the data-parallel scheme with full parameter sharding as an example: each card stores only a portion of the parameters, gradients, and optimizer state, gathering parameters on demand in the forward pass and aggregating gradients in the backward pass. With the common mixed-precision combination of “bf16 parameters + bf16 gradients + fp32 master weights + fp32 first/second moments,” the parameters, gradients, and optimizer state together take about 16P bytes (P is the parameter count), which averages to about the following across N cards:
Per-card static memory ≈ 16P / N + activation memory + communication buffers + allocator overhead
This scheme is already sufficient under the trimmed configuration, but it is only a “minimum viable combination.” Full-scale training usually also stacks expert parallelism, pipeline parallelism, and sequence/context parallelism—for example, slicing a backbone of hundreds of layers into multiple pipeline stages, or partitioning a long sequence across multiple cards. This is also one of the reasons the trimmed configuration cannot be directly extrapolated to full scale.
4.2 MoE Routing and Expert Parallelism
The core computation of an MoE layer can be abstracted into three steps: routing, dispatch, and combine.
# Illustrative pseudocode: MoE forward pass and routing load statisticsdef moe_forward(hidden, router, experts, top_k=8):# 1. Routing scores: softmax or sigmoid gating + group constraintsscores = router(hidden) # [tokens, num_experts]topk_weights, topk_ids = topk_softmax(scores, top_k)# 2. Dispatch: reorder tokens by expert and pad to a fixed capacity# With expert parallelism, this step corresponds to inter-node all-to-all communicationdispatched, probs = dispatch(hidden, topk_ids, topk_weights)# 3. Compute: each expert computes independently (located on different nodes with expert parallelism)expert_out = experts(dispatched)# 4. Combine: weighted restore by gating weights, and restore token orderoutput = combine(expert_out, probs, topk_ids)return output# Load balancing: count the tokens routed to each expert (after dispatch, each expert# has a fixed capacity; overflow is handled by a token-drop strategy), used to assess routing healthdef expert_load(topk_ids, num_experts):return count_per_expert(topk_ids) / topk_ids.numel()
When validating the pipeline, two things are most easily overlooked:
- Gating weight precision: gating weights participate in the final weighted sum of outputs; if computed at low precision, the more experts there are, the larger the accumulated error, so they are usually computed in fp32.
- Load balancing: routing collapse (a few experts repeatedly selected while the rest receive almost no tokens) does not necessarily show up as a loss anomaly, yet it makes a large amount of compute idle. Therefore one must check both the implementation of auxiliary losses (such as load-balancing loss and router z-loss) and the expert load distribution.
4.3 Hybrid Attention: The “Dual-Layer Correctness” of Implementation and Performance
Hybrid attention usually refers to two approaches:
- Using linear-complexity mechanisms such as linear attention and state spaces for most layers, while keeping a few layers as full attention to preserve global modeling capability;
- Combining attention with different sparsity patterns across different layers.
Either way, such implementations face a dual-layer correctness problem:
- Numerical correctness: whether approximations in low-rank projections, state recurrence, and normalization operators (such as exponentiation) are consistent with the reference implementation;
- Performance correctness: whether tiled parallelism, state passing, and switching to full-attention layers introduce extra synchronization points or memory fragmentation that slow down overall throughput.
4.4 Communication and Topology: The Collective Communication Library Is the Pipeline’s Hub
The communication in this kind of training pipeline can be grouped into three categories:
- Parameter gathering: All-Gather of sharded parameters in the forward and backward passes;
- Gradient aggregation: Reduce-Scatter of gradients in the backward pass;
- Expert dispatch/combine: inter-node All-to-All.
The collective communication library maps these primitives onto the actual interconnect (intra-node high-bandwidth interconnect, inter-node network). In this case, inter-node communication was handled by the vendor’s in-house collective communication library, meaning the communication path was likewise covered by this validation. Engineering-wise, one also needs to note:
- Overlap of communication and computation (parameter prefetching, gradient bucketing);
- Collective communication using fp32 accumulation, consistent with the backward accumulation precision;
- Benchmarking All-to-All in the vendor’s internal environment to confirm that actual bandwidth and latency meet expectations.
4.5 Gradient Checks: From “No Errors” to “Computed Correctly”
“No numerical overflow” only means it did not crash; “computed correctly” still requires explicit verification. Gradient checks should cover at least the following:
# Illustrative pseudocode: gradient health check (run before each optimizer step)grads = [p.grad for p in model.parameters() if p.grad is not None]global_norm = sqrt(sum((g.float() ** 2).sum() for g in grads))assert isfinite(global_norm), "NaN/Inf in gradients; check attention mask, MoE gating, and accumulation precision"# Vision branch: under random initialization, gradients should propagate from the bottom# vision-tower layer all the way back to the cross-modal projection moduleassert global_norm > EPS, "Overall gradient is zero; check loss masking or whether the computation graph is broken"clip_grad_norm_(model.parameters(), max_norm=1.0)def assert_vision_branch_grad(model):# Under random initialization, the bottom-layer parameters of the vision tower# should also receive non-zero gradients.# If only the top layer has gradients and the bottom layers are all zero, gradients# are usually truncated or the vision branch is not part of the computation graphpass
Beyond “gradients non-zero and finite,” two more quantitative checks are recommended:
- Does the loss drop after parameter updates: check whether the optimizer is correctly applied to the sharded parameters (parameters are re-gathered after gradient computation);
- Numerical alignment of a small model across hardware: on a single card in a single-machine setup, using the same weights and the same batch of data, compare the loss and gradients of the trimmed model against the reference implementation, record the maximum absolute and relative errors, and compare them with the rounding error of the target precision (for example, about 2^-8 for bf16).
5. A Reproducible Validation Checklist
Organizing the points above into an acceptance checklist that can be applied directly:
| Validation item | Check method | Pass criterion |
|---|---|---|
| Operator forward | Diff against the reference implementation | Error within the target precision’s rounding-error order of magnitude |
| Operator backward | Gradient diff (central difference or reference gradient) | Acceptable relative error, consistent direction |
| Gradient health | Check NaN/Inf, global norm, vision branch | Full-pipeline gradients finite and non-zero |
| Optimizer correctness | Loss drops after a single-step parameter update | Drop magnitude matches the expected learning rate |
| Communication correctness | All-to-All/Reduce-Scatter benchmark | Bandwidth meets target; results consistent with single card |
| Memory headroom | Record peak and attribute it by segment | Peak below capacity, with headroom covering activation growth |
| Long-run stability | Multiple consecutive rounds of steps plus checkpoint resume | No overflow, no interruption; loss continuous after resume |
6. From Trimmed Validation to Full-Scale Pretraining: Where the Gaps Are
The public data shows this was a rigorous and valuable engineering validation. But from “the pipeline is connected” to “a trillion-parameter model’s pretraining completes,” there are at least three more hurdles.
6.1 Scaling Up: The Parallelism Strategy Must Be Redone
In the trimmed configuration, the language backbone has only 13 layers and 16 routed experts, with a high activation ratio of Top-8, whereas a full-scale model usually has a backbone of dozens of layers, dozens to hundreds of routed experts, and a very low activation ratio (such as Top-8/256). When the configuration changes:
- The communication pattern of expert parallelism, the splitting scheme of pipeline parallelism, and the partitioning granularity of sequence parallelism must all be redesigned;
- The 44.80 GiB memory peak no longer has reference value.
6.2 Long-Run Operation: Effective Training Rate Is the Core Metric
- A two-node, 16-GPU setup has a small failure surface; at thousand- and ten-thousand-GPU scale, single-card failures, network jitter, and slow nodes become the norm;
- At this point the metric for training quality is no longer “can it complete 400 steps,” but the effective training rate—the share of time actually spent training.
This is precisely why the publicly reported 97% effective training rate draws attention. Supporting capabilities include: failure detection and automatic isolation, checkpoint resume, high-frequency persistence of gradients and optimizer state (to avoid frequent saving slowing training), and an observability system geared toward log services and monitoring alerts.
6.3 Long-Cycle Numerical Stability: Loss Spikes Must Be Designed for in Advance
As the number of training steps grows, problems such as attention entropy collapse, expert load imbalance, and loss spikes gradually appear. A production-grade pipeline needs to configure in advance:
- Learning-rate scheduling (warmup, decay, WSD, etc.);
- Gradient clipping and router z-loss;
- An automatic rollback mechanism (roll back to the most recent stable checkpoint when a spike is detected, and skip the corresponding data batches).
7. Three Recommendations for Adaptation Teams
- Trim the scale, not the risk, in the validation configuration: high-risk paths such as the vision tower, MoE routing, and inter-node communication should be fully preserved, and the trimming magnitude should be reported at the same time, so that the conclusion has a clear scope of applicability.
- Make gradient checks and numerical diffs a routine part of acceptance: they reflect pipeline quality better than loss curves, and can be scripted, automated, and integrated into continuous integration.
- Design to production standards from day one: checkpoints, observability, and failure recovery should be built alongside the trimmed validation, not added later when full-scale training begins.
Returning to this validation: a two-node, 16-GPU setup, 400 steps of continuous training, and published gradient-check results provide a reference engineering milestone for the reproducibility of domestic GPUs on the training side. From a trimmed configuration to full-scale pretraining of a complete trillion-parameter model, tests of cluster-scale expansion and long-run operation still remain to be crossed. For buyers, understanding the engineering meaning behind different vendors’ disclosure metrics is more valuable than simply comparing promotional numbers.
