Domestic Accelerator Card Completes Training Adaptation for a Multimodal Large Model
This article examines the training adaptation of a multimodal large model on a domestic accelerator card platform, covering the native FSDP2 sharded training path, the dual-node 16-card parallel topology and communication bottlenecks, and what 400 consecutive stable steps indicate. It also outlines a validation checklist, the engineering capabilities required to move from fast inference deployment to full-pipeline stable training, and a reusable practice checklist for reproducible, operable training.
1. Background: Why Training Adaptation Is the Key Barrier to Compute Adoption
A domestic accelerator card platform recently announced that it has completed the training adaptation of a frontier multimodal large model. In a dual-node, 16-card environment, the model ran stably for 400 consecutive steps. The platform also built a native FSDP2 multimodal training path that connects the full chain from model loading and shard scheduling to gradient synchronization.
The significance of this progress is not an isolated performance number. It marks the shift of domestic compute from “able to run inference” to “able to handle training.”
For objectivity, several technical reports in the industry have adopted a parallel-validation approach across multiple hardware routes. Public materials usually cover only operator validation on the inference side and fine-grained expert parallelism schemes. Which type of compute is used for base model pre-training is often not officially disclosed. Therefore, discussing training adaptation capability must return to engineering facts: whether it can run for a long time without crashing, whether convergence can be reproduced, and whether it can be taken over by an operations system.
Training and inference differ by orders of magnitude in their requirements for hardware and software stacks. Inference is the repeated execution of forward computation, with a large fault-tolerance window and little state. Training must maintain three sets of data—model weights, gradients, and optimizer states—and handle recomputation, communication, and numerical stability during backpropagation. Any missing operator or precision deviation can be amplified into an abnormal loss curve after hundreds of steps.
2. Technical Core: Breaking Down the Native FSDP2 Sharded Training Path
The core idea of Fully Sharded Data Parallel (FSDP) is to slice parameters, gradients, and optimizer states and distribute them across devices, aggregating them on demand during the forward and backward phases. Compared with earlier versions, FSDP2 emphasizes the sharded tensor (DTensor) as a unified abstraction, reducing dependence on flattened parameters and global hooks. This makes sharding semantics clearer and the combination with parallel dimensions more natural.
A complete training path usually contains four stages:
- Model loading: construct the model layer by layer in a low-memory way, avoiding a memory peak caused by materializing full weights;
- Shard scheduling: determine the sharding mesh and device mapping, and clarify the combination of data parallelism, tensor parallelism, and expert parallelism;
- Forward and backward: prefetch parameters layer by layer, overlap communication with computation, and trigger gradient ReduceScatter during the backward phase;
- Parameter update: the optimizer updates on local shards, then enters the next iteration.
The following illustrative pseudocode only expresses the scheduling order and does not point to any specific framework interface:
for step in range(total_steps):for layer in model.layers:all_gather(layer.params) # On-demand aggregation in forward passout = layer.forward(batch)loss = criterion(out, target)for layer in reversed(model.layers):reduce_scatter(layer.grads) # Gradient reduction in backward passoptimizer.step() # Local shard updateif step % log_interval == 0:log(step, loss, grad_norm, tflops)
The multimodal scenario adds extra complexity: the three types of parameters—the vision encoder, the projection layer, and the language backbone—differ significantly in scale. A unified sharding strategy can easily create a dilemma where small parameters communicate frequently while large parameters strain memory. In practice, differentiated sharding and recomputation strategies are usually set per module.
3. Dual-Node 16-Card Parallel Topology and Communication Bottlenecks
A dual-node 16-card setup means two link levels: high-bandwidth intra-node interconnect and inter-node network, so communication costs are distributed hierarchically. The focus of adaptation work is to keep communication-heavy operations within the node as much as possible and reserve the inter-node links for low-frequency, large-block data exchange.
Common optimization methods include gradient accumulation to reduce synchronization frequency, overlapping communication with computation, merging small messages into buckets, and choosing a device layout with better affinity for the sharding mesh. To judge whether the topology is reasonable, observe three metrics: the proportion of communication in per-step time, inter-node link utilization, and the balance of memory usage across cards.
4. What 400 Consecutive Stable Steps Mean
“Consecutive stable running” is the most convincing statement in training adaptation, because it directly exposes four types of hidden defects: occasional allocation failures caused by accumulated memory fragmentation, loss jumps caused by numerical overflow, process hangs caused by communication timeouts, and thermal throttling during long runs.
Recommended validation checklist:
- Whether the loss curve is smooth and the gradient norm stays within a reasonable range;
- Whether the loss continues seamlessly after checkpoint saving and restoration;
- Whether the variance of per-step time converges, ruling out periodic jitter;
- Whether memory and temperature curves remain stable with no slow climb;
- Fault injection testing: whether it can automatically reschedule after an active interruption.
5. From Fast Inference Deployment to Full-Pipeline Stable Training
A platform with only inference deployment capability can hardly support the continuous iteration of frontier models. A complete engineering system should cover reproducible builds of environment dependencies, adaptation and completion of the operator library and graph compilation layer, automated precision-alignment comparison, an observability system (log service, monitoring and alerting, metrics dashboards), and fault tolerance with elastic rescheduling. In related practice, Baidu AI Cloud usually consolidates such capabilities into combinations of general product categories such as container platforms, object storage, and monitoring and alerting, shared by both training and inference tasks.
6. Reusable Practice Checklist
- First build a small-scale single-card baseline to lock in numerical correctness, then scale to multiple nodes;
- Tune the sharding strategy and parallel dimensions separately to avoid variable coupling;
- Build per-layer time and communication profiles, and drive optimization with data;
- Include stability testing in the admission process rather than as an after-the-fact remedy;
- Retain complete configurations and random seeds to ensure reproducible results.
In summary, the essence of training adaptation is to converge uncertainty layer by layer into observable, reproducible, and operable engineering certainty. The 400 consecutive steps are only the starting point of this convergence process.
