A Chinese GPU Completes Trillion-Parameter Multimodal Training Adaptation
This article covers the adaptation of an open-weight native multimodal model with roughly 2.8 trillion parameters on a domestic Chinese GPU setup. It explains the technical path built around FSDP2 sharding, unified forward and backward flows, and expert parallelism, along with the two-node, 16-card test configuration and stability results. Readers will also find the gradient-check method used to confirm that the vision branch is genuinely trained, four key optimizations, and reusable engineering lessons for large-scale multimodal training.
1. Background: Why Trillion-Scale Multimodal Training Is Hard to Deploy
A Chinese GPU vendor recently announced that it has completed training adaptation for an open-weight native multimodal large model. The model has roughly 2.8 trillion parameters in total, supports a context length of up to 1 million tokens, and uses a hybrid attention mechanism together with a Mixture-of-Experts (MoE) architecture. It also supports visual understanding and tool calling. In a joint test across two nodes with 16 cards, the system completed 400 consecutive training steps without numerical overflow or abnormal interruption, and the vision branch achieved real gradient updates.
The difficulty of training this kind of model is not only about the parameter count. Three curves rise at the same time: compute demand, memory pressure, and communication complexity. Dynamic sparse retrieval, expert routing, and joint image-text training make the per-card workload clearly unbalanced. If the sharding strategy or communication scheduling is poorly designed, memory peaks can be exceeded, numerical behavior can become unstable, or training can stop unexpectedly.
The core goal of this adaptation was therefore not to pursue full-scale pretraining results. It was to verify the functional correctness and stability of the training pipeline and to lay an engineering foundation for larger configurations later.
2. Overall Technical Path: Unified Forward, Backward, and Parameter Updates
The adaptation work focused on four modules: attention computation, dynamic routing, vision encoding, and cross-modal projection. The technical team connected these modules to a unified forward, backward, and parameter-update flow. This avoids the common problem where the language branch trains while the vision branch is left idle.
The training approach kept the industry-standard native automated modeling flow. FSDP2 distributes model parameters, gradients, and optimizer states across different GPUs, which significantly reduces per-card memory pressure. Cross-card and cross-node communication is handled by the vendor’s in-house collective communication library. The overall design can be summarized as follows:
- Compute layer: a unified operator abstraction ensures that multimodal branches follow the same automatic differentiation path.
- Storage layer: parameters, gradients, and optimizer states are sharded separately to reduce per-card residency.
- Communication layer: shard aggregation and expert-routing communication are scheduled separately to reduce synchronization waiting.
The illustrative configuration logic is shown below (structure only, not a concrete API):
# Pseudocode: sharded training skeleton with FSDP2 + expert parallelismmodel = build_multimodal_model(language_layers=13,routed_experts=16,top_k=8,vision_tower_layers=27, # full vision towerprojector="cross_modal")model = fsdp2_shard(model, shard_optim=True, shard_grad=True)for step, batch in enumerate(loader):loss = chunk_loss(model(batch), chunks=4) # chunked loss computationloss.backward()optimizer.step()
3. Test Configuration and Stability Results
The test used two servers with 16 training-and-inference compute cards in total. On the model side, it used a 13-layer language backbone, 16 routed experts (Top-8 routing), and kept the full 27-layer vision tower and the cross-modal projection module. On the data side, it used an image-text question-answering dataset, with a global batch size of 16 and a sequence length of 1024.
The key metrics were as follows:
- All 16 training processes completed 400 consecutive optimizer updates without abnormal interruption.
- Training loss dropped from an average of 8.9365 over steps 21 to 70 to 2.1802 over the last 50 steps.
- Validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400.
- The sampled peak device memory was 44.80 GiB.
These results show two things. First, the sharding strategy effectively controlled the memory peak at the two-node, 16-card scale. Second, the loss curve decreased monotonically without spikes, which indicates that numerical stability met the target and no overflow occurred.
4. Is the Vision Branch Really Training? Gradient Verification
The most easily overlooked pitfall in multimodal training is that the vision encoder only runs the forward pass and does not actually participate in backpropagation. The technical team ran an explicit check for this: the vision tower’s image embeddings, its first and last layers, and the cross-modal projection module all produced non-zero gradients and parameter updates.
The recommended verification is simple. You can insert an assertion-style check early in training:
for name, p in model.named_parameters():if "vision" in name or "projector" in name:assert p.grad is not None and p.grad.abs().sum() > 0, name
Only when gradients are non-zero and parameters are actually updated can you prove that the vision encoding part genuinely participates in training rather than serving only as a data input channel.
5. Four Key Optimizations and Engineering Benefits
Beyond the basic adaptation, the team completed four optimizations:
- FSDP2 and expert parallelism working together: addresses the communication overlap between data sharding and expert routing.
- Parameter prefetching and gradient communication scheduling: uses computation to hide communication and reduce synchronization bubbles.
- A high-performance KDA operator: operator-level acceleration for the hybrid attention mechanism.
- Chunk Loss computation: splits the large-vocabulary loss into chunks for backpropagation to reduce peak memory.
The 400-step test actually enabled Chunk Loss. The other three optimizations have completed adaptation and can support larger training configurations.
6. Conclusion and Reusable Lessons
It is important to note that this validation used a randomly initialized, trimmed configuration, not full-scale pretraining of the complete model. Its value lies in verifying pipeline correctness and stability. The lesson for engineering teams is that large-scale multimodal training should follow the order of “get the pipeline working first, then reduce memory pressure, then scale up.” It should also use three acceptance gates: non-zero gradients, monotonically decreasing loss, and a controllable memory peak.
