In-Depth Analysis: Verifying the Multimodal LLM Training Pipeline on Domestic GPUs

    This article explores the engineering practice of verifying the training pipeline for a 2.8-trillion-parameter native multimodal Mixture of Experts (MoE) model on domestic GPUs. It covers the adaptation thresholds of trillion-parameter MoE models, the distributed training verification strategy using a tailored configuration on a dual-node 16-GPU setup, and the analysis of key metrics such as loss convergence, VRAM control, and gradient verification. It also discusses the challenges of scaling from pipeline verification to full-scale pre-training.

    In recent years, large language models (LLMs) have been rapidly evolving toward trillion-parameter scales and multimodal capabilities. During this process, the Mixture of Experts (MoE) architecture has become the industry’s mainstream choice, as it can expand model parameter capacity without significantly increasing inference computation. However, the dynamic sparsity of the MoE architecture and the complexity of multimodal fusion pose unprecedented challenges to underlying GPU compute power, communication bandwidth, and VRAM scheduling. Recently, a domestic GPU manufacturer completed a training pipeline verification for a 2.8-trillion-parameter native multimodal MoE model in a laboratory environment, providing a highly valuable engineering sample for the adaptation and integration of domestic GPUs in ultra-large-scale model training.

    1. Training Adaptation Thresholds for Trillion-Parameter MoE Multimodal Models

    In traditional dense models, every input token is computed through all layers and parameters. In an MoE architecture, however, a gating network routes each token to only a few expert networks for computation. While this dynamic routing mechanism improves parameter efficiency, it also introduces significant engineering challenges:

    1. Surging Multi-Card Communication Pressure: Because experts are distributed across different GPUs, cross-node token routing relies on highly efficient All-to-All communication. When the model scale reaches 2.8 trillion parameters, the volume of communication data grows exponentially. Any minor network congestion can cause compute units to idle, severely dragging down overall training throughput.
    2. Extreme VRAM Management Challenges: Multimodal models typically include a separate vision encoder tower and a language trunk network. A parameter count of 2.8 trillion means that the model weights alone require massive VRAM space. Combined with optimizer states, gradients, and activation values, VRAM capacity easily becomes a bottleneck.
    3. Combined Complexity of Dynamic Sparse Attention and Expert Routing: The original model introduces a dynamic sparse attention mechanism. When combined with expert routing, the dynamic shapes of the computation graph place extremely high demands on the adaptation of underlying operator libraries. Operators must not only ensure forward computation precision but also guarantee no overflow during backward gradient propagation.

    2. Engineering Practice of Distributed Training Pipeline Verification

    To address these challenges and verify the training capability of a trillion-parameter model with limited hardware resources, the most scientific approach is to use a “tailored configuration” to validate the pipeline. This verification was conducted on a dual-node, 16-GPU setup, focusing on testing training functionality and loss trends rather than pursuing single-card peak compute.

    2.1 Model Tailoring and Configuration Strategy

    To simulate the training logic of a trillion-parameter model on a dual-node 16-GPU setup, the verification plan adopted fine-grained structural tailoring:

    • Language Trunk: Truncated to 13 network layers to reduce per-step computation.
    • Expert Network: Retained 16 routing experts with a Top-8 activation strategy. This setting preserves the core communication characteristics of MoE routing, which is sufficient to expose cross-node communication issues.
    • Vision Branch: Retained the full 27-layer vision tower and cross-modal projection module. This ensures the integrity of the multimodal alignment logic, allowing visual features to genuinely participate in the model’s parameter updates.

    2.2 Distributed Parallel Strategy and VRAM Optimization

    For the parallel strategy, this pipeline verification leveraged Fully Sharded Data Parallel (FSDP2) technology to achieve fine-grained sharding management of parameters, gradients, and optimizer states across multiple GPUs. This strategy significantly alleviated per-card VRAM pressure.
    Meanwhile, for cross-node communication, the system employed a highly optimized collective communication library to handle core communication primitives like All-Gather and Reduce-Scatter. Below is the generic FSDP configuration pseudocode, illustrating the basic logic of sharding management:

    1. import torch
    2. from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
    3. # Assume 'model' is the tailored MoE multimodal model
    4. model = build_multimodal_moe_model(
    5. num_layers=13,
    6. num_experts=16,
    7. top_k=8,
    8. vision_layers=27
    9. )
    10. # Configure FSDP for parameter and optimizer state sharding
    11. model = FSDP(
    12. model,
    13. sharding_strategy=ShardingStrategy.FULL_SHARD,
    14. cpu_offload=CPUOffload(offload_params=False),
    15. backward_prefetch=BackwardPrefetch.BACKWARD_PRE,
    16. device_id=torch.cuda.current_device()
    17. )
    18. # The optimizer is also initialized in a sharded state
    19. optimizer = torch.optim.AdamW(model.parameters(), lr=2e-4)

    3. Training Verification Metrics and Result Analysis

    After completing the supplementation of underlying operators and the construction of the distributed pipeline, the verification utilized a random-initialized training process on an image-text QA dataset. Conducting 400 continuous training steps not only tested the system’s compute capability but also served as a comprehensive check of long-term stability and numerical stability.

    According to data disclosed by the laboratory, the training process exhibited excellent numerical stability, with no numerical overflow or abnormal interruptions. Key metrics are as follows:

    • Loss Convergence: The training loss smoothly converged from a mean of 8.9365 (steps 21-70) to a mean of 2.1802 (last 50 steps); the validation set loss also decreased from 6.5297 to 4.6873. This indicates that after structural tailoring, the model’s core learning mechanism still operates normally, and the gradient backward propagation path is healthy.
    • VRAM Control: Under the dual-node 16-GPU configuration, the peak VRAM per card was strictly controlled at 44.80GiB.
    • Gradient Check: A strict review was conducted on the forward and gradient implementations for hybrid attention and MoE operators, confirming that the vision branch did indeed participate in parameter updates and the weight update direction was correct.

    From an industry perspective, multiple domestic GPU manufacturers are currently accelerating their adaptation to large models. Some manufacturers have disclosed completing multimodal pre-training on 1,000-GPU clusters and aligning with international precision standards; leading cloud vendors have also announced that their self-developed AI chip clusters completed the training of significant LLM versions, achieving an effective training rate of over 97%; and some manufacturers’ compute units have adapted to hundreds of mainstream large models. In comparison, this verification independently disclosed the continuous 400-step loss curve and gradient check details, which is extremely rare in engineering verification for 2.8-trillion-parameter MoE models, providing a transparent reference benchmark for the reproducibility of domestic GPUs on the training side.

    4. Evolution Challenges from Pipeline Verification to Full-Scale Training

    Although the pipeline verification under the tailored configuration was successful, from an engineering logic perspective, this is only the first step toward full-scale pre-training. Full-scale trillion-parameter pre-training still faces numerous severe tests:

    1. Cluster Scale Expansion: Scaling from a dual-node 16-GPU setup to 1,000 or 10,000-GPU clusters is not a linear superposition. The increased hierarchy in network topology will amplify communication latency, requiring topology-aware scheduling strategies and more advanced parallel schemes (such as 3D parallelism or expert parallelism).
    2. Long-Term Stability and Fault Tolerance: Full-scale pre-training typically lasts for weeks or even months. In a 10,000-GPU cluster, hardware failures are a norm. The system must possess high-frequency checkpoint saving, automatic fault isolation, and fast recovery capabilities to ensure the model’s effective training rate.
    3. VRAM Fragmentation and Memory Leaks: As the model scale expands and training steps increase, the accumulation of minor VRAM fragments can lead to Out-Of-Memory (OOM) errors. Continuous optimization of VRAM allocators and garbage collection mechanisms is required.

    Conclusion

    The successful integration of the multimodal large model training pipeline on domestic GPUs marks a transition of the local computing infrastructure from “usable” to “effective.” This tailored verification of a 2.8-trillion-parameter MoE model not only proves the technical feasibility of domestic GPUs in complex operator adaptation and distributed communication but also demonstrates their training stability through detailed engineering data. With the continuous growth in shipments of high-end AI chips and the increase in local solution market share, the engineering gap to full-scale pre-training will gradually be bridged, laying a solid foundation for building an independent AI infrastructure ecosystem.