Adapting Trillion-Parameter Multimodal Model Training on a New AI Accelerator: A Native FSDP2 Practice

    A domestic AI research organization recently open-sourced a flagship multimodal model with 2.8 trillion parameters, and a domestic chip vendor completed training adaptation for it on its flagship training-and-inference accelerator using a native FSDP2 path. This article uses that case to systematically review the general technical path and engineering practices for adapting ultra-large model training on new hardware platforms, covering memory management, sharded model loading, communication optimization, gradient synchronization, and the extra complexity introduced by multimodal training.

    Adapting Trillion-Parameter Multimodal Model Training on a New AI Accelerator: A Native FSDP2 Practice

    An AI research organization recently open-sourced a flagship multimodal large model with roughly 2.8 trillion parameters, drawing widespread industry attention. Around the same time, a domestic chip vendor completed training adaptation for this model on its flagship training-and-inference accelerator, using its self-developed software stack. The team built a native FSDP2 multimodal training path and established a complete training pipeline spanning model loading, sharding and scheduling, and gradient synchronization. This milestone demonstrates that domestic compute platforms have reached a new level of engineering capability for ultra-large-scale model training. This article uses the case as a starting point to systematically review the general technical path and engineering practices for adapting ultra-large model training on a new hardware platform.

    1. Why Ultra-Large Model Training Adaptation Is a Systems Engineering Problem

    Trillion-parameter models long ago exceeded the memory capacity of any single accelerator. At FP16 precision, the model weights alone require multiple terabytes of memory; once you add optimizer states, gradient replicas, and activations, total memory consumption is typically several times the size of the weights themselves. Any new hardware platform that aims to support training for this class of models must therefore solve problems at three levels:

    1. Memory: compressing per-device memory usage into a tolerable range through parameter sharding, activation recomputation, mixed precision, and related techniques;
    2. Communication: efficiently aggregating parameters and synchronizing gradients across multiple devices and nodes, so that communication does not become the throughput bottleneck;
    3. Software stack: ensuring that low-level operators, communication libraries, and parallelism frameworks are complete enough to support mainstream training frameworks natively.

    These three levels are tightly coupled. A weakness in any one of them can prevent training from starting at all, or drag efficiency down to unusable levels. “Completing training adaptation” therefore means far more than getting a single forward pass to run — it requires an end-to-end training loop that is stable, efficient, and reproducible.

    2. Designing a Native FSDP2 Training Path

    Fully Sharded Data Parallel (FSDP) is one of the mainstream approaches for training ultra-large models today. Its new-generation implementation (commonly called FSDP2) adopts a finer-grained sharding abstraction, replacing whole-layer flattening with tensor-level sharding units, which significantly improves flexibility and composability. Building a native FSDP2 training path on a new hardware platform typically involves the following work:

    2.1 Parameter Sharding and Model Loading

    Loading a trillion-parameter model is a challenge in itself. A common practice is “meta-device initialization plus sharded materialization”: first build the model structure on a memory-free meta device, then load weights block by block according to the sharding strategy and dispatch them to the corresponding devices. Example code:

    1. from torch.distributed.fsdp import fully_shard
    2. for layer in model.layers:
    3. fully_shard(layer, mesh=device_mesh)
    4. fully_shard(model, mesh=device_mesh)
    5. # Materialize sharded weights layer by layer with streaming loading
    6. load_checkpoint_sharded(model, ckpt_path, strict=True)

    This approach avoids the memory spike of materializing the full model on a single device before distribution, and has become standard practice for ultra-large model training.

    2.2 Sharding Scheduling and Communication Optimization

    A core advantage of FSDP2 is finer control over when parameters are sharded and resharded. In engineering practice, the key concerns include:

    • Device mesh design: combining data parallelism with other parallel dimensions (such as pipeline parallelism and expert parallelism) into a multi-dimensional mesh that matches the cluster’s network topology, keeping high-frequency communication within high-bandwidth interconnect domains;
    • Communication–computation overlap: hiding communication under computation by prefetching the next layer’s sharded parameters and scheduling gradient reduction in buckets;
    • Special handling for expert parallelism: for mixture-of-experts architectures, routed expert computation naturally lends itself to partitioning along the expert dimension. This must be co-designed with the FSDP sharding strategy to prevent all-to-all communication from interfering with parameter aggregation.

    2.3 Gradient Synchronization and Numerical Consistency

    Whether the training pipeline is “truly working” ultimately has to be validated by the correctness of gradient synchronization. Key checkpoints include:

    • Gradients after sharded reduction match a non-sharded reference implementation, with error within the tolerance of mixed precision;
    • Sharded optimizer-state updates are logically correct, especially the semantics of gradient clipping and weight decay when applied to sharded tensors;
    • Multi-step training loss curves track the trend of the reference platform, ruling out silent numerical drift.

    Only after passing these validations can the training pipeline be declared fully functional, rather than merely “able to run.”

    3. Additional Complexity from Multimodal Training

    Compared with text-only models, multimodal training adaptation brings extra difficulties. The vision encoder and the language-model backbone differ significantly in compute density and memory footprint, often requiring differentiated sharding and parallelism strategies. Multimodal data preprocessing produces less uniform sample-length distributions, raising the bar for dynamic batching and load balancing. Gradient scales may also differ across modalities, requiring targeted normalization and clipping strategies. A mature multimodal training path should allow separate sharding granularity for the vision tower and the backbone, and support length-balanced sampling on the data side.

    4. Takeaways for Developers

    This adaptation case reflects the direction in which the domestic compute ecosystem is maturing: hardware–software co-design, native compatibility with mainstream parallelism paradigms, and delivery standards based on a complete training loop rather than a single working demo. For teams planning a training platform on domestic accelerators, a sensible path is: first validate operator completeness and numerical correctness of the software stack with small models, then scale up step by step to tens and hundreds of billions of parameters, and finally tune communication for the target model’s parallel topology. On the framework side, write code against industry-standard parallelism abstractions wherever possible to reduce cross-platform migration costs.

    5. Conclusion

    Training adaptation for ultra-large multimodal models is a touchstone for the engineering maturity of any compute platform. Building the full pipeline — from model loading and sharded scheduling to gradient synchronization — requires not only sufficient compute and memory bandwidth from the hardware, but also sustained investment in parallelism frameworks, communication libraries, and operator libraries across the software stack. As advanced parallelism paradigms such as native FSDP2 land on more hardware platforms, hardware choices for large-model training will become more diverse — a positive signal for compute supply and cost optimization across the industry.