Domestic GPU Completes Training Pipeline Verification for Trillion-Parameter Multimodal Model

    This article details the training pipeline verification of a 2.8-trillion-parameter native multimodal Mixture-of-Experts (MoE) model on a domestic GPU. Using a trimmed configuration across a dual-node, 16-GPU environment, the test successfully executed 400 training steps with stable loss convergence and no numerical overflow. We explore the engineering challenges overcome—including dynamic sparse attention, expert routing, VRAM sharding, and cross-node communication—and outline what this milestone means for the domestic AI compute ecosystem.

    I. Introduction: The Leap from Inference to Training

    In the large model industry, an easily overlooked but critical milestone is “training pipeline verification.” Simply having the model defined and capable of forward inference does not guarantee stable training in a distributed environment. For a native multimodal model with a 2.8-trillion-parameter MoE architecture, a significant engineering gap exists between a theoretically sound model structure on paper and the actual normal backpropagation of gradients and steady decline of loss. This gap involves multiple engineering hurdles: operator implementation, VRAM sharding, collective communication, and numerical stability.

    Recently, a Chinese GPU vendor’s laboratory completed such a verification. Based on a trimmed configuration, they continuously executed 400 training steps on a 2.8-trillion-parameter native multimodal MoE model in a dual-node, 16-GPU environment. The process saw no numerical overflow or abnormal interruption, and both training and validation losses showed normal convergence trends. Although this was a pipeline verification under a trimmed configuration rather than full-scale pretraining, the results hold significant reference value for the domestic compute ecosystem. It indicates that domestic GPUs have successfully navigated the most critical foundational infrastructure path for supporting complex large model training.

    II. Engineering Challenges of Trillion-Parameter MoE Multimodal Models

    2.1 Dynamic Sparse Attention: Runtime Uncertainty

    MoE-based multimodal large models often employ dynamic sparse attention mechanisms. Compared to static attention, the masks and token sets participating in computation for dynamic sparse attention are determined only at runtime. This introduces three direct engineering implications:

    • Operators cannot be pre-compiled to fixed shapes: Dynamic sparse structures require kernels to support runtime shape inference, significantly increasing development complexity.
    • VRAM allocation must adapt to sparse patterns: Activations vary greatly in shape across different sequences. Improper buffer management can easily lead to VRAM fragmentation.
    • Communication scheduling must coordinate with the dynamic computation graph: Compute loads are unpredictable, and fixed synchronization strategies can easily cause communication idle times.

    For the software stack of domestic GPUs, these highly dynamic operators often require dedicated implementation and tuning, representing a key focus and difficulty in adaptation work.

    2.2 Expert Routing: Irregular Communication and Load Balancing

    MoE models use a router to assign several experts to each token. In distributed training, experts are typically placed on different devices, and tokens must be sent to the target expert devices via collective communication. Since routing choices differ for each token, the communication volume is both irregular and difficult to estimate. This “irregular communication” causes two engineering problems:

    • Load imbalance: Some experts may be frequently selected, creating compute hotspots while others remain idle, degrading overall training throughput.
    • Communication conflicts and tail latency: Large numbers of tokens initiating routing exchanges simultaneously mean synchronization overhead is amplified by a few slow nodes, dragging down training steps.

    The model used in this verification features a trimmed configuration with 16 routed experts and Top-8 activation. Although the expert scale is smaller than the full model, it retains the complete logic of routing and expert computation, effectively exposing communication and load issues.

    2.3 Native Multimodal Architecture: Heterogeneous Gradient Paths

    A native multimodal model is not a simple concatenation of single-modal models; rather, it deeply couples the vision tower with the language backbone through cross-modal projection modules. The training process must ensure that gradients can propagate back from both the language and vision sides and correctly flow through the cross-modal projection.

    The operators of the vision tower differ significantly from language Transformer operators in computation patterns and numerical sensitivity. If the operator adaptation for either module is incomplete or numerical precision strategies are inconsistent, it can lead to vanishing gradients, gradient explosions, or interrupted parameter updates. This verification retained the complete 27-layer vision tower and confirmed that “the vision branch participates in parameter updates,” indicating that the adaptation scope has covered the complete backpropagation pipeline of the multimodal architecture.

    2.4 VRAM Management: Sharding Challenges for Trillion Parameters

    Even with an MoE architecture, storing 2.8 trillion parameters far exceeds the VRAM of a single GPU. The training phase requires storing not only parameters but also gradients, optimizer states, and activations. A standard solution is “sharding”—splitting parameters, gradients, and optimizer states across multiple compute cards by layer or parameter group, managed uniformly by the distributed runtime.

    This verification utilized a dual-node, 16-GPU configuration with a peak VRAM usage of 44.80GiB. This data indicates that the sharding strategy effectively alleviated single-card pressure under the trimmed configuration. However, it must be emphasized that VRAM performance under a trimmed configuration cannot be directly extrapolated to full-scale training. The number of layers, experts, and sequence lengths in the full model will significantly alter the VRAM consumption curve.

    III. Trimmed Configuration Verification: Testing the Full Pipeline at a Controlled Cost

    Before launching full-scale pretraining, engineering teams typically conduct an integration test using a “trimmed configuration.” The core logic is to retain the model’s key structures while appropriately reducing the number of layers, experts, and data scale. This allows training to be quickly completed on a small number of devices, verifying every aspect of the training framework. The trimmed configuration for this verification is as follows:

    1. # Training pipeline verification model configuration illustration
    2. model_config = {
    3. "architecture": "MoE_Multimodal",
    4. "language_layers": 13, # Language backbone trimmed layers
    5. "vision_layers": 27, # Full vision tower layers
    6. "num_experts": 16, # Number of routed experts
    7. "top_k": 8, # Number of activated experts per token
    8. "cross_modal_projection": True, # Retain cross-modal projection module
    9. "init": "random", # Random initialization
    10. }

    Three aspects are worth noting here:

    • Language backbone trimmed but retains layers: 13 Transformer layers are sufficient to verify the forward and backward correctness of basic operators like attention, normalization, and residual connections, while keeping training costs acceptable.
    • Experts and Top-k trimmed but retain MoE logic: The 16-expert, Top-8 activation setup retains the MoE routing and aggregation mechanisms. Compared to the full model, communication overhead is greatly reduced, but the correctness of routing computation is still tested.
    • Vision tower fully retained: This is key to this verification. By not trimming the vision tower, the complete path for multimodal data entering the model is preserved, verifying the gradient backpropagation pipeline through the cross-modal projection. Without the vision tower, the results could not prove that the multimodal training pipeline was established.

    Training with random initialization based on a medical imaging Q&A dataset also circumvents another common pitfall: when pretrained weights are not loaded, issues that arise during training are more likely to stem from the training framework itself rather than model weights. This makes result attribution much clearer.

    IV. Systematic Unblocking of the Distributed Training Pipeline

    The focus of “training pipeline verification” is not on single-card peak compute power, but on systematically unblocking the distributed training pipeline. The core adaptation work can be broken down into the following dimensions.

    4.1 Op Adaptation: Completing Forward and Gradient Paths

    Training an MoE multimodal model requires various operators, including dynamic sparse attention, Top-k routing, expert computation, and weighted aggregation. Adaptation must cover both forward and backward computations. Missing gradient implementations prevent backpropagation, and missing numerical stability handling leads to NaN/Inf interruptions. The ability to run stably for 400 continuous steps indicates that the operator gradient paths are fundamentally established.

    The illustrative code is as follows:

    1. # Illustration of routing and expert computation
    2. def moe_forward(tokens, router, experts):
    3. scores = router(tokens) # Routing scores
    4. topk_idx, topk_w = select_top_k(scores, k=8) # Top-8 expert selection
    5. outputs = []
    6. for i, idx in enumerate(topk_idx):
    7. out = experts[idx](tokens[i])
    8. outputs.append(out * topk_w[i])
    9. return sum(outputs)

    4.2 Sharding of Parameters, Gradients, and Optimizer States

    Large model training typically employs a “Fully Sharded Data Parallel” (FSDP) strategy, sharding model parameters, gradients, and optimizer states across compute cards. The basic workflow is:

    1. Before forward computation, gather the required parameters for the current layer via collective communication.
    2. After computing the layer’s gradients, synchronize and shard the gradients.
    3. The optimizer maintains the sharded optimizer states locally.
    4. After parameter updates, broadcast them again to the devices that need them.

    This strategy effectively reduces single-card VRAM requirements but places higher demands on the implementation quality and bandwidth utilization of collective communication. Sharding granularity, communication frequency, and computation-communication overlap directly impact training efficiency.

    4.3 Cross-Node Communication: Collective Communication Library Scheduling

    A dual-node, 16-GPU setup implies inter-node communication. Cross-node traffic is typically slower than intra-node traffic and is susceptible to network topology. In this verification, cross-node communication was handled by the collective communication library. The all-to-all communication pattern typical in MoE training demands high bandwidth utilization, topology awareness, and buffer reuse from the communication library.

    Running 400 continuous steps without abnormal interruption indicates that communication-related memory allocation, synchronization mechanisms, and error handling possess basic viability. However, this is merely “usable,” not “optimal.” In full-scale training, communication efficiency will directly affect overall throughput, requiring deeper performance tuning.

    4.4 Numerical Stability: Loss Curves and Gradient Checks

    The training loss converged from an average of 8.9365 (steps 21–70) to an average of 2.1802 (last 50 steps), and validation loss dropped from 6.5297 to 4.6873. These metrics convey a clear message: optimizer state updates are normal, communication did not corrupt gradients, and numerical precision strategies are effective.

    While loss curves macroscopically reflect training convergence, gradient checks verify the numerical correctness of backpropagation at a microscopic level. Gradient checks compare analytical and numerical gradients layer by layer to help locate operator implementation errors, serving as a rigorous benchmark in trainability verification. The public disclosure of such engineering details is uncommon in similar domestic GPU adaptation cases, providing a valuable reference coordinate for the industry.

    V. Result Boundaries: Pipeline Verification vs. Full-Scale Pretraining

    • Scale Boundary: The trimmed configuration compresses the language backbone to 13 layers, whereas a full-scale trillion-parameter model has many more layers. The 44.80GiB VRAM peak is only the result for 16 GPUs and does not apply to full scale.
    • Data Boundary: Random initialization training based on a medical imaging Q&A dataset differs by orders of magnitude in scale and distribution from real pretraining corpora, making it impossible to judge the model’s final performance based on this.
    • Duration Boundary: 400 steps of training is a “short trial run” in deep learning, used to confirm pipeline viability. Actual pretraining typically requires hundreds of thousands of steps. Long-term stability, checkpoint recovery, and fault tolerance have not yet been tested.
    • Capability Boundary: This verification focuses more on “training functionality” than “model capability.” The vendor explicitly stated that full-scale pretraining will be conducted separately, which aligns with engineering principles.

    Therefore, when evaluating this event, it should be defined as an early verification that “a domestic GPU can train a 2.8-trillion-parameter MoE multimodal model architecture,” rather than “has already completed trillion-parameter model training.”

    VI. Domestic Compute Adaptation Enters the Cluster Verification Phase

    Recent public information indicates intensive progress among Chinese AI chip vendors in large model training adaptation:

    • One vendor disclosed that multiple leading large model enterprises have used its 1,000-GPU clusters to complete multimodal pretraining and reinforcement learning tasks, with precision aligning with mainstream international products.
    • Another chip vendor stated in an earnings call that its training side has covered multiple mainstream large model series and is accelerating expansion to 1,000 and 10,000-GPU cluster scenarios.
    • A major cloud provider announced that an all-domestic AI cluster has completed training for important model versions, achieving an effective training rate of 97%.
    • Another vendor announced that its general-purpose accelerator cards have adapted to hundreds of mainstream large models, covering the vast majority of non-closed-source models.

    This information points to a common trend: Chinese compute power is evolving from “capable of inference” to “capable of training,” and upgrading from “single-card usable” to “cluster usable.” However, public disclosures that simultaneously provide engineering details like loss curves, VRAM peaks, and validation losses remain rare. Transparent technical information disclosure holds significant reference value for the industry to assess adaptation maturity and choose technical routes.

    At the ecosystem collaboration level, cloud platforms like Baidu AI Cloud continue to improve heterogeneous compute scheduling, model services, and development toolchains, providing developers with diverse computing environment choices and lowering adaptation costs caused by underlying hardware differences. This two-way synergy between cloud platforms and domestic chips is a key foundation for the healthy development of the compute ecosystem.

    VII. Next Steps: From Pipeline Verification to Full-Scale Training

    Moving from this pipeline verification to actual full-scale pretraining requires passing at least four more gateways.

    Gateway Specific Challenges
    Scalability Scaling from 16 GPUs to 1,000/10,000 GPUs causes a sharp rise in communication ratio. It is necessary to verify communication efficiency and algorithm convergence under different network topologies.
    Long-term Stability Scaling from 400 steps to hundreds of thousands of steps requires effective checkpointing, fault detection, and automatic recovery mechanisms.
    Performance Optimization Requires deep optimization such as operator fusion, communication-computation overlap, load balancing, and VRAM reuse.
    Ecosystem Maturity Supporting capabilities like compilers, debugging tools, performance monitoring, and data loading determine development and debugging efficiency.

    These four gateways are essentially a test of the “engineering maturity” of the domestic GPU software stack. Hardware parameters are only one aspect; whether developers can debug, optimize, and deploy as efficiently as they do with mature toolchains is the core determinant of ecosystem growth.

    VIII. Conclusion

    The competition in the era of large models is not just about chip compute power, but also about software stacks and engineering capabilities. This training pipeline verification may seem like a “small-scale trial run,” but the foundational capabilities it verified—operator adaptation, distributed sharding, cross-node communication, and numerical stability—are the base of trillion-parameter model training.

    Domestic GPUs have proven they can “run through” this complex pipeline. What they need to prove next is that they can “run steadily” and “run fast” at larger scales, over longer cycles, and under higher intensity. For the entire domestic compute ecosystem, this is both a challenge and a definitive direction.