How Domestic AI Accelerator Cards Support Trillion-Parameter Multimodal Model Training

    A recent adaptation effort showed how a domestic GPU vendor's training-and-inference accelerator cards, combined with an in-house software stack, can support training a roughly 2.8-trillion-parameter multimodal model using FSDP2. This article breaks down the core challenges—memory walls, communication bottlenecks, and multimodal heterogeneity—explains how FSDP2 shards model state, and covers practical guidance for model loading, sharding scheduling, and gradient synchronization.

    How Domestic AI Accelerator Cards Support Trillion-Parameter Multimodal Model Training

    Background and Scope of the Adaptation

    According to public reports, an open-source large model team released a multimodal model with approximately 2.8 trillion parameters. Shortly afterward, a domestic GPU vendor completed training adaptation for this model using its training-and-inference accelerator cards and self-developed software stack. The vendor built a multimodal training pipeline based on native Fully Sharded Data Parallel (FSDP2), covering three stages: model loading, sharding and scheduling, and gradient synchronization.

    This article focuses only on the general technical problems involved in training adaptation and does not evaluate the model’s performance metrics. The parameter count and adaptation scope cited here come from the public reports mentioned above; for exact figures, refer to the original publisher’s materials.

    The significance of this adaptation lies in testing whether domestic compute can handle training workloads at extreme scale. For trillion-parameter models, training is a systems engineering effort in itself. Getting a model to run on a single card only proves basic functionality works. Running training stably and efficiently across a multi-card cluster requires coordinated support from distributed frameworks, software, and hardware.

    Three Major Challenges in Training Trillion-Parameter Models

    1. The Memory Wall

    In mixed-precision training, the memory consumed per parameter can be broken down item by item. The parameters themselves are stored in bf16, taking 2 bytes; gradients take 2 bytes; Adam’s first and second moment estimates are typically stored in FP32, taking 4 bytes each. The three items total 12 bytes. If an FP32 master copy of the weights is additionally kept during training, each parameter requires another 4 bytes, for a total of about 16 bytes.

    At 12 bytes per parameter, the training-state memory for 2.8 trillion parameters is roughly 33.6 TB; at 16 bytes, about 44.8 TB. This figure does not include activations, which depend on sequence length, batch size, and recomputation strategy. A single accelerator card’s memory is far smaller than this scale, so model state must be sharded across many cards.

    2. Communication Bottlenecks

    Once a model is sharded across hundreds or thousands of cards, the overhead of collective operations such as gradient reduction and parameter aggregation grows quickly. If communication cannot overlap with computation, every training step must wait for data transfers to complete, and cluster throughput degrades as the number of cards increases, hurting scaling efficiency.

    3. Multimodal Heterogeneity

    Multimodal models typically include a vision encoder, a text backbone, and a modality alignment projection layer. These modules differ significantly in compute density and memory footprint. If all modules use the same sharding strategy, the load becomes unbalanced: some devices sit idle for long periods, and overall training speed drops.

    How FSDP2 Works

    The core idea of Fully Sharded Data Parallel is to shard parameters, gradients, and optimizer states, so each card persistently holds only 1/N of them. The full parameters for a given layer are gathered to the card only when that layer is being computed. Once the layer’s computation finishes, the gathered full copy is released.

    One training iteration proceeds roughly as follows.

    During the forward pass, each layer first performs an all-gather to assemble the full parameters. After the layer’s forward computation completes, the full copy is released, keeping only the local shard.

    During the backward pass, the layer’s parameters must be gathered again to compute gradients. Once gradients are computed, a reduce-scatter reduces gradients across cards and distributes them to the corresponding shards. The full parameters are then released.

    The optimizer update applies only to the local shard. Local shards and optimizer states remain on the card throughout the process.

    Compared with earlier versions, FSDP2 has three notable improvements. First, parameters exist as sharded tensors, so the model does not need to be fully loaded onto a single card before sharding—this avoids peak memory during loading. Second, it supports per-layer gathering and release, making it easier to overlap communication with computation and hide communication latency. Third, it supports hybrid sharding strategies—for example, full sharding within a node and replication across nodes—which balances memory savings against cross-node communication volume.

    Here is a plain-language description of the per-layer sharded forward logic. For each layer, execute the following steps in order: gather the layer’s full parameters; run the layer’s forward computation; release the full parameters, keeping only the local shard; pass the output as input to the next layer. This gather-on-use, release-after-use approach shrinks the scope in which full parameters exist on a single card from the entire model down to a single layer.

    This description is for illustrating the principle only, not production code. In practice, verify the FSDP2-related interfaces and dependencies against your PyTorch version and device backend.

    Three Stages of the Full Training Pipeline

    1. Model Loading

    The traditional approach has every card load the full weights and then shard them, which exhausts memory during loading. A better approach is lazy or streaming loading: each process reads only the shard it is responsible for, or the model skeleton is first built with meta tensors and the weights are materialized layer by layer. Saving checkpoints in a sharded format can significantly shorten loading time.

    Actionable checks include: confirm that the checkpoint’s shard count matches the current world_size, or use a loading interface that supports resharding; after loading, verify the total parameter count and the shapes of key layers; record peak memory during loading to determine whether you are close to the memory limit.

    A common failure is out-of-memory (OOM) during loading. When troubleshooting, first check whether any whole-model loading path exists, then verify whether initialization has already allocated the full parameters.

    2. Sharding and Scheduling

    Different components of a multimodal model should use different sharding strategies. The vision encoder is compute-intensive with relatively few parameters, so replication plus data parallelism works well. The language backbone has a large parameter count and should be fully sharded. Variable-length sequences and dynamic-resolution inputs also require the scheduling layer to support dynamic batching, reducing wasted computation from padding.

    Actionable checks include: profile parameter counts, activations, and memory usage per module to confirm the sharding strategy matches each module’s characteristics; record per-step timing on each card to spot devices that remain idle for long stretches; set a length cap for dynamic batching to prevent a single extremely long sample from blowing up memory.

    A common failure is load imbalance, which shows up as some cards with utilization clearly lower than others. This usually requires adjusting module partitioning or shard granularity.

    3. Gradient Synchronization

    During backpropagation, gradients should be processed in buckets. As soon as a bucket fills, launch its communication immediately so that gradient communication is hidden under subsequent backward computation. The communication library also needs topology awareness—distinguishing high-speed intra-node interconnects from inter-node networks—so that most reduction traffic travels over high-bandwidth links.

    Actionable checks include: tune bucket sizes and use profiling tools to check whether communication and computation overlap; clarify the data types used for parameters, gradients, and reductions in mixed precision, and confirm the reduction precision meets convergence requirements; compare single-step timing to judge whether communication has become the bottleneck.

    A common failure is communication not overlapping with computation, which shows up as a visibly longer communication segment in each step. Another frequent problem is out-of-memory; try reducing the micro-batch size, enabling activation recomputation, or adjusting the sharding strategy.

    Software-Hardware Co-Design: The Software Stack Determines Adaptation Efficiency

    Hardware compute is the foundation, but what truly determines training efficiency is the maturity of the software stack. A complete AI software stack typically includes a driver layer, communication libraries, operator libraries, compilers, and a framework adaptation layer. This adaptation validated the self-developed software stack’s support for sharded tensor abstractions, collective communication primitives, and mixed-precision computation.

    For enterprises considering domestic compute, the recommendation is to first complete compatibility and performance validation on a small cluster, and only scale up after confirming the results meet requirements. On that basis, a training platform can also combine general cloud capabilities such as object storage, container orchestration, and monitoring/alerting to build an end-to-end training engineering system.

    Three categories of risk deserve special attention in production. First, checkpoints should be consistency-verified—for example, compute and compare a checksum after saving—to prevent corrupted checkpoints from being used to resume training. Second, training jobs should have fault recovery and retry mechanisms, resuming from the most recent valid checkpoint rather than starting over. Third, training data and access credentials are sensitive assets; store them via environment variables or a secrets management service, never in code or logs.

    Conclusion

    Training adaptation for trillion-parameter multimodal models comes down to three things. First, use FSDP2 to shard the training state across many cards. Second, control peak memory through per-layer gathering and release. Third, overlap communication with computation as much as possible. On top of that, each of the three pipeline stages—model loading, sharding and scheduling, and gradient synchronization—needs its own tuning.

    Whether domestic AI accelerator cards can handle this class of workload depends on the maturity of the software stack and validation results in real scenarios. When evaluating, start with a memory estimate and small-scale stress testing at your own model size, then decide the scope of your investment.