Trillion-Parameter MoE Training on Domestic GPUs: Distributed Training Insights from Pruned Configurations

    A recent successful validation of a 2.8-trillion-parameter Mixture of Experts (MoE) multimodal model on a 16-GPU domestic cluster marks a significant milestone for locally-produced AI hardware. This article examines the engineering challenges of training such massive MoE models, including expert routing communication overhead, dynamic sparse attention complexity, and multimodal synchronization. It explores the pragmatic methodology of using pruned configurations to validate training pipelines cost-effectively and dissects critical distributed training stack technologies, from custom operator gradients to FSDP2 memory management. Finally, it outlines the remaining engineering hurdles required to transition from link validation to full-scale, long-term training.

    I. Background: Domestic GPU Training Adaptation Enters the Deep Water

    Recently, a domestic GPU vendor’s laboratory announced the successful adaptation of a training pipeline for a 2.8-trillion-parameter native multimodal large model based on the Mixture of Experts (MoE) architecture. The validation was completed on a dual-node, 16-GPU configuration, running 400 consecutive training steps without any numerical overflow or abnormal interruptions. This milestone is noteworthy not just because of the massive parameter scale, but because the model integrates dynamic sparse attention with expert routing mechanisms, demanding far higher engineering rigor for multi-card communication, memory management, and operator completeness than dense models.

    Simultaneously, the overall pace of domestic training-side adaptation is accelerating. Multiple GPU and accelerator vendors have disclosed cluster-level validation results for multimodal pre-training and reinforcement learning scenarios. For instance, Baidu announced at its Create conference that a fully domestic training cluster achieved a 97% effective training rate. It is fair to say that domestic AI compute is transitioning from “inference capable” to “training capable,” and from “single-card run” to “cluster stable.”

    II. Why is the Training Threshold for Trillion-Parameter MoE Multimodal Models So High?

    To understand the value of this validation, one must first recognize the technical challenges of such models.

    1. Communication Pressure from MoE Expert Routing

    The MoE architecture uses a gating network to dynamically assign each token to several experts (e.g., Top-8 activation), meaning:

    • Every forward pass generates cross-device All-to-All communication, where tokens are “sent” to the cards hosting the corresponding experts and “returned” after computation.
    • When expert loads are imbalanced, some cards become communication and computation hotspots, dragging down overall throughput.
    • Routing decisions fluctuate drastically in the early stages of training, leading to large gradient variance and demanding strict mixed-precision numerical stability.

    2. Implementation Complexity of Dynamic Sparse Attention

    Native multimodal models typically employ a mixed attention design—where the visual tower and language backbone may use different granularities of attention mechanisms (e.g., a mix of local window attention and global sparse attention). These operators often lack mature open-source implementations, requiring the training framework to complete both forward and backward gradient paths. Any error in gradient derivation will result in loss divergence.

    3. Synchronization of Multimodal Data Flows

    The visual encoder, cross-modal projection module, and language backbone need coordinated parameter updates. This requires distributed strategies to cover heterogeneous modules and ensure the visual branch actively participates in gradient updates, rather than just performing forward feature extraction.

    III. Pruned Configuration Validation: A Pragmatic Engineering Methodology

    This validation did not directly launch full-scale pre-training of the trillion-parameter model; instead, it adopted a pruned configuration:

    • Language backbone: Truncated to 13 layers, with 16 routing experts (Top-8 activation), retaining the core MoE structure.
    • Visual side: Fully retained the 27-layer visual tower and cross-modal projection module.
    • Data: Randomly initialized training based on publicly available visual-question-answering datasets.

    This approach of “structural fidelity, scale pruning” is quite common in large model engineering. Its value lies in:

    Verifying pipeline integrity at minimal cost. A full-scale training run can easily take weeks. If an operator gradient is flawed, it often takes days to manifest as an anomaly in the loss curve. Under a pruned configuration, the convergence trend of the loss curve can provide feedback within hours.

    Retaining real communication and memory pressure. Although the number of layers is reduced, the “tough nuts to crack”—All-to-All communication, expert routing, and cross-modal synchronization—remain fully present, exposing almost all pipeline-level issues.

    Test data showed that the training loss converged from 8.9365 (early average) to 2.1802 (late average), and the validation loss dropped from 6.5297 to 4.6873. The peak memory usage was 44.80GiB, and the visual branch was confirmed to be participating in parameter updates. This dataset constitutes a reproducible engineering benchmark: other teams can use a similar configuration for comparative validation of their own training stacks.

    IV. Key Technical Breakdown of the Distributed Training Stack

    From an engineering perspective, the focus of this adaptation was not on single-card peak compute power, but on the systematic connection of the distributed training pipeline, primarily reflected in three layers.

    1. Operator Layer: Completing Forward/Gradient Implementation for Mixed Attention and MoE

    Custom operators must implement both forward computation and backward gradients. Taking MoE routing as an example, the simplified gradient logic is roughly as follows:

    1. # Pseudocode: Key points for gradient backpropagation in Top-K routing
    2. gate_scores = softmax(logits, dim=-1)
    3. topk_idx = gate_scores.topk(k=8)
    4. # Forward: tokens are dispatched to experts based on topk_idx
    5. # Backward: gating score gradient = expert output gradient @ expert output,
    6. # the non-differentiable part of routing itself is backpropagated
    7. # through the softmax gradient chain of gate_scores
    8. grad_logits = autograd_through_softmax(gate_scores, expert_grads)

    Any non-differentiable sparsification operation (like the topk index) requires a differentiable proxy path to backpropagate gradients, demanding rigorous operator implementation.

    2. Memory Layer: Full Sharding Management Based on FSDP2

    FSDP2 shards parameters, gradients, and optimizer states, spreading the memory overhead originally concentrated on a single card across the entire cluster. For a trillion-parameter model, optimizer states (such as Adam’s first and second moments) are typically multiples of the parameter count. Without sharding, it is nearly impossible to fit them within a limited number of cards. The 44.80GiB peak memory indicates that the sharding strategy and activation management achieved a good balance.

    3. Communication Layer: Cross-Node Collective Communication Optimization

    Cross-node communication is handled by an in-house, NCCL-like communication library. In a dual-node, 16-GPU configuration, inter-node bandwidth is often the bottleneck. Traffic scheduling and overlapping computation optimizations must be applied to All-to-All communications; otherwise, the communication overhead of expert routing would consume the computational gains.

    V. From Pipeline Validation to Full-Scale Training: What Remains?

    It is important to recognize that this remains a pipeline validation under a pruned configuration, which is not equivalent to full pre-training. To transition from validation to the actual delivery of training capabilities, several hurdles remain:

    1. Cluster Scale Expansion: Scaling from 16 cards to thousands or tens of thousands of cards increases the failure rate linearly. This requires system engineering capabilities such as checkpoint resumption, elastic scheduling, and slow node eviction.
    2. Long-Term Stability: A few hundred steps without interruption is a different magnitude of test than continuous training over several weeks. Issues like numerical precision drift and hidden communication degradation will surface over longer time scales.
    3. Effective Training Rate: The economics of full-scale training depend on the proportion of effective training time, which necessitates the mature support of observability infrastructure like monitoring, alerting, and logging services.

    VI. Conclusion

    Industry consulting firms predict a significant increase in domestic high-end AI chip shipments by 2026, with local solutions continuously gaining market share. Against this backdrop, the disclosed 400-step continuous training run, along with loss curves and gradient check details, provides a comparable and reproducible engineering reference point for domestic GPU training capabilities. For developers evaluating the domestic training ecosystem, rather than focusing on marketed parameter scales, it is more insightful to look at these kinds of link validations with complete experimental details—they are the true signals of a maturing distributed training stack.