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

    A 2.8 trillion-parameter multimodal model was successfully trained and adapted on fully domestic GPUs. This article walks through the complete technical path: the memory, scheduling, and communication challenges of trillion-scale training, the full sharding strategy and native multimodal training pipeline used to address them, dynamic shard scheduling, reliable gradient synchronization, checkpoint recovery, and the engineering lessons learned along the way. It offers a practical reference for developers preparing for next-generation large-scale model infrastructure.

    1. Background: Large Model Training Enters the Trillion-Parameter Era

    As AI technology evolves rapidly, model scale has jumped from tens of billions to hundreds of billions—and now trillions—of parameters. The latest open-source flagship multimodal model, with 2.8 trillion parameters, marks another major breakthrough in the capability boundary of AI models. But alongside improved capabilities comes a harsh challenge to the underlying computing infrastructure.

    In traditional distributed training, when a model exceeds the memory capacity of a single accelerator, developers typically rely on multi-dimensional parallelism strategies to split the compute and storage burden. A 2.8 trillion-parameter model, however, means that even mainstream hybrid parallelism schemes require hundreds or even thousands of high-performance accelerator cards working in concert. This demands exceptional scalability, stability, and communication efficiency from the training system.

    Against this backdrop, whether domestic full-function GPUs and their supporting software stacks can support ultra-large-scale training has become a key litmus test for the maturity of AI infrastructure. This article systematically walks through the complete path of adapting and training a 2.8 trillion-parameter multimodal model on domestic GPUs, from a hands-on engineering perspective.

    2. Core Challenges: Three Barriers to Ultra-Large-Scale Training

    2.1 The “Impossible Triangle” of Memory Capacity

    Storing 2.8 trillion parameters in FP16 alone requires roughly 5.6 TB of memory. Add optimizer states, gradients, and activations, and the actual memory requirement multiplies. At this scale, no single technique suffices—multiple memory optimization strategies must be combined.

    2.2 Scheduling Heterogeneous Multimodal Data

    Multimodal models process text, images, and other data types simultaneously. The encoders for each modality differ greatly in structure, compute density, and data characteristics, resulting in a highly heterogeneous computation graph. If this heterogeneity is not handled properly, it easily leads to idle compute or unbalanced workloads.

    2.3 Communication Overhead Grows Steeply with Scale

    The core bottleneck of distributed training often lies not in computation but in communication. Every gradient synchronization round exchanges massive data across all participating nodes. Communication volume grows linearly with model size, while communication efficiency is constrained by the physical limits of network topology and protocol implementations.

    3. Technical Path: Building a Complete Training Adaptation Solution

    3.1 Engineering Full Sharding in Practice

    To handle the memory pressure of trillion-parameter models, this adaptation adopted a full sharding strategy: parameters, gradients, and optimizer states are all sharded and uniformly distributed across all compute devices. The idea is like an “enhanced” version of data parallelism, but with sharding granularity refined to the individual parameter level, significantly reducing per-device memory usage.

    Compared with widely used large-model training frameworks such as FSDP, this solution goes deeper on sharding optimization: beyond sharding parameter tensors, it applies differentiated allocation based on the storage needs of different multimodal modules. For example, the vision encoder and the language decoder differ significantly in activation distribution, so a configurable sharding weight scheme was designed to dynamically adjust memory allocation ratios across modules during training.

    3.2 Building a Native Multimodal Training Path

    The conventional approach—training vision and language modules separately and then performing joint fine-tuning—brings enormous engineering complexity at trillion-parameter scale. This practice instead built a native multimodal training path, performing end-to-end joint training from the model’s initial state.

    At the implementation level, a modular automatic differentiation engine assigns independent forward-pass paths and backward-propagation topologies to each modality branch. A custom scheduler enables seamless switching of multimodal data flows between shared layers and independent layers, ensuring correct gradient propagation and efficient parameter updates.

    3.3 Software-Hardware Co-Designed Communication Optimization

    Communication efficiency determines the scalability ceiling of large model training. On the hardware side, the adaptation made full use of high-bandwidth communication interfaces, improving effective bandwidth through multi-path aggregated transmission. On the software side, gradient compression and delayed communication mechanisms were implemented.

    The core idea of delayed communication is to overlap gradient computation with communication: as soon as backward propagation finishes for a layer, that layer’s gradient transfer starts immediately, rather than waiting for the full backward pass to complete. Combined with pipeline parallelism, communication overhead can be effectively “hidden” within computation, improving end-to-end training efficiency.

    4. Deep Dive into Key Mechanisms

    4.1 Dynamic Model Loading and Metadata Management

    Loading a 2.8 trillion-parameter model is a systems engineering task in itself. The solution implements a layered model metadata management mechanism:

    • Static metadata layer: Records model structure definitions, parameter shapes per layer, and data-flow dependencies; loaded onto all compute nodes at training startup.
    • Dynamic runtime layer: Manages tensor shard mappings, communication topology groups between devices, and global step-state synchronization.

    This two-layer design allows the model startup process to complete in batches via streaming loading, avoiding OOM on nodes caused by oversized single I/O requests.

    4.2 Automated Shard Scheduling

    During training, the compute load of different layers is not constant. To address this, the adaptation introduced a job-aware shard scheduler with the following core logic:

    1. # Pseudocode: core decision flow of the shard scheduler
    2. def partition_schedule(model_layers, device_topology, memory_budget):
    3. # Step 1: Estimate compute and communication cost per layer
    4. layer_profiles = profile_layers(model_layers)
    5. # Step 2: Map layers to device topology based on the critical path
    6. optimal_mapping = ILP_Solver(layer_profiles, device_topology)
    7. # Step 3: Dynamically adjust activation checkpointing frequency per layer based on remaining memory
    8. apply_activation_checkpointing(optimal_mapping, memory_budget)
    9. return optimal_mapping

    The scheduler continuously monitors compute utilization and memory watermarks on each device, making fine adjustments between training iterations to achieve dynamic load balancing overall.

    4.3 Reliable Gradient Synchronization and Aggregation

    Gradient synchronization is the foundation of training consistency. At trillion-parameter scale, the communication volume of gradient AllReduce operations is enormous. The solution adopts a hierarchical aggregation strategy: gradients are first reduced across GPUs within each node, and only the aggregated results are transmitted between nodes.

    To ensure training stability, a staleness detection and discard mechanism was also introduced. In anomalous scenarios, gradients exceeding a latency threshold are automatically flagged and recomputed, preventing stale gradients from negatively affecting model convergence.

    5. From Adaptation to Production: Key Engineering Lessons

    5.1 The Necessity of a Unified Intermediate Representation

    One of the most critical design decisions in this adaptation was establishing a unified intermediate representation layer between low-level compute kernels and upper-layer network structures. This layer abstracts fundamental operators—convolution, matrix multiplication, attention, and so on—behind a unified API, making upper layers transparent to changes in underlying hardware.

    The value of this design: when kernel scheduling policies change or hardware instruction sets are upgraded, the upper-layer distributed training code requires no large-scale modification, greatly reducing long-term maintenance costs.

    5.2 Observability and Fast Diagnosis

    Training on a cluster with thousands of nodes makes locating system bottlenecks extremely time-consuming. In practice, a three-dimensional observability system was built, covering compute timeline tracing, memory watermark monitoring, and communication link diagnostics:

    • Compute timeline: Execution time of every operator is exported in Chrome Trace format for easy performance profiling.
    • Memory monitoring: Complete traces of memory allocation and release per device are recorded, helping pinpoint memory fragmentation issues.
    • Communication diagnostics: Connection setup time, transfer bandwidth, and retransmission counts are tracked for every communication link, enabling rapid identification of network hotspots.

    5.3 Fault Tolerance and Checkpoint Recovery

    For long-running large training jobs, single-point failures are inevitable. This adaptation adopted a tiered checkpointing strategy with “hot” checkpoints (saving optimizer states every few steps) and “cold” checkpoints (saving full weight snapshots per training phase).

    Combined with asynchronous replication, cold checkpoint data is continuously synced to backup storage over a background channel. When a failure occurs, the training job loses at most a recent short window of progress rather than restarting from scratch.

    6. Outlook and Summary

    Through this training adaptation of a 2.8 trillion-parameter multimodal model, we can see that domestic full-function GPUs and the in-house software stack have initially demonstrated the fundamental capability to support ultra-large-scale model training. From shard scheduling to gradient synchronization, from communication optimization to fault-tolerant recovery, a complete distributed training technology system has begun to take shape.

    That said, this is only a first technical step. As model scale climbs toward tens of trillions of parameters and beyond, more unknown system-level challenges will emerge. This will require continued close collaboration among GPU vendors, AI framework developers, and model training teams to keep pushing the underlying infrastructure forward.

    What is certain is that an autonomous AI compute foundation centered on full-function GPUs is maturing rapidly, and the “self-sufficient era” of large-scale AI training is accelerating. For developers, understanding and mastering these adaptation techniques will be an essential capability reserve for tackling the next generation of large model infrastructure.