Trillion-Parameter MoE Multimodal Training Pipeline Validated on Self-Developed AI Chip

    A China-based lab working on self-developed AI chips has validated the training pipeline for a 2.8-trillion-parameter Mixture-of-Experts (MoE) native multimodal model, running 400 consecutive steps on a two-node, 16-card configuration without numerical overflow or abnormal interruptions. The article covers the architectural challenges of dynamic sparse attention and expert routing, the cropped model configuration and loss convergence results, operator and FSDP/All-to-All optimizations, industry signals around homegrown AI compute, and the remaining challenges for full-scale trillion-parameter pretraining.

    As large models move toward the trillion-parameter scale, Mixture-of-Experts (MoE) and native multimodal architectures have become mainstream paths for improving model capability. However, these complex architectures place unprecedented demands on underlying compute chips in terms of communication bandwidth, memory management, and operator implementation. Recently, a China-based lab working on self-developed AI chips completed training-pipeline adaptation for a 2.8-trillion-parameter MoE native multimodal model and ran 400 consecutive training steps on a two-node, 16-card configuration. The validation showed no numerical overflow or abnormal interruption, providing an important engineering reference point for the reproducibility of homegrown compute on the training side.

    1. Architectural Challenges of Trillion-Parameter MoE Multimodal Models

    The model uses a 2.8-trillion-parameter MoE architecture and has native multimodal capabilities. From the perspective of underlying compute architecture, the challenges for hardware systems are concentrated in two areas:

    1. Dynamic sparse attention mechanisms: This mechanism aims to reduce the computational complexity of long-text or multimodal feature sequences, but it leads to highly discontinuous memory access patterns. Hardware needs strong on-chip cache capacity and efficient memory access scheduling; otherwise, it can easily become a compute bottleneck.
    2. Expert routing mechanisms: The core of the MoE architecture is that only a subset of expert networks is activated during each forward pass. In multi-card distributed training, this requires frequent All-to-All communication to dispatch and return tokens across expert nodes. This irregular dynamic communication is extremely sensitive to multi-card network topology and collective communication library latency, and can easily cause memory peak spikes or communication stalls.

    2. Training Pipeline Validation with a Cropped Configuration

    To focus on validating training correctness and the loss descent trend, the test did not directly run full-scale pretraining. Instead, it used a reasonable cropped configuration.

    1. Model structure and data preparation
    The validation scheme truncated the model’s language backbone to 13 layers, retained 16 routed experts, and used a Top-8 activation strategy. At the same time, it fully retained the 27-layer vision tower and cross-modal projection module to ensure validation of multimodal alignment capability. The training data used a public image-text multimodal dataset with random initialization training.

    2. Core metrics and loss convergence
    On the two-node, 16-card configuration, 400 consecutive training steps showed good convergence:

    • Training loss: steadily converged from 8.9365 (mean of steps 21–70) to 2.1802 (mean of the last 50 steps).
    • Validation loss: decreased from 6.5297 to 4.6873.
    • Memory control: peak memory remained stable at 44.80 GiB, and the vision branch participated normally in parameter updates throughout the process.

    This kind of engineering practice—disclosing specific loss curves, gradient check details, and peak memory for an ultra-large-scale MoE multimodal model—is relatively rare in the industry and effectively demonstrates the correctness of operator implementation and pipeline scheduling.

    3. Systematically Connecting the Distributed Training Pipeline

    The engineering focus of this adaptation was not to pursue single-card peak compute, but to complete a systematic closed loop for the distributed training pipeline.

    1. Core operator completion
    For mixed attention and MoE routing mechanisms, the R&D team rewrote and optimized forward and gradient computation operators. This ensured correct gradient backpropagation under dynamic sparse patterns and avoided computational overflow.

    2. Parameter sharding and communication optimization
    To handle the massive parameter count, the system used Fully Sharded Data Parallel (FSDP) principles to finely shard model parameters, gradients, and optimizer states. Cross-node communication was handled by a mainstream collective communication library. The simplified pseudo-code below shows the distributed parameter sharding and communication logic:

    1. # Pseudo-code: distributed parameter sharding and All-to-All communication scheduling under MoE
    2. import torch.distributed as dist
    3. def moe_distributed_forward(input_tokens, router_weights, expert_weights_shard):
    4. # 1. Local routing computation
    5. routing_logits = torch.matmul(input_tokens, router_weights)
    6. topk_indices = torch.topk(routing_logits, k=8, dim=-1).indices
    7. # 2. All-to-All communication: send tokens to nodes hosting the corresponding experts
    8. dispatched_tokens = all_to_all_comm(input_tokens, topk_indices)
    9. # 3. Expert computation (local expert weights after FSDP sharding)
    10. expert_output = compute_expert(dispatched_tokens, expert_weights_shard)
    11. # 4. All-to-All communication: return computation results to the original nodes
    12. combined_output = all_to_all_reverse(expert_output, topk_indices)
    13. return combined_output

    Through these systematic engineering changes, the chip not only runs stably in multi-node, multi-card environments but also ensures efficient fusion of multimodal features and parameter updates.

    4. Industry Trend: Homegrown AI Compute Adapting to Multimodal Large Models

    From a broader industry perspective, the pace of adaptation between homegrown AI compute and large models is accelerating significantly. Public information from several leading chip vendors shows that domestic compute capabilities on the training side are being rapidly filled in:

    • A large cloud service provider has publicly stated that its fully self-developed compute cluster completed pretraining for an important large-model version, with an effective training rate of 97%, indicating that domestic clusters already have practical capability in stability and utilization.
    • Another vendor disclosed that its general-purpose compute units have successfully adapted to hundreds of mainstream large models, covering the vast majority of non-closed-source model architectures.
    • According to forecasts from industry consulting agencies, China’s high-end AI chip shipments will grow substantially in the coming years, and the market share of domestic solutions is expected to approach 90% (including cloud vendors’ self-developed accelerators). This indicates that domestic large-model training is gradually reducing its absolute dependence on a single external compute source.

    5. Challenges from Pipeline Validation to Full-Scale Training

    Although this cropped-configuration pipeline validation achieved initial results, it must be clearly recognized that this is not equivalent to successful full-scale pretraining.

    To achieve full training of a trillion-parameter MoE model, two major tests remain:

    1. Linearity of cluster scale expansion: When expanding from 16-card validation to thousand-card or even ten-thousand-card clusters, network topology complexity rises exponentially. How to maintain All-to-All communication efficiency at large cluster scale and reduce linear scaling loss is the primary challenge.
    2. Long-term stable operation and fault tolerance: In months-long training on ten-thousand-card clusters, hardware failures are normal. The system needs rapid checkpoint resume, node hot-replacement mechanisms, and high-frequency gradient anomaly monitoring to truly support commercial large-scale pretraining tasks.

    In summary, this pipeline validation of a self-developed AI chip on a 2.8-trillion-parameter MoE multimodal model is not only a demonstration of technical capability but also provides the industry with a reference engineering milestone. As distributed training frameworks continue to improve and underlying operators are continuously optimized, the foundation for homegrown compute to move toward full-scale trillion-parameter training is becoming increasingly solid.