Training Large Multimodal Models on a Chinese-Developed GPU: A Technical Breakdown of Adaptation Work
This article explains the main stages of adapting a Chinese-developed GPU platform for large-scale multimodal model training. It covers model loading, fully sharded data parallel scheduling, gradient synchronization, and optimizer management. It also explains what a stable 16-card, two-node run for hundreds of steps indicates about correctness and robustness, and outlines the engineering practices needed to move from a single successful run to stable training.
1. Background: The Full Demands of Large Model Training on the Compute Stack
Large model training is currently the most demanding workload for underlying hardware and software in AI. It tests peak single-chip compute, and it also tests interconnect bandwidth across the whole system, memory capacity, communication efficiency, software stack maturity, and fault tolerance over long runs. Compared with inference, training is challenging across the board. Forward computation, backpropagation, optimizer state maintenance, gradient synchronization, and checkpoint-based resumption each need to be solid, with no obvious weak link.
An important industry trend is that leading model teams now report results on several hardware platforms side by side in their technical reports. For example, some teams validate on both NPU and GPU platforms. This signals that compute diversity has become an industry consensus. The ability to decouple training frameworks from underlying hardware is becoming a core measure of how mature a hardware platform is.
Recently, a Chinese-developed full-featured GPU platform announced that it had completed training adaptation for a frontier large-parameter multimodal model. The validation ran on a two-node, 16-card configuration and operated stably and continuously for hundreds of steps. The work also built a multimodal training path on a native fully sharded data parallel (FSDP) framework. This article uses that practice as a starting point to break down the key stages of this kind of adaptation work from a technical perspective.
2. Core Stages of Training Adaptation
A complete training adaptation usually spans four layers. All four are essential.
1. Model Loading Layer
Very large models often have weights and structure definitions that reach tens of gigabytes or more. The loading layer needs to solve three problems:
- Weight format compatibility: The training framework must recognize mainstream weight storage formats, such as sharded safetensors-style files, and map shards directly to device memory. This avoids a memory spike from loading the full model before splitting it.
- Precision mapping: Mixed-precision training is now standard. During loading, weights must be assigned to BF16/FP16 primary weights and FP32 master copies according to plan. The correctness of the precision conversion strategy needs verification.
- Structural consistency checks: For complex structures such as mixture-of-experts (MoE) layers and multimodal encoders, forward outputs must be aligned layer by layer after loading. This confirms that the model’s semantics match the reference implementation.
2. Sharding Scheduling Layer
The core idea of FSDP-style schemes is to shard model parameters, gradients, and optimizer states across all compute cards. During the forward and backward passes, shards are gathered temporarily as needed and released right after use. This brings several engineering requirements:
# Illustrative pseudocode: FSDP-style sharding wrappermodel = ShardModule(model,sharding_strategy=FullShard, # Full sharding of parameters, gradients, and optimizer statesmixed_precision=MixedPrecision(param_dtype=torch.bfloat16,reduce_dtype=torch.bfloat16,),auto_wrap_policy=wrap_by_transformer_block, # Nested sharding by transformer block)
- Shard granularity: Fine-grained sharding inflates the number of communication calls. Coarse sharding releases memory poorly. Nested sharding is usually applied per transformer layer block.
- CPU offload strategy: For very large models, cold parameters can be temporarily offloaded to host memory to allow a larger trainable scale. The PCIe bandwidth overhead must be weighed against this benefit.
- Multimodal path specifics: Vision encoders and language backbones differ greatly in structure. Each module needs its own sharding and freezing strategy.
3. Gradient Synchronization Layer
Gradient synchronization under FSDP differs from classic data parallelism. Right after each layer’s backward computation finishes, sharded reduction and distribution are triggered, so communication can overlap with computation. The main focus of adaptation work is:
- Validating the correctness and efficiency of the collective communication library on multi-node, multi-card topologies. This includes how cross-machine NVLink and NVLink-like interconnects work together with cross-node network bandwidth.
- Confirming the numerical consistency of gradient reduction, and tracing precision drift caused by differences in communication order.
- For MoE architectures, expert parallelism (EP) adds all-to-all communication. This is one of the most complex communication patterns in large model training today. Teams in the industry have already validated fine-grained expert parallelism schemes. This indicates that EP support across hardware paths has become an important yardstick of training capability.
4. Optimizer and Scheduling Layer
MoE models have very large optimizer state memory footprints. Adam-family optimizers use roughly 12 bytes per parameter. Stable convergence in large distributed settings requires optimizer state sharding, learning rate warmup scheduling, and gradient accumulation.
3. What a 16-Card, Two-Node Stability Test Shows
“Stable continuous operation for 400 steps” may look like a modest number, but its engineering meaning is substantial.
First, it validates end-to-end correctness. Hundreds of continuous training steps are enough to expose basic problems such as loading errors, gradient synchronization anomalies, and precision overflow. If the pipeline has a defect, the loss curve often diverges or becomes NaN within a few dozen steps.
Second, it validates the robustness of communication and scheduling. In multi-node training, network jitter across nodes and clock skew between cards can both trigger collective communication timeouts. Stable operation means the fault tolerance and retry mechanisms are working.
Third, it is a necessary prerequisite for 10,000-card clusters. The number of validation steps grows at each stage as adaptation matures, from hundreds to thousands, and eventually to a full pretraining cycle. This stepwise validation is the standard path for a hardware platform moving toward large-scale commercial use.
4. Key Elements of an Engineering System
Moving from “it runs once” to “it trains stably” requires the hardware platform to build a mature engineering system:
- Operator coverage management: Build a mapping list between model operators and hardware operators. For missing operators, use hybrid implementations, combining native hardware kernels with a general-purpose fallback. Keep adding high-performance versions of frequently used operators.
- Precision alignment pipeline: Build automated alignment tests against reference implementations. They should cover forward outputs, gradients, and optimizer states, and localize numerical issues to specific operators.
- Checkpoint and resume capability: Save sharded snapshots regularly, and support recovery from the latest consistent point after a failure. This is the baseline requirement for long training runs.
- Observability: Connect general-purpose logging, monitoring, and alerting services. Collect metrics in real time, including compute utilization, communication wait ratio, and memory usage. Use model FLOPs utilization (MFU) as the core north-star metric for optimization.
- Unified training and inference support: A
