Domestic GPUs Complete Training Adaptation for a 2.8T-Parameter Multimodal Model
This article examines a training adaptation effort for a 2.8-trillion-parameter native multimodal model on domestic GPUs. It covers the main challenges in dynamic sparse attention, mixture-of-experts routing, visual tower backpropagation, and memory/communication scaling; describes how the full computation graph was connected for forward and backward execution; and reports a two-server, 16-GPU, 400-step validation with loss results, memory peak data, and non-zero visual-branch gradients. It also outlines system optimizations for larger-scale training configurations.
In ultra-large-scale model training, adaptation is not merely about loading model weights onto accelerator cards. The core requirement is that every operator, every communication step, and every memory state in the computation graph be correctly handled by the underlying execution engine. This is especially true for native multimodal models, where visual encoding, cross-modal projection, the language backbone, and mixture-of-experts layers are intertwined, multiplying the complexity of the training pipeline. A recent validation run using two servers and 16 cards for 400 consecutive training steps demonstrated the adaptation capability and engineering path for domestic GPUs in ultra-large-scale multimodal model training.
1. Training Challenges of Native Multimodal Models
Using an open-weight native multimodal model as an example, the total parameter count is approximately 2.8 trillion, with support for contexts of up to 1 million tokens. The model uses a hybrid mechanism of dynamic sparsity and gated sparsity in its attention layers, adopts a mixture-of-experts architecture in the backbone network, and also provides visual understanding and tool-calling capabilities. This structure introduces several specific challenges for the training system.
First, attention computation is not static. Dynamic sparse retrieval means that the sequence positions involved in computation may differ at each step, while the gated sparse mechanism needs to dynamically determine computation paths based on gating scores. The underlying operators must support these changes and preserve correct gradient relationships during backpropagation.
Second, mixture-of-experts routing can cause load imbalance. Each token may activate only some experts, and during backpropagation gradients must be accurately returned to the activated experts while also handling cross-device communication among experts. If routing scheduling is improper, communication time can greatly exceed computation time.
Third, the visual branch cannot be treated as mere data input. If only the language backbone is trained in a multimodal model, the visual encoder may never be updated, and the model effectively degenerates into a “language model plus a fixed feature extractor.” Therefore, it is necessary to ensure that the visual tower’s image embeddings, layer outputs, and cross-modal projection modules are all included in the backward computation graph.
Fourth, memory and communication are the bottlenecks at scale. If every training process stores full parameters, gradients, and optimizer states for a 2.8-trillion-parameter model, a single card can hardly carry the load. The training system needs to distribute parameters across multiple cards while keeping them logically part of one complete model and minimizing communication waits as much as possible.
2. Adaptation Approach: Connecting the Full Computation Graph
The core goal of this adaptation was to connect all model components to a unified forward, backward, and parameter-update workflow. The training code follows the model’s native automatic modeling flow without manually rewriting the computation graph. Parameters, gradients, and optimizer states are sharded across different GPUs through fully sharded data parallelism, so each card maintains only a partial parameter replica, significantly reducing per-card memory pressure. Cross-card and cross-node communication is uniformly scheduled by the collective communication layer.
Attention computation, dynamic routing, visual encoding, and cross-modal projection are connected into the same computation graph. Dynamic sparse attention operators need to handle sparse indices and masks, MoE routing needs to retain activation records for backpropagation, and the visual tower output is fused with text features through the cross-modal projection module before continuing into the language backbone. In this way, gradients produced by the final loss can be propagated all the way back into the visual tower instead of being truncated before the projection layer.
To support stable execution on the underlying accelerator cards, the training workflow retains the model’s built-in data loading, optimizer, and loss computation logic. The overall behavior can be summarized as follows:
for step in range(max_steps):fetch image-text batchforward pass to compute lossbackward pass to obtain gradientssynchronize gradients across GPUsupdate parameters with optimizerclear gradients
Although this workflow appears simple, in an ultra-large-scale multimodal setting, each step involves coordination among parameter sharding, sparse operator execution, dynamic routing communication, and visual-branch backpropagation.
3. Validation Configuration and Execution Process
This validation used two servers with a total of 16 domestic AI accelerator cards. The model used a truncated configuration for functional coverage: a 13-layer language backbone, 16 routed experts, Top-8 routing, while retaining the full 27-layer visual tower and cross-modal projection module. The training data used a medical visual question answering image-text dataset, with a global batch size of 16 and a sequence length of 1024. Sixteen training processes ran in parallel, synchronizing gradients and optimizer states through collective communication at each step.
It should be noted that this configuration is not full-scale pretraining of the complete 2.8-trillion-parameter model, but a truncated configuration for functional validation of the training pipeline. Its purpose is to confirm whether attention computation, expert routing, visual encoding, and cross-modal projection can work stably under real data and real optimizer updates, and to observe numerical stability and memory behavior.
4. Results of 400 Consecutive Training Steps
The results show that 16 training processes completed 400 consecutive optimizer updates without numerical overflow or abnormal interruption. Training loss showed a clear downward trend: the average training loss from steps 21 to 70 was 8.9365, and the average over the last 50 steps dropped to 2.1802, a decrease of approximately 75.6%. Validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400, a decrease of approximately 28.2%. The sampled device memory peak was 44.80 GiB.
| Metric | Value |
|---|---|
| Consecutive training steps | 400 steps |
| Training loss (average from steps 21 to 70) | 8.9365 |
| Training loss (average over last 50 steps) | 2.1802 |
| Validation loss (step 100) | 6.5297 |
| Validation loss (step 400) | 4.6873 |
| Sampled memory peak | 44.80 GiB |
Numerical stability and convergence are basic indicators that the training pipeline is usable, but they are not sufficient to prove the completeness of multimodal training. Therefore, the system also specifically checked whether the visual branch truly participated in parameter updates.
5. Verification of Visual Branch Updates
If the visual tower were treated as an offline feature extractor and not updated during training, then even if model loss decreased, it would only indicate that the language backbone was fitting visual features rather than engaging in joint multimodal training. In this validation, the technical team checked the gradient states of the visual tower’s image embedding layer, early layers, later layers, and cross-modal projection module.
The results showed that all these modules produced non-zero gradients and actual parameter updates. This indicates that the image encoding part did participate in training rather than serving only as data input. This result is significant for continued training, domain fine-tuning, and visual capability enhancement. Only when visual encoding parameters are continuously updated can the model truly acquire multimodal representation capabilities under new image-text data distributions.
6. System Optimizations for Larger-Scale Training
In addition to basic training adaptation, the engineering team completed several optimizations for larger-scale configurations, including the following.
First, coordination between fully sharded data parallelism and expert parallelism. By combining parameter sharding granularity with expert routing groups, the additional communication caused by expert selection and gradient synchronization can overlap in time, reducing communication idle time.
Second, parameter prefetching and gradient communication scheduling. While computing the current layer, the next layer’s parameters are prefetched, and the gradient communication order is scheduled so that communication and computation run in parallel as much as possible, reducing overall training step time.
Third, high-performance dynamic sparse attention operators. Dedicated computation kernels were implemented for dynamic sparsity and gated sparsity mechanisms to reduce indexing overhead and invalid computation and improve attention module throughput efficiency.
Fourth, chunked loss computation. Long-sequence loss computation is split into multiple chunks to reduce peak memory during single-step forward and backward passes. The 400-step validation actually enabled chunked loss computation; the other optimizations have also been adapted and can take effect in larger-scale training configurations.
7. Summary and Outlook
Training adaptation for ultra-large-scale multimodal models ultimately comes down to three capabilities: a complete computation graph that supports backpropagation, scalable distributed sharding, and overlappable communication scheduling. This two-server, 16-GPU, 400-step validation shows that domestic GPUs can support complex training pipelines such as dynamic sparse attention, mixture-of-experts routing, and visual tower backward updates, while maintaining numerical stability during continuous training. The non-zero gradient updates in the visual branch further demonstrate that this adaptation is not a surface-level “forward pass works” validation, but a genuine complete loop for multimodal training.
As larger-scale training begins, parameter sharding strategies, communication topologies, and operator performance will continue to be key optimization areas. For ultra-large-scale multimodal models, stable, complete, and scalable training infrastructure is an important prerequisite for continued improvement in model capabilities.
