Validating Ultra-Large Multimodal MoE Model Training on Domestic Accelerator Cards
This article walks through a training validation of a trillion-parameter-class native multimodal MoE model on domestic AI accelerator cards. It covers the infrastructure challenges, full-stack adaptation across attention, routing, vision, and cross-modal projection, the FSDP2 + expert parallelism communication strategy, and measured results from a 400-step run on 16 cards—including gradient checks confirming the vision branch genuinely participated in training.
Validating Ultra-Large Multimodal MoE Model Training on Domestic Accelerator Cards
1. Background: Infrastructure Challenges of Ultra-Large Multimodal Models
Open-weight native multimodal large models have been scaling rapidly in recent years. One such open-weight model totals roughly 2.8 trillion parameters, supports a context length of up to 1 million tokens, combines a hybrid attention mechanism with a Guru (KDA) and Gated DSA attention design, organizes feed-forward computation via a Mixture-of-Experts (MoE) architecture, and offers both visual understanding and tool-calling capabilities.
Models of this class put three kinds of pressure on training infrastructure:
- Compute pressure: Dynamic sparse retrieval and expert routing cause per-card load to shift with the input distribution, demanding both high peak compute and high utilization at the same time.
- Memory pressure: Even with mixed precision and sharding strategies, a trillion-parameter model leaves each card carrying substantial parameter, gradient, and optimizer state—plus activation caching—making memory management the primary bottleneck.
- Communication pressure: With expert parallelism, data parallelism, and fully sharded data parallelism stacked together, the frequency of All-Gather, Reduce-Scatter, and All-to-All communication across cards and nodes rises sharply, and communication efficiency directly determines overall throughput.
Completing a functionally correct and numerically stable training validation of such a model on accelerators outside the mainstream ecosystem is therefore a meaningful indicator of how mature a software-hardware training stack is. This article uses a two-server, 16-card joint training test to reconstruct the complete technical path of this kind of validation.
2. Adaptation Scope: End-to-End Integration from Attention to Cross-Modal Projection
Training adaptation is not simply loading model weights onto accelerator cards. Every part of the computation graph must execute correctly across three phases: forward pass, backward pass, and parameter update. This adaptation covered four core modules:
- Attention computation: The hybrid attention mechanism involves switching between multiple attention variants plus gating logic. The corresponding operator implementations must guarantee numerical precision while fully utilizing the hardware’s matrix compute units.
- Dynamic routing: MoE Top-K routing creates load imbalance and gradient sparsity during training. The routing logic must coordinate with the communication library to ensure correct token exchange between experts.
- Vision encoding: The full multi-layer vision tower must participate in backpropagation, not merely act as a forward-only feature extractor.
- Cross-modal projection: The projection module that aligns image and text features is the key to whether multimodal training is truly joint. Its gradient backpropagation path must be fully connected.
All four modules were integrated into standardized forward, backward, and parameter-update flows while preserving the native pipelines of general-purpose automatic differentiation and distributed training frameworks, minimizing invasive changes to the training scripts themselves.
3. Parallelism and Communication Strategy: FSDP2 + Expert Parallelism + Dedicated Communication Library
Solving the memory and communication problems formed the technical backbone of this validation:
- FSDP2 full sharding: Model parameters, gradients, and optimizer states are partitioned across GPUs and aggregated only on demand, dramatically reducing per-card memory usage. Compared with traditional data parallelism, this approach is nearly mandatory for trillion-parameter models.
- Intra-node and inter-node communication: A dedicated collective communication library handles both paths—high-bandwidth interconnect within a server and networking across servers—ensuring the stability of All-to-All (required by expert routing) and sharding aggregation traffic.
- Parameter prefetch and gradient communication scheduling: Communication is overlapped with computation—prefetching the next layer’s shard during the current layer’s forward pass and scheduling gradient reduction during the backward pass—to cut idle waiting time.
4. Measured Results: 400 Consecutive Training Steps Validating Stability
The validation used a compact setup of two servers with 16 AI accelerator cards in total, running a trimmed model configuration: a 13-layer language backbone with 16 routed experts using Top-8 routing, while retaining the complete 27-layer vision tower and cross-modal projection module. The training data was an image-text QA dataset, with a global batch size of 16 and a sequence length of 1024.
Key results:
- All 16 training processes completed 400 consecutive optimizer updates with no numerical overflow or abnormal interruption.
- Training loss fell steadily from an average of 8.9365 (steps 21–70) to 2.1802 over the final 50 steps.
- Validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400.
- Peak sampled device memory was 44.80 GiB, leaving headroom within the per-card memory budget.
Verifying the effectiveness of the vision branch was a highlight of this validation. Layer-by-layer inspection confirmed that the vision tower’s image embeddings, its first and last layers, and the cross-modal projection module all produced non-zero gradients and completed parameter updates—proving the vision encoder genuinely participated in joint training rather than serving merely as a data input channel. This verification method is worth adopting: in multimodal training, the gap between “appears to be training” and “is actually training” can only be confirmed by inspecting gradients and parameter updates directly.
It should be emphasized that this validation used a randomly initialized, trimmed configuration. Its purpose was to verify the functional correctness and stability of the training pipeline, not to run full-scale pretraining of the complete model. This is a common layered validation strategy in hardware adaptation for large models: prove the pipeline at small scale first, then expand step by step toward the full configuration.
5. Engineering Optimization Checklist: Preparing for Larger-Scale Training
Beyond bringing up the basic pipeline, this adaptation also completed several optimizations aimed at large-scale training:
- Coordination between FSDP2 and expert parallelism: Resolving scheduling conflicts between sharding strategies and expert partitioning in communication.
- Parameter prefetch and gradient communication scheduling: Improving throughput through compute-communication overlap.
- High-performance KDA operators: Operator-level optimization for the core computation of hybrid attention.
- Chunked loss computation: Executing cross-entropy and other loss calculations in blocks to avoid enormous intermediate activations across the full vocabulary dimension. This optimization was actually enabled in the 400-step test; the other three have also been adapted and can support larger-scale training configurations.
6. Summary and Outlook
This validation shows that running the training pipeline of a trillion-parameter-class model—featuring dynamic routing and cross-modal training—on domestic accelerator cards can already meet the engineering standard of “numerically stable, gradients reaching all branches, and uninterrupted over long runs.” For teams planning large model training on heterogeneous compute, the reusable lessons include: validate the pipeline first with a trimmed configuration, use non-zero gradient checks to confirm each branch truly participates in training, and address the dual memory-and-communication pressure with FSDP sharding plus communication overlap. As operator optimization and parallelism strategies continue to mature, the usability of the domestic compute ecosystem on the training side of large models will keep improving.
