Training Trillion-Parameter Multimodal MoE Models on Domestic GPUs: A Complete Breakdown

    This article examines how domestic (China-based) GPU accelerators are being validated for large-model training, using a recent engineering milestone as a case study: a lab adaptation run of a 2.8-trillion-parameter mixture-of-experts (MoE) native multimodal model on a dual-node, 16-card setup, trained for 400 consecutive steps without numerical overflow or interruption. It walks through the full validation methodology — why pipeline validation matters, how a clipped configuration covers maximum risk at minimum cost, and which metrics distinguish a model that is merely "running" from one that is training correctly. Readers will learn the operator, communication, memory, and numerical challenges specific to trillion-scale MoE multimodal models, how sharded data parallelism and collective communication libraries interact, and what still remains on the path from a clipped smoke test to full-scale pretraining.

    Over the past few years, domestic (China-based) AI accelerators have made clear progress in ecosystem support on the training side. Public information shows that adaptation work for mainstream open-source model series is already underway across several domestic compute platforms and is steadily extending into thousand-card and ten-thousand-card cluster scenarios. Some vendors have disclosed that their accelerators support hundreds of mainstream large models, covering the vast majority of non-proprietary models, and some domestic compute clusters have completed training of major model releases with an effective training rate above 90%.

    Yet in long, large-scale pretraining pipelines, “getting it to run” is only the starting point. As model scale grows from tens of billions to trillions of parameters, as modalities expand from pure text to image-text multimodal, and as parallelism scales from single-machine to cross-machine and cross-rack, any operator, communication, or numerical issue is amplified at every level. Recently, a domestic GPU vendor completed a training-pipeline adaptation validation for a 2.8-trillion-parameter MoE native multimodal model in its lab: on a dual-node, 16-card configuration it ran 400 consecutive training steps without numerical overflow or abnormal interruption, and it published the clipped configuration, loss curves, and gradient-check details. Engineering disclosures at this scale are rare. This gives the industry a reference point that is reusable and reproducible — but what it actually validated, and what it did not, deserves careful examination.

    This article uses that case to lay out the complete methodology domestic GPUs apply to validate a large-model training pipeline: why it matters, how it is done, which metrics to watch, and where to go next.

    1. First, a Definition: What Is “Training Pipeline Validation”?

    In everyday discussion the word “adaptation” is used loosely, but it actually spans at least three layers:

    Layer Core goal Main focus
    Functional adaptation Runs on new hardware Operator completeness, interface compatibility, correctness of distributed functions
    Performance adaptation Runs efficiently Single-card compute utilization, communication efficiency, cluster scaling efficiency
    Long-term stability adaptation Runs reliably over time Long-run stability, fault recovery, effective training rate

    Training pipeline validation is a key part of functional adaptation. It chains together data loading, the forward pass, backpropagation, gradient reduction, parameter updates, and checkpoint saving into a closed loop, checking whether the entire pipeline holds together rather than whether individual operators merely work.

    The value of this stage lies in controllable cost: the earlier a problem is found, the cheaper it is to fix. If a backward operator produces wrong results and this is only discovered after full pretraining has started, the loss is not just compute cost but unrecoverable training time.

    2. Why Trillion-Scale MoE Multimodal Models Are Hard to Adapt

    To understand the engineering value of this validation, it helps to see the technical challenges of models like this one. The validation target is a 2.8-trillion-parameter, MoE (mixture-of-experts) native multimodal model with a 27-layer language backbone and a full 27-layer vision tower.

    (1) Sparse activation demands flexibility across the entire pipeline. MoE splits model parameters into a large number of experts, and each token activates only a few of them, so total parameter count and per-token compute are decoupled. This creates three challenges:

    • The sheer parameter count sharply increases memory, storage, and communication pressure;
    • Token dispatch, expert computation, and result aggregation are interwoven, and backpropagation must precisely align with the forward dispatch path;
    • Expert load is naturally uneven, causing synchronization waits and wasted compute.

    (2) Dynamic sparse attention places high demands on operator implementation. Dynamic sparse attention decides the scope of attention computation dynamically based on content or routing results. Mask construction and irregular memory-access patterns significantly increase the complexity of the operator and its backward implementation. If the forward and backward computation logic diverge, gradients develop bias that keeps accumulating during training.

    (3) Native multimodality makes the training graph inherently heterogeneous. The visual branch and the language backbone differ markedly in structure, resolution, and sequence length. When the visual branch participates in parameter updates, gradients must flow back through the cross-modal projection module to the vision tower, so the training graph becomes a heterogeneous combination of “vision encoder + cross-modal projection + language backbone + MoE layers,” making memory allocation, operator scheduling, and parallel partitioning more complex.

    In summary, the difficulties concentrate in three places: compute and communication under sparse structures, memory and scheduling under multimodal fusion, and numerical stability and efficiency under large-scale parallelism. Pipeline validation is meant to answer whether these three classes of problems can be systematically solved.

    3. Clipped Configuration: Covering Maximum Risk at Minimum Cost

    This validation did not use the full model. Instead it used a clipped configuration:

    • Language backbone: truncated to 13 layers (the full model has 27);
    • Expert routing: 16 routed experts retained, using Top-8 activation;
    • Vision tower: all 27 layers retained, along with the cross-modal projection module;
    • Data: one image-text question-answering dataset, trained from random initialization.

    This configuration reflects a validation philosophy of “small model, full path”:

    1. Cut the compute, not the compute path. Truncating the language backbone greatly shortens each forward-backward pass and speeds up iteration. Keeping the vision tower, cross-modal projection, and MoE routing ensures the structural complexity of the training graph is not simplified, avoiding the false impression that “the model got smaller, so the problems disappeared.”
    2. Shrink the expert pool substantially. In the full model the number of experts is often dozens or even over a hundred; clipping to 16 brings the MoE-related memory and communication pressure down to what a dual-node, 16-card setup can handle, while routing selection, token dispatch, and load balancing are still fully executed.
    3. Use random initialization to focus on training itself. Not restoring from existing weights lets the validation focus on “training functionality and loss trends,” avoiding interference from external dependencies such as weight loading and format conversion. With random initialization, loss is typically high at the start, which actually makes the downward trend easier to observe in a short window.

    It bears emphasis that there are three gaps between the clipped and full models:

    • Model capacity: the language backbone layers are halved and the expert pool is greatly reduced;
    • Parallel form: a dual-node, 16-card setup cannot reflect the multi-dimensional parallelism, cross-machine communication, and fault tolerance of an ultra-large-scale cluster;
    • Training steps: 400 steps are far from enough to capture the full dynamics of complete pretraining.

    For this reason, this kind of validation should be understood as a “smoke test” plus “trend observation” of the training pipeline, not a performance conclusion for full-scale pretraining.

    4. Core Challenge One: Operator Adaptation for Hybrid Attention and MoE

    Operator adaptation usually goes through three stages — functional correctness, precision alignment, and performance optimization — each with clear acceptance criteria.

    1. Implementation consistency between forward and backward. The most common error in custom operators is not a failure to produce results but a mismatch between the backward gradient and the forward output. For MoE, which tokens are routed to which experts in the forward pass, and with what weights they are aggregated, must be exactly mirrored by the gradient path in the backward pass; the gradients of the routing network itself must also be preserved.

    2. Numerical stability under mixed precision. Large-model training commonly uses low-precision formats such as bf16 to balance memory and throughput. Operations like softmax and normalization can overflow numerically over long sequences; a common practice is to accumulate in FP32 inside critical operators and convert the result back to low precision. The fact that this validation “saw no numerical overflow” indicates that:

    • the mixed-precision strategy was handled correctly;
    • the internal accumulation precision of each operator was reasonably designed;
    • gradient clipping effectively suppressed abnormal amplification.

    3. Paged attention and variable-length sequences. When handling image-text interleaved sequences of very different lengths, training frameworks typically use paged key-value cache management to reduce memory fragmentation and copy overhead. In implementing such operators, the page-table indexing, block-size choice, and coordination with positional encodings are all error-prone spots that need to be validated one by one.

    5. Core Challenge Two: Expert-Routing Load Balancing and Communication

    The efficiency bottleneck in MoE training is often not compute but communication and load balancing.

    1. Token dispatch depends on collective communication. Tokens must be sent to the devices hosting their routed experts per the routing results, and aggregated back to the origin device after computation. This “all-to-all” communication is highly sensitive to network bandwidth and latency, especially in cross-node scenarios. Domestic accelerators are typically paired with a vendor-developed collective communication library (it plays the same role as the industry-standard communication backend; this article refers to it as the “collective communication library”). Its topology awareness, multi-machine communication efficiency, and overlap scheduling of compute and communication directly determine the scaling efficiency of MoE training.

    2. Capacity factor and drop rate must be balanced. To avoid overloading individual experts, practice sets a capacity ceiling for each expert, and tokens beyond it are dropped or routed elsewhere. A capacity factor set too small causes token drops that hurt convergence; set too large, it wastes memory and compute. During validation one must find a balance between the two and observe whether the drop ratio stays stable.

    3. Load-balancing loss and routing stability. MoE training usually adds an auxiliary balancing loss to steer the load distribution across experts toward uniform. If load is severely skewed early in training, some experts are under-trained, which can lead to “routing collapse” or routing oscillation. The fact that this validation ran 400 consecutive steps without abnormal interruption under a 16-expert, Top-8 setup indicates that the routing logic and communication pipeline are basically stable at this scale. But as the expert pool grows, these problems become more pronounced and still need to be observed under larger configurations.

    6. Core Challenge Three: Memory and Data Flow in Multimodal Training

    In multimodal pipeline validation, the visual branch can easily become a bottleneck too.

    1. A visual branch that participates in updates sharply increases memory cost. In this validation the visual branch participated in parameter updates, which means the intermediate activations the vision tower produces in the forward pass must still be used in the backward pass, so memory usage rises accordingly. By contrast, if the vision tower were frozen, the related activations and gradients could be omitted and memory pressure would be far lower. The memory difference between the two modes often shows up at the validation stage.

    2. Data loading and preprocessing need high throughput. Preprocessing overhead such as image-text decoding, resizing, and normalization should not be underestimated. If data loading cannot keep up with compute speed, the accelerator stalls frequently, showing up as “compute utilization that won’t climb.” During validation one should watch GPU utilization and data-loading wait time together to determine whether the bottleneck is compute or data.

    3. Variable-length sequences cause memory fluctuation. Image-text samples differ widely in length, so activation memory rises and falls with them. The memory peak is a key feasibility metric: only when the peak falls within what hardware capacity and the allocation strategy can bear does the configuration become scalable.

    7. Distributed Training: Coordinating Sharding Strategy and Collective Communication

    From an engineering standpoint, the focus of this adaptation is not single-card peak performance but systematically connecting the distributed training pipeline.

    1. Sharded data parallelism lowers per-card memory pressure. The validation used a strategy that manages parameters, gradients, and optimizer states in a sharded manner, distributing the three kinds of state across the devices within each data-parallel group and gathering them on demand, which greatly reduces per-card memory usage.

    It helps to understand the “communication-for-memory trade” of sharding:

    • In standard data parallelism, each card holds the full parameters, and gradient-reduction communication is roughly equal to the model’s parameter count;
    • In sharded mode, each card is responsible for only part of the parameters; gradient reduction uses a “reduce-then-scatter” scheme, while full aggregation of each parameter is done via “all-gather”;
    • The result is a clear drop in per-card memory usage at the cost of increased total communication.

    This trade is usually worthwhile within high-bandwidth interconnects but can become a bottleneck in bandwidth-constrained environments. Sharding strategy must therefore match the cluster’s network topology and interconnect bandwidth and cannot simply be copied.

    2. The memory peak is the sum of several overlapping costs. It can be roughly expressed as:

    1. Memory peak ≈ sharded parameters + sharded gradients + sharded optimizer states + activations + communication buffers + memory fragmentation

    Under the clipped configuration the memory peak was 44.80 GiB, indicating that at the dual-node, 16-card scale the model states, activations, and communication buffers fit reasonably well. But as the language backbone layers and expert pool grow, memory pressure rises non-linearly. At that point one needs to combine activation recomputation, sequence parallelism, context parallelism, and other techniques.

    3. Communication primitives must match the parallel strategy. Cross-node communication is handled by the collective communication library, which needs communication groups designed around the cluster topology, appropriate data-transfer channels selected, and communication overlapped with compute wherever possible. At the same time, the collective communication library, the framework’s communication backend, and the sharding strategy must be version-matched, otherwise hangs, timeouts, or performance anomalies can occur.

    8. Numerical Stability: How to Tell Whether It Trained Correctly

    The final output of pipeline validation is a set of trustworthy metrics, not a single sentence saying “it ran.”

    1. Basis for judgment. The metrics tracked in this validation included:

    • Training loss: converged from a mean of 8.9365 over steps 21–70 to a mean of 2.1802 over the last 50 steps;
    • Validation loss: dropped from 6.5297 to 4.6873;
    • Memory peak: 44.80 GiB;
    • Visual-branch parameters updating normally.

    Using interval means rather than single-step values filters out noise from gradient accumulation and scheduling jitter. Excluding the first 20 steps is because loss drops quickly early in training and statistics over that period can easily be distorted.

    2. What the loss drop tells us. The validation loss dropping in tandem shows the model is genuinely learning effective image-text correspondences rather than merely fitting the training data. But with 400 steps and a single validation split, the validation scale is limited and not yet enough to assess generalization.

    3. Why gradient checks matter. A falling loss only shows the “general direction is right”; some operator implementation errors may not surface in a short test — for example, a biased gradient-scaling coefficient, a missing routing gradient, or visual-branch gradients not propagated correctly. Comparing the gradients of the clipped model layer by layer against a reference implementation is what reveals such hidden defects.

    1. # Example: gradient-check logic within a training step (pseudocode)
    2. def train_step(model, batch, optimizer, scaler, clip_norm):
    3. model.train()
    4. optimizer.zero_grad(set_to_none=True)
    5. # Forward: language backbone, vision tower, cross-modal projection, and MoE routing all participate
    6. loss = model(batch)
    7. scaler.scale(loss).backward() # Gradient scaling under mixed precision
    8. # Unscale for rollback: skip this step's update on overflow to avoid corrupting parameters
    9. scaler.unscale_(optimizer)
    10. grad_norm = clip_grad_norm(model.parameters(), clip_norm)
    11. if not isfinite(grad_norm):
    12. scaler.skip_step()
    13. return grad_norm # Handed to the upper layer for stats and alerting
    14. scaler.step(optimizer)
    15. scaler.update()
    16. return grad_norm

    In practice, the following monitoring is usually added:

    • Per-layer gradient norms, with particular attention to the visual branch and routing network;
    • The number of tokens each expert receives;
    • A memory allocation curve.

    Only after each item is confirmed can the whole backward pipeline be considered trustworthy.

    9. Performance and Stability: What to Watch After Validation

    1. Throughput and compute utilization. Per-card throughput and model FLOPs utilization (MFU) reflect hardware efficiency. When computing MFU, the denominator is the hardware’s theoretical compute and the numerator is the model’s effective floating-point work; for MoE models only the actually activated parameter count is counted. Because the clipped model differs from the full one in layers and expert count, its throughput cannot be directly extrapolated to full-model training time.

    2. Scaling efficiency. Measuring the ratio of throughput growth to card count at different scales — single-machine, dual-node, quad-node — indicates whether communication has become a bottleneck and helps choose the right parallel combination for full-scale training.

    3. Effective training rate. This is one of the most closely watched metrics in cluster training and can be defined as:

    1. Effective training rate = compute time actually used for model updates / total wall-clock time

    Total wall-clock time includes communication waits, checkpoint saving, fault recovery, and restarts. In large clusters, single-point failures, slow nodes, and network jitter all lower the effective training rate, and this can only be validated through long-term stability runs.

    4. Long-run stability testing. Long runs expose problems that short tests rarely catch, such as accumulating memory fragmentation, communication timeouts, and occasional node dropouts. A tiered checkpoint strategy is usually also needed to balance storage cost against recovery speed.

    10. From Clipped Validation to Full-Scale Training

    Clipped validation checks “whether the pipeline holds together”; full-scale pretraining tests “whether the system can run efficiently and continuously.” At least the following work remains between the two:

    1. Scale up the configuration step by step. Advance through “single-layer module → clipped model → medium scale → full scale,” using the functional, numerical, and gradient baselines established during pipeline validation as reference at each level, so that problems can still be located after stepping into full training rather than becoming hard to diagnose.
    2. Expand the parallel strategy. At large scale one usually needs to combine data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, together with sequence/context parallelism and activation recomputation, to find the best balance among memory, communication, and compute.
    3. Build observability. Detect anomalies in parameters, gradients, and optimizer states in real time; automatically alert on slow nodes, communication timeouts, and numerical anomalies; and provide automatic checkpoint saving and fast recovery.
    4. Establish evaluation baselines. Organize metrics such as loss curves, gradient norms, expert load, and memory peaks into baselines, and regression-test after every upgrade of the operator library, driver, or framework, so adaptation gains do not regress as versions change.

    The configuration below is illustrative (it only shows the tuning dimensions; actual values depend on the model and cluster):

    1. # Example: training parallelism and checkpoint configuration
    2. parallel:
    3. data: { strategy: sharded } # Sharded management of parameters, gradients, and optimizer states
    4. tensor: 1 # Can enable tensor parallelism for larger models
    5. pipeline: 1 # Enable pipeline parallelism at ultra-large scale
    6. expert: 8 # Match the expert count; control all-to-all communication size
    7. sequence_parallel: false # Enable for long sequences to spread activation memory
    8. mixed_precision: bf16
    9. grad_clip: 1.0
    10. checkpoint:
    11. interval_steps: 500
    12. keep_last: 3 # Balance storage cost and recovery speed

    Third-party research institutions forecast that in 2026 the Chinese high-end AI chip market will ship about 5 million units, up 83% year over year, with local solutions holding close to 90% share (including cloud vendors’ self-developed ASICs). As hardware supply expands rapidly, whether the training side can build reproducible, scalable, and sustainable engineering capabilities determines how much value this compute can unlock.

    The 400-step continuous training and gradient-check results Moore Threads has now published provide a reusable engineering reference point for reproducibility on the domestic-GPU training side, and its transparent disclosure is worth acknowledging. But moving from a clipped configuration to full-scale training of a complete trillion-parameter model still requires crossing the dual hurdles of cluster-scale expansion and long-term stability. Pipeline validation is a starting point, not an endpoint; the maturity of domestic GPUs on the training side will ultimately be tested in real practice over longer periods, at larger scale, and with higher effective training rates.