Training Trillion-Parameter Multimodal Models on Alternative GPUs: A Full-Chain Analysis from Sharding to Synchronization

    Recently, an open-source community released a flagship multimodal model with 2.8 trillion parameters, followed by a chip manufacturer announcing successful training adaptation using its proprietary AI compute cards and software stack. By constructing a native FSDP2 multimodal training path, they established a complete training chain from model loading and sharding scheduling to gradient synchronization. This article systematically analyzes the technical workflow of adapting large-scale model training on non-mainstream GPU ecosystems, covering core challenges, the application of FSDP2, full-chain multimodal training execution, and software stack adaptation.

    Recently, the industry saw a significant breakthrough: an open-source community released a flagship multimodal model with 2.8 trillion parameters. Shortly after, a chip manufacturer announced that it had completed training adaptation for this model using its flagship AI compute cards and proprietary compute software stack. By constructing a native FSDP2 multimodal training path, they established a complete training chain from model loading and sharding scheduling to gradient synchronization. This development is noteworthy not only for its engineering significance but also for demonstrating a comprehensive methodology for deploying trillion-parameter models on alternative GPU ecosystems. This article explores this case to systematically analyze the technical approach to large-scale model training adaptation.

    1. Why Trillion-Parameter Training Adaptation is Challenging

    What does 2.8 trillion parameters entail? Using standard half-precision formats, the model weights alone require several terabytes of memory. When adding optimizer states, gradient caches, and activation values, memory requirements multiply exponentially. The compute and capacity of any single card or even a single machine are far from sufficient. Therefore, training such models is essentially a distributed systems engineering problem, with core challenges concentrated in three areas:

    1. Memory Wall: There is an order-of-magnitude gap between single-card memory capacity and model scale. It is necessary to rely on sharding, offloading, and recomputation to reduce single-card memory usage.
    2. Communication Wall: Gradient synchronization and parameter broadcasting for trillion-parameter models generate massive traffic on the network side. Communication efficiency directly determines training throughput.
    3. Ecosystem Wall: Mainstream training frameworks and operator libraries are predominantly built around mature GPU ecosystems. To run the full chain on heterogeneous compute power, complete adaptation from operators to communication libraries is required at the software stack level.

    2. FSDP2: The Sharding Foundation for Trillion-Parameter Training

    FSDP (Fully Sharded Data Parallel) is the current mainstream solution for ultra-large model training. Its core idea is to shard model parameters, gradients, and optimizer states across all devices, temporarily aggregating them on-demand during forward and backward computations, and releasing them immediately after use. Compared to traditional data parallelism, it compresses memory usage from “full replicas” to “total/N”, allowing a single card to handle model fragments far exceeding its own capacity.

    As an evolved version, FSDP2 adopts a per-parameter sharding implementation, bringing two major improvements. First, the sharding granularity is finer, allowing more precise control over the storage and conversion of parameters with different precisions in mixed-precision scenarios. Second, it offers greater flexibility in combining with strategies like Tensor Parallelism (TP) and Pipeline Parallelism (PP), facilitating differentiated configurations for heterogeneous modules in multimodal models (e.g., vision encoders, language model backbones, projection layers).

    In trillion-parameter scenarios, typical sharding configurations comprehensively use:

    • Gradient Checkpointing: Trades a small amount of recomputation overhead for a significant reduction in activation memory.
    • Mixed Precision: Retains high-precision master copies of weights while using low-precision computation for forward and backward passes.
    • Optimizer State Sharding: Evenly distributes states like momentum and variance across devices.
    • CPU/NVMe Offload: Implements hierarchical offloading for inactive shards to further release memory.

    3. Completing the Multimodal Training Chain

    Compared to pure language models, the training chain for multimodal models is significantly more complex. A native FSDP2 multimodal training path requires seamless execution across the following stages:

    1. Model Loading and Initialization

    Loading a trillion-parameter model is an engineering challenge in itself. A reasonable approach is to use phased, metadata-driven initialization: first construct the parameter skeleton on the CPU based on the sharding strategy, then have each device initialize only its own shard, preventing any single point from holding the full model. The loading process typically includes weight parsing, shard splitting, device mapping, and verification backfill. A schematic workflow is as follows:

    1. meta_init(model) # Build model skeleton on meta device
    2. shard_plan = build_shard_plan(model, world_size)
    3. dispatch_weights(checkpoint, shard_plan) # Dispatch weights according to shard plan
    4. verify_consistency(shard_plan) # Verify shard integrity

    2. Sharding Scheduling

    The modules of a multimodal model vary greatly in scale, and the optimal parallelism strategies for the vision and language sides often differ. Sharding scheduling needs to automatically select combinations of Data Parallel (DP) sharding, Tensor Parallelism (TP), or Pipeline Parallelism (PP) based on the module’s parameter count, computational density, and communication characteristics. It must also dynamically adjust loads during training to prevent individual devices from becoming long-tail bottlenecks.

    3. Gradient Synchronization

    After backward computation, each device holds the gradients corresponding to its local shards, which must be reduced via collective communication. Large-scale training typically employs bucketing and compute-communication overlap strategies: gradients are bucketed by dependency, and while the first batch of gradients is being reduced, computation continues, thereby hiding communication time behind computation time as much as possible. Additionally, gradient accumulation can further reduce synchronization frequency and alleviate network pressure.

    4. Key Points for Adapting Heterogeneous Software Stacks

    For a proprietary software stack, running the training chain is not merely about supporting a few instructions; it requires completing a full ecosystem adaptation. The compiler must support large model operator fusion and auto-tuning. The communication library must support efficient collective communication and be compatible with various network topologies. The runtime must align its interfaces with mainstream distributed training frameworks, enabling smooth migration of upstream training scripts. In practice, this usually goes through a progressive verification process of “single-card operator verification -> single-machine multi-card connectivity -> multi-machine expansion -> long-term stable training.” Any precision deviation or performance bottleneck in any stage will be magnified in subsequent stages.

    5. Industry Significance and Outlook

    This practice indicates that the capability to train trillion-parameter models is expanding from a few specialized compute platforms to diversified compute ecosystems. For developers and enterprises, several insights are worth noting: First, native sharding frameworks (like FSDP2-style solutions) have become the de facto standard for ultra-large model training, and mastering their sharding principles and tuning methods is the ticket to entry. Second, multimodal training adaptation should be planned from a full-chain perspective—covering loading, scheduling, and synchronization—rather than optimizing isolated points. Third, as the scale of open-source large models continues to rise, compute diversity and software stack completeness will become key variables determining training deployment efficiency.

    It is foreseeable that more heterogeneous compute platforms will complete the verification and optimization of large model training chains in the future. The diversified competition in training infrastructure has just begun.