How a Domestic GPU Completed a Trillion-Parameter MoE Multimodal Training Pipeline Validation

    A domestic GPU vendor validated the training pipeline of a 2.8-trillion-parameter, natively multimodal MoE model on a 2-node, 16-GPU configuration, running 400 steps with no numerical overflow or interruption while training loss fell from 8.9365 to 2.1802. This article explains why this was a cropped-configuration pipeline check rather than full-scale pretraining, breaks down the core challenges (dynamic sparse attention, MoE All-to-All communication, heterogeneous multimodal modules, and numerical stability), and walks through the cropped-config method, configuration trade-offs, results interpretation, and distributed-training implementation. It also reviews recent industry signals of domestic-chip adaptation moving toward system-level validation, outlines the hurdles that separate cropped validation from full-scale pretraining, and provides a reproducible checklist for teams migrating to domestic compute.

    1. Event Overview: A Domestic GPU Clears the Trillion-Parameter MoE Multimodal Training Pipeline

    On November 17, a domestic GPU vendor announced that its lab had completed training-pipeline adaptation for a natively multimodal large model built on a Mixture-of-Experts (MoE) architecture with 2.8 trillion parameters. On a 2-node, 16-GPU configuration, training ran continuously for 400 steps with no numerical overflow and no abnormal interruptions.

    One point should be stated up front: this validation used a cropped configuration, not a full-scale pretraining run of the complete model. Its sole objective was to verify one thing — whether this hardware-software combination can correctly complete a single full, convergent training iteration.

    1.1 Why This Counts as a “Pipeline Validation”

    Whether a training pipeline is working can be reduced to four questions:

    1. Forward pass: Can the model’s operators compute correctly on the domestic accelerator?
    2. Backward pass: Can gradients propagate correctly, including across modalities, across experts, and across devices?
    3. Parameter update: Can the optimizer update parameters correctly, and does the training loss decrease steadily?
    4. Sustained execution: Under multi-node coordination, can training run for hundreds of steps without numerical anomalies or interruption?

    This validation provides direct evidence for all four questions.

    1.2 How It Fundamentally Differs from “Getting Inference Working”

    Many domestic-hardware adaptation projects get inference working before even discussing training, but the two are not on the same difficulty level:

    • Inference only requires the forward pass; activations can be released once computed, which naturally suits KV caching.
    • Training, beyond the forward pass, must retain activations for backpropagation. In addition to parameters, it must maintain gradients and optimizer states (such as first- and second-order moments), which sharply increases both memory pressure and communication patterns.
    • Inference tolerates a degree of numerical error in a single output, which can be avoided through sampling strategies. Training must withstand error accumulation across hundreds or even tens of thousands of consecutive steps.

    That is why whether the training pipeline works is one of the core metrics for measuring whether a domestic GPU can truly take on large-model pretraining.

    2. Breaking Down the Difficulty: Why a Trillion-Parameter MoE Multimodal Model Is a Hard Problem

    The model uses a natively multimodal MoE architecture. Its structural characteristics and training approach simultaneously place high demands on compute, communication, and memory.

    2.1 Dynamic Sparse Attention: Variable Workloads and Operator Coverage

    Dynamic sparse attention decides which positions to attend to based on the input content, using approaches such as sliding windows, local blocks, and mixtures of global and local attention. Compared with fixed-structure attention, it introduces two engineering problems:

    • Load imbalance: Sparsity patterns vary greatly across samples and positions. Some compute branches fire frequently while others are rarely reached. Testing only the “main path” cannot cover the real operator requirements.
    • Implementation complexity: This type of attention typically relies on specialized kernels and needs forward, backward, and variants such as stochastic recomputation. A single missing piece can stall training.

    2.2 MoE Expert Routing: All-to-All Communication Becomes the Key Bottleneck

    MoE uses a gating network to select a few experts to compute each token. Assuming experts are spread across multiple GPUs, every token must be sent to the device holding its target expert and then returned to its original location after computation — a classic All-to-All communication. This brings three challenges:

    1. Bandwidth pressure: Communication volume is proportional to the token count and hidden dimension; the more experts and the larger the cluster, the higher the communication share.
    2. Load skew: Token distribution is usually uneven, so the communication and computation on the device holding a “hot” expert become the weak link.
    3. Operator dependencies: dispatch (distribution) and combine (aggregation) require custom fused communication-compute operators, whose forward and backward must be fully implemented on the domestic card.

    In addition, MoE training often pairs with an auxiliary load-balancing loss and expert capacity factors to control token assignment, which adds further pipeline complexity.

    2.3 Multimodal Structure: Heterogeneous Modules and Memory Management

    A natively multimodal model usually consists of a vision tower and a language backbone, whose compute characteristics differ greatly:

    • Vision tower: compute-intensive, with a variable number of tiles and resolutions, and fluctuating sequence lengths.
    • Language backbone: holds the largest share of parameters, with MoE routing concentrated here.

    The two modules are highly imbalanced in structure and memory footprint. Without any partitioning, memory can easily be saturated by a single module, causing OOM. The cross-modal projection layer, which bridges the two, must propagate gradients correctly in both directions; otherwise the vision branch becomes “disconnected” and cannot participate in updates.

    2.4 Numerical Stability: Precision and Overflow

    Gradients in a trillion-parameter model often exhibit heavy-tailed distributions, and the occasional oversized gradient can easily turn the loss into NaN or Inf. In a multi-GPU distributed setting, an anomaly on one card can rapidly spread to the entire training job through collective communication, manifesting as a sudden interruption. Gradient checking and overflow-free execution are therefore a necessary part of validating the training pipeline, not an add-on.

    3. Breaking Down the Method: Why the Cropped-Configuration Validation Works

    Faced with such a complex system, running full-scale pretraining directly is both costly and risky. The vendor’s approach was “small configuration, full pipeline”: shrink the scale while keeping all key structures, so the validation genuinely reflects the complete model’s training behavior.

    3.1 Validation Configuration Design

    Module Validation Configuration Design Intent
    Language backbone Truncated to 13 layers Preserves autoregressive modeling, dynamic sparse attention, and MoE routing at a smaller scale
    Routed experts 16 experts, Top-8 activated A high activation ratio ensures the dispatch and combine paths are fully exercised
    Vision tower Fully retained, 27 layers The key multimodal segment is not simplified
    Cross-modal projection Fully retained Checks bidirectional gradient propagation across modalities
    Parameter initialization Random initialization Training starts near a random-output state, making learning signals easier to observe
    Data A public image-text QA dataset Provides both text and image inputs, covering the full image-text processing flow
    Scale 2 nodes, 16 GPUs Includes at least one cross-node communication to expose inter-node link issues

    3.2 The Logic Behind the Configuration Trade-offs

    • Keeping the full vision tower: The vision tower has a relatively controllable parameter count and best reflects the multimodal characteristics. Cropping it could shrink the scale further but would make the validation unrepresentative.
    • 16 experts, Top-8 activated: Assuming a common hidden dimension, each step needs only about 8 “send-token → compute → collect” round trips, which covers the All-to-All path without making expert-parallel workloads too fragmented.
    • Random initialization: This avoids dependence on external weights, sidestepping weight-format conversion and tokenizer-compatibility issues so that attention stays on training itself. It also starts with a higher initial loss, making learning signals easier to observe.
    • 13-layer language backbone: Fewer layers mean a smaller per-step compute load, so the 400-step validation finishes quickly and supports fast iteration.

    The essence of these trade-offs is balancing “covering the key pipeline” against “controlling validation cost.”

    3.3 A Reusable Four-Step Validation Workflow

    1. Define the minimum full pipeline: List every key component of the complete model that affects training correctness; when cropping, avoid removing components themselves and only reduce counts and scale.
    2. Compare component by component: Match each operator’s output on the domestic card against a reference implementation item by item, prioritizing the source of error.
    3. Run small-scale continuous training: On the smallest cluster that includes cross-node communication, run hundreds of steps continuously and record loss and gradients.
    4. Scale up progressively: Move from the cropped configuration to partial layer expansion, then to full parameters and clusters of a thousand GPUs or more, repeating the checks at each level.

    4. Reading the Results: What Loss, Memory, and Stability Each Tell Us

    4.1 Training Loss: From 8.9365 to 2.1802

    • The average loss over steps 21–70 was 8.9365; the average over the last 50 steps was 2.1802 — a drop of about 76%.
    • Skipping the first 20 steps and taking the average avoids the “warm-up” phase after random initialization.
    • Using the average of a 50-step window rather than single-step values reduces the misleading effect of step-to-step fluctuation.

    Under random initialization and a cropped configuration, this trend is as expected, indicating that the forward pass, backward pass, and parameter update form a correct closed loop. However, it only proves the “pipeline works” and cannot be used to infer the quality of the complete model.

    4.2 Validation Loss: From 6.5297 to 4.6873

    The validation loss decreases in step with the training loss, showing that the model is learning patterns in the data rather than accidental details of the training set. Even with only a 13-layer backbone and 16 experts, this consistency indicates that the data pathway is not “misaligned” (for example, mismatched image-text feature pairing); otherwise the validation loss would rarely improve in sync.

    4.3 Peak Memory of 44.80 GiB

    Peak memory is a key metric for assessing whether a training configuration is feasible. Two points must be clear:

    • 44.80 GiB corresponds only to this cropped configuration and cannot be extrapolated directly to the complete model.
    • In real workloads, the headroom should be assessed against the per-GPU available memory, focusing on how much margin techniques such as activation recomputation, optimizer-state sharding, and communication-buffer reuse can free up.

    4.4 Stability and Gradients: Two Easily Overlooked but Critical Conclusions

    • 400 consecutive steps with no abnormal interruption: This shows that the mixed-precision strategy, gradient handling, and cross-node communication remain stable under sustained load.
    • Gradient checking and vision-branch participation in updates: Gradients propagate back through the cross-modal projection to the vision tower and update its parameters, proving that the multimodal gradient pathway is truly working. If the vision branch were frozen or its gradient chain broken, the training loss could still decrease, but the pipeline would only be “falsely” working.
    Observed Metric Public Data Supported Conclusion Unsupported Conclusion
    Training loss 8.9365 → 2.1802 Parameter updates are correct; training converges normally The quality level of the complete model
    Validation loss 6.5297 → 4.6873 Training and validation data pathways are consistent Downstream task performance
    Peak memory 44.80 GiB Memory usage of the cropped configuration is under control Per-GPU memory needs of the complete model
    Run status No overflow/interruption over 400 steps Good short-term numerical stability Long-term stability and fault tolerance
    Gradient check Vision branch participates in updates The cross-modal gradient pathway is clear Numerical consistency at large cluster scale

    5. Implementation Details: How the Distributed Training Pipeline Was Cleared

    From an engineering standpoint, the focus of this adaptation is not single-GPU peak compute but systematically clearing each stage of distributed training.

    5.1 Operator Layer: Completing Forward and Backward Implementations

    Dynamic sparse attention and MoE routing usually have no off-the-shelf implementation in general-purpose frameworks and require completing the corresponding forward and backward operators on the domestic GPU. The validation should at least:

    1. Compare operator outputs against a reference implementation item by item;
    2. Verify custom backward passes with methods such as finite differences;
    3. Cover boundary cases such as long sequences and load skew.

    5.2 Parallelism Layer: Reducing Memory Usage with Sharded Data Parallelism

    The framework’s sharded data parallelism strategy partitions parameters, gradients, and optimizer states across data-parallel groups, so each GPU only stores a portion:

    • All-gather parameters on demand during the forward pass;
    • Reduce gradients on demand during the backward pass;
    • Each group completes the update for its own shard.

    This significantly reduces per-GPU memory usage. The core engineering constraint is that the number of communications per step and the communication volume both increase, and they must overlap fully with computation; otherwise communication becomes the new bottleneck.

    1. Single-step flow of sharded data parallelism (illustrative)
    2. 1. Forward: layer by layer, all-gather the parameter shards for the layer -> local forward compute -> release after use
    3. 2. Backward: compute gradients layer by layer -> reduce-scatter to aggregate gradients into their owning shards -> update local parameter shards
    4. 3. Communication and computation are pipelined and overlapped layer by layer; communication volume grows with cluster scale

    5.3 Communication Layer: A Collective Communication Library Handles Cross-Node Transfer

    Cross-node communication is handled by a collective communication library, which includes the All-to-All required by MoE as well as the all-reduce, reduce-scatter, and all-gather needed for data parallelism. On a domestic compute platform, this requires:

    • Adapting the communication library to the domestic GPU and high-speed interconnect;
    • Providing stable cross-node communication primitives;
    • Supporting overlap of communication and computation.

    5.4 Training Loop: Anomaly Isolation and Observability

    To detect and isolate anomalies promptly within 400 steps, the training loop needs capabilities such as gradient-norm monitoring, abnormal-step skipping, and tiered loss logging:

    1. # Key guard logic in the training loop (illustrative code; framework APIs follow the actual version)
    2. grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    3. if not torch.isfinite(grad_norm) or grad_norm > 1e6:
    4. optimizer.zero_grad(set_to_none=True)
    5. logger.warning("step %d skipped: grad_norm=%s", step, grad_norm)
    6. continue # Isolate the abnormal step to avoid contaminating parameters
    7. optimizer.step()
    8. optimizer.zero_grad(set_to_none=True)
    9. logger.info(
    10. "step %d loss %.4f lr %.2e mem_peak %.2f GiB",
    11. step, loss.detach().item(), scheduler.get_last_lr()[0], mem_peak
    12. )

    6. Industry Perspective: Domestic Compute Adaptation Moves into the “System-Level Validation” Stage

    Based on recent public information, the adaptation between domestic chips and mainstream large models is moving from single-point operator adaptation toward cluster-level, system-level training validation:

    • A domestic GPU vendor disclosed in its 2026 interim report that several large-model companies used its thousand-GPU cluster to complete multimodal pretraining and reinforcement learning, with accuracy matching international products;
    • An AI chip vendor stated at its 2026 semi-annual earnings briefing that it is advancing the adaptation of several mainstream open-source and commercial model families on the training side and extending toward thousand-GPU and ten-thousand-GPU clusters;
    • At its 2026 developer conference, Baidu announced that it had completed the training of an important version of ERNIE 5.1 on a fully domestic chip cluster, achieving a 97% effective training rate;
    • A domestic processor vendor’s 2026 semi-annual materials showed that its accelerator cards already adapt over 400 mainstream large models, covering about 99% of non-closed-source models.

    According to a third-party industry research firm’s forecast, China’s shipments of high-end AI chips will reach about 5 million units in 2026, up roughly 83% year over year, with local solutions accounting for nearly 90% of the share (including ASICs developed in-house by cloud providers). As the market expands rapidly, the transparency of engineering validation is also improving. Compared with conclusory statements like “supports model X,” this validation publicly disclosed the step count, loss curve, and gradient-check details for a 2.8-trillion-parameter MoE multimodal model — which is relatively rare in public disclosures and offers a referenceable engineering sample for the reproducibility of domestic-GPU training.

    7. Key Challenges: From Cropped Validation to Full-Scale Pretraining

    Even after the cropped-configuration validation passes, several hurdles remain before full-scale pretraining of the complete trillion-parameter model.

    7.1 Scale-Up: The “Amplifying Effect” of Communication Overhead

    When the cluster scales from 16 GPUs to hundreds or thousands, the situation changes markedly:

    • All-to-All involves more participants, and topology hops and latency rise accordingly;
    • The all-gather and reduce-scatter for parameter shards become more frequent and broader in scope;
    • The parallelism strategy must expand from pure data sharding to a combination of tensor parallelism, expert parallelism, pipeline parallelism, and data parallelism. This combination multiplies the complexity of scheduling, memory management, and fault tolerance.

    Whether optimizations such as gradient accumulation, communication-compute overlap, and topology-aware scheduling are in place will directly determine scaling efficiency.

    7.2 Long-Run Stability: Effective Training Rate Is the Real Test

    Large-model pretraining often lasts weeks or even months. At full scale, training must simultaneously address:

    • Fault recovery: Hardware failures are unavoidable in large clusters, requiring fast fault detection, automatic isolation, and elastic recovery.
    • Checkpointing: The frequency and storage cost of checkpoints must be balanced.
    • Effective training rate: As the 97% rate disclosed earlier shows, this measures how much of the cluster’s time is actually spent training — a more demanding metric than short-term validation.

    7.3 Numerical Consistency: Error Must Not Run Away over Long Periods

    Occasional numerical jitter in small-scale validation may be masked by gradient clipping. When the parameter count grows by two orders of magnitude and the step count grows by thousands of times, numerical error can accumulate and amplify. It is necessary to re-validate, at larger scale, the mixed-precision strategy, the error introduced by reduction order, and whether the loss-scaling and gradient-clipping thresholds are reasonable.

    7.4 Data and Workload: Stress Testing Under Real Training Traffic

    An image-text QA dataset has a relatively regular structure, whereas real pretraining corpora vary widely in sequence length, image-text ratio, and resolution distribution. This brings:

    • Load imbalance;
    • Long-sequence memory spikes;
    • Data loading becoming a bottleneck.

    Only by completing stress tests under real data distributions can we confirm that the pipeline remains equally robust in production.

    8. Practical Checklist: How to Run a Reproducible Training-Pipeline Validation

    For teams needing to migrate to domestic compute, the following checklist turns “pipeline validation” into a repeatable standard process.

    1. Configuration cropping: Truncate the language backbone to a portion of its layers, choose a moderate number of experts with a sufficient activation ratio, and keep key modality modules such as the vision tower as complete as possible.
    2. Initialization and data: Prefer random initialization with a public dataset to avoid external-weight compatibility issues clouding the judgment; the data must cover all modalities.
    3. Precision comparison: Compare forward outputs and gradients operator by operator and layer by layer, with error thresholds agreed in advance and written into the report.
    4. Metric logging: At minimum, record each step’s training loss, validation loss, gradient norm, peak memory, and per-step time.
    5. Continuous run: On the smallest cluster that includes cross-node communication, run hundreds of steps continuously and watch for overflow or interruption.
    6. Progressive scale-up: Repeat steps 3–5 at every scale-up, and assess changes in communication share, memory headroom, and per-GPU throughput.
    7. Archive results: Record the configuration, code version, hardware-software environment, and random seeds together so others can reproduce the run.
    1. Validation record (suggested fields)
    2. - Hardware-software environment: accelerator model, driver and communication-library versions, framework version
    3. - Model configuration: number of language layers, number of experts/activated experts, number of vision-tower layers, whether it includes cross-modal projection
    4. - Data and initialization: dataset name and version, random initialization/pretrained weights, random seed
    5. - Metric series: each step's training loss, periodic validation loss, gradient norm, peak memory, per-step time
    6. - Communication statistics: number of communications and communication volume per step, All-to-All share
    7. - Anomaly records: step numbers where overflow/interruption occurred, root-cause analysis, and handling

    9. Conclusion

    A domestic GPU completed 400 consecutive training steps of a 2.8-trillion-parameter MoE multimodal model on 2 nodes with 16 GPUs. The training loss fell from 8.94 to 2.18, gradients propagated correctly, and there was no overflow or interruption. This demonstrates that domestic GPUs are now capable of clearing a full training pipeline on the training side — a key step from “usable” to “trainable.”

    At the same time, this should be viewed rationally: cropped-configuration validation is not the same as full-scale pretraining, and multiple tests still separate the two — cluster scale-up, long-run stability, numerical consistency, and real data workloads. For developers and enterprises, what is truly worth borrowing is this validation method of “small configuration, full pipeline, reproducible.” Only by making every step measurable, reproducible, and traceable can domestic compute go further and more steadily in large-model training.