Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation
This article examines a domestic accelerator vendor's successful training adaptation of an open-weight native multimodal model with roughly 2.8 trillion parameters. It explains why completing 400 consecutive optimizer updates without interruption is a meaningful correctness milestone, breaks down the model-side complexity from sparse MoE routing, million-token context, and native multimodal fusion, and details the adaptation approach based on FSDP2 sharding and orthogonal expert parallelism. Readers will find the test configuration, loss and memory results, a method for verifying that the vision branch truly participates in training, four key optimizations for scaling further, and reusable best practices for hardware or framework bring-up.
1. Why “Running 400 Steps” Is a Key Metric on Its Own
In mid-November, a domestic accelerator vendor announced that it had completed the training adaptation of an open-weight native multimodal large model with roughly 2.8 trillion total parameters and support for million-token context. In a two-node, 16-card environment, the setup completed 400 consecutive optimizer updates without numerical overflow or abnormal interruption, and the vision branch produced genuine gradient updates.
Many developers ask why 400 steps deserves a separate mention. The reason is that failures in ultra-large-scale training are distributed very unevenly. Most problems do not show up as “can a single step compute a loss,” but rather in the following areas:
- After the first few dozen steps, optimizer momentum and second-moment accumulation expose numerical range issues;
- Sharded parameters hit deadlocks or timeouts in communication scheduling across the forward, backward, and update phases;
- Sparse routing causes load skew on long-tail experts, and individual devices run out of memory;
- Multimodal branches appear to participate in training but actually produce gradients that are always zero, so training only takes effect on the language side.
Therefore, consecutive steps without interruption, a monotonically decreasing loss, controlled peak memory, and non-zero gradients on non-primary branches together form a minimal “proof of training pipeline correctness.” These criteria are hardware-agnostic, and any team adapting new hardware or a new framework can reuse them directly.
2. Three Sources of Model-Side Complexity
To understand the adaptation challenges, first look at the pressure created by the model structure:
- Sparsification. A mixture-of-experts architecture combined with gated sparse attention means that operator selection and expert assignment at each step are data-dependent, so the computation graph cannot be fully staticized in advance.
- Ultra-long context. A million-token window makes attention memory and communication volume grow superlinearly with sequence length, requiring chunking and recomputation strategies.
- Native multimodality. The vision tower, cross-modal projection, and language backbone must be placed in the same forward, backward, and parameter update flow, rather than “encode and store first, then train the language model separately.”
Together, these three points dictate that the engineering solution must simultaneously solve three problems: “memory that fits,” “communication that is schedulable,” and “operators that compute correctly.”
3. Adaptation Main Line: Converging Heterogeneous Modules into a Unified Training Flow
The core idea of this adaptation is module-level consolidation: the attention computation, dynamic expert routing, vision encoding, and cross-modal projection are each modified and then plugged into a unified forward-backward-parameter-update main loop, while retaining the native automatic parallelism flow of mainstream industry training frameworks to avoid maintaining a private branch.
Parameters, gradients, and optimizer states are sharded via FSDP2, so each card holds only part of the full state, shifting memory pressure from “single-card load” to “cluster-shared load.” Collective communication across cards and nodes is handled by the vendor’s in-house communication library. Here is an easily overlooked engineering detail: the sharding strategy must be designed orthogonally to the expert-parallel partitioning dimension; otherwise, the same batch of parameters gets sharded repeatedly and communication volume multiplies.
A schematic configuration skeleton is shown below (structure only, not a specific interface):
# Pseudocode: orthogonal sharding + expert parallelismmodel = build_model(layers=13, # Language backbone layers (trimmed config)experts=16, top_k=8, # Number of routed experts and activationsvision_layers=27, # Full vision tower retainedprojector=True # Cross-modal projection)model = fsdp2_shard(model,shard_dim="hidden", # Shard parameters/gradients/optimizer statesprefetch=True # Parameter prefetch to hide communication latency)model = expert_parallel(model, ep_dim="expert") # Orthogonal to shard dimension
4. Test Configuration and Result Interpretation
The test environment used two servers with a total of 16 flagship training-and-inference compute cards, a trimmed 13-layer language backbone, 16 routed experts (Top-8), a full 27-layer vision tower, and a cross-modal projection. The dataset consisted of image-text question-answering samples, with a global batch size of 16 and a sequence length of 1024.
Key results:
- All 16 training processes completed 400 optimizer updates with no interruption;
- Training loss dropped from a mean of 8.9365 over steps 21-70 to 2.1802 over the last 50 steps;
- Validation loss fell from 6.5297 at step 100 to 4.6873 at step 400;
- Peak sampled memory was 44.80 GiB.
The correct way to read these numbers: the rapid early loss drop indicates the gradient path and optimizer states are working; the continued validation loss decline shows there is no overfitting-style illusion of “training loss down, validation loss up”; and the peak memory staying within single-card capacity shows the sharding and recomputation strategies are effective. It must be emphasized that this validation used a randomly initialized trimmed configuration, targeting pipeline functionality and stability rather than full-scale pretraining results, and cannot be extrapolated into conclusions about model capability.
5. How to Prove the Vision Branch “Truly Participates”
The most common hidden defect in multimodal training is a vision side that spins idle. The detection method is not complicated: after the backward pass, check gradient norms module by module.
for name, p in model.named_parameters():if "vision" in name or "projector" in name:assert p.grad is not None and p.grad.norm() > 0, name
Only when image embeddings, the first and last layers of the vision tower, and the cross-modal projection all show non-zero gradients accompanied by parameter updates can joint image-text training be confirmed as real. It is advisable to hard-code this check as an assertion in the CI pipeline, automatically regressing it after every change to the parallelism strategy or operator implementation.
6. Four Key Optimizations Supporting Larger Scale
- FSDP2 and expert parallelism working together: control the coupling between communication and memory to prevent communication from becoming the bottleneck at scale;
- Parameter prefetch and gradient communication scheduling: overlap parameter fetching with computation to reduce the bubble ratio;
- High-performance sparse attention operators: fuse dynamic gating and sparse retrieval to reduce intermediate tensor writes to memory;
- Chunked loss computation: compute and reduce output-layer logits in chunks, significantly lowering peak memory under long sequences.
This 400-step test enabled chunked loss; the other three items have completed adaptation and can support configurations with more layers, more experts, and longer sequences.
7. Reusable Implementation Recommendations
- Start with small-scale trimmed validation, then gradually scale up layers and experts, changing only one variable at a time;
- Turn “uninterrupted step count, loss curve, peak memory, and non-primary branch gradient norm” into four hard gates;
- The communication library and sharding strategy must be tuned as a pair; tuning either one alone yields limited gains;
- If running in the cloud, container platforms can schedule multi-node tasks, object storage can hold datasets and checkpoints, and monitoring, alerting, and logging services can track loss and memory trends. Cloud providers such as Baidu AI Cloud typically offer these general capabilities, making it easier to standardize the validation workflow.
