Training a Trillion-Parameter Multimodal MoE Model on Domestic GPUs: Adaptation Practices and Verification
This article examines how a domestic GPU vendor's flagship AI training-and-inference card and software stack were adapted to train a ~2.8-trillion-parameter open-weight multimodal MoE model, covering hybrid attention operator adaptation, fully sharded data parallelism, communication-computation co-optimization, and a 16-GPU dual-node validation run that completed 400 training steps with stable loss convergence—including a key check confirming the vision branch genuinely participated in training.
Training a Trillion-Parameter Multimodal MoE Model on Domestic GPUs: Adaptation Practices and Verification
As large models scale into the trillions of parameters, native multimodal architectures and Mixture-of-Experts (MoE) designs have become mainstream directions, placing unprecedented demands on training hardware in terms of compute, memory capacity, and multi-GPU communication. Recently, a domestic GPU vendor announced that its flagship AI training-and-inference card, together with its accompanying software stack, completed training adaptation for an open-weight multimodal model with roughly 2.8 trillion parameters and million-token context support. In a dual-node, 16-GPU environment, the setup ran 400 consecutive training steps without numerical overflow or abnormal interruption. This work provides a reference engineering blueprint for training ultra-large multimodal models on domestic compute. This article analyzes the key technical aspects of the effort.
1. Training Challenges of Trillion-Parameter Multimodal Models
The pressure this class of model places on a training system stems from multiple layers of architectural complexity:
- Hybrid attention mechanism: The model combines a linear attention variant with gated sparse attention. The dynamic sparse retrieval involved requires low-level operators that can efficiently handle irregular attention computation patterns.
- MoE expert routing: Sparsely activated expert architecture means the computational load on each GPU varies dynamically with routing results, raising the bar for memory allocation strategy and cross-GPU communication scheduling.
- Joint image-text training: The vision encoder and language backbone are coupled through a cross-modal projection module. Forward and backward propagation chains are longer, and numerical instability at any point can interrupt training.
- Ultra-long context: Million-token context support directly stresses activation memory usage and sequence parallelism capability.
The essence of the adaptation work, therefore, is to integrate these complex modules into a unified forward, backward, and parameter-update pipeline while guaranteeing numerical correctness and system stability.
2. Core Technical Path of the Adaptation
2.1 Modular Operator Adaptation
The adaptation centered on four key module categories: attention computation, dynamic routing, vision encoding, and cross-modal projection. For the sparse retrieval component of hybrid attention, dedicated high-performance operators were implemented to replace general-purpose implementations that would otherwise become a bottleneck. For expert routing, the numerical precision of gating weights and load balancing across experts had to be ensured.
2.2 Fully Sharded Data Parallelism to Reduce Memory Pressure
The training solution preserves the native workflow of mainstream large-model training frameworks. Through second-generation fully sharded data parallelism (an FSDP2-class approach), model parameters, gradients, and optimizer states are distributed across different GPUs, substantially reducing per-card memory usage. Cross-GPU and cross-node communication is handled by the accompanying collective communication library, ensuring efficient and correct parameter synchronization.
This sharding strategy is especially critical for MoE models: expert parameters can be partitioned across devices, and combined with expert parallelism, each GPU only needs to carry the computation and storage of a subset of experts.
2.3 Communication-Computation Co-Optimization
Beyond the basic adaptation, the engineering team completed several advanced optimizations, including:
- FSDP and expert parallelism coordination: Resolving scheduling conflicts between parameter sharding and expert routing;
- Parameter prefetching and gradient communication scheduling: Hiding communication latency by overlapping computation with communication;
- High-performance hybrid attention operators: Accelerating the core sparse attention computation;
- Chunked loss computation: Splitting the loss calculation into chunks to prevent the logits tensor from consuming excessive memory in a single allocation under long sequences.
3. Validation on Two Nodes with 16 GPUs
The actual validation used two servers with a total of 16 AI compute cards. To control validation costs, the test model used a trimmed configuration: a 13-layer language backbone with 16 routed experts (Top-8 routing), while retaining the complete 27-layer vision tower and cross-modal projection module. A medical image-text QA dataset was used, with a global batch size of 16 and a sequence length of 1024.
Results showed that all 16 training processes completed 400 consecutive optimizer updates. Training loss declined steadily from around 8.94 at the start to an average of about 2.18 over the final 50 steps, while validation loss dropped from 6.53 to 4.69. The sampled peak device memory was 44.80 GiB. The smooth descent of the loss curve indicates good numerical stability, with no gradient explosion or NaN divergence.
4. An Easily Overlooked Key Check: Is the Vision Branch Actually Training?
A common hidden problem in multimodal training is that although visual data enters the model as input, the vision encoder may not actually be updated due to a broken gradient backpropagation path. In this validation, the technical team specifically inspected the vision tower’s image embedding layer, its first and last layers, and the cross-modal projection module, confirming that all of these produced non-zero gradients and actual parameter updates. This proves the vision encoding chain functionally participated in the joint optimization rather than “idling.”
This verification method is worth adopting: when accepting a multimodal training pipeline, gradient norms of key parameters in each modality branch should be sampled to rule out silent failures.
5. Scope Boundaries and Future Directions
It should be clear that this test used a randomly initialized, trimmed configuration. Its purpose was to validate the functional correctness and stability of the training pipeline, not to conduct full-scale pretraining of the complete model. To move toward production-grade training, expert parallelism efficiency, long-sequence scaling, and stability over longer time windows still need to be verified at larger cluster scales. Among the four completed advanced optimizations (expert parallelism coordination, communication scheduling, attention operators, and chunked loss), chunked loss was the one actually enabled in this test; the other three are already capable of supporting larger-scale configurations.
Conclusion
This practice shows that for domestic compute to support trillion-parameter multimodal MoE training, the difficulty lies not in raw single-point compute, but in the systematic coordination of operators, parallelism strategies, communication scheduling, and numerical validation. For enterprises looking to train large models on domestic AI compute platforms, combining mature cloud platform capabilities—such as container platforms, distributed storage, and monitoring/alerting—can further lower the barrier to cluster setup and operations, allowing teams to focus on the model and data themselves.
