Validating Multimodal Training on Domestic Chinese GPUs: An Engineering Approach

    This article explains how to validate a complete training pipeline for native multimodal mixture-of-experts (MoE) models on domestic Chinese GPUs. It covers why trillion-parameter models are harder to adapt, how to read the results of a trimmed-model run, and a staged path from operator tests to long-running cluster training.

    1. Training Pipeline Validation: A Key Step in Adapting Domestic GPUs

    Adapting large models to domestic GPUs involves more than getting matrix multiplication to run. For a native multimodal MoE model, the goal is a complete, repeatable, and diagnosable training pipeline. Image-text data enters the model and passes through the vision encoder, the cross-modal projection, language computation, and expert routing to produce a loss. The loss then flows through backpropagation, gradient synchronization, and optimizer updates to complete one iteration.

    A fault at any stage can appear as a loss that does not converge, abnormal gradients, out-of-memory errors, communication stalls, or a training process that exits without warning. When assessing adaptation progress, treat four questions separately: whether operators execute, whether training runs continuously, whether numerical results are trustworthy, and whether scaling works. No single metric can answer all four.

    The reported work tested a trimmed model trained for 400 consecutive steps on two machines with 16 cards in total. Its main technical value lies in checking whether a complex multimodal training path can close end to end. It does not show that a trillion-parameter model has completed full-scale pretraining. The sections below cover the validation design, how to interpret the metrics, and how to extend the method.

    2. Why Trillion-Parameter Multimodal Models Are Harder to Adapt

    1. Total parameters and per-step compute are different things

    MoE architectures typically contain many expert networks. A routing module selects a subset of experts for each input. The total parameter count can therefore be very large, while only a fraction of the parameters are active for any given input.

    Sparse activation reduces some compute cost, but it does not remove storage and communication pressure. Experts that the current input does not activate still need to be stored and managed, and they still take part in later iterations. Training also requires gradients and optimizer states.

    A “trillion-parameter” label does not directly indicate compute per iteration. It also cannot be used alone to estimate the resources that full training requires. An engineering assessment must report total parameters, active parameters, parameter precision, optimizer state size, and the parallel layout together.

    2. Expert routing makes load and communication dynamic

    A dense model follows a relatively fixed compute path. In an MoE model, the compute allocation changes with the input content and the routing results. If many inputs flow to a few experts, those devices become bottlenecks while others sit idle.

    When experts sit on different devices, the system must transfer input representations and return expert outputs to their original positions. Adaptation work must therefore do more than confirm that communication interfaces can be called. It must also verify the correspondence among data rearrangement, routing indices, and backward gradients.

    Routing errors do not always crash the program right away. Some errors keep tensor shapes valid while sending inputs to the wrong expert or routing gradients to the wrong location. Reference comparisons and targeted tests are needed to find this kind of problem.

    3. Multimodal training adds cross-module dependencies

    An image-text model typically includes a vision encoder, a cross-modal projection module, and a language backbone. When all three train together, the visual features must not only be read correctly. They must also receive a useful update signal through the loss function.

    A model that produces output does not prove that the vision branch takes part in training. Check whether the vision parameters receive gradients, whether those values stay finite, whether the parameters change after updates, and whether the changes match the training configuration.

    For dynamic or sparse attention, also check that masks, indices, and variable-length input handling are correct. Matching a reference forward output is only the first step. Training adaptation must also cover backpropagation.

    3. What a Trimmed Model Must Keep to Be a Useful Test

    Trimming reduces validation cost. However, if the trimming removes the hardest compute paths, the test loses most of its value.

    A sound principle is to reduce the scale of repeated computation while keeping key structures and data flows. For example, you can cut the number of language layers and experts, but keep the expert selection mechanism, the cross-device training path, the vision encoder, and the cross-modal projection. That way, the test covers the full forward and backward passes.

    The reported configuration reduced the number of language layers and experts. It kept the vision tower and the cross-modal projection, and it trained from random initialization on image-text question answering data. This design suits checking whether training functions work end to end. It still differs from full model training in several ways:

    • Fewer layers and experts reduce parameter storage and optimizer state pressure.
    • Fewer routing participants may make the communication topology and load distribution simpler.
    • Short training from random initialization cannot represent the long-term convergence of the full model.
    • Data from a single task does not cover the input distributions and outlier samples found in complex pretraining corpora.

    When reporting trimmed-model results, disclose the trimming scope, retained modules, input specifications, precision policy, and parallel configuration. Do not emphasize only the original model’s total parameter count.

    4. Interpreting 400 Steps and Loss Decline

    1. Continuous runs show the pipeline is stable within the test conditions

    Running 400 steps without numerical overflow or unexpected interruption shows that, under the current inputs, model configuration, and resources, training iterations can be repeated.

    This result cannot be extended to long-term stability. Longer runs may expose memory leaks, communication timeouts, checkpoint problems, and intermittent hardware faults. Different input lengths, batch sizes, and routing distributions may also trigger new edge cases.

    State the conclusion as “continuous training passed under the current configuration,” not as “all training scenarios are adapted.”

    2. Loss decline is a useful signal, not proof of correctness

    The reported training loss fell from a window average of 8.9365 early in the run to 2.1802 at the end. Validation loss fell from 6.5297 to 4.6873. Using window averages rather than single-step values reduces the effect of batch-to-batch noise.

    These numbers show that the model learned on this task during the test period. They do not prove that the numerical implementation is fully correct, and they do not predict the final capability of the full model.

    For further analysis, confirm the following:

    • The loss definition and normalization method are the same for training and validation.
    • The validation data is fixed and does not overlap with the training data.
    • The effective target count per batch does not change significantly.
    • Key module outputs and gradients are checked against an independent reference.

    Training loss and validation loss changed by different amounts. Do not attribute this gap directly to overfitting. Training duration, sample distribution, random initialization, and the evaluation method can all affect it, and more evidence is needed to determine the cause.

    3. Peak memory applies only to the current configuration

    The reported peak memory is 44.80 GiB. This figure helps describe the resource use of the trimmed experiment. It cannot be used directly to estimate how many devices the full model needs.

    Training memory covers parameters, gradients, optimizer states, activations, communication buffers, and temporary workspace. These components scale differently with layer count, sequence length, batch size, and parallel size. Some costs do not grow linearly with parameter count.

    Also state how the peak was measured: as the maximum on a single card, the average across cards, or the device memory used by one process. Without that definition, do not compare the figure with other results.

    5. A Layered Acceptance Framework, From Operators to Clusters

    1. Operator level: verify mathematical correctness first

    Check the forward outputs and backward gradients of key modules separately. These include attention, expert routing, data rearrangement, and the cross-modal projection.

    Tests should cover different input shapes, boundary indices, and empty or uneven expert assignments. Set tolerances based on the precision type and value range. Do not require bit-exact results for all low-precision computation, and do not use overly loose thresholds to hide implementation errors.

    2. Single-machine training level: check gradients and parameter updates

    Before deploying across machines, confirm that every module on a single machine receives gradients and that the optimizer actually updates parameters. Monitor the loss, gradient norms, the count of non-finite values, and the size of parameter updates.

    Checking only whether the loss decreases is not enough. Some modules may not take part in training while others still reduce the loss. Multimodal models in particular need separate checks on the vision branch and the projection module.

    3. Multi-machine training level: verify sharding and communication semantics

    Fully sharded data parallelism (FSDP) spreads parameters, gradients, and optimizer states across devices to reduce per-device storage. It also adds steps for parameter gathering, gradient reduction, and state management.

    Validation must c