Validating Trillion-Parameter Multimodal Model Training on Domestic GPUs: Methods and Practices

    This article examines how a domestic GPU laboratory validated an end-to-end training pipeline for an approximately 2.8-trillion-parameter native multimodal MoE model using a trimmed configuration on two nodes with 16 GPUs over 400 continuous training steps. It explains why MoE multimodal adaptation is difficult, what trimmed-configuration validation can and cannot prove, the key engineering checkpoints, and a recommended metric system for progressing from pipeline validation to full-scale training.

    1. From Single-Point Adaptation to Full Training Pipeline Validation

    A domestic GPU laboratory recently reported that it completed training pipeline adaptation for a native multimodal model with approximately 2.8 trillion parameters and a mixture-of-experts (MoE) architecture. The validation was carried out on two nodes with 16 GPUs over 400 continuous training steps, with no numerical overflow, abnormal interruption, or loss of training-state control.

    The significance of this work is not merely that the model can run. More importantly, it validates whether domestic GPUs can support the complete closed loop of a complex large-model training task, from data input and forward computation to backpropagation and parameter updates. For large-model engineering, the ability to execute an individual operator or return inference results on a single GPU does not mean the training system is production-ready. Training efficiency and stability are often determined by systemic factors such as distributed parallelism, memory sharding, cross-node communication, gradient synchronization, and failure recovery.

    Trillion-parameter models, in particular, typically do not activate all parameters in every computation. Instead, sparse expert routing selects only a subset of experts to process the current tokens. This design reduces computation per token but significantly increases the complexity of communication scheduling, load balancing, and memory management. At the same time, multimodal models must process different types of input, such as text and images. The visual encoding module, cross-modal projection layer, and language generation backbone have strong data dependencies, placing higher demands on operator coverage and tensor layout.

    2. Why MoE Multimodal Model Adaptation Is More Difficult

    2.1 Dynamic Routing Introduces Variable Communication Overhead

    An MoE model typically uses the output of a routing network to select several experts for each token. Because routing results vary across batches, sequences, and even time steps, the set of experts involved in computation changes dynamically.

    In a single-GPU environment, this variation mainly affects computational load. In multi-GPU or multi-node environments, tokens often need to be redistributed according to the devices hosting the selected experts, computed, and then gathered back to their original positions. This communication process includes:

    • Routing result computation;
    • Token reordering to target expert devices;
    • Cross-GPU or cross-node data exchange;
    • Collection of results after expert computation;
    • Output-order restoration and subsequent-layer computation.

    If the communication library, device topology, or tensor layout does not match, the system may experience throughput degradation, synchronization waits, higher peak memory usage, or even unstable training results.

    2.2 Multimodal Structure Expands Operator Adaptation Scope

    A native multimodal model generally includes a visual encoder, a text encoder or language model backbone, a cross-modal projection layer, and a unified training objective. The visual branch usually has input sizes, sequence organization, and attention patterns that differ from those of the language branch.

    During training, the visual branch cannot be used only as a fixed feature extractor. If visual parameters participate in updates, the system must also support:

    • Forward and backward computation of the visual encoder;
    • Cross-modal feature projection;
    • Batching across different sequence lengths;
    • Joint backpropagation of image and text losses;
    • Gradient scaling and overflow detection under mixed precision.

    Therefore, multimodal adaptation is not simply adding another input channel. It requires connecting multiple computation subgraphs and ensuring consistent gradient semantics in a distributed environment.

    2.3 Sparse Models Are Not Necessarily Low-Memory Models

    An MoE architecture activates only part of its experts in a single computation, but model parameters, optimizer states, and gradients may still need to be stored or managed in shards. Common sharding strategies for parameters, gradients, and optimizer states can reduce per-GPU resident memory, but they also increase scheduling complexity for parameter aggregation, gradient synchronization, and state access.

    Memory evaluation should therefore not focus only on model weight size. It should also consider:

    • Activation storage;
    • Temporary communication buffers;
    • Gradients and optimizer states;
    • Additional overhead for recomputation;
    • Token reordering caches caused by expert routing;
    • Visual feature storage introduced by multimodal inputs.

    3. Value and Limits of Trimmed-Configuration Validation

    This validation used a trimmed model configuration: the language backbone retained only part of its layers, the number of experts was reduced to 16, and a Top-8 activation strategy was used. The visual branch retained its full structure, along with the cross-modal projection module. The training data came from an image-text question-answering dataset, and model parameters were randomly initialized.

    The core value of this configuration is that it covers the complete training pipeline at controllable cost. It does not aim to reproduce the final performance of the full model. Instead, it focuses on observing the following questions:

    1. Whether the model can complete forward computation;
    2. Whether backpropagation can reach all modules involved in training;
    3. Whether expert routing can run stably;
    4. Whether parameter, gradient, and optimizer-state sharding are correct;
    5. Whether multi-GPU communication can continue reliably;
    6. Whether the loss function shows a reasonable downward trend;
    7. Whether numerical overflow or abnormal interruption occurs after prolonged training.

    According to publicly available information, training loss decreased from approximately 8.9365 in the early stage to approximately 2.1802 in the later stage, while validation loss decreased from approximately 6.5297 to approximately 4.6873. Peak memory usage was approximately 44.80 GiB, and the visual branch also participated in parameter updates. These results indicate that the trimmed model has a relatively complete training loop and that gradient connections between different modules are basically effective.

    It is important to note, however, that convergence results under a trimmed configuration cannot be directly equated with the pretraining results of a full-scale model. When model depth, expert count, batch size, data distribution, sequence length, and parallelism strategy change, training stability and resource requirements may differ significantly. In particular, when scaling to hundreds or thousands of GPUs or beyond, communication share, load imbalance, and failure probability will all increase.

    4. Key Engineering Stages in Training Adaptation

    4.1 Operators and Computation Graphs

    The first step is to cover core operators such as mixed attention, expert routing, matrix multiplication, normalization, activation functions, and cross-modal projection. For training tasks, implementing forward operators alone is insufficient. Backward formulas, gradient precision, and automatic differentiation results must also be validated.

    A layered validation approach is recommended:

    • First, perform numerical alignment for individual operators;
    • Then, align forward and backward computation for a single layer;
    • Next, complete single-GPU small-model training;
    • Finally, move to multi-GPU and cross-node validation.

    Each layer should have a reference implementation, and output error, gradient error, and loss curves should be compared rather than merely checking whether the program runs.

    4.2 Parameter and State Sharding

    When model size exceeds single-GPU memory capacity, parameters, gradients, and optimizer states must be sharded. The sharding strategy should clearly define the lifecycle, aggregation timing, and communication scope of each type of data.

    In engineering practice, key checks include:

    • Whether parameters are correctly aggregated before computation;
    • Whether gradients are fully synchronized after backward computation;
    • Whether optimizer states remain consistent with parameter shards;
    • Whether training can resume after checkpoint saving;
    • Whether parameter replicas on different GPUs drift over time.

    Validating only the first few training steps makes it difficult to detect problems in checkpoint recovery, gradient accumulation, or long-running synchronization. Continuous training over hundreds of steps is therefore a necessary but not sufficient baseline threshold.

    4.3 Cross-Node Communication

    The bottleneck in multi-node training is often not only compute but also communication. Expert models generate frequent data exchanges, and the visual and language branches may form different computation rhythms. If communication cannot overlap sufficiently with computation, GPUs will sit idle waiting for data.

    Optimization directions include:

    • Reducing unnecessary data reordering;
    • Combining small communication tasks;
    • Designing communication groups based on device topology;
    • Separating communication buffers from computation buffers;
    • Monitoring load on hot experts;
    • Overlapping communication and computation as much as possible.

    At the same time, communication time, wait time, link utilization, and per-device load must be recorded rather than looking only at overall training speed.

    A complete evaluation system for large-model adaptation on domestic GPUs should include at least four categories of metrics.

    Functional Correctness

    Confirm that all modules can execute, forward and backward results meet expectations, visual and language parameters participate in updates as designed, and parameters remain consistent across devices after distributed training.

    Numerical Stability

    Focus on loss curves, gradient norms, activation ranges, overflow counts, and the proportion of non-finite values. In mixed-precision training, also verify that dynamic loss scaling, gradient clipping, and anomaly detection mechanisms are effective.

    Resource Efficiency

    Record peak memory, compute utilization, communication share, effective training rate, and time per sample. Lower peak memory does not necessarily mean higher efficiency. If a large amount of time is spent on synchronization waits, overall training cost may still be high.

    Scalability and Recoverability

    As the number of GPUs increases, observe whether throughput approaches linear scaling, whether communication overhead rises rapidly, and whether expert load becomes significantly skewed. Also validate automatic recovery after task interruption, checkpoint integrity, and failure retry capability.

    6. From Pipeline Validation to Full-Scale Training

    After trimmed-configuration validation is complete, the next stage should generally proceed through gradual scaling rather than switching directly to full scale. The sequence can be: single-GPU small model, single-node multi-GPU, two-node multi-GPU, multi-node cluster, and full model.

    Each expansion should use a fixed set of comparison metrics, including training loss, validation loss, peak memory, effective training rate, communication ratio, and anomaly count. If a metric deteriorates sharply after scaling, priority should be given to identifying communication, load balancing, data batching, or numerical precision issues rather than simply adding hardware resources.

    Overall, training adaptation for trillion-parameter multimodal models on domestic GPUs is gradually shifting from “whether it can run” to “whether it can run stably, continuously, and efficiently.” Continuous training steps, loss changes, visual branch updates, peak memory, and distributed communication status form important evidence for judging pipeline maturity.

    However, validation under a trimmed configuration remains an engineering feasibility proof. It cannot replace full-scale pretraining, long-duration stability testing, or large-cluster scaling tests. Only when operator coverage, numerical stability, communication efficiency, failure recovery, and scale expansion all meet requirements can domestic GPUs truly provide production-grade capability for complex multimodal large-model training.