Ultra-Large Model Training on Heterogeneous AI Compute: A 2.8T-Parameter Open-Source Multimodal Case Study
This article reviews the engineering requirements for adapting ultra-large open-source models to heterogeneous AI compute. It uses a case in which an AI chip vendor completed training adaptation for a 2.8-trillion-parameter open-source multimodal model on its flagship training-and-inference accelerator card and unified software stack, using a native fully sharded data parallel multimodal training path. The discussion covers memory, communication, and software-stack challenges; native multimodal path design; FSDP2-based sharding; and the three stages of model loading, sharding scheduling, and gradient synchronization. It concludes with implications for building large-model training capabilities on diverse compute.
In recent years, the parameter scale of ultra-large open-source models has continued to rise, moving from hundreds of billions to trillions. When a model reaches the 2.8-trillion-parameter level, a single device—or even a single machine with multiple GPUs—can hardly carry its training requirements. How to complete training adaptation for such models on heterogeneous AI compute has become an engineering challenge of widespread interest.
Recently, an AI chip vendor announced that, using its flagship training-and-inference accelerator card and self-developed unified software stack, it had completed training adaptation for a 2.8-trillion-parameter open-source multimodal flagship model. It built a native fully sharded data parallel multimodal training path and connected the complete training chain from model loading and sharding scheduling to gradient synchronization. This progress provides a valuable practical reference for domestic AI compute supporting large-model training. This article uses the case to review the core technical points of ultra-large model training adaptation.
1. Core Challenges in Ultra-Large Model Training
At the trillion-parameter scale, training faces three main challenges:
- Memory bottleneck: Model parameters, gradients, and optimizer states typically require a memory footprint several tens of times the parameter count. In common mixed-precision training, for example, each parameter must store an FP16 weight, an FP16 gradient, an FP32 master weight, and optimizer states such as momentum and variance. The memory footprint far exceeds a single card’s capacity.
- Communication bottleneck: Under data parallelism, each step requires global gradient synchronization. Tensor parallelism and pipeline parallelism introduce higher-frequency activation transfers, and communication bandwidth often becomes the bottleneck for scaling efficiency.
- Software-stack compatibility: Mainstream open-source models are usually built on mainstream deep learning frameworks and operator libraries. Non-mainstream hardware needs complete operator coverage, compilation optimization, and framework adaptation capabilities.
2. Building a Native Multimodal Training Path
A multimodal large model generally consists of a vision encoder and a language model backbone. The training path needs to uniformly handle the loading, encoding, and fusion of mixed data such as images and text. A “native training path” means redesigning for the model structure rather than simply porting generic scripts:
- A unified data pipeline that supports efficient parsing, preprocessing, and packing of multimodal samples;
- Separate operator fusion and scheduling optimization for the different compute characteristics of vision and language modules;
- Ensuring that numerical precision on heterogeneous hardware aligns with mainstream solutions to avoid training divergence or precision drift.
3. The Key Role of Fully Sharded Data Parallelism (FSDP)
The case adopted a native FSDP2 path. The core idea of FSDP is to shard model parameters, gradients, and optimizer states across all devices. During forward and backward computation, it temporarily aggregates shards on demand through all-gather and releases them after use, reducing memory usage from the “whole model” level to the “parameter shard” level. An illustrative pseudocode example is shown below:
# FSDP sharding concept illustrationfor layer in model.layers:params = all_gather(layer.sharded_params) # aggregate on demandoutput = layer.forward(x, params)free(params) # release promptly
Compared with earlier flat sharding implementations, the new generation is more flexible in sharding granularity, memory management strategies, and coordination with mixed precision and gradient checkpointing, so it can better fit heterogeneous compute characteristics.
4. Three Key Stages in the Complete Training Chain
- Model loading: Efficiently initialize ultra-large weights and distribute them to cluster devices, typically using meta device initialization and deferred materialization to avoid excessive CPU memory peaks.
- Sharding scheduling: Determine shard granularity and compute-communication overlap strategies based on device topology and memory capacity to maximize compute utilization.
- Gradient synchronization: Use reduce-scatter to complete gradient shard reduction and overlap it with backward computation to hide communication overhead; combine gradient accumulation and checkpointing mechanisms to ensure stability during long-running training.
5. Implications for the Industry
This practice shows that for domestic AI chips to truly support large-model training, hardware compute alone is far from enough. The completeness of operators in the supporting software stack, the depth of framework adaptation, and cluster communication optimization are equally critical. A training-and-inference integrated product form can also help reduce users’ learning and migration costs. As more open-source models complete training validation on diverse compute, the diversity and self-reliance of AI compute supply will continue to improve, providing developers with more selection space.
Overall, ultra-large model training adaptation is a systems engineering effort involving multi-layer coordination across algorithms, frameworks, compilation, communication, and cluster operations and maintenance. Understanding the complete chain has important reference value for enterprises building their own large-model training capabilities.
