Validating a Trimmed Trillion-Parameter MoE Model Training Pipeline on Chinese-Made GPUs
This article covers a pipeline validation of a trimmed native multimodal Mixture-of-Experts (MoE) model, run on Chinese-made GPUs across two machines with 16 cards in total. It explains the engineering challenges in sparse attention, expert routing, and distributed communication, shows how to read training metrics and health signals, and outlines what a trimmed run does not prove about full-scale pretraining.
Why Pipeline Validation Is Harder Than Single-Card Testing
Large model training typically involves several stages: model architecture, data pipeline, distributed parallelism, optimizer, and monitoring. A forward and backward pass that runs on a single card does not mean training can run stably across multiple machines and cards. At the trillion-parameter scale, reliability problems concentrate in three areas: memory allocation, cross-node communication, and numerical stability.
Full-scale pretraining is expensive and slow, so engineering teams usually start with pipeline validation. The method is to run a trimmed model on a smaller cluster through the complete workflow, then observe the loss trend and system metrics to judge whether the critical path works. The value of pipeline validation lies in exposing problems early. It cannot prove the quality of the final model.
Public engineering details on training adaptation for Chinese-made GPUs are relatively scarce. Some companies’ disclosures mention that their products have been used for multimodal pretraining and reinforcement learning, and that training adaptation is extending to larger clusters. However, public materials still contain few loss curves or gradient check results from long continuous training runs. Independent pipeline validation reports are therefore useful references.
The model validated here is a trimmed native multimodal MoE model. Its full parameter count is about 2.8 trillion, but this validation ran only the trimmed version. Keep this in mind: pipeline validation shows only that the critical path works. It does not show that full trillion-parameter pretraining will succeed, and it does not show task performance.
Engineering Challenges of the Model Architecture
The model uses a native multimodal Mixture-of-Experts (MoE) architecture. Its engineering difficulties come mainly from two sources.
First, dynamic sparse attention changes the computation pattern of operators. Dense attention has regular computation and memory access patterns. In sparse attention, each position attends to only part of the context. Indexing, masking, and blocking logic must be co-designed with the underlying operators. Otherwise, compute units may sit idle while waiting for data, and memory may fragment.
Second, expert routing introduces dynamic communication. For each token, a routing function selects several experts, and these experts may reside on different cards. Because routing results depend on the input, communication volume cannot be fixed in advance. When load is unbalanced, some cards wait for others to finish, and the speed of each training step drops.
Validating this type of model therefore requires checking operator correctness, communication efficiency, and load balancing at the same time. Missing any one of these could distort the validation conclusions.
Trimmed Configuration and Reproduction Parameters
Trimming aims to keep the key structures while reducing scale, so that validation can finish within limited resources. This configuration keeps the parts most prone to failure, including routing, attention, and cross-modal fusion. It reduces the number of layers and experts so the model can run on two machines with 16 cards in total.
The table below lists the parameters disclosed in the original report, along with those that were not disclosed.
| Item | Value in this validation |
|---|---|
| Model type | Native multimodal MoE |
| Full parameter count | About 2.8 trillion |
| Language backbone layers | 13 |
| Routed experts | 16 experts, 8 activated per token (Top-8) |
| Vision encoder tower | All 27 layers retained, plus the cross-modal projection module |
| Training data | Public medical image-text question-answering dataset |
| Parameter initialization | Random initialization |
| Cluster size | Two machines, 16 cards in total (pseudocode sets 8 cards per node) |
| Training steps | 400 |
| Batch size and sequence length | Not disclosed in the original report |
| Numerical precision, optimizer, learning rate | Not disclosed in the original report |
| Parallelism strategy, communication library, GPU model and driver version | Not disclosed in the original report |
Random initialization combined with a small dataset means the training loss only reflects whether the pipeline runs. It does not reflect what the model learned. Reproduction requires filling in the undisclosed parameters in the table. Without them, the results serve only as a reference for pipeline feasibility.
Getting the Distributed Training Pipeline to Run
This adaptation focuses less on peak single-card performance and more on whether the distributed training pipeline runs end to end. A complete pipeline typically includes three parts.
Sharding Parameters, Gradients, and Optimizer States
Fully Sharded Data Parallelism (FSDP) splits parameters, gradients, and optimizer states across compute nodes. Each card holds only a portion, which significantly reduces per-card memory use. Its communication cost appears in three steps. During the forward pass, each layer uses all-gather to obtain the full parameters, then releases them after use. During the backward pass, parameters are gathered again, and gradients are distributed back to the cards through reduce-scatter. Each card keeps only the portion it is responsible for.
MoE adds another type of communication. Expert parallelism uses all-to-all operations to send tokens to the cards that hold their target experts, then sends the results back after computation. Both types of communication occur within the same step. The sharding granularity and the way communication overlaps with computation both affect final throughput.
Forward and Gradient Implementation of Operators
The hybrid attention and MoE operators each need a forward computation and a backward gradient implementation. If the gradient is missing or incorrect, training may appear to run normally, but parameter updates will move in the wrong direction. During validation, compare operator outputs with a reference implementation on small inputs, and check whether gradients match results from numerical differentiation. State the tolerances used for both comparisons in the report.
Cross-Node Communication
In a two-machine, 16-card setup, bandwidth differs considerably between intra-node and inter-node communication. The communication topology should follow the physical connections between devices. The choice and configuration of the collective communication library directly determine the latency of all-reduce and all-gather operations. During pipeline validation, record the communication time at each step, identify the operations that take the largest share, and assess whether overlap or topology changes could reduce them.
Reading Training Metrics
A pipeline validation report usually includes three types of metrics: training loss, validation loss, and peak memory usage. When interpreting them, the measurement scope matters more than the numbers themselves.
The disclosed data is as follows. The average training loss over steps 21 to 70 was 8.9365. Over the final 50 steps, the average fell to 2.1802, a decrease of about 75.6%. Averages reduce the effect of noise compared with single-step values. Excluding the first 20 steps skips the sharp fluctuations of the learning rate warmup phase. Validation loss dropped from 6.5297 to 4.6873, a decrease of about 28.2%. The validation loss fell much less than the training loss, which suggests the model fit the training set faster. More steps are needed to confirm the generalization trend.
Peak memory was 44.80 GiB. The scope of this figure needs confirmation: is it the peak on a single card or the global peak? The two can differ by several times. The original disclosure does not state the sampling interval or batch size, nor whether the peak includes the memory used by the vision tower. A reproducible report should state all of these.
The following signals indicate whether training is healthy. The thresholds below are examples and should be adjusted to your own baseline.
- NaN or Inf in the loss: Stop training immediately, roll back to the most recent checkpoint, and check the data and learning rate settings.
- Sudden spike in gradient norm: The norm exce
