Trillion-Parameter Model Training on Chinese AI Accelerators: An FSDP2 Adaptation Case
Adapting a 2.8-trillion-parameter multimodal model to a Chinese-developed AI computing platform requires more than sufficient compute capacity. This article examines the hardware, software stack, FSDP2 sharding, and end-to-end training workflow involved, along with multimodal data handling and the practical criteria teams should evaluate when choosing a training platform.
1. Background: The Challenges of Trillion-Parameter Model Training
The recent open-source release of a flagship multimodal model with 2.8 trillion parameters has attracted considerable attention. Training a model of this size is not simply a matter of getting it to run. It is a systems engineering task spanning hardware, the software stack, parallelization strategies, and workload scheduling.
A single accelerator cannot hold all the model parameters, optimizer states, and activations in device memory. Training therefore requires a large cluster and carefully designed distributed execution.
Chinese-developed AI computing platforms are also advancing their support for large-model workloads. One vendor reported completing training adaptation for this trillion-parameter multimodal model using its flagship accelerator for both training and inference, together with an in-house software stack. The work established a native FSDP2 multimodal training path covering model loading, shard scheduling, and gradient synchronization.
This case provides a useful perspective on the general engineering approach to adapting large-model training to a new hardware platform.
2. Core Components of Training Adaptation
2.1 Hardware: Accelerators for Both Training and Inference
Modern AI accelerators often need to support both training and inference. Training places particular demands on three hardware capabilities:
- High-bandwidth device memory: Even with sharding, each device must hold substantial portions of the model parameters and optimizer states. Memory bandwidth directly affects computational efficiency.
- High-speed interconnects: Synchronizing gradients across devices and nodes requires high-bandwidth, low-latency communication, with support for collective operations such as AllReduce, AllGather, and ReduceScatter.
- Sufficient compute density: Transformer workloads are dominated by matrix multiplication, making both peak tensor compute capacity and its effective utilization important.
A unified training-and-inference design means the same hardware and software stack must support forward passes, backward passes, and optimizer updates, as well as high-throughput inference serving. This places additional demands on the abstractions provided by the software stack.
2.2 Software: From Operators to Distributed Training Frameworks
An in-house software stack is central to adapting large models to a Chinese-developed accelerator platform. A complete stack typically includes:
- Device drivers and runtime: Manage devices, allocate memory, and dispatch tasks.
- Operator libraries and compiler optimizations: Provide efficient implementations of frequently used operations, including attention, LayerNorm, and optimizer updates, while using graph compilation to fuse operators.
- Communication libraries: Implement NCCL-like collective communication semantics for exchanging data across devices and nodes.
- Distributed training framework integration: Provide compatibility with mainstream training framework interfaces, reducing the effort required to migrate model code.
The goal is to let high-level model definitions run on different hardware with minimal changes while preserving numerical accuracy and training stability.
2.3 FSDP2: The Evolution of Fully Sharded Data Parallelism
Fully Sharded Data Parallelism, or FSDP, is widely used for large-model training. It distributes model parameters, gradients, and optimizer states across a data-parallel group.
During forward and backward computation, parameters are temporarily gathered as needed through AllGather. Once the relevant computation is complete, the gathered copies can be released. This substantially reduces memory usage per device.
Compared with the first generation, FSDP2 uses per-parameter sharding rather than combining parameters into flattened buffers. This provides finer-grained control over sharding and makes integration with features such as mixed precision and quantized training more natural. It also improves memory management and visibility when debugging.
For multimodal models, sharding must account for the large differences in parameter count between modality encoders and the language-model backbone. This often requires detailed configuration—for example, smaller sharding units for the vision encoder or a separate data-parallel group.
2.4 Completing the End-to-End Training Workflow
Training adaptation typically needs to cover four connected stages.
1. Model Loading
Trillion-parameter checkpoints must be loaded in shards to avoid creating a complete model copy in CPU memory. A typical approach creates the model structure from metadata first, then loads tensors as needed.
The following code illustrates the workflow:
# Illustration: a typical sharded model initialization workflowwith torch.device("meta"):model = build_model(config) # Build the model structure on the meta device firstmodel = apply_fsdp2(model, sharding_strategy="FULL_SHARD")model.load_sharded_state_dict(ckpt_dir) # Load weights in shards
2. Shard Scheduling
The parameter size and computational characteristics of each module determine which layers should use full sharding, replication, or gradient sharding. These decisions balance memory consumption against communication overhead.
3. Gradient Synchronization
Overlapping gradient reduction with backward computation is a key optimization for training throughput. Effective communication-computation overlap reduces the time spent waiting for synchronization.
4. Checkpointing and Fault Recovery
The training system must support saving and restoring sharded checkpoints. Combined with elastic scheduling, this enables training to resume quickly after failures.
3. Special Considerations for Multimodal Training
Multimodal training introduces additional requirements beyond those of text-only models.
- Heterogeneous data pipelines: Images, videos, and text require different preprocessing and tokenization workflows. Parallel, pipelined data loading is necessary to prevent input processing from becoming a bottleneck.
- Multi-stage training: Training commonly begins with modality encoders and alignment layers before moving to joint training. The trainable parameters and learning-rate strategies differ between stages.
- Greater activation memory pressure: Visual inputs can produce longer sequences, increasing activation memory requirements. Activation checkpointing and sequence parallelism help control peak memory usage.
These factors must be considered alongside parameter sharding. Reducing model-state memory alone does not address all the resource demands of multimodal training.
4. Implications for the Industry
This case highlights two trends in large-model training infrastructure.
First, hardware–software co-design is becoming a central competitive factor. Adding more compute capacity is not enough to support trillion-parameter training effectively. The maturity of the software stack determines how much of that capacity can actually be used.
Second, training adaptation is becoming more standardized. Compatibility with mainstream distributed training interfaces and open-source model definitions can significantly reduce the effort required to bring leading models to new hardware platforms.
For teams planning large-model training, platform evaluation should prioritize distributed framework compatibility, communication efficiency, fault recovery, and numerical stability over long training runs. These factors often have a greater impact on training efficiency and successful completion than peak compute specifications alone.
