Training a 2.8-Trillion-Parameter Multimodal Model on Domestic AI Accelerators: A Technical Deep Dive

    A 2.8-trillion-parameter multimodal model has completed training adaptation on domestic AI training-and-inference accelerator cards with a self-developed software stack. This article breaks down why training models at this scale is so difficult, how a native FSDP2 training path addresses memory, communication, and heterogeneity challenges, and what the milestone means for the broader AI infrastructure landscape.

    Training a 2.8-Trillion-Parameter Multimodal Model on Domestic AI Accelerators: A Technical Deep Dive

    Background: Large-Scale Model Training Enters a New Stage

    The industry recently open-sourced a flagship multimodal large model with 2.8 trillion parameters. At this scale, the model weights alone require several terabytes of memory even when stored in half precision. Add optimizer states, gradients, and activations, and no single node, machine, or small cluster can host the full training process. Training such models has become a classic “systems engineering” problem, requiring deep coordination between compute hardware, parallelism strategies, communication mechanisms, and the software stack.

    Notably, domestic AI accelerator cards designed for both training and inference, together with their self-developed software stack, recently completed training adaptation for this flagship model. They built a native FSDP2 multimodal training path, connecting the complete training pipeline from model loading and shard scheduling to gradient synchronization. This progress shows that the engineering capabilities of domestic compute infrastructure for ultra-large-scale training are maturing rapidly. This article dissects the technical logic and general methodology behind this effort.

    Why Training a 2.8-Trillion-Parameter Model Is So Hard

    To understand the value of this adaptation, three core challenges of ultra-large-scale training must be clarified.

    1. The memory wall

    Memory usage during training goes far beyond model weights. With typical mixed-precision training, each parameter usually requires: a half-precision weight, a full-precision weight copy, a full-precision gradient, and two optimizer state variables. A rough estimate puts the total memory cost per parameter at more than ten times the raw weight size. For a 2.8-trillion-parameter model, this means hundreds or even thousands of accelerator cards must work together, with state sharding used to distribute optimizer states, gradients, and parameters evenly across all devices.

    2. The communication bottleneck

    Once parameters are split across thousands of cards, every forward and backward pass requires gathering parameter shards across devices and sending gradients back. Communication volume scales with model size; if communication and computation cannot overlap effectively, expensive compute resources sit idle waiting. In multi-node scenarios in particular, network bandwidth and topology directly cap training throughput.

    3. Structural heterogeneity from multimodality

    Multimodal models typically contain a vision encoder, a language backbone, and modality-alignment projection layers, each with very different compute density, memory footprint, and parallelism sensitivity. Applying a single sharding strategy to all modules usually causes load imbalance and wasted resources, demanding finer-grained sharding orchestration.

    The Technical Substance of the Native FSDP2 Training Path

    The core achievement of this adaptation is a native FSDP2 multimodal training path. FSDP—Fully Sharded Data Parallel—is the industry’s dominant distributed training paradigm for large models. Compared with earlier versions, the new generation of FSDP offers more mature capabilities in several areas:

    1. Full sharding of parameters and states

    FSDP shards model parameters, gradients, and optimizer states across devices, so each card holds only one shard of the full state. During the forward pass, the complete parameters of the current layer are temporarily gathered on demand via collective communication and released immediately after computation, compressing per-card memory usage to an acceptable level. This is the fundamental mechanism enabling trillion-parameter training.

    2. A more flexible device mesh abstraction

    The new FSDP introduces a more general device mesh concept, allowing developers to combine data parallelism, tensor parallelism, and pipeline parallelism under a unified abstraction. For multimodal models, different sharding dimensions and parallel groups can be assigned to the vision encoder and the language backbone respectively, enabling a “per-module customized” hybrid parallelism scheme.

    3. Fine-grained overlap of communication and computation

    By scheduling parameter prefetching and gradient reduction at the granularity of layers or submodules, communication operations can be hidden inside computation, significantly reducing exposed communication time. This is especially critical for training efficiency on domestic interconnect fabrics—well-tuned overlap scheduling can maintain high compute utilization even under relatively constrained bandwidth.

    4. Checkpointing and elastic recovery

    Ultra-large-scale training often runs for weeks or months, and hardware failures are inevitable. The distributed checkpointing mechanism under the FSDP2 path supports asynchronous, shard-based saving and restoration of training state; combined with fault detection and automatic restart, interruption losses can be kept to a minimum.

    Three Key Stages in Connecting the Full Training Pipeline

    Adaptation is not simply “getting the code to run”—it requires connecting an end-to-end training pipeline. Three stages are most representative.

    1. Model loading: from single-point loading to distributed materialization

    A trillion-parameter model cannot be fully loaded on a single card and then distributed. In practice, a “meta-device initialization + shard materialization” approach is used: the model structure is first built on a logical device with no memory footprint, then each card loads and initializes only the parameter shards it is responsible for, according to the sharding plan. Multimodal models also require aligning weight file formats from different sources and reordering tensors, ensuring weights of each modality submodule are correctly mapped to target devices.

    2. Shard scheduling: differentiated sharding for heterogeneous modules

    For multimodal structures, sharding strategies must be designed separately for the vision encoder, alignment layers, and language backbone. For example, the vision encoder is compute-intensive but has relatively concentrated parameters, so a smaller sharding group can reduce communication overhead; the language backbone accounts for the largest share of parameters and needs full sharding across the largest possible device group. The scheduler must also combine activation checkpointing to balance memory savings against recomputation overhead.

    3. Gradient synchronization: numerical stability under mixed precision

    Gradient reduction uses the reduce-scatter primitive, combining gradient aggregation and shard write-back into a single step. In mixed-precision training, the reduction must be performed at sufficient precision, with gradient clipping and loss scaling to maintain numerical stability. At the software stack level, collective communication operators must be efficiently implemented and correctness-verified on domestic interconnect architectures.

    The following is an illustrative training configuration skeleton showing how such training jobs are typically organized (interfaces are for illustration; refer to your framework’s official documentation):

    1. # Illustrative code: hybrid parallelism configuration based on a device mesh
    2. from torch.distributed.device_mesh import init_device_mesh
    3. # 2D device mesh: data parallel dimension × sharding dimension
    4. mesh = init_device_mesh("gpu", (dp_size, fsdp_size),
    5. mesh_dim_names=("dp", "fsdp"))
    6. # Apply differentiated sharding strategies to different submodules
    7. apply_fsdp(model.vision_encoder, mesh["fsdp"], reshard_after_forward=True)
    8. apply_fsdp(model.language_backbone, mesh["fsdp"],
    9. reshard_after_forward=True,
    10. mixed_precision=MixedPrecision(param_dtype=bfloat16,
    11. reduce_dtype=float32))
    12. # Activation recomputation to trade compute for memory
    13. apply_activation_checkpointing(model.language_backbone.layers)

    Implications and Outlook

    The value of this adaptation goes beyond a single model or hardware platform, conveying several broadly applicable signals.

    First, software-hardware co-design is the key path for domestic compute. Hardware compute metrics are only the foundation; how completely the software stack supports mainstream parallelism paradigms, communication primitives, and training frameworks determines whether developers can migrate cutting-edge models to domestic infrastructure at low cost. Native support for industry-standard paradigms like the new FSDP means ecosystem compatibility costs drop significantly.

    Second, multimodal training capability will become a differentiator for compute platforms. Compared with text-only models, multimodal training places higher demands on sharding orchestration, data pipelines, and memory management. Running a flagship multimodal model end to end essentially means the platform can handle the dominant model forms of the future.

    Third, training adaptation is moving from “project-based” to “standardized”. The pipeline approach—from model loading and shard scheduling to gradient synchronization—is being distilled into reusable engineering templates. In the future, adaptation cycles for newly released models could shrink from weeks to days, which matters greatly for the industry’s iteration speed.

    For enterprise users choosing training compute solutions, besides peak compute figures, they should evaluate the software stack’s completeness of support for mainstream distributed training paradigms, measured performance on multimodal workloads, and supporting engineering capabilities such as fault recovery, monitoring and alerting, and logging services. Mainstream cloud platforms—for example, Baidu AI Cloud—provide general-purpose compute scheduling, object storage, and container platform capabilities that can be combined with various accelerator hardware to build elastic, scalable training infrastructure, offering full-stack support from resources to toolchains for ultra-large-scale model training.

    Conclusion

    Completing training adaptation for a 2.8-trillion-parameter model on domestic training-and-inference compute is a microcosm of domestic AI infrastructure maturing. Building a native FSDP2 path and connecting the full training pipeline demonstrates that, through software-hardware co-design, domestic platforms can handle the most cutting-edge training demands. As the software ecosystem continues to improve and engineering methodology becomes standardized, the barrier to ultra-large-scale training will fall further, giving more enterprises and developers the opportunity to participate in the next wave of large model innovation.