Validating a Training Pipeline for a Trillion-Parameter MoE Model on Chinese-Made GPUs

    This article describes a reduced-configuration training pipeline validation of a native multimodal MoE model with 2.8 trillion parameters. The run used two machines with 16 Chinese-made GPUs in total. It covers the model reductions, the FSDP-based distributed setup, loss trends over 400 training steps, peak memory usage, and the remaining challenges before full-scale pretraining.

    1. Industry Background and Technical Challenges

    As large models move into the multimodal and ultra-large parameter era, native multimodal MoE (Mixture of Experts) architectures are gradually becoming mainstream. Such models typically have trillions of parameters. They balance computational efficiency with model capacity by dynamically activating a subset of expert networks. However, at the 2.8-trillion-parameter scale, the dynamic sparse attention and expert routing mechanisms place very high demands on multi-GPU communication bandwidth and memory management.

    Adoption of Chinese-made high-end AI chips for training has accelerated in recent years. Industry consultancies expect shipments of high-end AI chips in the domestic market to keep growing rapidly, with local solutions taking an increasing share. Some leading cloud providers, such as Baidu AI Cloud, have used their in-house AI chips to efficiently train important versions of multimodal large models, with a very high effective training rate. Overall, Chinese-made GPUs are gradually aligning with mainstream international products in clusters of a thousand GPUs or more, and even ten thousand GPUs. For trillion-parameter MoE models, however, operator adaptation, communication topology optimization, and memory fragmentation management remain significant engineering gaps that must be closed.

    2. Engineering Design and Reduction Strategy for Training Pipeline Validation

    Running full pretraining directly on very large models is extremely costly and risky. The industry therefore commonly uses a “reduced configuration plus pipeline validation” approach to check training functionality and loss trends. Recently, a Chinese-made GPU lab disclosed a pipeline validation effort for a native multimodal MoE model with 2.8 trillion parameters. Its test setup and reduction strategy offer useful reference points.

    1. Model Architecture Reduction and Dataset Selection

    To complete validation on a limited setup of two machines with 16 GPUs in total, the research team made targeted reductions to the model backbone:

    • Language backbone: Truncated to 13 Transformer layers, retaining 16 routed experts with a Top-8 activation strategy.
    • Vision and cross-modal modules: Fully retained the 27-layer vision tower and the cross-modal projection module, preserving the completeness of multimodal feature extraction and alignment.
    • Dataset and initialization: Training ran from random initialization on a general-purpose open-source image-text VQA (visual question answering) dataset.

    This reduction keeps the core MoE routing logic and multimodal feature interaction. It also substantially lowers the compute required per step, so a mid-scale cluster can run the test.

    2. Distributed Training and Communication Architecture

    The focus of this adaptation was not peak single-GPU performance. It was making the distributed training pipeline work end to end. The team implemented the forward and backward computation for the hybrid attention mechanism and the MoE operators, and introduced Fully Sharded Data Parallel (FSDP).

    1. # Pseudocode example: core logic of Fully Sharded Data Parallel (FSDP)
    2. import torch.distributed as dist
    3. def initialize_fsdp(model, rank, world_size):
    4. # 1. Shard parameters, gradients, and optimizer states
    5. shard_params_and_gradients(model, rank, world_size)
    6. # 2. Register forward and backward hooks to implement All-Gather and Reduce-Scatter
    7. register_fsdp_hooks(model, rank, world_size)
    8. # 3. Rely on a general-purpose collective communication library for cross-node communication
    9. dist.init_process_group(backend='nccl_like_comm_lib')

    With FSDP, the model’s large parameter state is evenly sharded across 16 GPUs, which eases the single-GPU memory bottleneck. A general-purpose collective communication library handles cross-node data synchronization, which keeps data transfer between the two machines efficient.

    3. Core Training Metrics and Convergence Analysis

    The validation run completed 400 consecutive training steps without numerical overflow or unexpected interruptions. The team disclosed loss curves and gradient check details, which is notably uncommon in current engineering practice.

    • Training loss: Fell steadily from a mean of 8.9365 over steps 21 to 70 to a mean of 2.1802 over the final 50 steps.
    • Validation loss: Dropped from an initial 6.5297 to 4.6873.

    The smooth decline of the loss curves indicates that, even under the reduced configuration, the expert routing mechanism works effectively. The vision branch also takes part in parameter updates, and multimodal features fuse effectively.

    2. Memory Usage and Stability

    In the two-machine, 16-GPU configuration, peak memory usage during the test was 44.80 GiB. Even after reduction, the activation memory and optimizer states of a 2.8-trillion-parameter-scale model remain large. This peak indicates that the FSDP strategy and the underlying memory management work well. The run had no overflow or interruption throughout, which confirms the numerical stability of the underlying MoE and hybrid attention operator implementations.

    4. From Pipeline Validation to Full-Scale Pretraining

    The 400-step continuous training run and gradient check results provide a solid engineering milestone for the reproducibility of Chinese-made GPUs on the training side. A pipeline validation under a reduced configuration, however, is not equivalent to full-scale pretraining.

    From an engineering perspective, closing this gap still requires addressing the following challenges:

    1. Cluster scaling and communication bottlenecks: Scaling the model to the full 2.8 trillion parameters would require growing the cluster from two machines with 16 GPUs to thousands or even tens of thousands of GPUs. At that scale, network topology heterogeneity, bandwidth attenuation across switches, and the tree-structured latency of collective communication would become the main factors limiting training efficiency.
    2. Long-running stability and fault tolerance: Large clusters that run for long periods will inevitably encounter hardware failures. Full-scale pretraining