Training a 2.8-Trillion-Parameter Multimodal Model on Domestic AI Accelerators: A Technical Deep Dive into FSDP2 and Software Stack Adaptation
This article examines the recent adaptation of a 2.8-trillion-parameter open-source multimodal model to a domestic AI training and inference platform. It breaks down the technical challenges of ultra-large-scale model training, the role of a unified train-infer architecture, the engineering details of an FSDP2-native training path, and the software stack capabilities—model loading, shard scheduling, and gradient synchronization—that determine the success of such large-scale adaptation efforts.
Background: The Infrastructure Demands of Ultra-Large-Scale Model Training
A recently open-sourced multimodal flagship model with 2.8 trillion total parameters has set a new benchmark for training infrastructure. At this scale, the memory footprint of model weights alone—along with optimizer states and gradients—can reach tens of terabytes during training, far exceeding the capacity of any single server with multiple accelerators. Consequently, training a model of this magnitude is fundamentally a systems engineering problem that requires the seamless coordination of three components: a large-scale compute cluster, an effective parallelization strategy, and a mature software stack.
In this context, whether a domestic AI accelerator can support the complete training pipeline of such a model has become a key measure of software stack maturity. A domestic AI chip vendor recently announced that it has successfully adapted this open-source model for training on its flagship AI training-inference integrated accelerator, using its proprietary heterogeneous compute software stack. The work establishes a native FSDP2 multimodal training path and completes the entire training pipeline, from model loading and shard scheduling to gradient synchronization. This article provides a technical breakdown of the core aspects of that adaptation.
The Value of a Unified Training-Inference Architecture
The “training-inference integrated” design means that a single hardware generation serves both high-bandwidth, high-precision training workloads and low-latency, high-throughput inference workloads. The technical advantages are threefold:
- Lower migration cost: Training and inference share the same instruction set and software stack, so moving a model from training to deployment does not require large-scale operator rewrites or precision adjustments.
- Resource reuse: Clusters can elastically schedule resources between training and inference tasks based on live workload, improving overall utilization.
- Consistency assurance: Both training and inference are backed by the same numerical libraries, reducing precision deviations caused by differing operator implementations.
For ultra-large-scale models, a unified train-infer architecture offers an additional benefit: parallelization and sharding schemes validated during training can be reused at similar granularity during inference, shortening the time to deployment.
FSDP2: Why Fully Sharded Data Parallelism Matters
Fully Sharded Data Parallelism (FSDP) has become a widely adopted parallelization strategy for large-model training. Unlike conventional data parallelism—which places a full model replica on each accelerator—FSDP shards model parameters, gradients, and optimizer states across all compute devices. During forward and backward passes, only the required shards are temporarily aggregated on demand and immediately released after computation. This compresses memory usage from “full model size” to approximately “total model size / number of devices.”
FSDP2 is the next iteration of this approach, with three notable improvements:
- Device-tensor-based parameter management: Sharding is controlled at a more granular level, replacing the earlier flat-parameter approach. This ensures that sharding strategies align naturally with the model’s structural boundaries.
- More flexible mixed-precision control: Parameters and gradients can be assigned separate precision policies, balancing numerical stability against memory efficiency.
- Better compatibility with multimodal training: Multimodal models typically include heterogeneous modules—a vision encoder, a language model, projection layers, and more. FSDP2 allows per-module sharding and offload strategies to be set independently.
Building a “native FSDP2 training path” for a multimodal model therefore goes beyond simply applying a parallelization scheme designed for pure language models. It requires redesigning shard boundaries and communication timing around the characteristics of multimodal data flow—such as interleaved image-text inputs and widely differing computational graphs across modules. This is one of the most labor-intensive parts of the entire adaptation effort.
Three Critical Stages in the Complete Training Pipeline
The announcement highlighted three stages in the training pipeline: model loading, shard scheduling, and gradient synchronization. These correspond well to how large-model training adaptation is typically decomposed.
1. Model Loading
Loading a trillion-parameter model is, first and foremost, an I/O problem. The sheer size of the weight files demands efficient reading from object storage or distributed file systems during cluster startup, followed by shard-aware distribution to each device. Key engineering considerations include:
- Direct sharded-weight loading: Checkpoint files should be stored in a sharding layout that matches the training-time sharding plan, avoiding a global re-sharding pass after loading.
- Topology-aware loading: The loading process should coordinate with cluster topology so that data flows to target devices via the shortest path, minimizing network congestion.
- Per-module handling: In a multimodal model, different modules (vision vs. language) may use different precision levels and initialization strategies, so the loader must process each appropriately.
2. Shard Scheduling
Shard scheduling determines which parameter shards must be aggregated on which devices at each computation step, and when they should be released. The core difficulty lies in overlapping computation and communication: ideally, the parameter aggregation communication for the current layer should run concurrently with computation from the previous layer, thereby hiding communication latency. This requires:
- A well-tuned prefetch mechanism that fetches shards for the next layer ahead of time;
- Carefully chosen layer granularity—too fine and communication overhead explodes; too coarse and memory peaks rise again;
- For multimodal models, handling scheduling imbalances caused by different computational graph depths in the vision and language branches.
3. Gradient Synchronization
After backpropagation completes, the local gradients held on each device must be synchronized globally via operations such as all-reduce or reduce-scatter. In FSDP2, gradient synchronization is naturally coupled with parameter sharding: gradients are reduced directly into each device’s sharded storage, eliminating a separate re-sharding step. Key engineering considerations include:
- Pipeline overlap between communication and backpropagation, with layer-by-layer reduction to spread out synchronization latency;
- Gradient compression and bucket aggregation to improve effective bandwidth utilization;
- Fault tolerance and consistency checks: ultra-long training runs require checkpoint resumption and verifiable restoration of training state.
Software Stack: The Real Barrier to Heterogeneous Adaptation
Raw hardware specifications are only the starting point; the true determinant of adaptation success is software stack maturity. A complete training adaptation typically involves the following:
- Operator coverage and precision validation: Multimodal models make use of numerous attention variants, normalization layers, and fused operators. The software stack must provide implementations that are semantically equivalent to those in mainstream training frameworks, validated through numerical alignment tests that keep error within acceptable bounds.
- Communication library optimization: The performance of collective communication operations (all-reduce, all-gather, etc.) at scales beyond a thousand devices directly determines training efficiency. This requires topology-aware communication scheduling that accounts for the hierarchical structure of high-speed interconnects.
- Framework compatibility layer: The mainstream training ecosystem defaults to general-purpose GPUs as the backend. Domestic platforms typically need a compatibility layer or migration tool that maps device-related calls in model code to the proprietary runtime, reducing the user’s migration burden.
- Long-run stability validation: Large-scale training runs often continue uninterrupted for weeks. Memory-leak detection, automatic fault recovery, slow-node eviction, and other operational capabilities are all essential.
Implications for the Industry
This adaptation effort reveals several trends in the domestic AI compute ecosystem:
- The software stack is moving from “usable” to “production-grade”: Supporting advanced training features like native FSDP2 indicates that adaptation has reached the parallelism-strategy level, rather than remaining at the level of individual operator verification.
- Train-infer integration is becoming a mainstream design principle: A unified hardware and software foundation reduces the engineering complexity of the full model lifecycle.
- Open-source models are becoming the litmus test for the ecosystem: Leading open-source models—by virtue of their scale and visibility—serve as natural benchmarks for training infrastructure. Completing training adaptation for such a model carries strong signaling value.
Conclusion
Adapting an ultra-large-scale multimodal model for training is a combined test of hardware capability, parallelization strategy, software stack maturity, and cluster operations. The successful completion of the full pipeline—from model loading and shard scheduling to gradient synchronization—represents a substantive step forward for the domestic AI compute platform in the demanding arena of large-model training.
For teams that are planning to build or adopt domestic training infrastructure, the following factors deserve close attention: the degree of native support for mainstream parallelization strategies (FSDP, tensor parallelism, pipeline parallelism, etc.), the completeness of operator coverage, and stability under extended training runs. These are the factors that ultimately determine real-world training efficiency and cost.
