Scaling Multimodal Large Model Training: Hardware Adaptation and Building an FSDP2 Training Path

    This article examines the engineering challenges of training a 2.8-trillion-parameter multimodal model and explains how to build an efficient native FSDP2 training path. It covers memory and communication bottlenecks, hardware–software co-optimization, sharded model loading, fine-grained parameter scheduling, gradient synchronization, fault tolerance, checkpointing, and end-to-end monitoring for large-scale clusters.

    As large model technology continues to advance, model sizes have grown from tens and hundreds of billions of parameters to the trillion-parameter range. An open-source 2.8-trillion-parameter multimodal flagship model has recently attracted significant attention. Models at this scale place unprecedented demands on compute capacity, memory, and interconnect bandwidth.

    Enabling training for such models on general-purpose AI computing hardware, such as flagship integrated AI training and inference accelerators, requires close coordination between the hardware and software stacks. Building an efficient native Fully Sharded Data Parallel 2 (FSDP2) path for multimodal training and connecting the entire training workflow has become a central challenge for AI infrastructure and algorithm engineering.

    1. Engineering Challenges in Training Extremely Large Multimodal Models

    At the 2.8-trillion-parameter scale, model training faces three major challenges:

    1. The memory wall: The model parameters alone require approximately 5.6 TB of memory in FP16. When gradients and optimizer states, such as the first- and second-moment estimates maintained by Adam, are included, total memory requirements can reach tens of terabytes. This far exceeds the capacity of a single accelerator.

    2. Heterogeneous multimodal data scheduling: Multimodal models process different types of data, including text and images. Data preprocessing and feature alignment place extremely high demands on I/O throughput and CPU–GPU coordination.

    3. Communication overhead: In clusters ranging from thousands to tens of thousands of accelerators, traditional Distributed Data Parallel (DDP) replicates model parameters across devices and requires large-scale gradient synchronization. The resulting communication overhead can significantly reduce compute utilization.

    To address these issues, the industry widely adopts Fully Sharded Data Parallel (FSDP). In next-generation training frameworks, native FSDP2 provides finer-grained state management and more efficient memory utilization, making it a preferred approach for adapting extremely large models.

    2. Coordinating AI Hardware and the Software Stack

    Training adaptation for an extremely large model first requires close coordination between AI accelerators and the software stack. In practice, flagship integrated AI training and inference accelerators, together with a general-purpose software stack containing operator libraries, compilers, and communication libraries, form the foundation of the training system.

    Operator Libraries and Compiler Optimization

    Multimodal models contain numerous specialized attention mechanisms and vision encoding operators. The software stack must support dynamic shapes and graph compilation optimizations so that these complex operators execute efficiently on the underlying hardware while reducing kernel launch overhead.

    Communication Library Adaptation

    The FSDP2 path depends heavily on efficient collective communication primitives, including All-Gather and Reduce-Scatter. The underlying communication library must be tuned for multi-node network topologies, such as high-speed interconnect buses and RDMA networks, to achieve microsecond-level communication latency.

    3. Building a Native FSDP2 Multimodal Training Path

    FSDP2 is an architectural redesign of the earlier FSDP1 implementation. It shards model parameters, gradients, and optimizer states at a finer granularity and provides more flexible lifecycle management. The main components of a native FSDP2 path include the following.

    3.1 Model Loading and Memory Warm-Up

    With memory requirements reaching tens of terabytes, traditional single-device model loading is no longer practical. An FSDP2 workflow therefore uses streaming loading and sharded initialization.

    • Meta-tensor initialization: During instantiation, the model does not allocate physical device memory. Instead, the network topology is constructed in CPU memory using meta tensors.
    • On-demand sharded loading: Model parameters are then sharded according to their global tensor dimensions. Each compute node loads only the parameter shards assigned to it into accelerator memory. This reduces per-device memory usage to approximately 1/N of the global model size, where N is the total number of accelerators.

    At the cloud infrastructure layer, rapidly reading extremely large parameter files typically requires object storage combined with high-speed local cache disks. This helps prevent I/O from becoming the primary bottleneck.

    3.2 Shard Scheduling

    FSDP2 introduces fine-grained, operator-level shard scheduling. During forward and backward propagation, the system operates as follows:

    • Forward propagation: When a layer is ready to execute, the system uses All-Gather to collect the complete parameters for that layer from other nodes. After computation finishes, parameter shards that are not local to the current node are released immediately, freeing device memory.
    • Backward propagation: When gradients are computed, the required parameters are reconstructed through All-Gather. Once gradient computation is complete, Reduce-Scatter aggregates and redistributes the gradients into shards across the nodes. The full gradients are then discarded.

    This “aggregate on demand, use immediately, and release immediately” scheduling model significantly reduces peak memory usage. As a result, clusters with thousands of accelerators can run trillion-parameter models while maintaining relatively low per-device memory consumption.

    3.3 Gradient Synchronization and Communication Overlap

    Gradient synchronization is one of the largest sources of performance loss in distributed training. The FSDP2 path maximizes overlap between computation and communication through the following mechanisms:

    • Bucketing: Gradients from multiple small tensors are grouped into fixed-size buckets. Once a bucket is full, Reduce-Scatter is triggered immediately.
    • Asynchronous communication streams: An independent communication stream executes gradient synchronization for the current layer while the backward pass computes gradients for the next layer. This requires the underlying software stack to provide effective multi-stream concurrency control.

    4. Connecting the End-to-End Training Workflow

    Connecting the workflow from model loading through gradient synchronization is not simply a matter of implementing distributed training primitives. It is a system-level engineering effort. The following practices are essential for stable and continuous training.

    4.1 Containerized Deployment and Resource Scheduling

    Extremely large training jobs are typically orchestrated on container platforms. By centrally scheduling compute, network, and storage resources, a platform can rapidly launch training jobs spanning thousands of accelerators and support fast failover when nodes become unavailable.

    4.2 Fault Tolerance and Checkpoint Resumption

    Hardware failures are unavoidable during long-running training jobs. The system must therefore support frequent checkpointing. With FSDP2, checkpoints can be saved asynchronously to object storage in sharded form. If a node fails, training can resume from the most recent checkpoint instead of restarting from the beginning, avoiding substantial training costs.

    4.3 End-to-End Monitoring and Logging

    Logging and monitoring systems should continuously collect metrics such as Model FLOPs Utilization (MFU), memory utilization, network throughput, and temperature. When gradient explosions, communication congestion, or node disconnections occur, the system should trigger alerts promptly so that operators can intervene.

    5. Conclusion

    Training a 2.8-trillion-parameter multimodal model requires deep adaptation of general-purpose or locally developed AI accelerators and their supporting software stacks. Building a native FSDP2 multimodal training path creates a complete workflow covering model loading, sharded scheduling, and gradient synchronization. This approach not only addresses the memory wall but also improves parallel computing efficiency across clusters with thousands of accelerators.

    As hardware–software co-design continues to advance, and as cloud-native infrastructure such as container platforms and object storage evolves, training extremely large models will become more efficient, stable, and accessible. These developments will provide a stronger compute foundation for continued progress toward general-purpose artificial intelligence.