Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation

    This article examines how a domestic AI chip vendor adapted its flagship training-and-inference accelerator and software stack to an open-weight native multimodal model of roughly 2.8 trillion parameters. It explains why the bottleneck in trillion-scale multimodal training is a closed training pipeline rather than raw compute, then walks through the four adaptation targets (attention, dynamic routing, vision encoding, cross-modal projection), the FSDP2 plus expert parallelism scheduling strategy, operator and memory constraints under long context including chunked loss, and the three-layer validation evidence from a 400-step run on 16 accelerators. A reusable checklist and the explicit limits of the validation are included.

    1. Why Trillion-Scale Multimodal Training Is Hard on the Pipeline, Not the Compute

    In mid-November, a domestic AI chip vendor announced that its flagship training-and-inference accelerator, together with its companion 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 optimizer updates with no numerical overflow and no abnormal interruption, and the vision branch produced real gradient updates.

    The significance of this is not that “it ran.” It is that the work puts a long-overlooked issue on the table: the bottleneck in very large multimodal training is usually not the peak compute of a single card, but whether the entire training pipeline is closed. A closed pipeline means six stages stay self-consistent across long iteration: forward computation, backpropagation, parameter update, cross-card communication, memory reuse, and numerical stability.

    The model that was adapted is an open-weight native multimodal type with roughly 2.8 trillion total parameters. It supports a context length of up to about 1 million tokens, uses a hybrid attention mechanism and a mixture-of-experts (MoE) architecture, and has both visual understanding and tool-calling capability. This kind of structure creates three kinds of pressure:

    • Dynamic sparse retrieval and expert routing make the computation graph change with the input, so static graph optimization is hard to apply.
    • Joint image-text training requires the vision encoder branch and the language backbone to share the same parameter update.
    • Million-token context combined with trillion-scale parameters pushes both per-card memory and cross-node bandwidth toward their limits at the same time.

    So the core goal of the adaptation was not to refresh throughput numbers, but to prove “functional correctness plus long-run stability.”

    2. Four Main Directions of the Adaptation

    The engineering team concentrated the changes on four modules — attention computation, dynamic routing, vision encoding, and cross-modal projection — and wired them into a unified forward, backward, and parameter update flow. The key to this design is the word “unified.” The most common failure mode in multimodal models is that the vision tower is treated as pure data input, gradients are cut off at the projection layer, and in the end only the language backbone is learning.

    Broken down:

    1. Attention computation: hybrid attention contains two kinds of operators, linear attention and sparse attention. They must avoid accumulation overflow under long sequences, and the masking logic of the sparse branch must stay consistent with backpropagation.
    2. Dynamic routing: the Top-K selection in expert routing changes the set of parameters that participate in each step, so routing results must be reproducible during the backward phase; otherwise gradients and parameter versions fall out of sync.
    3. Vision encoding: keep the full vision tower so that image embeddings and the first and last layers all enter the computation graph.
    4. Cross-modal projection: the projection module is the bridge between vision and language, and its gradient must be non-zero; otherwise multimodality degrades into “plain text training with image labels attached.”

    3. Parallelism Strategy: Coordinating FSDP2 with Expert Parallelism

    The training setup keeps the native model loading flow. FSDP2 (fully sharded data parallel) distributes parameters, gradients, and optimizer states across different GPUs, which substantially reduces per-card memory pressure, while cross-card and cross-node communication is handled by the vendor’s own collective communication library.

    The value of FSDP2 is finer sharding granularity and looser coupling with the model structure, but the cost is more communication. When it is stacked with expert parallelism, two kinds of conflict appear:

    • The parameter shard groups and the expert groups do not match in dimension, so the same card both participates in data sharding and hosts experts.
    • Parameter prefetching and gradient reduction compete for bandwidth, producing communication bubbles.

    The engineering fix is coordination at the scheduling level: issue parameter prefetch on a per-layer staggered basis, overlap gradient communication with backward computation, and load-balance the hot experts so that individual cards do not become routing long tails.

    Illustrative configuration logic (pseudocode, expressing scheduling intent only):

    1. # Sharding and parallelism combination sketch
    2. model = FSDP2(
    3. model,
    4. shard_dim="param", # shard parameters/gradients/optimizer states
    5. prefetch_policy="layerwise" # layer-by-layer prefetch to shrink communication bubbles
    6. )
    7. router = ExpertParallel(
    8. top_k=8,
    9. balance_loss_weight=0.01 # suppress routing long tails
    10. )

    4. Operators and Memory: Two Hard Constraints Under Long Context

    The first is high-performance attention operators. Under long sequences, the intermediate tensors of hybrid attention expand very easily, so operator-level fusion and tiling are needed to avoid allocating separate memory for every intermediate result.

    The second is chunked loss computation. When vocabulary size and sequence length both grow, the logits tensor in the final step becomes a memory spike. The chunking strategy splits loss computation along the sequence or vocabulary dimension and accumulates gradients chunk by chunk, trading a small amount of recomputation for a lower memory peak. This 400-step test enabled that strategy, and the measured peak device memory was 44.80 GiB.

    5. Validation Method and Results: How to Prove Training Is Really Happening

    The test environment was two servers with 16 accelerators in total. The model used a trimmed configuration: a 13-layer language backbone, 16 routed experts (Top-8 routing), with the full 27-layer vision tower and cross-modal projection retained. Training data was an image-text question-answering dataset, with a global batch of 16 and a sequence length of 1024.

    The results carry three layers of evidence:

    • Stability: 16 training processes completed 400 consecutive optimizer updates with no numerical overflow and no interruption.
    • Convergence: training loss fell from an average of 8.9365 over steps 21 to 70 down to 2.1802 over the last 50 steps; validation loss fell from 6.5297 at step 100 to 4.6873 at step 400.
    • Branch effectiveness: the vision tower’s image embeddings, first and last layers, and the cross-modal projection all showed non-zero gradients and parameter updates.

    The boundary must be stressed: this validation used a randomly initialized trimmed configuration. It is a functional and stability validation of the pipeline, not equivalent to full-scale pretraining of the complete model, and it cannot be directly extrapolated into conclusions about training quality or cost efficiency.

    6. A Reusable Practice Checklist

    • Verify gradient reachability before talking about throughput: check whether the gradient norm of each modality branch is non-zero.
    • Replace single-step success with short-run, long-stability tests: at least several hundred steps, watching whether the loss curve and memory curve stay flat.
    • Sample memory peaks rather than estimating them: the effect of chunked loss and operator fusion must be judged by measured peaks.
    • Tune communication scheduling and parallelism strategy jointly: optimizing either side alone can be canceled out by the other.
    • State the validation boundary clearly: conclusions from a trimmed configuration cover pipeline correctness only.

    For teams that need to run multimodal training on domestic compute platforms, this methodology — a unified computation graph, sharded parallelism, operator and memory optimization, and layered evidence — is more worth reusing than any single-point metric. Combined with general cloud capabilities such as container platforms, object storage, logging services, and monitoring and alerting, long-stability tests can be automated further and memory and communication metrics can be visualized, shortening the adaptation cycle.