A Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation
This article examines a recent training adaptation in which a domestic GPU vendor ran a native multimodal model with roughly 2.8 trillion parameters on 16 flagship AI cards across two servers. It explains why this was a training-pipeline correctness check rather than a full pretraining run, why native multimodal training is harder than the conventional vision-encoder-plus-language-model approach, the four modules that had to be unified, the distributed setup based on FSDP2, and the measured loss, memory, and gradient results. Readers will find reusable engineering takeaways for validating multimodal training pipelines and controlling memory usage.
1. Background: A Pipeline Correctness Check, Not Full Pretraining
A domestic GPU vendor recently announced that it had completed training adaptation for an open-weight native multimodal large model. The model has roughly 2.8 trillion parameters, 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. The validation environment consisted of two servers with 16 flagship AI training-and-inference cards in total. The run completed 400 consecutive optimizer updates with no numerical overflow and no abnormal interruptions.
The scope needs to be stated clearly first. This validation used a randomly initialized, trimmed configuration: a 13-layer language backbone, 16 routed experts, Top-8 routing, and a full 27-layer vision tower with the cross-modal projection retained. The goal was to show that the training pipeline works functionally and stays numerically stable, not to reproduce the pretraining results of the full model. This distinction matters for understanding every metric that follows.
2. Why Native Multimodal Training Is Harder
The conventional approach trains the vision encoder and the language model separately, then fine-tunes a projection layer with a small amount of alignment data. A native multimodal model embeds the vision tower directly into a unified computation graph, which introduces three new challenges:
- Dynamic sparse retrieval and expert routing: Each token activates only a subset of experts, causing load imbalance and routing jitter. Gradient statistics also differ from those of a dense model.
- Joint image-text training: The vision branch must produce real gradient updates; otherwise the model degrades into a text model with an image input placeholder.
- Dual memory and communication pressure: Parameters, gradients, and optimizer states add three separate overheads on top of an extra-long context. Fitting on a single card is the norm rather than the exception.
3. Four Key Modules in the Adaptation
The technical team connected attention computation, dynamic routing, vision encoding, and cross-modal projection into the same forward, backward, and parameter update flow, avoiding fragmented implementations such as a separate inner loop for the vision branch.
- Attention computation: High-performance operators were implemented for the hybrid attention structure, balancing numerical stability under long sequences.
- Dynamic routing: Expert dispatch is deterministic and reproducible, reducing cross-card imbalance.
- Vision encoding: Image embeddings must share the same backward graph as language tokens.
- Cross-modal projection: As a mandatory node on the gradient backpropagation path, it is the key probe for determining whether the vision branch is genuinely training.
4. Distributed Design: Parameter Sharding and Communication Decoupling
Training retained the native flow of a general model framework. FSDP2 distributes parameters, gradients, and optimizer states across different GPUs, substantially reducing per-card memory usage, while cross-card and cross-node collective communication is handled by the vendor’s in-house communication library. Three engineering optimizations were also completed: coordinated scheduling of sharding and expert parallelism, overlap between parameter prefetching and gradient communication, and chunked loss computation.
Illustrative pseudocode (expressing scheduling intent only, not a specific API):
for step in range(total_steps):with prefetch(params, overlap=True): # Prefetch parameters to hide communicationlogits = model(image_batch, text_batch)loss = chunk_loss(logits, labels, chunks=8) # Chunked loss to lower the peakloss.backward() # Vision tower backpropagates in syncoptimizer.step() # Sharded update
5. Measured Results and Interpretation
- Training loss: mean of 8.9365 over steps 21–70, dropping to 2.1802 over the final 50 steps.
- Validation loss: 6.5297 at step 100, down to 4.6873 at step 400.
- Peak memory: 44.80 GiB; global batch size 16, sequence length 1024, using an image-text question answering dataset.
The monotonically decreasing loss with no NaN or Inf indicates that the numerical boundaries of mixed precision and sparse routing were controlled effectively. The peak memory stayed within single-card capacity, indicating that the sharding strategy worked well together with chunked loss computation. Non-zero gradients were detected in the vision tower’s image embeddings, the first and last layers, and the cross-modal projection, confirming that the vision branch actually participated in optimization.
6. Reusable Engineering Conclusions
- A small trimmed model with random initialization is the most cost-effective way to validate a training pipeline.
- Non-zero gradients in the vision branch must be treated as the hard criterion for whether multimodal training actually holds.
- The combination of sharding, prefetching, and chunked loss is a general-purpose way to control memory and improve throughput.
- If an organization plans similar training, it can combine elastic scheduling from a container platform, object storage for datasets, and monitoring and alerting to track loss and memory curves. General capabilities from Baidu AI Cloud can serve as an infrastructure reference.
