Domestic Computing Hardware for Trillion-Parameter Multimodal Model Training: An Engineering Practice
This article walks through a validation case in which a Chinese GPU vendor completed 400 consecutive training steps on a 2.8-trillion-parameter native multimodal MoE model across two machines with 16 accelerators. It covers operator alignment, parameter sharding, collective communication, the design of trimmed validation runs, and practical guidance for teams training large models on domestic computing hardware.
Introduction: From Running Inference to Running Training
When adapting large models to new hardware, there is a dividing line that is easy to overlook. Inference adaptation is relatively straightforward. It only requires forward computation, and its demands on numerical precision, memory scheduling, and multi-card coordination are comparatively lenient. Training is much harder. It requires a closed loop of forward pass, backward pass, and optimizer update. A single failure in this loop, such as numerical overflow, abnormal gradients, or a communication deadlock, can invalidate the whole pipeline.
A recent validation case disclosed in the industry illustrates this well. A Chinese GPU vendor ran a native multimodal model with 2.8 trillion parameters and a Mixture-of-Experts (MoE) architecture on two machines with 16 accelerators. The validation run completed 400 consecutive training steps without numerical overflow or unexpected interruptions. Training loss dropped from about 8.94 to 2.18, and validation loss decreased in step. The case offers a useful reference for how engineers approach training-side adaptation on domestic computing hardware.
1. Why Trillion-Parameter MoE Multimodal Models Are Hard to Train
Understanding the technical weight of this validation requires first breaking down the architectural challenges of the model.
1. Computational irregularity from dynamic sparse attention
Unlike traditional dense attention, the hybrid attention mechanism may use global or local attention patterns at different layers and positions. The computation graph is therefore neither static nor uniform. Operator implementations must cover the forward and gradient paths of several attention variants. If any one path is missing, backpropagation fails.
2. Heavy communication pressure from expert routing
The core of an MoE architecture is a gating network that dynamically routes each token to different experts. In a distributed setup, experts are usually spread across devices, and every training step involves a large volume of All-to-All communication. Take a configuration with 16 routed experts and Top-8 activation. The communication volume grows roughly linearly with both the number of experts and the number of activated experts. This places heavy demands on the efficiency of the collective communication library and on topology-aware communication. Once communication becomes a bottleneck, even powerful GPUs spend their time waiting.
3. Memory management complexity in multimodal structures
The vision tower, the cross-modal projection module, and the language backbone differ greatly in parameter size and activation memory. High-resolution feature maps in the vision branch create memory spikes, while expert parameters in MoE layers occupy a large amount of static memory. The training framework must carefully balance parameter sharding, activation recomputation, and memory pooling. Otherwise, out-of-memory errors can occur at specific steps.
2. Three Key Technical Layers for Clearing the Training Pipeline
Based on publicly shared engineering details, the core of this adaptation is not peak single-card performance. It is the systematic integration of the distributed training pipeline. The work can be organized into three layers.
Layer 1: Operator coverage, so forward and gradient paths can run
For hybrid attention and MoE routing, the target hardware needs forward and gradient implementations of the corresponding operators. A common approach is to use the vendor’s operator development stack to break high-level operators into kernels that map to low-level instructions. Numerical alignment tests then check that the error relative to a reference implementation stays within an acceptable range. An illustrative check looks like this:
# Illustrative logic for checking numerical consistency of an operatordef check_op_consistency(op_fn, ref_fn, inputs, atol=1e-4):out_dev = op_fn(*inputs) # Forward pass on target hardwareout_ref = ref_fn(*inputs) # Forward pass on reference implementationassert abs(out_dev - out_ref).max() < atolgrad_dev = op_fn.backward(*inputs) # Gradient on target hardwaregrad_ref = ref_fn.backward(*inputs)assert abs(grad_dev - grad_ref).max() < atol
Layer 2: Parameter sharding, so trillion-parameter models fit in memory
At this scale, pure data parallelism is no longer feasible. Fully sharded data parallelism is required. It splits parameters, gradients, and optimizer states across all devices, and gathers parameters only when they are needed during forward and backward computation. In this validation, peak memory usage in the trimmed configuration on two machines with 16 accelerators stayed at about 44.8 GiB. The visual branch parameters also took part in updates normally, which shows that the sharding strategy works with the multimodal modules. In practice, the vision tower and MoE layers should use different sharding granularities. This prevents small parameter modules from adding communication overhead through excessive sharding.
Layer 3: Collective communication, so all devices stay in step
Cross-node communication depends on efficient implementations of primitives such as AllReduce and All-to-All in the underlying collective communication library. In MoE training, routing communication and gradient synchronization can be scheduled to overlap. Gradient communication for parts of the model that finish early can start before the backward pass completes, so computation hides communication latency. Communication groups should also follow the actual network topology, so that high-frequency traffic stays within high-bandwidth domains where possible.
3. Designing a Trimmed Validation Run
These validations typically use trimmed configurations rather than full-scale models. For example, the language backbone keeps only some of its layers, while the complete vision tower and cross-modal modules are retained. Training starts from random initialization on public image-text datasets. This design has several advantages:
- Covers all operator types in the architecture: Trimming layers does not change the types of operators, so the completeness of forward and gradient paths can still be tested.
- Keeps multimodal interactions: The vision tower and projection modules are preserved in full, which makes it possible to check whether gradients propagate correctly across modalities.
- Uses loss trends as the criterion: Loss that falls steadily over hundreds of steps, with no NaN or Inf values, is strong evidence that the pipeline works correctly.
- Keeps costs manageable: Random initialization and short runs allow fast iteration and problem isolation with limited resources.
The limits of this approach should be clear. Trimmed validation confirms functional correctness. Full-scale pretraining raises harder problems: scaling efficiency across clusters of more than a thousand cards, stable operation over tens of thousands of steps, fault recovery, and resuming from checkpoints. A substantial engineering gap remains between the two.
4. Engineering Recommendations for Developers
For teams planning to train large models on domestic computing hardware, this case suggests the following practical path:
- Trim first, then scale: Get operators and the pipeline working on a small trimmed configuration, then gradually increase the number of layers, cards, and data.
- Set a numerical alignment baseline: Use the loss curves of a mature reference implementation as the baseline. Compare forward outputs and gradients segment by segment to find the source of deviations quickly.
- Monitor from the start: Track loss, gradient norm, peak memory, and communication time at every step, with alerts. In long-running training, slow degradation is more dangerous than a sudden crash.
- Use general cloud infrastructure: Store training data in object storage, schedule multiple jobs on a container platform, and send training metrics to logging and monitoring services. Standardized components reduce the cost of building and maintaining your own operations stack.
Conclusion
Domestic computing hardware is moving on the training side from isolated point adaptations toward systematic integration. The disclosure of 400 consecutive training steps and complete gradient check results gives the industry a reproducible reference point. Moving from trimmed validation to long-running, full-scale training of trillion-parameter models still requires sustained investment in cluster scaling, communication optimization, and stability engineering. For developers, understanding the approach of operators, sharding, communication, and validation is more valuable over the long term than focusing on any single hardware metric.
