Key Technologies and Engineering Practices for Training Adaptation of Ultra-Large-Scale Multimodal Models

    This article covers the main engineering challenges of training ultra-large multimodal models, including memory pressure, the complexity of multimodal architectures, and communication overhead across clusters. It explains how native sharded training works, which problems the training and inference software stack must solve, how to validate adaptation in layers, and practical recommendations for deployment.

    Over recent years, the parameter counts of generative AI models have kept growing, and their multimodal capabilities have expanded from text-only processing to images, audio, video, and complex structured information. Once models reach ultra-large scale, training is no longer just a matter of adding more compute cards. It requires systematic co-optimization of hardware, compute scheduling, distributed parallelism strategies, memory management, and the software stack.

    Recently, an open-source team released a multimodal model with a trillion-parameter scale. The adaptation work also advanced engineering validation of China-developed computing platforms for large model training. A computing hardware vendor used its in-house integrated training and inference accelerator card and supporting software stack to complete training adaptation for this class of model. The vendor also built a native sharded data parallel training path that covers key stages, including model loading, parameter partitioning, task scheduling, and gradient synchronization.

    The value of this work goes beyond showing that the model can run. More importantly, it verifies that ultra-large models can migrate across different hardware environments, and that the training framework can support complex model architectures and large clusters.

    1. Challenges in Ultra-Large Model Training

    1. Memory pressure from parameter scale

    In traditional training, model parameters, gradients, and optimizer states usually must reside in device memory. Take mixed-precision training as an example. A device may hold the following data at the same time:

    • Low-precision model parameters
    • High-precision parameter copies
    • Gradients produced during backpropagation
    • First-order and second-order optimizer states
    • Activations and temporary compute buffers
    • Communication buffers

    As a result, the memory needed for training is often much larger than the size of the model file itself. At the trillion-parameter scale, storing the full set of model parameters on a single card is no longer feasible. Parameter sharding, gradient sharding, and optimizer state sharding must be used to spread the memory load across multiple compute devices.

    2. Multimodal structure adds computational complexity

    Multimodal models typically include text encoding, visual encoding, cross-modal alignment, and unified generation modules. These modules differ in input length, compute density, and memory footprint. For example, text sequences are relatively manageable, but images or videos, once split into patches, can produce large numbers of visual tokens. This significantly raises the cost of attention computation and activation storage.

    Multimodal training also has to handle alignment between data types, including:

    • Temporal or positional correspondence between text and visual features
    • Dimension mapping across encoders for different modalities
    • Batch organization across multiple data sources
    • Compatibility with missing modalities or abnormal samples
    • Joint optimization of loss functions across modalities

    Therefore, the training system must support not only large parameter counts but also dynamic input shapes and heterogeneous compute workflows.

    3. Cluster communication becomes the main bottleneck

    When training expands to multiple machines and cards, devices must frequently exchange parameters, gradients, or intermediate states. If communication scheduling is poor, devices end up waiting on communication instead of computing, and overall throughput drops as the device count grows.

    Common sources of communication pressure include:

    • Gradient reduction in data parallelism
    • Aggregation and redistribution between parameter shards
    • Activation transfer in model parallelism
    • Parameter aggregation during checkpoint saving
    • State synchronization during fault recovery

    Therefore, one core goal of large-scale training adaptation is to overlap communication with computation as much as possible, reduce synchronization waits, and avoid unnecessary data copies.

    2. Core Value of the Native Sharded Training Path

    The basic idea of native sharded training is that each device stores only the shards of parameters, gradients, and optimizer states it is responsible for. It fetches the data it needs on demand when computation requires it, then releases or re-shards that data after computation finishes.

    Compared with plain data parallelism, sharding can substantially reduce per-card memory usage. A typical workflow includes the following stages.

    1. Model initialization and parameter partitioning

    At the start of training, the system reads the model structure and weight information. It then partitions the parameters based on device count, network topology, and the sharding strategy. Partitioning must consider parameter size, layer structure, and access frequency. This prevents some devices from being overloaded while others sit idle.

    For multimodal models, the sharding rules of different modules must also be consistent. For example, the vision module and the text module may use different layer structures. When computation reaches the cross-modal fusion layer, however, the relevant parameters must be aggregated under one unified protocol.

    2. On-demand aggregation during the forward pass

    During forward propagation, each device typically keeps only the parameters needed for the current computation. When a layer starts executing, the system uses communication operations to fetch the full parameters or the necessary shards. After the computation finishes, the system releases temporary data according to policy.

    This approach reduces persistent memory usage but adds complexity to communication management. To lower the extra overhead, training systems typically use the following methods:

    • Prefetching parameters for the next layer in advance
    • Overlapping parameter communication with current-layer computation
    • Merging small parameter blocks before transfer
    • Choosing communication paths based on network topology
    • Caching frequently reused parameters for short periods

    3. Backpropagation and gradient sharding

    Backpropagation produces gradients that correspond to the model parameters. If every device keeps the full gradient set, memory pressure remains high. For this reason, the system usually reduces and shards gradients immediately after they are generated, so each device keeps only its own portion.

    Gradient synchronization requires close attention to numerical stability and communication consistency. All devices must apply the same accumulation order and scaling rules. Otherwise, training results may drift, and the loss may suddenly diverge.

    4. Distributed management of optimizer states

    Optimizer states often account for a large share of training memory. Sharded training should split not only parameters and gradients but also the storage of optimizer states. During the update phase, each device handles only its local parameter shard and the corresponding states. This avoids the memory bottleneck of centralized updates.

    This design also eases checkpoint pressure. The system can save each device’s local state separately, then reorganize those states for the new device scale during