Adapting Trillion-Parameter Multimodal Model Training on Domestic AI Accelerators: A Technical Practice

    The open-sourcing of ultra-large scale multimodal models, such as the 2.8 trillion-parameter MoE architecture, presents new challenges for computing power adaptation. This article details the technical practice of a domestic chip manufacturer adapting its flagship AI training and inference accelerator to a trillion-parameter multimodal model using a native FSDP2 training path. It covers the core challenges of VRAM constraints, parallel strategy complexity, and multimodal data pipelines, and shares engineering insights for building stable, efficient, and reproducible large-scale training pipelines.

    Adapting Trillion-Parameter Multimodal Model Training on Domestic AI Accelerators: A Technical Practice

    I. Background: The New Challenge of Computing Power Adaptation for Ultra-Large Open-Source Models

    Recently, a research team open-sourced a flagship multimodal large model with a total parameter scale reaching 2.8 trillion, quickly attracting widespread attention from the developer community. Such models typically adopt a Mixture of Experts (MoE) architecture, activating only a portion of expert parameters during each forward pass to control the computational overhead of inference and training while maintaining model capabilities. However, even so, the full parameter volume, optimizer states, and gradient data during training still impose extremely stringent requirements on the underlying computing platform.

    For enterprises and research institutions hoping to conduct continued training, instruction fine-tuning, or domain adaptation on their own computing infrastructure, the core question is no longer just “Can the model run?” but “Can a stable, efficient, and reproducible complete training pipeline be built on the target hardware?” This involves operator coverage, communication primitive support, VRAM management strategies, and distributed parallel framework compatibility. A deficiency in any of these links can lead to training non-convergence or even direct interruption.

    Against this backdrop, a domestic chip manufacturer completed the training adaptation of this trillion-parameter model based on its flagship unified training and inference AI accelerator and accompanying software stack, constructing a native FSDP2 multimodal training path. This practice provides valuable engineering reference for domestic computing power to undertake ultra-large scale model training tasks.

    II. Three Core Challenges in Training Adaptation

    1. Hard Constraints of VRAM Capacity

    The VRAM consumption for training a trillion-level parameter model primarily comes from three parts: model parameters, gradients, and optimizer states. Taking the common Adam optimizer as an example, even with mixed-precision training, the bytes required per parameter are multiplied several times due to the storage of momentum and variance. A simple estimation reveals that relying solely on single-card VRAM is entirely insufficient; it requires parameter sharding technology to distribute states across hundreds or even thousands of accelerator cards. This requires the hardware platform to not only have sufficient single-card VRAM but also an efficient VRAM allocation and recycling mechanism to avoid fragmentation and frequent inter-device copies.

    2. Complexity of Parallel Strategies

    Training multimodal MoE models typically requires combining multiple parallel dimensions: data parallelism for processing batch samples, tensor parallelism for splitting single-layer computations, expert parallelism for distributing different expert sub-networks, pipeline parallelism for splitting model layers, and sequence parallelism for handling long context inputs. The communication modes among these parallel dimensions differ, posing severe tests to the maturity, topology awareness, and fault tolerance of collective communication libraries. Whether the software stack natively supports the parallel abstractions of mainstream distributed training frameworks directly determines the length of the adaptation cycle.

    3. Specificity of Multimodal Data Pipelines

    Unlike pure text models, the training data of multimodal models includes high-dimensional inputs like images and videos. Their preprocessing throughput, packing and padding strategies for variable-length sequences, and the gradient backpropagation path between the visual encoder and the language backbone significantly affect overall training efficiency. The training path must correctly handle heterogeneous data flows at the framework level; otherwise, data loading can easily become a bottleneck, leaving the accelerator cards idle.

    III. Approach to Building the Native FSDP2 Training Path

    The core highlight of this adaptation is the construction of a native multimodal training path based on FSDP2 (Fully Sharded Data Parallel, second-generation interface), rather than simply using legacy compatibility wrappers. The technical approach can be broken down into the following stages:

    Model Loading and Parameter Registration: Utilizing the sharding abstraction provided by FSDP2, parameters are created as sharded tensors during the model initialization phase, avoiding the VRAM peak caused by fully materializing them on a single card before splitting. For expert parameters in the MoE structure, they can be managed in groups according to the expert dimension, coordinating with the expert parallelism strategy for fine-grained scheduling.

    Sharded Scheduling: During training, parameters of each layer dynamically complete all-gather and release in the order of computation. After the forward pass is completed, the VRAM is promptly reclaimed through sharding. By reasonably setting prefetch and overlap strategies, communication overhead can be hidden within the computation process, improving the effective utilization rate of the accelerator cards.

    Gradient Synchronization: Gradients generated during backpropagation are aggregated and resharded within the data parallel group using the reduce-scatter primitive. This ensures that each card only holds the gradient fragments corresponding to its parameter shards, thereby remaining consistent with the partitioning of optimizer states and forming an integrated sharding closed loop of “parameters—gradients—optimizer states”.

    End-to-End Pipeline Integration: From checkpoint read/write and resume training, to mixed-precision configuration and activation recomputation toggles, the entire pipeline was verified end-to-end on the domestic AI accelerator and its accompanying software stack, proving its foundational capability to undertake training tasks of this scale.

    IV. Engineering Insights

    For teams planning to conduct large model training on self-built or cloud computing infrastructure, this practice provides several insights:

    First, prioritize native interfaces over compatibility layers. New versions of parallel framework interfaces usually have substantial improvements in VRAM efficiency and composability. Directly using native abstractions requires higher initial investment but yields lower long-term maintenance costs.

    Second, communication and computation overlap is critical for performance. In ultra-large scale training, communication time often accounts for over 30%. Reasonable sharding granularity, prefetch depth, and topology-aware scheduling can significantly improve throughput.

    Third, end-to-end validation is superior to single-point testing. Training adaptation should not only verify that the “forward pass works”, but should cover the full workflow of loading, training, saving, and restoring, supplemented by small-scale loss alignment experiments to confirm numerical correctness.

    Additionally, enterprises can combine their own needs to deploy such training tasks in cloud computing environments equipped with general container platforms, object storage, and monitoring alerting capabilities to obtain elastic scaling and comprehensive operational guarantees.

    V. Conclusion

    The emergence of trillion-parameter open-source models is propelling training infrastructure into a new stage of development. The completion of full-link training adaptation through the native FSDP2 path on a domestic unified training and inference computing platform indicates that the hardware and software thresholds for ultra-large scale model training are gradually being crossed. In the future, with the continuous improvement of the software stack ecosystem and the evolution of parallel technologies, developers will have more viable and efficient options for conducting large model training on diverse computing power.