Trillion-Parameter Multimodal MoE Training Pipeline Validation on Chinese GPUs

    A Chinese GPU vendor reported a 400-step training pipeline validation for a trillion-parameter multimodal MoE model on two nodes with 16 GPUs. The test used a cropped configuration with a 13-layer language backbone, Top-8 routing across 16 experts per layer, and a full vision tower and cross-modal projection module. Training loss fell about 75.6%, validation loss fell about 28.2%, per-GPU memory peaked at 44.80 GiB, and the vision branch participated in updates. This article explains the result, its limits, the main engineering challenges, and the steps needed before full-scale pre-training.

    1. Event Recap: A Pipeline Validation, Not Full-Scale Pre-Training

    A Chinese GPU vendor recently announced that its lab had completed training-pipeline adaptation for a trillion-parameter-class, natively multimodal Mixture-of-Experts (MoE) large model. Under a two-node, 16-GPU configuration, training ran continuously for 400 steps without numerical overflow or abnormal interruption.

    The test used a cropped configuration:

    • The language backbone was reduced to 13 layers, with 16 routed experts retained per layer and Top-8 expert activation.
    • The full 27-layer vision tower and the cross-modal projection module were retained.
    • Training started from random initialization on an image-text question answering dataset.

    The vendor also released loss and memory figures:

    • Average training loss fell from 8.9365 over steps 21–70 to 2.1802 over the final 50 steps, a reduction of about 75.6%.
    • Validation loss fell from 6.5297 to 4.6873, a reduction of about 28.2%.
    • Peak memory usage per GPU was 44.80 GiB.
    • The vision branch participated in parameter updates.

    It is worth noting that the vendor explicitly stated that this was only a pipeline validation under a cropped configuration, used to check training functionality and loss trends. Full-scale pre-training would be conducted separately. This self-limitation is important. Pipeline validation answers whether the software and hardware stack can correctly train this class of model; full-scale pre-training answers whether the stack can run stably for weeks at a scale of thousands of GPUs or more. The former is a necessary condition for the latter, but far from sufficient.

    2. Background: Chinese AI Compute Is Moving from “Can Run” to “Can Train”

    Over the past few years, progress by Chinese AI-chip vendors in large-model adaptation has mostly focused on inference and on training for small and medium models. As large models move toward trillion-parameter scale and modalities expand from text to images and video, the industry’s focus is shifting from whether a single operator can run to whether a complete distributed training pipeline can be supported.

    Several Chinese compute vendors have disclosed adaptation progress:

    • One vendor completed multimodal pre-training and reinforcement learning on a 1,000-GPU cluster and emphasized that precision aligned with mainstream international products.
    • Another vendor’s training-side adaptation already covers multiple mainstream large-model series and is extending toward 1,000-GPU and 10,000-GPU clusters.
    • At its developer conference, Baidu said that a cluster based on fully domestic compute had completed training for important versions of core large models, with an effective training rate of 97%.
    • Another vendor said its accelerator cards had been adapted for more than 400 mainstream large models, covering 99% of non-proprietary models.

    However, these disclosures mostly remain at the level of which models were adapted and what scale was reached, with relatively limited description of the training process itself.

    The difference this time is that the disclosure separately provided engineering details such as consecutive step count, loss convergence, gradient checks, and memory usage. For a MoE multimodal model with about 2.8 trillion total parameters, public cases of this kind of process-level data are still rare. It provides the industry with a comparable and reproducible engineering reference, and its value is comparable to the conclusion of simply running the model through.

    3. Why Trillion-Parameter Multimodal MoE Models Are Difficult

    To understand the value of this pipeline validation, it helps first to look at what this class of model demands from the training stack. The challenges can be grouped into four overlapping areas.

    3.1 Expert Routing: Communication and Load Problems from Sparse Activation

    MoE uses a gating network to select a small number of experts for each token, expanding parameter scale without significantly increasing per-token compute. This “many parameters, few activations” design has three direct consequences:

    • High memory pressure: all expert parameters and optimizer states must remain resident, while activations are relatively small.
    • Special communication patterns: experts are usually partitioned using expert parallelism. Each MoE layer requires two cross-device All-to-All operations: dispatch sends tokens to the devices hosting the selected experts, and combine returns the results. All-to-All is more sensitive to network topology and bandwidth than AllReduce.
    • Load imbalance: routing distributions are naturally long-tailed. Hot experts become overloaded, while cold experts may remain idle. Common mitigations include capacity-factor limits and token dropping, load-balancing auxiliary losses, and loss-free load balancing. Each approach changes the computation graph and gradient composition, and all must be correctly implemented and backpropagated in the training framework.

    3.2 Dynamic Sparse Attention: Irregular Operators and Memory Access

    “Mixed attention” usually refers to a structure in which global attention and local sliding-window or sparse attention are stacked alternately. This preserves global modeling ability while improving computational efficiency for long sequences. “Dynamic sparse” means that the attention connection pattern changes with the input content. This creates several adaptation challenges:

    • Sparse patterns depend on data-dependent selection results, so backward propagation must correctly correspond to the sparse connections.
    • Sequence lengths vary widely across samples and modalities, so operators must support efficient variable-length computation with masks.
    • Irregular memory access patterns can reduce hardware memory-access efficiency.

    Any implementation deviation in these areas may show up as an abnormal loss curve or numerical overflow.

    3.3 Multimodal Heterogeneous Structure: Heterogeneous Pipelines and Cross-Modal Backward Passes

    A multimodal model usually consists of a vision encoder, a cross-modal projection module, and a language backbone. These three parts have very different computational characteristics during training:

    • The vision side is dominated by convolution or window attention and has large activations.
    • The projection module has few parameters but plays a key role in modality alignment.
    • The language side is a standard Transformer stack.

    When the vision tower is fully retained but the language backbone is cropped, pipeline stages become severely imbalanced in layer count, compute, and activation size. Pipeline parallelism must be repartitioned; otherwise, bubbles can significantly reduce overall utilization. In addition, cross-modal gradients must be backpropagated through the vision tower, projection module, and language backbone. Mixed-precision scaling and checkpoint recomputation must also cover these heterogeneous subgraphs.

    3.4 Memory and Numerics: Training-Specific Constraints

    Inference mainly concerns weights and KV cache. Training also has to handle gradients, optimizer states, activations, and temporary buffers. Under a common mixed-precision scheme—BF16 parameters and gradients, with FP32 master weights and first/second momentum terms—each parameter requires about 16 bytes:

    Memory component Precision Bytes per parameter
    Model parameters BF16 2
    Parameter gradients BF16 2
    Master weights FP32 4
    First momentum FP32 4
    Second momentum FP32 4
    Total 16

    On this basis, a trillion-parameter model requires about 16 TB of memory for model states alone. Activations add to this requirement. Whether they fit directly determines the parallelism strategy, recomputation scope, and cluster size.

    Numerically, FP16 and BF16 have limited dynamic range. MoE routing and dynamic sparse attention can produce extreme activations. If an Inf or NaN appears, optimizer state can be contaminated, and the problem may surface only several steps later as a sudden loss spike. Therefore, checking numerical health at every step is a baseline requirement for training correctness.

    4. How to Design a Credible Training-Pipeline Validation

    4.1 Cropped Configuration: Keep the Architecture Skeleton, Not Just Shrink It

    The goal of a cropped configuration is to cover as many critical architectural paths as possible with as few resources as possible. A useful design approach is:

    • Keep all new operators: newly added attention variants and MoE routing mechanisms must be fully retained, even if only a few layers remain. Their forward and backward implementations are the core adaptation risk.
    • Do not crop heterogeneous branches: the vision tower and projection module should be fully retained so that the multimodal gradient path is genuinely tested.
    • Start from random initialization: this removes interference from pretrained-weight loading and weight conversion, allowing the loss curve to reflect the training logic itself.
    • Choose data that covers critical paths: it should include samples with different resolutions and different image-text length combinations.

    This validation followed that approach: the language backbone retained only 13 layers, while the vision side and key MoE mechanisms were fully retained.

    4.2 Correctness Checks: From “Not Crashing” to “Computing Correctly”

    “No overflow or interruption for 400 steps” shows that the training process was numerically stable, but stability does not equal correctness. Rigorous adaptation usually also introduces the following checks:

    • Forward-output alignment: under the same inputs, compare layer-by-layer outputs between the domestic stack and a reference mainstream framework, focusing on maximum absolute error and relative error.
    • Backward-gradient alignment: compare gradients for key operators such as routing, sparse attention, and projection, checking whether their magnitude, direction, and error are within acceptable ranges.
    • Optimizer-state checks: confirm that states such as momentum remain finite and do not show abnormal amplification.

    The following pseudocode illustrates how to turn “not crashing” into “observable” in a validation script:

    1. # Training pipeline validation loop (pseudocode, framework-agnostic)
    2. for step in range(num_steps):
    3. # 1. Forward: vision tower -> projection module -> language backbone (with MoE and mixed attention)
    4. outputs = model(
    5. input_ids=input_ids,
    6. pixel_values=pixel_values,
    7. image_grid_thw=image_grid_thw,
    8. )
    9. loss = outputs.loss / grad_accum_steps
    10. # 2. Backward: cross-modal gradients must propagate fully to the vision branch
    11. loss.backward()
    12. # 3. Gradient check: numerical health check and gradient clipping
    13. grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)
    14. assert isfinite(grad_norm), f"Gradient norm is abnormal: step={step}, grad_norm={grad_norm}"
    15. # 4. Update and state cleanup
    16. optimizer.step()
    17. optimizer.zero_grad(set_to_none=True)
    18. # 5. Logging: loss, gradient norm, learning rate, peak memory
    19. if step % log_interval == 0:
    20. logger.info({
    21. "step": step,
    22. "loss": loss.detach().item() * grad_accum_steps,
    23. "grad_norm": grad_norm.item(),
    24. "lr": scheduler.get_last_lr()[0],
    25. "mem_peak_gib": max_memory_allocated() / (1024 ** 3),
    26. })

    Three details are worth emphasizing:

    • Gradient clipping itself produces a global norm. Logging it provides a free health probe for the training process.
    • The loss should be restored by multiplying it back by the number of gradient-accumulation steps before logging, so that it aligns with validation-loss magnitude.
    • Logging the learning rate helps determine whether the loss reduction comes from genuine learning or merely from a low learning rate.

    4.3 Parallel Strategy: Data Parallelism for Throughput, Expert Parallelism for Fit

    Fully sharded data parallelism (FSDP) was another main line of the adaptation. Building on data parallelism, it shards parameters, gradients, and optimizer states along the data-parallel dimension, with each GPU holding only one shard:

    • During forward and backward passes, full parameters are gathered dynamically layer by layer.
    • Gradient reduction uses reduce-scatter, and memory usage decreases approximately linearly as data parallelism increases.

    It is especially suitable for cropped configurations where the number of parameters is modest but activations are relatively significant. It allows optimizer states to be spread across 16 GPUs while retaining sufficient memory for activations.

    Expert parallelism was also involved: different experts are distributed across GPUs, and tokens move through two All-to-All operations between data-parallel groups and expert-parallel groups. In this setting, the meaning of one step also changes: one optimizer update corresponds to one complete gradient reduction and parameter update, while All-to-All is communication executed by every MoE layer. Whether communication is correct, whether it can overlap with computation, and whether it remains consistent across different parallelism combinations are all part of pipeline validation.

    4.4 Collective Communication: Topology Adaptation Determines the Efficiency Ceiling

    Cross-node communication must be handled by a collective communication library adapted to the hardware. A common challenge for Chinese compute in this area is that its interconnect topology differs from traditional solutions, so primitives such as AllReduce and All-to-All may need to be retuned for different message sizes and different node counts. Engineering efforts usually focus on:

    • Small-message latency: MoE All-to-All involves many small messages.
    • Large-message bandwidth: gradient reduction needs to saturate bandwidth.
    • Overlap capability: whether communication can be effectively overlapped with computation.
    • Observability: whether communication time, timeouts, and error codes can be collected and located.

    5. Interpreting the Results

    The disclosed data can be interpreted from four perspectives.

    Loss dropped quickly. Training loss fell by about 75.6% within 400 steps, showing that the training logic produced an effective learning signal. The initial loss was about 8.94, close to the theoretical starting point of random initialization under a large vocabulary: the larger the vocabulary, the closer the theoretical value is to ln(vocabulary size). This indirectly confirms the correctness of the loss computation path: the model indeed started from random guessing.

    Validation loss also dropped. Validation loss fell by about 28.2%, suggesting that the model learned generalizable image-text associations rather than merely memorizing training samples. Of course, results from 400 steps on a single dataset are not enough to assess model capability; they only show that the model can learn and learns effectively.

    The vision branch participated in updates. This means the vision tower was not frozen and that cross-modal gradients could be backpropagated through the full path. This is a key signal distinguishing multimodal training from using a text model plus a vision encoder for inference.

    Peak memory was 44.80 GiB. This is an engineering metric that is easy to compare across configurations. Under the cropped configuration, 16 GPUs still had enough headroom to support the full vision tower and projection module, indicating that the parallelism strategy and memory management were effective at this scale. However, this number cannot be directly extrapolated to full-parameter scale.

    In addition, the disclosure used the average after step 21 as the initial loss, avoiding the loss spikes common in the first few dozen steps. This is rigorous: warm-up spikes are common early in training, and it is better to observe the trend after stabilization than to get stuck on the initial transient.

    6. From Pipeline Validation to Full-Scale Pre-Training: Remaining Hurdles

    Step 1: From 16 GPUs to 1,000 and 10,000 GPUs

    Scaling up does not simply amplify performance linearly; it introduces new failure modes:

    • Communication hierarchy: data-parallel gradient reduction, expert-parallel All-to-All, and pipeline-parallel point-to-point communication become intertwined, requiring topology-aware layered strategies.
    • Parallelism combinations: the search space for combining data parallelism, tensor parallelism, pipeline parallelism, expert parallelism, and sequence parallelism expands sharply.
    • Load imbalance is amplified: expert-load deviations can be magnified across machines, and a few slow nodes can delay the entire synchronization cycle.

    Step 2: From 400 Steps to Multi-Week Stability

    Four hundred steps can only reveal explicit errors, such as operator crashes or obvious numerical overflow. Long-running stability also exposes slowly accumulating problems:

    • Memory fragmentation accumulation causing occasional allocation failures.
    • Intermittent jitter in communication links.
    • Throttling or hardware anomalies on individual nodes.

    Step 3: From Validation Loss to Pre-Training Quality

    Validation loss on a cropped model cannot directly represent the capability of a full model. Full-scale pre-training also requires:

    • Data mixing and cleaning at the trillion-token level.
    • Fine-grained learning-rate scheduling.
    • Training strategies such as extending context length partway through training.

    Evaluation must also move from “is the loss decreasing?” to “do downstream task results meet the target?”

    Step 4: From One Successful Run to Reproducibility and Operations

    A successful training run does not equal a sustainable production system. A training system also needs:

    • Reproducibility under fixed random seeds and data order.
    • Minute-level checkpoint granularity and rapid recovery after failures.
    • Effective training rate at scale, meaning the proportion of total runtime spent on useful training. Baidu’s disclosed 97% belongs to this dimension.

    7. Practical Recommendations for Enterprises

    For teams planning to introduce Chinese compute into large-model training, the following practice order may be useful:

    1. Verify before investing: progress from operator-level comparison to cropped-configuration pipeline validation, then medium-scale long-run testing, and finally full-scale training, with clear pass criteria at each level.
    2. Make observability a prerequisite: from the first step, collect loss, gradient norm, learning rate, peak memory, and throughput, and configure automatic alerts for Inf/NaN values.
    3. Establish a dual-stack comparison baseline: run identical configurations on the reference framework and the domestic stack, and periodically compare loss curves and gradient statistics to detect gradual drift.
    4. Measure returns by effective training rate: do not look only at theoretical compute; also track outage time, recovery time, and communication overhead.
    5. Evaluate mixed compute carefully: when combining domestic cards and mainstream international cards, numerical differences from different precision and communication implementations can accumulate and require additional alignment validation.
    6. Use cloud compute and tools where appropriate: teams without their own clusters can evaluate cloud providers’ heterogeneous compute pools, containerized training environments, logging services, and monitoring/alerting capabilities to reduce environment setup and operations costs.

    8. Conclusion

    One market research projection estimated that shipments of high-end AI chips in the Chinese market would reach about 5 million units in 2026, up 83% year over year, with local solutions—including self-developed chips from cloud providers—approaching 90% share. Rapid expansion at this scale places higher demands on the maturity of training-side software.

    The value of a Chinese GPU completing a 400-step pipeline validation for a trillion-parameter MoE multimodal model on two nodes and 16 GPUs lies not in how many steps were completed, but in making the key indicators of the training process available for industry review. Between a cropped configuration and full-scale training of a complete trillion-parameter model, there are still tests of cluster scaling and long-term stability. For practitioners, the path from “can run” to “can be trained stably” requires a rational view of each step and rigorous methods.