Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation
This article examines how a domestic GPU vendor adapted its flagship AI training-and-inference card and in-house software stack to a trillion-parameter, open-weight native multimodal model. It covers the engineering pressures of large sparse MoE models with image-text input, the modular integration approach built on FSDP2, the cropped 16-card test configuration, and the results: steadily falling training and validation loss, a 44.80GiB memory peak, and verified non-zero gradients in the vision branch. Readers will also find the four key optimizations and practical recommendations for validating large-scale multimodal training pipelines.
1. Background: The Training Engineering Challenges of Trillion-Parameter Multimodal Models
On November 16, a domestic GPU vendor announced that its flagship AI training-and-inference compute card, together with its in-house software stack, had completed training adaptation for an open-weight native multimodal large model. In a two-node, 16-card environment, the setup ran 400 consecutive training steps with no numerical overflow and no abnormal interruptions, and the vision branch achieved real gradient updates.
The technical value of this announcement is not that “a training run succeeded once.” It is that a complete engineering chain was validated: whether an ultra-large sparse model combined with image-text dual modality and cross-node distribution has functional correctness and runtime stability under a coordinated domestic hardware and software system.
From the model side, the adapted model has several typical characteristics:
- Roughly 2.8 trillion total parameters, making it an ultra-large sparse (MoE) model;
- Support for ultra-long context of up to 1 million tokens;
- A hybrid attention mechanism of the linear/gated type combined with a mixture-of-experts architecture;
- Both visual understanding and tool-calling capabilities.
Stacking these characteristics together puts three kinds of pressure on the underlying system:
- Compute pressure: Attention computation and visual encoding are both compute-intensive operations, and their cost grows non-linearly with sequence length.
- Memory pressure: Parameters, gradients, and optimizer states—three copies of data—far exceed single-card capacity at trillion-parameter scale.
- Communication pressure: All-to-All communication from expert routing and cross-node parameter synchronization can easily become throughput bottlenecks.
In addition, dynamic sparse retrieval and expert routing introduce a load imbalance problem, while joint image-text training introduces a cross-modal gradient scale mismatch problem. These two are where multimodal MoE training most easily “fails silently”—training reports no error, but the loss does not drop or the vision branch simply learns nothing.
2. Adaptation Approach: Modular Integration Under a Unified Forward and Backward Flow
The core methodology of this adaptation is: do not change model semantics, only restructure the execution path.
The technical team plugged four modules—attention computation, dynamic routing, visual encoding, and cross-modal projection—into the same forward, backward, and parameter update flow. The significance of this is:
- Avoiding a separate training loop for the vision branch, reducing the complexity of state synchronization;
- Ensuring the language branch and the vision branch share the same gradient accumulation and update cadence;
- Allowing gradients from the cross-modal projection layer to propagate correctly back to the vision tower.
For the distribution strategy, the solution retains the automated training flow common in the industry, using FSDP2 (the second generation of Fully Sharded Data Parallel) to shard parameters, gradients, and optimizer states simultaneously across different GPUs. Compared with traditional ZeRO-3 style partitioning, FSDP2 emphasizes sharding and reassembly at the granularity of “parameter groups” at the interface level, and combined with a prefetch mechanism it can significantly reduce communication waiting.
Cross-card and cross-node communication is handled by the vendor’s in-house collective communication library, whose responsibilities cover primitives such as All-Gather, Reduce-Scatter, and All-to-All.
The illustrative configuration logic can be abstracted as:
# Pseudocode: only illustrates how sharding and parallelism strategies combinemodel = build_multimodal_moe(num_layers=13, experts=16, top_k=8)model = FSDP2(model,shard_params=True, # Shard parameters/gradients/optimizer states three waysprefetch_ratio=0.8, # Parameter prefetch to hide communication latencyprocess_group=dp_group # Data parallel communication group)for step, batch in enumerate(loader):loss = chunked_loss(model(batch)) # Chunked loss computation to lower peak memoryloss.backward()optimizer.step()
3. Test Configuration: A Small-Scale Cropped Setup to Validate Chain Correctness
It needs to be emphasized that this validation was not full-scale pretraining of the complete model. Instead, it used a cropped configuration with random initialization, aiming to verify the functional correctness and stability of the training chain.
The specific configuration is as follows:
| Item | Configuration |
|---|---|
| Hardware | 2 servers, 16 training-and-inference compute cards in total |
| Language backbone | 13 layers (cropped) |
| Expert configuration | 16 routed experts, Top-8 routing |
| Vision tower | Full 27 layers |
| Cross-modal projection | Retained |
| Dataset | Image-text question answering dataset |
| Global batch | 16 |
| Sequence length | 1024 |
| Optimization steps | 400 optimizer updates |
This design of “cropping the language backbone while keeping the vision tower complete” is intentional: the gradient path of the vision branch is longer and more prone to breaking, so keeping the full vision tower is the only way to genuinely test whether cross-modal backpropagation holds.
4. Results Analysis: Loss Curves and Memory Behavior
The training results can be read from three dimensions.
1) Training loss keeps dropping
- Average loss from step 21 to step 70: 8.9365
- Average loss over the last 50 steps: 2.1802
A drop of more than 6.7 indicates the parameter update direction is correct and the optimizer states were not corrupted.
2) Validation loss converges in step
- Step 100: 6.5297
- Step 400: 4.6873
Validation and training loss decrease together, ruling out overfitting and data leakage, and also showing that gradient aggregation after sharding is numerically equivalent.
3) Peak memory stays controllable
The sampled device memory peak was 44.80GiB. The significance of this figure is that, with the full vision tower and cross-modal projection retained, single-card memory is kept within a reasonable range for a flagship card, leaving headroom for later expansion to more layers and longer sequences.
4) The vision branch genuinely participates in training
A module-by-module inspection by the technical team found that the image embedding layer of the vision tower, its first and last layers, and the cross-modal projection module all produced non-zero gradients and underwent parameter updates. This is the key evidence for judging whether “multimodal training lives up to its name”—in many adaptation efforts, the vision tower is only called in the forward pass, and gradients are truncated at the projection layer.
5. Key Optimizations: Four Engineering Techniques
Beyond the basic adaptation, the team completed four optimizations. The 400-step test actually enabled chunked loss computation; the other three have been adapted and can support larger-scale configurations.
(1) Coordinating FSDP2 with expert parallelism
The expert dimension of MoE is naturally suited to expert parallelism, but enabling expert parallelism and data parallel sharding at the same time can easily cause nested communication groups and scheduling conflicts. The goal of the coordinated optimization is to keep the parameter sharding groups orthogonal to the expert communication groups, avoiding duplicate synchronization.
(2) Parameter prefetching and gradient communication scheduling
The essence of prefetching is using computation time to hide communication time. By prefetching the next batch of parameters in reverse layer order and overlapping gradient reduction with backward computation, communication overhead can be compressed to nearly zero exposure.
(3) High-performance KDA-type attention operators
Linear/gated attention has clear advantages with long sequences, but it requires operator-level rewriting for the memory hierarchy of domestic hardware, including tiled matrix multiplication, state recurrence fusion, and online normalization, to reduce memory round trips of intermediate tensors.
(4) Chunk Loss chunked computation
The output vocabulary projection of a trillion-parameter model produces a huge logits tensor. Chunked computation slices the logits along the sequence dimension, computes cross-entropy chunk by chunk, and accumulates the result, decoupling peak memory from vocabulary size:
def chunked_loss(logits, labels, chunk=1024):total = 0.0for s in range(0, logits.size(1), chunk):lg = logits[:, s:s+chunk]lb = labels[:, s:s+chunk]total = total + cross_entropy(lg, lb, reduction="sum")return total / labels.numel()
6. Engineering Takeaways and Practical Recommendations
- Validate the chain first, then talk about scale. A cropped configuration plus random initialization is the lowest-cost way to verify correctness, and 400 steps are enough to expose numerical overflow, communication deadlocks, and gradient breaks.
- A module-by-module gradient audit is mandatory. Looking only at loss masks the problem of the vision branch not participating in training.
- Leave headroom for the memory peak. A peak of 44.80GiB shows the current configuration still has room to expand, and when scaling up, increasing sequence length should take priority over batch size.
- Overlapping communication with computation is key to throughput. The prefetch ratio and chunk size need to be tuned jointly.
- The core of domestic adaptation is not replacement but semantic alignment of operators and communication libraries. As long as sharding semantics, reduction order, and numerical precision strategies are aligned, training results are comparable.
In summary, the demonstrative significance of this adaptation is that the training chain for a trillion-parameter native multimodal model can now form a complete closed loop on domestic training-and-inference hardware—functionally correct, numerically stable, and with controllable memory—providing a reusable engineering paradigm for larger-scale multimodal pretraining.
