Trillion-Parameter Multimodal Model Training Pipeline Verified on China's Domestic GPUs
Recent progress in adapting China's domestic GPUs to large language model (LLM) software stacks has shifted the focus from single-card inference to full training pipeline support. This article examines the engineering challenges of validating a trillion-parameter-scale multimodal Mixture-of-Experts (MoE) model training run, explains why such architectures are harder to support, and highlights the metrics that matter—including continuous execution, loss convergence, and memory peak control. It also covers key software stack components such as operator implementation, state sharding, and multi-node communication, and offers a layered evaluation framework for enterprises assessing domestic GPU adoption.
Recent years have seen a clear acceleration in the adaptation of China’s domestic GPUs to large language model (LLM) software stacks. Compared with earlier efforts that focused mainly on single-card inference or basic operator compatibility, current adaptation work is increasingly targeting multi-node multi-card training, Mixture-of-Experts (MoE) models, native multimodal networks, and long-duration stable operation. For complex models with trillion-parameter scale, a language backbone, visual encoders, and cross-modal connection modules, the ability to complete a continuous, reproducible training validation with reasonable loss trends has become an important indicator of hardware and software stack maturity.
The core significance of this validation is not simply to showcase the peak compute of a single accelerator card, but to demonstrate that domestic GPUs can initially support the complete pipeline required for complex model training. This pipeline typically includes model structure parsing, operator implementation, automatic mixed precision, parameter and gradient sharding, optimizer state management, inter-node communication, checkpoint saving, and fault recovery. A compatibility issue in any one of these areas can prevent training from starting, cause loss to fail to converge, lead to continuously growing memory usage, or interrupt execution after dozens or even hundreds of steps.
Why Trillion-Parameter Multimodal Models Are Harder to Adapt
Traditional language model architectures have a relatively straightforward structure, consisting mainly of embedding layers, attention layers, feed-forward networks, and output layers. Multimodal models, on the other hand, must process image or other non-text inputs and map different data types into a unified representation space through visual encoders, projection layers, and cross-modal fusion modules.
On top of that, MoE models introduce a dynamic routing mechanism. The model does not pass every input through all parameters; instead, a router selects a subset of expert networks for each token or sample based on its features. This keeps the total parameter count large while controlling the scale of activated parameters per step, but it also introduces more complex engineering issues:
- More dynamic communication patterns. Different tokens may be dispatched to different experts, requiring data reordering and exchange between devices. Communication volume and hotspots change with the input.
- Memory usage becomes harder to predict. Expert parameters, activations, routing indices, temporary buffers, and gradient tensors all consume GPU memory simultaneously. Peaks often occur during the overlap of computation and communication.
- Operator combinations become more complex. Mixed attention, sparse routing, expert aggregation, and cross-modal projection must work together in both forward and backward passes. A single operator missing a training-mode implementation can break the entire pipeline.
- Numerical stability requirements increase. Routing probabilities, attention scores, normalization layers, and large-scale reduction operations can amplify low-precision computation errors, leading to gradient anomalies or loss oscillation.
Therefore, completing a scaled-down training experiment does not prove that all issues of full-scale pretraining have been solved, but it can effectively verify whether the foundational framework, operator implementations, and distributed execution environment are ready for further scaling.
What This Validation Focuses On
According to publicly disclosed information, this experiment used a reduced model configuration: only some layers of the language backbone were retained, expert count and activation ratio were trimmed, while the full visual branch and cross-modal projection module were kept. The experiment ran continuously for hundreds of steps in a two-node multi-card environment, focusing on the following metrics.
Can Training Run Continuously?
Continuous operation is the most basic but also the most important metric. The training program being able to launch only indicates that model loading and part of the forward computation are free of obvious errors. Only after a longer run can issues like memory leaks, communication deadlocks, random interruptions, gradient accumulation anomalies, and checkpoint state inconsistencies be exposed.
In a multi-node environment, a single process exception can halt the global task. The continuous training validation therefore also examines device stability, process group management, communication timeout handling, and distributed synchronization mechanisms.
Does the Loss Show a Reasonable Trend?
Experimental data shows that training loss gradually decreased from an initial relatively high level to a lower level, and validation loss also improved. This indicates that forward computation, backward propagation, parameter updates, and data reading are basically coherent, and that the visual branch parameters are indeed participating in updates.
It should be noted that a loss decrease does not mean the model has reached a usable level. Training steps, data scale, and model configuration were all trimmed for this experiment. It is more appropriate to use the results to judge whether the pipeline has been connected rather than to evaluate final model capability. Demonstrating effective large-scale pretraining requires longer training, larger datasets, and configurations closer to real-world use.
Is Memory Peak Controllable?
Public information shows that memory peak was recorded during this experiment. Memory metrics cannot be assessed by looking at model parameters alone. The following components must also be considered:
- Parameter copies
- Gradient tensors
- Optimizer states
- Forward activations
- Communication buffers
- Expert routing and token reordering caches
- Temporary compute workspace
- Framework runtime and memory fragmentation
For MoE models, even though each token only activates a subset of experts, the device side may still hold many expert parameters or intermediate states. Memory peak analysis should cover the entire training process, not just sample a single operator or a single point in time.
Key Technical Aspects of Software Stack Adaptation
Completing Forward and Backward Operators
Hardware adaptation must first solve operator executability, but training scenarios are far more demanding than inference. Inference requires only forward computation, while training requires building a backward graph, saving necessary activations, computing gradients, and completing parameter updates.
For complex multimodal models, adaptation work typically includes:
- Forward and backward implementations of mixed attention
- Expert routing and token reordering
- Expert output aggregation
- Normalization layers and their gradient computation
- Projection of visual features into language space
- Cross-modal attention or fusion modules
- Low-precision computation with high-precision accumulation
- Handling of empty experts and load imbalance in sparse computation
If only forward operators are implemented, the model can complete inference but cannot enter training. More complete adaptation must also verify the correctness of operator gradients and align them with a reference implementation layer by layer or operator by operator.
Sharding Parameters, Gradients, and Optimizer States
As model scale grows, a single device cannot hold the full set of parameters and training states. Sharding strategies are needed to distribute parameters, gradients, and optimizer states across multiple devices. A common practice is to shard these states separately and temporarily aggregate or reconstruct them when computation requires.
Engineering challenges of sharding include:
- Communication overhead when aggregating parameters
- Memory peaks during forward and backward passes
- Ordering of gradient synchronization and accumulation
- Persistence of optimizer states
- Checkpoint saving and restoration
- Task restart after node failure
Sharding is not simply dividing tensors evenly. Different layers vary in parameter scale, access frequency, and communication patterns, so scheduling strategies must be designed in conjunction with the computation graph and device topology. If communication and computation cannot overlap effectively, device utilization may drop significantly.
Multi-Node Communication and Collective Operations
MoE models frequently use data exchange, aggregation, and synchronization operations. In multi-node training, the communication system must efficiently support broadcast, reduce, scatter, gather, and all-to-all operations between devices.
Communication adaptation should focus on:
- Throughput stability across different message sizes
- Latency for high-frequency small messages
- Congestion in large-scale all-to-all exchanges
- Data consistency when communication overlaps with computation
- Clock and process synchronization across nodes
- Resource release after abnormal exits
If communication performance is insufficient, training may exhibit compute devices waiting for communication. If the communication implementation has boundary condition errors, it may manifest as occasional deadlocks or prolonged unresponsiveness. Stability validation typically needs to cover different batch sizes, sequence lengths, and expert load distributions.
How to Judge the Engineering Value of a Validation
The value of a training pipeline validation cannot be determined solely by whether the run succeeded. It should also be judged on reproducibility, observability, and scalability.
Reproducibility
When the same configuration is run repeatedly, loss curves should remain roughly consistent, and memory peaks and communication behavior should not show unexplained large fluctuations. For experiments using random initialization and random data sampling, the random seed, data split method, precision strategy, and parallel configuration need to be explicitly documented.
Observability
The training system should provide sufficient logs and monitoring information, including:
- Per-step training loss and validation loss
- Gradient norms
- Parameter update magnitudes
- Memory usage and peaks
- Communication time
- Expert load distribution
- Overflow detection results
- Checkpoint saving status
Without these metrics, even if the task completes, it is difficult to identify performance bottlenecks and potential risks.
Scalability
Running under a trimmed configuration only indicates that the foundational pipeline is usable. The next step is to gradually scale up language layers, expert count, sequence length, batch size, and device count, and observe whether performance degrades smoothly and whether new memory or communication bottlenecks emerge.
A prudent scaling path is:
- Single-node multi-card validation of basic operators and gradient correctness.
- Two-node multi-card validation of cross-node communication.
- Increase model layers and expert count.
- Increase visual input scale and sequence length.
- Expand datasets and extend training duration.
- Run fault recovery, checkpoint restoration, and long-duration stability tests.
- Finally evaluate a near-full-scale pretraining task.
The Gap from Training Pipeline to Production
This validation reflects growing capability in adapting domestic GPUs to complex models, but small-scale or trimmed-configuration experiments cannot be directly equated with full pretraining capability. Several further issues need to be addressed before entering production.
Performance. A training run that works does not mean it is efficient enough. Techniques such as operator fusion, communication-computation overlap, memory reuse, sequence parallelism, and load balancing are needed to improve effective training throughput.
Ecosystem. Large model training depends on multiple components, including compilers, runtimes, automatic differentiation, distributed frameworks, monitoring systems, and task scheduling. Even if a single hardware product has completed core operator adaptation, an incomplete surrounding toolchain can still leave enterprises with high migration costs.
Long-term stability. Full pretraining often needs to run for extended periods, during which node failures, network jitter, disk anomalies, and data reading failures can occur. The system needs checkpointing, automatic retry, task recovery, and fault localization capabilities.
Model coverage. A single multimodal model validation does not mean all models can be directly ported. Different models vary in attention structure, expert routing, positional encoding, quantization strategy, and data types, so adaptation work requires continued accumulation.
Implications for Enterprise Technology Selection
For teams planning to adopt domestic GPUs for large model training, it is advisable to establish a layered evaluation approach rather than comparing only theoretical compute or single-card benchmark scores.
Layer 1 — Compatibility. Confirm that core operators, automatic differentiation, and distributed interfaces are complete.
Layer 2 — Correctness. Use small-scale data and compare against a reference implementation layer by layer to ensure outputs, gradients, and loss trends are reasonable.
Layer 3 — Stability. Conduct long-duration runs, fault injection, and checkpoint restoration tests.
Layer 4 — Performance. Measure per-step time, effective training throughput, memory peaks, communication overhead, and device utilization.
Layer 5 — Scalability. Gradually increase device count and model scale, and observe whether the system maintains stable expansion.
In addition, enterprises should pay attention to software version management, driver upgrade strategies, data security, task isolation, and operations tooling. For multimodal training tasks involving sensitive data, deploying compute clusters in controlled environments can also help reduce data flow and supply chain management risks.
Conclusion
The training pipeline validation for a trillion-parameter multimodal MoE model represents an important step for domestic GPUs, moving from “capable of running models” toward “capable of supporting complex training tasks.” Continuous two-node multi-card operation, normal loss trends, controllable memory peaks, and visual branch participation in updates all indicate that the related software stack has a foundation for further scaling.
Still, from trimmed-configuration validation to full-scale pretraining, there remains a long path involving operator refinement, communication optimization, memory control, load balancing, long-duration stability testing, and fault recovery. In the future, the competitiveness of domestic GPUs will likely be judged less on single hardware metrics and more on the overall synergy of chips, compilers, runtimes, distributed frameworks, and operations systems. For developers and enterprise users, building a reproducible, observable, and scalable evaluation system is more worthy of long-term attention than any single experimental result.
