Validating a Trillion-Parameter MoE Multimodal Training Pipeline on Domestic GPUs

    As large model parameters scale toward the trillion mark, Mixture of Experts (MoE) architectures and native multimodal capabilities have become industry standards. However, massive parameter counts and complex dynamic routing mechanisms impose stringent requirements on memory management, operator support, and cross-node communication for underlying hardware. Recently, a domestic GPU vendor successfully adapted the training pipeline for a 2.8-trillion-parameter native multimodal MoE model in a lab environment. Completing 400 consecutive training steps on a dual-node, 16-GPU configuration without numerical overflow or crashes, this engineering practice validates the feasibility of domestic computing power in complex large-model scenarios and provides a valuable distributed training reference for developers.

    Validating a Trillion-Parameter MoE Multimodal Training Pipeline on Domestic GPUs

    As large model parameters scale toward the trillion mark, Mixture of Experts (MoE) architectures and native multimodal capabilities have become industry standards. However, massive parameter counts and complex dynamic routing mechanisms impose stringent requirements on memory management, operator support, and cross-node communication for underlying hardware. Recently, a domestic GPU vendor announced that it had successfully adapted the training pipeline for a 2.8-trillion-parameter native multimodal MoE model in a lab environment. Completing 400 consecutive training steps on a dual-node, 16-GPU configuration without numerical overflow or abnormal interruptions, this engineering practice not only validates the feasibility of domestic computing power in complex large-model scenarios but also provides a highly valuable distributed training solution for developers.

    1. Model Architecture Characteristics and Pipeline Adaptation Challenges

    The core architectural characteristics of a 2.8-trillion-parameter MoE multimodal model dictate the technical threshold for training pipeline adaptation. Such models typically employ dynamic sparse attention mechanisms and expert routing mechanisms:

    1. Dynamic Sparse Attention: Compared to traditional full attention mechanisms, dynamic sparse attention exhibits non-fixed memory access patterns when computing sequence dependencies. This makes it difficult for the underlying GPU to optimize performance through static memory allocation when executing attention operators, which can easily lead to memory fragmentation.
    2. Expert Routing Mechanism: In a MoE architecture, each token is assigned only to a few activated expert networks (e.g., Top-K routing). This dynamic dispatch characteristic can lead to highly uneven workloads among different GPU devices. Furthermore, transferring tokens across devices to target experts triggers massive All-to-All communication, which is highly sensitive to cluster interconnect bandwidth and latency.

    Furthermore, the native multimodal architecture means the model must process both visual and language signals simultaneously. The vision tower typically contains dozens of deep network layers, and the cross-modal projection module must align features across different modal spaces. This heterogeneous branch structure means that a single parallelization strategy can rarely cover the entire model, requiring the training framework to possess finer-grained memory and computation scheduling capabilities.

    2. Training Validation Scheme Design Under a Trimmed Configuration

    From an engineering perspective, directly conducting the initial validation of a 2.8-trillion-parameter model on a full-scale cluster is not only highly expensive but also makes it difficult to troubleshoot underlying numerical and communication issues. Therefore, using a trimmed configuration to validate the pipeline is a widely adopted best practice in the industry.

    In this validation, the R&D team reasonably trimmed the model architecture while retaining its core characteristics to test training functionality and loss trends:

    • Language Backbone: Truncated to 13 network layers, configured with 16 routing experts, and utilizing a Top-8 activation strategy. This retains the core logic of MoE dynamic routing, which is sufficient to validate All-to-All communication and expert load balancing.
    • Vision and Cross-Modal Modules: Fully retained the 27-layer vision tower and cross-modal projection module to ensure the integrity of the multimodal feature fusion pipeline.
    • Data and Initialization: Conducted randomly initialized training based on industry-standard image-text QA datasets. This eliminates numerical interference from pre-trained weights, providing a purer test of the training pipeline’s convergence.

    3. Core Engineering Practices: Operator Implementation and Distributed Optimization

    To successfully run the trimmed model on domestic GPUs, the focus is not on competing for peak single-card computing power, but on systematically connecting the distributed training pipeline. This requires full-stack collaboration from operators to the framework layer.

    3.1 Efficient Implementation of Hybrid Attention and MoE Operators
    Native multimodal models require not only standard linear and activation layers but also deep adaptation of hybrid attention and MoE-specific operators. The R&D team completed the forward and gradient backward computation implementations for these complex operators. In the MoE operator implementation, special attention was given to the gradient computation of the gating network and the weighted fusion of expert outputs to ensure no loss of numerical precision, thereby avoiding gradient explosion or vanishing caused by accumulation errors at the trillion-parameter scale.

    3.2 Deep Application of Fully Sharded Data Parallel (FSDP)
    To handle the massive parameters and optimizer states, the training pipeline relies on an industry-mainstream Fully Sharded Data Parallel (FSDP) framework. This framework shards the model’s parameters, gradients, and optimizer states across data parallel groups. The following pseudocode illustrates its core scheduling logic:

    1. # Pseudocode: Parameter sharding and forward pass scheduling under Fully Sharded Data Parallel
    2. def fsdp_forward_step(model_shard, input_batch, rank, world_size):
    3. # Aggregate parameters for the current layer
    4. for layer in model_shard.layers:
    5. all_gather(layer.params, group=layer.dp_group)
    6. # Forward computation
    7. if isinstance(layer, MoELayer):
    8. # MoE layer specific: Execute All-to-All communication to dispatch tokens
    9. tokens = dispatch_tokens(input_batch, layer.router, rank, world_size)
    10. expert_output = layer.experts[tokens.dest_expert](tokens.data)
    11. output_batch = combine_tokens(expert_output, layer.router)
    12. else:
    13. output_batch = layer(input_batch)
    14. # Release parameter shards not handled by the current GPU to free up memory
    15. reduce_scatter(layer.params, group=layer.dp_group)
    16. input_batch = output_batch
    17. return input_batch

    Through this approach, the peak memory under the dual-node, 16-GPU configuration was effectively controlled at 44.80GiB, preventing single-card memory overflow. Meanwhile, during the backward propagation phase, gradients are similarly aggregated through Reduce-Scatter operations, drastically reducing communication redundancy.

    3.3 Cross-Node Communication Optimization
    Communication in multi-node, multi-GPU environments is a critical bottleneck for training efficiency. This adaptation relies on a dedicated collective communication library for cross-node communication. For the All-to-All communication in the MoE architecture, the communication library was optimized in conjunction with the underlying hardware topology, reducing cross-node hops and lowering the probability of network congestion.

    4. Training Data and Validation Results Analysis

    Whether the training pipeline is truly connected is most intuitively reflected in the convergence of the loss curve and the health of the gradients. This validation not only completed 400 consecutive training steps but also detailed the loss and gradient checks, which is relatively rare in current engineering disclosures for trillion-parameter MoE multimodal models.

    • Training Loss: Stabilized and converged from a mean of 8.9365 (steps 21–70) to a mean of 2.1802 for the final 50 steps.
    • Validation Set Loss: Dropped from 6.5297 to 4.6873.
    • Parameter Update Status: The vision branch participated normally in parameter updates, with gradient norms maintained within a reasonable range, showing no numerical overflow.

    This set of data proves that the domestic GPU’s pipeline for mixed-precision computing, gradient synchronization, and optimizer state updates is self-consistent and correct. The smooth decline of the loss curve indicates that the underlying operators did not introduce systematic numerical deviations during the interaction between dynamic sparse attention and expert routing.

    5. Bridging Pipeline Validation to Full-Scale Pre-training

    Although this pipeline validation achieved phased success, it must be objectively recognized that success under a trimmed configuration does not equate to the success of full-scale pre-training. While industry forecasts anticipate significant growth and market share for domestic AI chips in the coming years, domestic GPUs still need to overcome the following challenges to succeed in a highly competitive market:

    1. Cluster Scale Expansion: Expanding from a dual-node, 16-GPU setup to thousand- or ten-thousand-GPU clusters will exponentially increase communication topology complexity. Network jitter, fault tolerance and checkpoint resume mechanisms caused by node failures, and the synchronization consistency of global gradients are all difficult problems that must be solved for full-scale training.
    2. Long-Term Stability: Large model pre-training typically requires continuous operation for weeks or even months. During this period, long-term hardware stability, periodic cleanup of memory fragmentation, and the risk of frequency throttling caused by Thermal Design Power (TDP) will directly determine the effective training rate. Previously, Baidu AI Cloud also reported that its self-developed AI chip cluster achieved an effective training rate of 97% during the training of major model versions, setting a high-standard reference for long-term stability in the industry.

    In summary, this domestic GPU training pipeline validation for the 2.8-trillion-parameter MoE multimodal model has completed the engineering puzzle of complex operator implementation and distributed shard management. This not only provides a reproducible engineering benchmark for the training-side feasibility of domestic computing power but also lays a solid foundation for subsequent adaptations to a broader range of mainstream large models. In the future, as cluster expansion and long-term stability technologies mature, the application prospects of domestic computing power in the field of trillion-parameter large model training will become even broader.