Training a 2.8-Trillion-Parameter Multimodal Model on Chinese-Developed AI Compute: A Technical Overview

    This article explains how a Chinese AI chip vendor adapted its integrated training and inference accelerator and in-house software stack to train an open-source 2.8-trillion-parameter flagship multimodal large language model. It covers why training at this scale is much harder than inference, how native FSDP2 multimodal training works, and how the training pipeline runs from model loading and shard scheduling to gradient synchronization. It also outlines the adaptation method a software stack needs to support trillion-parameter training, including operator coverage, compiler integration, scaling validation, and fault tolerance. Readers get a practical view of the compute, framework, and infrastructure layers involved in large-scale model training.

    Recently, a Chinese AI chip vendor announced that it had adapted an open-source 2.8-trillion-parameter flagship multimodal model for training. The work used the vendor’s integrated training and inference AI accelerator card and its in-house software stack. The team built a native FSDP2 multimodal training path and connected the full training workflow, from model loading and shard scheduling to gradient synchronization. The milestone matters for China’s compute ecosystem because it shows that domestic hardware and software stacks are beginning to handle training at the trillion-parameter scale. This article uses the case to review the key technologies and adaptation methods behind trillion-parameter multimodal training.

    1. Why Trillion-Parameter Training Is a Stress Test for the Compute Stack

    Training a 2.8-trillion-parameter model is a different order of engineering problem than inference. Inference only loads the weights and runs a forward pass. Training must hold the weights, gradients, and optimizer states in limited device memory, then run backpropagation and parameter updates. With mixed-precision training, the memory footprint per parameter is typically several times the size of the weights alone. FP16 weights, FP32 master weights, and FP32 momentum and variance optimizer states add up. A single full copy of this state already exceeds the memory capacity of one accelerator. Trillion-parameter training therefore depends on multi-dimensional parallelism and fine-grained memory sharding. It places heavy demands on chip interconnect bandwidth, compute throughput, and the compiler optimization capabilities of the software stack.

    1. FSDP2: The Evolution of Fully Sharded Data Parallelism

    The core of this adaptation is a native FSDP2 training path. Fully Sharded Data Parallel (FSDP) shards model parameters, gradients, and optimizer states across compute devices. During the forward and backward passes, it gathers parameters temporarily with all-gather operations when they are needed, then releases them right after computation. This sharply reduces peak memory use. Compared with earlier versions, which relied on flattened parameter concatenation, FSDP2 shards each parameter individually using DTensor semantics. It offers several advantages:

    1. Finer sharding granularity. Sharding strategies can be set precisely for each layer or submodule, which makes it easier to combine them with techniques such as gradient checkpointing and CPU offload for tuning.
    2. More natural support for mixed-precision and low-precision training. Sharded parameters can participate in all-gather directly at the specified precision.
    3. Smoother integration with graph compilation, such as torch.compile. This helps with operator fusion and memory planning on heterogeneous backends.

    Multimodal models typically consist of a vision encoder, a modality alignment module, and a large language model backbone. These components differ widely in parameter count and activation characteristics. FSDP2 lets each submodule use its own sharding strategy. For example, the vision tower can use more aggressive sharding to save memory, while the backbone can combine sharding with pipeline parallelism. This balances throughput and memory use.

    1. The Full Pipeline from Model Loading to Gradient Synchronization

    A successful large-scale training adaptation requires several key stages to work together:

    1. Model loading and weight conversion. Checkpoints for trillion-parameter models are usually stored in sharded formats. The adaptation must first confirm that weight loading, format validation, and precision conversion run correctly on the target hardware. A single incorrect tensor layout can cause training to diverge.

    2. Shard scheduling and device mapping. The system must derive a sharding plan from the cluster topology, including the number of nodes, accelerators per node, and interconnect tiers. It maps parameter shards, optimizer shards, and data shards onto devices. It also accounts for the communication topology of heterogeneous interconnects, keeping high-frequency communication within high-bandwidth domains where possible.

    3. Gradient synchronization. After backpropagation, reduce-scatter reduces gradients into sharded form and distributes them to the replicas. Each device then updates its local shard with the optimizer. Overlapping communication with computation, such as prefetching in the forward pass and overlapping backward computation with reduction, largely determines training efficiency. The software stack must provide asynchronous communication and stream scheduling at the low level.

    4. Multimodal data pipeline. Multimodal training involves heterogeneous workloads, including image preprocessing, tokenization, and sequence packing. These tasks typically run in parallel on the CPU side through asynchronous data pipelines, so that data supply does not become a bottleneck for the GPU-side compute. Samples from different modalities also vary in length. Dynamic padding and load-balanced sampling reduce wasted compute.

    5. Adaptation Method: How a Domestic Software Stack Supports LLM Training

    From an engineering perspective, a new hardware and software stack usually follows this path to run trillion-parameter training:

    1. Operator and kernel coverage. Implement the high-frequency operators used in training on the in-house architecture and verify their numerical accuracy. These include attention kernels (such as FlashAttention-style implementations), fused normalization, and fused optimizer updates.
    2. Compiler-layer adaptation. Map graph capture, automatic differentiation, and sharding primitives from mainstream training frameworks to the underlying runtime. This ensures that abstractions such as DTensor and parameter sharding work correctly on the hardware.
    3. Validation from small to large scale. First, verify that loss curves on a single multi-accelerator machine converge consistently with a reference implementation. Then extend to multiple machines, and monitor metrics such as gradient norm and throughput (MFU) to confirm scaling efficiency.
    4. Stability engineering. Training runs at the scale of 10,000 accelerators can last for weeks. The stack needs fast checkpoint saving and recovery, automatic removal of faulty accelerators, and automatic job restart. Without these fault-tolerance features, hardware failures can significantly reduce effective training time.

    5. Implications for the Industry Ecosystem and Outlook

    Completing trillion-parameter multimodal training on Chinese-developed compute validates more than the performance of a single chip. It also demonstrates how well the full stack works together, from chip and interconnect to compiler, framework, and model. For enterprise users, this suggests that compute supply for LLM training is becoming more diverse. On cloud platforms, supporting capabilities such as heterogeneous compute resource pools, container scheduling, object storage and high-performance parallel file systems, and monitoring, alerting, and logging services work alongside traditional GPU compute to form the infrastructure for LLM training. As more open-source models are adapted and validated on domestic hardware and software stacks, the choice of training compute will grow, and falling training and inference costs may speed up the adoption of large models across industries. For developers, understanding sharded parallelism techniques such as FSDP2, including their principles and practical details, is a core skill for efficient large-model training on any compute platform.