A Domestic GPU Completes Training Adaptation for a Trillion-Parameter Multimodal Model
This article explains how a domestic GPU vendor adapted its flagship AI training and inference card, together with its in-house software stack, to train an open-weight native multimodal model. It covers why trillion-parameter multimodal models are hard to train, the adaptation approach based on a unified computation graph, a two-node 16-card validation setup and its results, four key optimizations, and practical advice for reproducing a similar pipeline on your own cluster. The scope is a pipeline-level validation with a randomly initialized, trimmed configuration, not a full-scale pretraining run.
1. Why Trillion-Parameter Multimodal Models Are Hard to Train
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 model. In a two-node, 16-card environment, the setup completed 400 consecutive training steps with no numerical overflow or abnormal interruption, and the vision branch achieved real gradient updates. The significance of this result is not that a single training run went through, but that it validated the functional correctness and numerical stability of the entire training pipeline.
To understand the difficulty, start with the model itself. This class of model has roughly 2.8 trillion parameters in total, supports a context length of up to 1 million tokens, and combines a hybrid attention mechanism with a Mixture-of-Experts (MoE) architecture, along with visual understanding and tool-calling capabilities. Such a structure puts four kinds of pressure on the training system:
- Memory pressure: parameters, gradients, and optimizer states add up, so a single card cannot hold a complete model replica.
- Communication pressure: expert routing introduces All-to-All communication, making cross-node bandwidth the bottleneck.
- Numerical pressure: dynamic sparse retrieval and routing scores can easily produce extreme values that lead to overflow.
- Multimodal pressure: joint image-text training requires the vision tower and the language backbone to update together within the same forward and backward graph.
2. Adaptation Approach: Merging Heterogeneous Modules into One Computation Graph
The core of the adaptation work was to bring four types of modules—attention computation, dynamic routing, visual encoding, and cross-modal projection—into a unified forward, backward, and parameter-update flow. The guiding principle here was “do not change the training semantics”: keep the industry-standard native training flow, and reduce resource usage through parallelism strategies rather than rewriting the model.
Parameter sharding followed an FSDP2-style approach, distributing model parameters, gradients, and optimizer states across different GPUs so that each card only keeps the shard needed for its current computation, bringing the peak memory usage down to an acceptable range. Collective communication across cards and nodes was handled by the vendor’s in-house collective communication library. The illustrative configuration logic is as follows:
# Pseudocode: combined sharding + expert parallelism configurationmodel = build_multimodal_model(language_layers=13, # trimmed language backboneexperts=16, top_k=8, # routed experts and Top-Kvision_layers=27, # full vision tower)model = fsdp2_shard(model, shard_on="params_and_grads")model = expert_parallel(model, ep_size=8, comm_backend="mccl")
3. Validation Setup: How a Small Configuration Demonstrates Large Capability
The test used two servers with 16 compute cards in total. The model used a 13-layer language backbone and 16 routed experts (Top-8 routing), while keeping the full 27-layer vision tower and the cross-modal projection module. Training data was an image-text question-answering dataset, with a global batch size of 16 and a sequence length of 1024.
The results are convincing: 16 training processes completed 400 consecutive optimizer updates. Training loss dropped from an average of 8.9365 over steps 21 to 70 to 2.1802 over the last 50 steps, and validation loss fell from 6.5297 at step 100 to 4.6873 at step 400, with a sampled peak device memory of 44.80 GiB. More importantly, the gradient check showed 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, proving that visual encoding genuinely took part in training rather than serving only as data input.
The boundary must be emphasized: this validation used a randomly initialized, trimmed configuration and is a pipeline-level validation. It is not equivalent to full-scale pretraining of the complete model, and convergence quality or final accuracy cannot be inferred from it.
4. Four Key Optimizations
- Coordinated sharding and expert parallelism: preventing the two parallelism methods from blocking each other during parameter aggregation and routing distribution.
- Parameter prefetching and gradient communication scheduling: hiding communication behind computation to reduce bubbles.
- High-performance attention operators: operator-level optimization for hybrid attention and gated sparse attention to suppress numerical extremes.
- Chunked loss computation: splitting the large-vocabulary loss into chunks and accumulating them, significantly reducing the memory usage of the output layer; this was actually enabled in the 400-step test.
5. Practical Advice
To reproduce a similar pipeline on your own cluster, proceed in the order of “numerical correctness on a single card first, then multi-card parallelism, then scaling up”: first align the loss curve with a minimal configuration, then check whether the gradients of each branch are non-zero, and finally increase the number of layers and experts step by step. Also bring peak memory usage, communication ratio, and numerical overflow alerts into routine monitoring, and use logging services and monitoring/alerting systems to locate the abnormal step. For enterprise users, choosing a compute foundation with a mature container platform and high-performance interconnect capabilities often determines the stability of large-scale training more than simply piling up cards.
