Adapting Chinese-Developed GPUs to Trillion-Parameter Multimodal Training: Key Steps

    This article explains what a 400-step training run on a trimmed trillion-parameter mixture-of-experts multimodal model shows about GPU framework adaptation, and what it does not show. It covers three levels of verification, the added complexity of MoE and multimodal training, how to choose which features a trimmed configuration should keep, how to read loss and memory figures, and a staged path from operator tests to long-running recovery tests.

    1. What a Completed Training Run Proves

    Adapting domestic GPUs to large model training frameworks is moving from basic operator coverage to system validation on complex models and distributed training. For a trillion-parameter mixture-of-experts (MoE) multimodal model, running one forward pass does not mean the model can be trained. Training for hundreds of steps does not mean the system can support full-scale pretraining.

    The source material describes a validation run on two nodes with 16 cards in total. The team trained a trimmed model configuration for 400 consecutive steps, and no numerical overflow or abnormal interruption was reported. The main value of this kind of test is checking whether model computation, automatic differentiation, optimizer updates, memory management, and cross-node communication work together.

    Results should be read at three levels.

    The first level is functional correctness. Each model branch takes part in computation, the loss is produced, gradients propagate backward, and parameters update.

    The second level is numerical consistency. After adaptation, results stay within a reasonable error range of a trusted reference implementation. No computational deviation is hidden by a short-term drop in loss.

    The third level is scale readiness. The system stays stable at the target model size, sequence length, parallel configuration, and run duration, while reaching acceptable throughput, resource utilization, and recovery efficiency.

    Validation on a trimmed configuration is therefore a necessary engineering milestone. It mainly shows whether the training path is basically viable. On its own, it cannot show whether the full model can complete pretraining efficiently.

    2. Why Adapting Trillion-Parameter Multimodal Models Is More Complex

    1. Total parameter count and per-token activation differ

    An MoE model contains multiple expert subnetworks. A router selects a subset of experts for each token based on the input. This increases model capacity while keeping the compute for each forward pass under control.

    Sparse activation does not reduce other costs in proportion. Expert parameters still have to be stored, and training still requires gradient management and optimizer states for them. After tokens are assigned to different experts, the system also needs data rearrangement, dispatch, and result aggregation.

    Once experts are spread across multiple cards or nodes, routing is no longer only a local computation problem. It also becomes a communication problem. When expert load is unbalanced, the slowest device can hold up the whole training step.

    Evaluating an MoE model therefore cannot rely on total parameter count alone. Engineers should also track the number of active experts per token, how experts are deployed, the routing distribution, and the actual communication overhead.

    2. Multimodal training requires multiple compute paths to form a closed loop

    Image-text models usually include a vision encoder, a language backbone, and a cross-modal projection module. The vision encoder extracts image features. The projection module maps those features into a representation space the language side can process. The features then join the text information during training.

    If only the language branch is tested, problems can go unnoticed in the backward implementation of vision operators, in image feature layout conversion, and in gradients at the cross-modal connection. In some cases, overall loss can still fall while some modules are frozen, have their computation graph detached by accident, or fall outside the optimizer’s update scope.

    Multimodal validation must therefore check explicitly whether the vision branch produces valid gradients and whether its parameters actually change. A training job that runs without errors does not confirm that every modality takes part in learning.

    3. Dynamic compute paths make test coverage harder

    Dynamic sparse attention and expert routing make the compute path change with the input. Different sequence lengths, image sizes, batch compositions, and routing results can trigger different operator shapes and communication patterns.

    A fixed input that runs successfully shows only that one path works. To make the adaptation trustworthy, tests need to cover different tensor shapes, boundary conditions, and load distributions. This lowers the chance that the system first fails on real data with a combination that was never tested.

    3. Key Features a Trimmed Configuration Should Keep

    The purpose of trimming is to keep the most important engineering challenges within limited resources. It should not shrink the model until it is merely easy to run.

    The validation configuration in the source material keeps a 13-layer language backbone with 16 routed experts, and activates 8 of them for each token. It also keeps the full 27-layer vision module and the cross-modal projection module. This design reduces resource needs while still covering multimodal connections, expert routing, and part of the distributed training path.

    A trimmed model still behaves differently from the full model, however. Fewer language layers change the size of intermediate activations and the ratio of compute to communication. Fewer experts change the routing distribution and the pressure on expert parameter management. Full training may use a different sequence length and global batch size, which can shift the memory and network bottlenecks.

    A sound trimming strategy should prioritize these features:

    • Key attention types and their forward and backward paths;
    • Expert routing, dispatch, aggregation, and gradient backpropagation;
    • The connection from the vision module to the language module;
    • The parameter sharding and cross-node communication actually used;
    • The precision policy, optimizer, and necessary training state management.

    The team should also record what was removed, which pressure each removal reduces, and which conclusions cannot be extended to the full model.

    4. How to Read Loss and Memory Data

    The source material reports that training loss fell from a mean of 8.9365 over steps 21 to 70 to a mean of 2.1802 over the last 50 steps. Validation loss dropped from 6.5297 to 4.6873. Peak memory usage was 44.80 GiB. These numbers describe this configuration only. They should not be treated as performance metrics for the full model.

    1. A falling loss is a good sign but not proof of full correctness

    With random initialization, a clear drop in training loss usually shows that the model has a learning signal and that the gradient and parameter update path works. A drop in validation loss suggests the improvement is not limited to the current training batches.

    Loss curves also depend on dataset size, task difficulty, learning rate, sample repetition rate, and how the loss is normalized. To prove the adaptation is correct, teams should compare forward output error and gradient error on identical inputs, and examine short-run training trends.

    Comparing window averages from different training stages reduces the effect of single-step noise. The full curve should still be reviewed to identify spikes, sudden jumps, and long plateaus.

    2. No overflow does not rule out all numerical risk

    Running 400 steps without a reported numerical overflow or abnormal interruption shows basic stability within the tested coverage. Long sequences, extreme inputs, routing imbalance, and different batch sizes may still trigger new numerical problems.

    Teams should keep monitoring non-finite values, gradient norms, unusually large activations, sudden loss changes, and parameter update magnitudes. For low-precision training, they should also confirm that critical reductions and numerically sensitive computations use suitable handling.

    3. Read peak memory in the context of its configuration

    A peak of 44.80 GiB depends on model depth, input size, precision, optimizer, batch size, and sharding strategy. Without that context, the number cannot be used for capacity planning or cross-system comparison.

    Training memory roughly comes from parameters, gradients, optimizer states, intermediate activations, and buffers for communication and temporary computation. Parameter sharding reduces the persistent state on each device, but it does not automatically remove peaks caused by long-sequence activations, expert routing buffers, or temporary parameter gathering.

    5. Four Key Paths for Distributed Training Adaptation

    1. Operator adaptation must cover the backward pass and boundary conditions

    Full training adaptation has to cover forward computation, gradient computation, and the data types and tensor layouts used in real training. For key operators such as attention, expert dispatch, and aggregation, test non-contiguous tensors, variable-length inputs, empty allocations, and extreme numerical values.

    Run operator-level comparison tests first, then module-level validation, and only then full training. This keeps distributed issues separate from low-level numerical issues, which makes root-cause analysis easier.

    2. Parameter sharding must balance capacity and communication cost

    Fully sharded data parallelism usually distributes parameters, gradients, and optimizer states across devices to lower the persistent memory needed per card. During computation, the system gathers parameters on demand. During the backward