Adapting Domestic AI Accelerators for Trillion-Parameter MoE Multimodal Model Training Pipelines

    This article details the practice of adapting domestic AI accelerators for training a 2.8 trillion-parameter MoE multimodal model. It explores the core challenges of MoE architectures, including dynamic sparse attention complexity, expert routing communication overhead, and memory management limits. The engineering implementation spans operator development, FSDP2 parallel strategies, and communication libraries. Finally, it analyzes training health metrics such as loss convergence and numerical stability, offering a rational perspective on pipeline validation versus full-scale pre-training.

    Adapting Domestic AI Accelerators for Trillion-Parameter MoE Multimodal Model Training Pipelines

    1. Background: Domestic GPU Training Adaptation Enters the Deep End

    In recent years, the pace of adapting domestic AI chips for large model training has significantly accelerated. Based on public information, several domestic chip manufacturers have disclosed training practices involving thousand-card and even ten-thousand-card clusters. Some have supported leading large model enterprises in completing multimodal pre-training and reinforcement learning, aligning precision with mainstream international products. Others have focused on adapting mainstream open-source model series for training, extending to larger-scale cluster scenarios. There are also manufacturers claiming their accelerator cards have adapted to hundreds of mainstream large models, covering the vast majority of non-closed-source models.

    In this context, a recent development caught attention: a domestic GPU manufacturer’s lab completed the training pipeline adaptation for a 2.8 trillion-parameter native multimodal model based on the MoE architecture. They completed 400 steps of training validation on a dual-node, 16-card configuration without numerical overflow or abnormal interruptions. The value of this case lies not in its scale but in its granularity of disclosure—loss curves, gradient checks, and peak memory were fully published. This is rare among similar adaptation disclosures and provides a referenceable sample for the industry to evaluate the real training capabilities of domestic computing power.

    2. Why Trillion-Parameter MoE Multimodal Models are a “Tough Nut to Crack”

    From an architectural perspective, these models present three major challenges to training systems:

    1. Operator complexity of dynamic sparse attention. Unlike traditional dense attention, mixed attention mechanisms require handling irregular computation paths during forward and backward propagation. This places extremely high demands on the correctness and efficiency of operator implementations. GPU manufacturers must implement forward and gradient calculations for these new operators, as any gradient calculation error could lead to non-converging loss or numerical overflow.

    2. Communication pressure from expert routing. In MoE architectures, tokens need to be dynamically routed to different experts. Under the Top-K activation strategy, All-to-All communication across cards and nodes increases significantly. The bandwidth utilization and stability of multi-card communication libraries (such as various collective communication libraries) directly determine training throughput.

    3. Extreme challenges in memory management. Trillion-level parameters mean that parameters, gradients, and optimizer states far exceed single-card memory capacity. They must rely on Fully Sharded Data Parallel (FSDP-like solutions) for fine-grained sharding management. In this validation, the peak memory was controlled at 44.80GiB, indicating that the sharding strategy and activation recomputation optimizations were well-coordinated.

    3. Engineering Implementation: End-to-End Pipeline Matters More Than Single-Card Peaks

    The core approach of this adaptation is worth noting: the focus was not on pursuing single-card computing peaks, but on systematically connecting the distributed training pipeline. The technical points can be summarized into three layers:

    • Operator Layer: Implemented forward and gradient calculations for mixed attention and MoE-related operators to ensure numerical correctness.
    • Parallel Strategy Layer: Sharded parameters, gradients, and optimizer states based on FSDP2 to reduce single-card memory usage.
    • Communication Layer: Used a self-developed collective communication library for cross-node communication, ensuring communication efficiency during expert routing scenarios.

    It should be noted that this validation used a cropped configuration: the language backbone was truncated to 13 layers with 16 routing experts (Top-8 activation), but it retained the complete 27-layer visual tower and cross-modal projection module, training from random initialization based on a public medical image-text dataset. This “cropped backbone, retained multimodal pathway” design is highly pragmatic—it reduces validation costs while genuinely testing whether the cross-modal gradient flow is smooth (during training, the visual branch parameters were indeed updated, proving the end-to-end pipeline was connected).

    4. Data Interpretation: How to Determine if the Training Pipeline is Healthy

    The persuasiveness of engineering validation ultimately relies on data. Key metrics disclosed this time include: training loss converged from 8.9365 (average of steps 21-70) to 2.1802 (average of the last 50 steps), and validation set loss dropped from 6.5297 to 4.6873. For developers, evaluating similar validations can follow this checklist:

    1. Loss trends: Whether training and validation losses decrease synchronously and smoothly, without spikes or divergence.
    2. Numerical stability: 400 steps of continuous operation without overflow or abnormal interruptions indicate that the mixed precision strategy and gradient scaling configuration are reasonable.
    3. Multimodal participation: Whether the visual branch gradients backpropagate normally and update parameters.
    4. Resource watermarks: Whether the peak memory leaves a safe margin.

    5. Rational View: Pipeline Validation Does Not Equal Full-Scale Pre-training

    It is important to recognize that this remains a functional and trend validation under a cropped configuration. The purpose is to test the availability of the training pipeline and loss convergence behavior; full-scale pre-training requires separate efforts. Moving from 400 steps to hundreds of thousands of steps of full training requires crossing a series of engineering hurdles, including checkpoint fault tolerance, long-term stability, cluster scheduling, and data pipelines.

    However, from an industry perspective, such disclosures are of great significance. According to industry research institutions, the shipment of high-end AI chips in the Chinese market is projected to reach about 5 million units in 2026, a year-on-year increase of 83%, with local solutions accounting for nearly 90%. As domestic computing power transitions from “capable of inference” to “capable of training,” transparent, reproducible validation cases with complete engineering details will become the cornerstone of building ecosystem trust. For enterprises and developers, when evaluating domestic computing power platforms, they should shift from “paper specs” to a comprehensive judgment across three dimensions: “pipeline integrity, loss convergence evidence, and long-term stability records.” This marks the maturity of computing power selection.