Trillion-Parameter MoE Multimodal Training Pipeline Validated on a Domestic GPU

    A domestic GPU vendor's research lab has publicly disclosed training pipeline validation results on a 2.8-trillion-parameter MoE native multimodal model. Using a cropped configuration on a dual-node, 16-card setup, the team ran 400 consecutive training steps with no numerical overflow or interruption, and tracked loss curves, gradient checks, and a 44.80 GiB peak memory footprint throughout. This article breaks down why trillion-parameter multimodal training is hard—MoE sparse routing, hybrid sparse attention, multimodal fusion, and mixed-precision memory budgets—and presents a layered L0–L4 validation methodology that engineering teams can reuse when adapting training workloads to new hardware. It also explains the remaining gaps between a cropped-config smoke test and full-scale pretraining.

    1. What Was Actually Validated

    A domestic GPU vendor’s research lab recently published a set of training pipeline validation results. On a 2.8-trillion-parameter MoE native multimodal model, using a cropped model configuration on a dual-node, 16-card setup, the team completed 400 consecutive training steps:

    • No numerical overflow or abnormal interruption occurred at any point during training.
    • Training loss dropped from a mean of 8.9365 over steps 21–70 to a mean of 2.1802 over the final 50 steps.
    • Validation loss fell from 6.5297 to 4.6873.
    • Peak memory usage reached 44.80 GiB.
    • Parameters in the vision branch participated in updates.

    First, the test scope must be clarified. This was a cropped configuration:

    • The language backbone was truncated to 13 layers, configured with 16 routed experts and Top-8 activation per token.
    • The vision side retained the full 27-layer vision tower and the cross-modal projection module.
    • The model was randomly initialized and then trained on a public medical-domain image-text question-answering dataset.

    So the test checks whether the training pipeline can run end-to-end and whether loss decreases as expected—not the effectiveness of full-scale pretraining. The vendor explicitly stated that this exercise only verifies training functionality and loss trends, and that full-scale pretraining will be conducted separately.

    By the usual conventions of industry disclosure, progress in training adaptation for domestic chips is typically reported in terms of cluster size (thousand-card, ten-thousand-card), the number or series of adapted models, and effective training rate. For a 2.8-trillion-parameter-class MoE multimodal model, publicly disclosed engineering details such as continuous step counts, loss curves, and gradient checks are still rare. That is precisely why this disclosure deserves attention from engineering teams: it provides a comparable reference point for “training correctness.”

    2. Industry Background: Domestic Compute Is Shifting from “Usable for Inference” to “Runnable for Training”

    Over the past two years, the pace of training-side adaptation for domestic accelerators has clearly accelerated. Publicly available progress can be roughly grouped into three main threads.

    The first thread is expanding model coverage. Some vendors have disclosed that their accelerator cards have completed adaptation of multiple mainstream open-source large models, covering the vast majority of non-closed-source models. Others have stated that several large-model companies are running multimodal pretraining and reinforcement learning on their thousand-card clusters. Still others have said on earnings calls that they are advancing training adaptation for model series such as DeepSeek, Qwen, and Hunyuan, gradually extending to thousand-card and ten-thousand-card cluster scenarios.

    The second thread is the formation of closed-loop capability. At Create 2026, Baidu announced that its Kunlunxin P800 all-domestic cluster completed the training of a major ERNIE 5.1 release, reaching a 97% effective training rate. From accelerator cards to clusters to model training, quantifiable, real-world cases of an “all-domestic closed loop” have now emerged.

    The third thread is the rapidly growing demand for native multimodal large-model training. Such models are no longer a simple concatenation of “vision encoder + language model”; instead, they unify the modeling of image, text, and even more modalities from the pretraining stage onward. This places systematic demands on the training framework, the operator library, and interconnect capabilities.

    At the market level, one market research firm predicts:

    • China’s high-end AI chip shipments in 2026 will reach roughly 5 million units, up 83% year over year.
    • The share of local solutions (including cloud vendors’ self-developed dedicated chips) will approach 90%.

    Judging by the trend, the discussion is no longer about “whether domestic cards can be used,” but about “at what scale and what level of stability they can be used.” This pipeline validation lands precisely at that turning point.

    3. Technical Breakdown: Why Trillion-Parameter Multimodal Models Are Hard

    3.1 MoE: Sparse Activation Turns the Problem from “Compute Fast” into “Compute Correctly, Split Evenly”

    MoE uses a routing network to select a small number of experts for computation per token, so the total parameter count can be very large while the per-token compute stays controllable. In this cropped configuration, each token activates 8 of 16 experts. The cost is three new difficulties:

    1. Routing is a discrete decision. The one-hot weights in the forward pass and the gradients in the backward pass both need to be implemented via custom operators or a combination of scatter/gather operations; you cannot simply apply the derivation used for dense matrix multiplication.
    2. Expert parallelism requires all-to-all communication. Once experts are split across different devices, each token must first be sent to the device hosting its target expert (dispatch), computed, and then gathered back (combine)—typically requiring two all-to-all operations. The communication volume grows with the number of activated experts and the sequence length, and is highly sensitive to load balance.
    3. Load imbalance drags down the whole run. A few hot experts make their corresponding devices the bottleneck while the rest sit idle at synchronization points. Common mitigations include capacity-factor limits, dropping overflow tokens, and auxiliary load-balancing losses—and each of these must remain consistent across both the forward and backward passes.

    A typical “silent error” in MoE adaptation is this: training loss appears to decrease normally, but the routing gradient or auxiliary loss is not being backpropagated correctly, which manifests as experts collapsing onto a few over the long term. You cannot detect this by looking at the loss curve alone—you have to check expert utilization.

    3.2 Hybrid/Dynamic Sparse Attention: Irregular Memory Access and Dual Backward Implementation

    Attention in native multimodal models is often not a simple global dense computation, but a mix of sparse patterns combined by modality and position—for example, intra-modal attention, cross-modal attention, and local windows. The training framework must:

    • Prepare corresponding forward and backward kernels for each pattern;
    • Handle the packing and masking of variable-length sequences;
    • Manage the extra overhead that sparse indices bring in memory.

    The adaptation cost of such operators on new hardware is usually far higher than that of a standard matrix multiplication. The reasons are:

    • Irregular memory access makes it hard to fully exploit high-bandwidth memory;
    • Each sparse pattern must be implemented and its backward pass verified separately;
    • When the backward implementation is wrong, loss may still decrease, but the gradients are already incorrect.

    3.3 Multimodal Fusion: A Vision Branch “Participating in Training” Is Not the Default

    A common multimodal training configuration freezes the vision encoder and trains only the projection layer and the language backbone. This validation retained the full 27-layer vision tower, which means the vision side must also perform forward passes, backward passes, and parameter updates—raising the demands on both operator coverage and memory layout.

    The cross-modal projection layer maps visual features into the representation space of the language model. Any inconsistency in its input/output dimensions, normalization scheme, or alignment of positional encoding could leave the multimodal branch “looking like it is training but actually learning nothing.” That is why “the vision branch participates in parameter updates” is listed separately as a validation conclusion—it is necessary to state explicitly.

    3.4 Mixed Precision and Memory Budget: What the 44.80 GiB Tells Us

    Full training of a trillion-parameter model requires splitting parameters, gradients, and optimizer states across machines. Common industry practices include:

    • Using fully sharded data parallelism to split parameters, gradients, and optimizer states across cards, temporarily aggregating the full parameters when needed;
    • Simultaneously using pipeline parallelism, tensor parallelism, and expert parallelism, splitting along different dimensions;
    • Combining these with activation recomputation to reduce memory usage.

    Taking AdamW as an example, mixed-precision training typically stores the following per parameter:

    • 16-bit parameters and 16-bit gradients, 4 bytes in total;
    • A 32-bit master copy of the parameters;
    • First- and second-order momenta, 4 bytes each.

    That adds up to about 16 bytes. If all of this state were placed on a single card, a billion-parameter-class model alone would need roughly 16 GB for static state—before counting activations, communication buffers, and memory fragmentation.

    The peak memory of 44.80 GiB in this validation shows that the sharding, recomputation, and memory-reuse strategies were effective for this configuration. The real stress test comes at full scale: when the number of experts and the sequence length are both scaled up, communication buffers and activation memory will hit the ceiling first.

    4. Engineering Path: From “Correct on a Single Card” to “Correct Across the Distributed Pipeline”

    The focus of this adaptation was not single-card peak compute, but systematically getting the distributed training pipeline working end-to-end. This can be grouped into four layers.

    Layer 1: Operator completion. For the model’s hybrid attention and MoE mechanisms, the forward and gradient implementations must be completed. There are two acceptance criteria:

    • Element-wise numerical comparison against a reference implementation;
    • Passing gradient checks to confirm the backward results are trustworthy.

    Layer 2: Parameter sharding management. Fully sharded data parallelism is used to manage the sharding of parameters, gradients, and optimizer states, converting single-card memory pressure into an acceptable communication overhead. After sharding, the mixed-precision strategy needs particular attention:

    • Compute uses low precision;
    • Master parameters and optimizer states remain in high precision;
    • The accumulation precision during gradient reduction must also be guaranteed, otherwise errors will accumulate and amplify at scale.

    Layer 3: Cross-node communication. A self-developed collective communication library handles collective operations such as parameter aggregation, gradient reduction, and expert all-to-all. Under the dual-node, 16-card topology, intra-node interconnect bandwidth is far higher than the inter-node network, so the library’s core tasks are:

    • Minimizing the passing of large messages across nodes;
    • Chunking communication and overlapping it with the backward computation.

    Layer 4: Functional and trend validation. Observing the loss trend over 400 consecutive steps, together with peak memory and gradient checks, confirms that the pipeline contains no hidden errors.

    5. A Reusable Validation Method: Turning “Pipeline Validation” into an Engineering Process

    For teams that want to do training adaptation on new hardware, the value of this disclosure lies in providing a reusable process. The industry typically breaks it into five levels, and it is recommended to pass each level before moving to the next.

    Level Validation Goal Main Methods Pass Criteria
    L0 Operator Correct forward and backward for a single operator Element-wise comparison with a reference implementation; finite-difference gradient check Error within precision tolerance
    L1 Single-step Forward, backward, and update can complete on one card/node Run one step on a small model; check gradients are finite and parameters change No NaN/Inf; optimizer state updates normally
    L2 Pipeline Correct combination of sharding, communication, and recomputation Compare loss on a small model across different parallelism settings Loss curves largely overlap
    L3 Trend Stable continuous training over 100+ steps Fix the random seed; monitor loss and gradient norm Loss keeps decreasing, with no spikes or interruptions
    L4 Scale Preserve convergence and efficiency after scaling to full size Long stability runs, periodic checkpointing, monitor effective training rate Convergence matches L3; faults recover quickly

    5.1 Gradient Check: The Cheapest Correctness Insurance

    Finite differences are the most straightforward way to verify the backward pass: perturb a parameter by a tiny amount and compare the numerical gradient with the automatic-differentiation gradient.

    1. def grad_check(model, x, param, eps=1e-3):
    2. """Compare the numerical gradient with the backward gradient for a single parameter (pseudocode)"""
    3. loss = model(x)
    4. loss.backward()
    5. analytic = param.grad.clone()
    6. with torch.no_grad():
    7. orig = param.item()
    8. param.fill_(orig + eps)
    9. loss_plus = model(x)
    10. param.fill_(orig - eps)
    11. loss_minus = model(x)
    12. param.fill_(orig)
    13. numeric = (loss_plus - loss_minus) / (2 * eps)
    14. rel_err = abs(analytic.item() - numeric) / (abs(numeric) + 1e-8)
    15. print(f"relative error: {rel_err:.3e}")
    16. return rel_err < 1e-2 # the threshold needs relaxing under low-precision training

    In large models, finite differences are usually sampled on a handful of key parameters, and each custom operator is tested independently. Under mixed precision, the error tolerance needs to be relaxed appropriately—but a systematic deviation usually signals a problem with the backward implementation.

    5.2 Continuous Training Monitoring: Leaving Nowhere for “Silent Errors” to Hide

    1. for step, batch in enumerate(loader):
    2. with torch.autocast(dtype=torch.bfloat16):
    3. logits = model(batch) # text and images enter the forward pass together
    4. loss = criterion(logits, batch.target)
    5. loss.backward() # gradient reduction for sharded parameters happens here
    6. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    7. assert torch.isfinite(grad_norm), f"step {step}: non-finite gradient"
    8. assert torch.isfinite(loss), f"step {step}: non-finite loss"
    9. optimizer.step()
    10. optimizer.zero_grad(set_to_none=True)
    11. if step % 10 == 0:
    12. log = {
    13. "step": step,
    14. "loss": loss.item(),
    15. "grad_norm": grad_norm.item(),
    16. "mem_peak_gib": torch.cuda.max_memory_allocated() / 2**30,
    17. # cumulative tokens received per expert, used to detect routing collapse
    18. "expert_load": router.expert_counts(),
    19. }
    20. tracker.log(log)

    Key monitoring items and what they mean:

    • Loss curve: First rule out the initial fluctuation caused by random initialization, then look at the overall trend. This disclosure used the mean over steps 21–70 as the starting point for exactly this reason.
    • Gradient norm: Persistently NaN/Inf values or frequent spikes indicate numerical overflow or an operator implementation problem.
    • Peak memory: When it approaches the limit, reduce risk through recomputation or by adjusting the parallelism strategy.
    • Expert load: A severely skewed distribution means routing may have already collapsed.
    • Per-branch gradients: Separately measure the gradient norms of the language backbone, the vision tower, and the projection layer. If one branch is always 0, it is not truly participating in training.

    5.3 Using Controlled Variables to Localize Problems

    When troubleshooting training anomalies on new hardware, controlled variables are more efficient than blind tuning:

    1. Same code, swap hardware: Run the same code and configuration on two types of hardware. If the loss curves diverge markedly, the problem most likely lies in the operators or the communication library.
    2. Same hardware, swap parallelism: Change the combination of data, pipeline, tensor, and expert parallelism. If the results are inconsistent, the problem usually lies in the sharding scheme or the collective communication.
    3. Same configuration, fixed seed: Rule out interference from data ordering and random initialization.

    6. From Cropped Configuration to Full Scale: Three More Gates

    This validation proves that “the pipeline can run and the trend can converge.” Full-scale pretraining, however, is still at least three gates away.

    Gate 1: Scale expansion. A dual-node, 16-card setup crosses only a single node boundary, whereas full-scale trillion-parameter MoE training often spans hundreds or even thousands of cards. Expert-parallel all-to-all, pipeline-parallel bubbles, and data-parallel gradient reduction all amplify at the same time, and communication may shift from an “overlappable secondary overhead” to the main bottleneck. Scaling efficiency and effective training rate must be measured repeatedly on real clusters.

    Gate 2: Long-term stability. 400 steps usually take only tens of minutes to a few hours, whereas full pretraining runs for weeks on end. During that time, slow nodes, dropped cards, network jitter, and memory leaks may occur, requiring the following capabilities:

    • High-frequency checkpointing;
    • Resume training from a checkpoint;
    • Faulty-node isolation;
    • Full-pipeline observability.

    Gate 3: Numerical consistency. Across different parallelism settings and different node scales, the loss curves need to remain comparable. Otherwise, changes in training effectiveness cannot be attributed, and problems become hard to localize.

    7. Engineering Recommendations: How Enterprises Should Evaluate and Use Domestic Training Compute

    For enterprises preparing to migrate training workloads to domestic accelerator cards, the recommended order is as follows.

    1. Start with L0–L2 validation. Use a small model in the tens-of-billions-parameter range that covers the most critical operator types in your own business (attention variants, MoE, multimodal fusion), and confirm the forward, backward, and sharding logic are correct.
    2. Then run L3 trend validation. Use a small-scale dataset for the target task, train continuously for no fewer than a few thousand steps, and compare loss curves and gradient norms across different hardware.
    3. Do L4 scale validation in small steps. On the target cluster scale, run a short-cycle long-stability test, focusing on effective training rate and fault recovery time.
    4. Leverage general-purpose cloud capabilities at the task level. Operating a domestic accelerator card cluster still depends on mature cloud infrastructure:

      • Use a container platform to deliver training images uniformly and orchestrate distributed tasks;
      • Use object storage to hold training data and checkpoints;
      • Use log services and monitoring/alerting to track loss, memory, and device metrics;
      • Use a message queue to decouple data processing from training tasks.

      Baidu AI Cloud, for example, offers corresponding implementations of these general capabilities on its Baige platform, which can serve as a reference choice for hosting training workloads. At Create 2026, Baidu also announced that its Kunlunxin P800 all-domestic cluster completed the training of a major ERNIE 5.1 release at a 97% effective training rate, indicating that the all-domestic training closed loop has entered the stage of real-world validation.

    8. Conclusion

    A domestic GPU completing the training pipeline validation for a trillion-parameter MoE multimodal model matters not because of any single benchmark, but because it provides a reproducible, comparable engineering milestone:

    • The training pipeline is moving from “can it run” to “can its correctness be verified”;
    • Vendors’ disclosure conventions are extending from cluster scale and adaptation counts to details such as continuous step counts, loss curves, and gradient checks;
    • This offers a reference for the industry to build evaluation standards for training on domestic compute.

    At the same time, it is important to stay clear-headed: a 400-step validation under a cropped configuration is still separated from full trillion-parameter pretraining by the dual tests of cluster-scale expansion and long-term stability.

    For users, the rational stance is neither to wait for a “perfect domestic card” nor to migrate blindly, but to use a layered validation method to convert “can it be used” into a set of quantifiable, reproducible metrics. Only then can you find the right balance among performance, cost, and supply-chain security in an environment of diverse compute supply and rapid technological iteration.