A Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation
This article examines how a domestic GPU vendor adapted its flagship AI training and inference accelerator, together with its in-house software stack, to run a native multimodal large model with roughly 2.8 trillion parameters. It explains why trillion-parameter multimodal training is difficult, how a unified forward, backward, and parameter update flow was built with FSDP2 and a custom collective communication library, the trimmed 16-GPU test configuration and its loss and memory results, four engineering optimizations, and reusable lessons on gradient verification, memory peaks, and cross-node scaling.
1. Why Trillion-Parameter Multimodal Training Is a New Compute Challenge
A domestic GPU vendor recently announced that its flagship AI training and inference accelerator, together with its in-house software stack, has completed training adaptation for an open-weight native multimodal large model. In a two-node, 16-card setup, the system completed 400 consecutive training steps with no numerical overflow or abnormal interruption, and the vision branch achieved real gradient updates.
The significance is not that a single training run succeeded. It is that a complete training path, spanning attention computation, expert routing, vision encoding, and cross-modal projection, was verified for functional correctness and runtime stability under a coordinated domestic hardware and software stack.
Understanding the difficulty requires looking at the model side first. The model under test is an open-weight native multimodal model with about 2.8 trillion total parameters and support for up to 1 million tokens of context. It combines a hybrid attention mechanism of mixed linear attention and gated sparse attention with a MoE (mixture of experts) architecture, and supports both visual understanding and tool calling. Training such a model concentrates difficulty in three areas:
- Dynamic sparse retrieval and expert routing cause load imbalance, so compute and communication volume fluctuate from step to step.
- Joint image-text training requires the vision tower and the language backbone to share the same forward pass, backward pass, and parameter update flow.
- Long context combined with a very large parameter count makes per-card memory a hard constraint.
The core of the adaptation work is therefore not simply “getting the model to run,” but bringing heterogeneous modules under one parallelization strategy and one communication schedule.
2. Adaptation Approach: One Forward, Backward, and Update Flow
The adaptation focused on four modules: attention computation, dynamic routing, vision encoding, and cross-modal projection. The key engineering decision was to avoid writing separate training logic for each module. Instead, all of them were plugged into a unified forward, backward, and parameter update flow so that parallelization strategies, communication primitives, and checkpointing mechanisms apply consistently across every branch.
The training setup retained the model’s native automated training flow. FSDP2 (the second version of fully sharded data parallel) shards model parameters, gradients, and optimizer states across different GPUs, substantially reducing per-card memory pressure, while cross-card and cross-node communication is handled by the vendor’s in-house collective communication library. The value of this split is clear: the parallelization framework decides “how to shard,” the communication library decides “how to transfer,” and the operator layer decides “how to compute fast.” Decoupling the three allows each to be tuned independently.
A typical configuration snippet is shown below (structure only, not a specific product interface):
# Pseudocode: parallelism and loss configuration in a unified training flowmodel = build_model(layers=13, # language backbone layers (trimmed configuration)experts=16, top_k=8, # number of routed experts and Top-K routingvision_layers=27, # full vision tower retained)model = fsdp2_shard(model, shard_scope=["params", "grads", "optimizer"])optimizer = build_optimizer(model, foreach=True)for step, batch in enumerate(dataloader):out = model(batch) # unified image-text forward passloss = chunked_loss(out, chunks=4) # chunked loss to reduce peak memoryloss.backward() # vision branch backpropagates toooptimizer.step()optimizer.zero_grad()
3. Test Configuration: Trimmed Without Losing Fidelity
The actual test used two servers with 16 accelerator cards in total. The model used a 13-layer language backbone and 16 routed experts (Top-8 routing), while the full 27-layer vision tower and the cross-modal projection module were retained. Training data was an image-text question answering dataset, with a global batch size of 16 and a sequence length of 1024.
This configuration reflects a validation philosophy of “trim, but keep the critical path.” The language backbone was trimmed to fit the two-node scale, but the vision tower and cross-modal projection were kept intact because they are the most failure-prone parts of a multimodal training path. Trimming the vision tower as well to save memory would have made the validation meaningless.
On results, all 16 training processes completed 400 consecutive optimizer updates. Training loss fell from an average of 8.9365 over steps 21 to 70 down to 2.1802 over the final 50 steps, and validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400. Peak sampled device memory was 44.80 GiB. More important was the gradient check: 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, proving that vision encoding genuinely participated in training rather than merely passing through as data input.
One boundary needs to be stated clearly: this validation used a randomly initialized trimmed configuration, not full-scale pretraining of the complete model. The goal was to verify the functional correctness and stability of the training path, not to produce usable model weights.
4. Four Key Optimizations and When They Apply
Beyond the base adaptation, four engineering optimizations were completed. The 400-step test enabled chunked loss computation; the other three are already adapted and can support larger configurations:
- FSDP2 combined with expert parallelism: data parallelism shards parameters while expert parallelism shards routed experts, and combining them helps mitigate MoE load imbalance and memory fragmentation.
- Parameter prefetching and gradient communication scheduling: overlapping parameter loading and gradient reduction with computation hides cross-node communication latency, and is necessary above two-node scale.
- High-performance hybrid attention operators: operator-level optimization for the hybrid form of linear attention and gated sparse attention reduces intermediate tensor materialization.
- Chunked loss computation: computing loss over the large vocabulary in chunks avoids materializing an oversized logits tensor at once, a common way to control peak memory in long-context training.
5. Reusable Engineering Lessons
- Unify the flow before optimizing: for multi-branch models, the first problem is flow consistency; fragmented parallelization strategies leave nothing to tune later.
- Peak memory is set by the heaviest branch: the vision tower and projection layers are often overlooked in multimodal training, yet are frequently the source of the peak.
- Non-zero gradients are a hard indicator of path correctness: falling loss alone does not prove a branch is training; parameter update verification is required.
- Communication and compute overlap is a prerequisite for cross-node scaling: running on one node does not mean running on two; communication scheduling determines scaling efficiency.
- State the validation boundary: a successful run on a trimmed configuration only shows the path works; full-scale training still needs separate evaluation.
For developers and enterprise users, this kind of adaptation practice offers a transferable methodology: when running large-scale multimodal training on domestic compute platforms, prioritize a unified training flow, a clear parallelization strategy, and overlappable communication scheduling, and use gradients and memory as dual acceptance criteria.
