Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation

    This article examines the engineering adaptation of a domestic GPU for a trillion-parameter, natively multimodal model with a 2.8-trillion-parameter scale and 1-million-token context support. It explains why sparse MoE and vision-language joint training are harder to stabilize, breaks down the adaptation approach (unified forward/backward flow, FSDP2 sharding, communication scheduling, and four key optimizations), and interprets a 400-step test on 16 GPUs across two servers. Readers will find reusable practices for validating correctness first, prioritizing stability metrics, and scaling long-running multimodal training.

    1. From “It Runs” to “It Trains Stably”: The Real Bar for Trillion-Scale Multimodal Training

    Once large-model training enters the trillion-parameter and million-token context stage, engineering complexity is no longer a contest of raw single-device compute. It is the combined result of memory capacity, inter-card bandwidth, operator correctness, and numerical stability. When a model has a language backbone, sparse expert routing, and a visual encoding branch at the same time, the training pipeline evolves from “one forward pass, one backward pass” into a multi-path scheduling problem: a gradient anomaly in any branch, or a single cross-node communication timeout, can interrupt a long-running training job.

    Recently, a domestic GPU vendor announced that it had completed the training adaptation for an open-weight, natively multimodal model. The model has roughly 2.8 trillion parameters in total, supports a context length of up to 1 million tokens, uses a hybrid attention mechanism and a Mixture-of-Experts (MoE) architecture, and supports visual understanding and tool calling. On a two-node, 16-card setup, the adapted system completed 400 consecutive training steps without numerical overflow or abnormal interruption, and the visual branch achieved real gradient updates. The significance of this result is not that a specific model was made to run, but that an engineering path for ultra-large-scale sparse multimodal training was shown to be viable.

    It should be noted that this kind of validation typically uses a randomly initialized, trimmed configuration. The goal is to verify the functional correctness and stability of the training pipeline, not to run full-scale pretraining of the complete model. Understanding this boundary is necessary to assess the engineering value correctly.

    2. Why Multimodal Sparse Models Are Harder to Train

    2.1 Load Imbalance from Dynamic Sparse Retrieval and Expert Routing

    The MoE architecture dispatches different tokens to different experts through a routing mechanism, so load imbalance is inherent. If the routing distribution is skewed, some devices carry far more than the average compute and memory pressure, which slows down the overall synchronization cadence. Dynamic sparse retrieval further introduces data-dependent control flow, so the computation graph can differ at every step, placing higher demands on static-graph optimization and operator fusion strategies.

    2.2 Gradient Coupling Between the Two Paths of Image-Text Joint Training

    The visual branch and the language branch share the same parameter update flow, but their numerical scales and gradient sparsity differ markedly. If the cross-modal projection module is poorly designed, visual gradients can be drowned out by the language loss, producing a false convergence in which “the vision tower does not participate in training.” Therefore, verifying that the visual branch produces non-zero gradients and real parameter updates is the key indicator of whether multimodal training is actually taking effect.

    2.3 The Dual Squeeze of the Memory Wall and the Communication Wall

    Even after sharding, a trillion-parameter model still requires each card to hold a large amount of activations and temporary buffers. Long contexts further amplify activation memory, while cross-card and cross-node parameter and gradient synchronization eat into the time window that could otherwise be used for computation. Memory and communication thus become a pair of mutually constraining limits.

    3. Core Breakdown of the Adaptation Approach

    3.1 A Unified Forward, Backward, and Parameter Update Flow

    The adaptation work centers on four modules: attention computation, dynamic routing, visual encoding, and cross-modal projection. These are wired into a unified forward, backward, and parameter update flow. The value of this is to avoid semantic inconsistency from multiple execution paths and to ensure that the gradient of any module can propagate back along the correct path and land on the corresponding parameters.

    3.2 FSDP2: Separating Parameters, Gradients, and Optimizer States

    The training approach preserves the native model definition flow and uses FSDP2 to distribute model parameters, gradients, and optimizer states across different GPUs, significantly reducing per-card memory pressure. The core idea is “aggregate when needed, release when done”: full parameters for a layer are gathered temporarily when that layer needs to be computed, and released immediately after the computation, turning static memory usage into a schedulable time cost.

    1. # Illustration: the general shape of an FSDP2 training loop
    2. for step in range(total_steps):
    3. for layer in model.layers: # gather parameters layer by layer
    4. all_gather(layer.params) # collect shards across cards
    5. forward(layer) # forward computation
    6. release(layer.params) # release promptly to lower the peak
    7. loss = chunk_loss(logits, labels) # chunked loss to avoid huge tensors
    8. loss.backward() # backward pass, reduce_scatter gradients layer by layer
    9. optimizer.step() # update local shards
    10. optimizer.zero_grad()

    3.3 Communication Layer: Unified Scheduling Across Cards and Nodes

    Cross-card and cross-node communication is handled by the collective communication library, which is responsible for tasks such as parameter aggregation and gradient reduction. In engineering practice, communication usually needs to overlap with computation, and the parameter prefetch order needs static planning, so that the next layer’s parameters start transferring before the current layer’s computation finishes, hiding communication latency.

    3.4 Four Key Optimizations

    Beyond the base adaptation, the approach also completed four optimizations: coordinated scheduling of FSDP2 and expert parallelism, parameter prefetch and gradient communication scheduling, high-performance operators for hybrid attention, and chunked loss computation. Among these, chunked loss computation was actually enabled in the 400-step test, while the other three have completed adaptation and can support larger-scale training configurations. The value of chunked loss is to avoid constructing an oversized vocabulary-dimension tensor all at once, turning the memory peak from “uncontrollable” into “estimable.”

    4. Test Configuration and Result Interpretation

    The test used two servers with a total of 16 flagship training-and-inference compute cards. On the model side, it used a 13-layer language backbone, 16 routed experts with Top-8 routing, and retained the complete 27-layer vision tower and 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.

    All 16 training processes completed 400 consecutive optimizer updates. The training loss dropped from an average of 8.9365 over steps 21 to 70 down to 2.1802 over the last 50 steps, and the validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400. The sampled peak device memory was 44.80 GiB. Further inspection by the technical team found that the vision tower’s image embeddings, the first and last layers, and the cross-modal projection module all produced non-zero gradients and parameter updates, indicating that the visual encoding part genuinely participated in training.

    There are three key points in interpreting this data. First, the loss curve decreases monotonically with no spikes, indicating that numerical stability meets the bar. Second, the memory peak leaves a controllable margin, providing room to later increase the batch size or sequence length. Third, the non-zero gradients in the visual branch rule out the common trap where “multimodal stays only at the data input layer.”

    5. Reusable Engineering Lessons

    • Validate the pipeline first, then pursue scale. Running a trimmed configuration for a few hundred steps is the lowest-cost way to verify correctness.
    • Put stability metrics up front. Numerical overflow, communication timeouts, and zero gradients should be first-class monitoring items, not objects of after-the-fact investigation.
    • Make memory optimization systematic. Sharding, prefetch, and chunked loss need to be combined; a single-point optimization is often canceled out by a peak elsewhere.
    • Multimodal work must verify branch effectiveness. A drop in total loss alone is not enough to prove the visual path is working; you need to check gradients and update magnitudes module by module.
    • Overlapping communication with computation is the lifeline of long-running training. Without an overlap mechanism, scaling efficiency decays quickly as the number of nodes grows.

    6. Conclusion

    Adapting a trillion-parameter, natively multimodal model for training is essentially organizing compute, memory, communication, and numerical stability into a reproducible, monitorable, and scalable pipeline. The fact that the two-node, 16-card setup ran 400 consecutive steps without interruption and that the visual branch updated for real shows that this pipeline is now viable at the functional and stability levels. For developers, what is more worth borrowing is not any single test result, but the progression order of “correctness first, then stability, then scale,” along with the systematic approach built around sharding, prefetch, chunking, and operator optimization. When running similar training in the cloud, you can combine general capabilities such as container platforms, object storage, log services, and monitoring and alerting to turn the experimental process into traceable, rollback-capable engineering assets.