Domestic AI Accelerators Complete Full-Stack Training Adaptation for Multimodal LLMs
This article examines the training adaptation of a frontier multimodal large model on a domestic accelerator platform, covering why training is harder than inference, the design of a native FSDP2 training path, parallelism and tuning on a 16-card dual-node setup, a layered methodology for verifying 400 steps of continuous stable training, common failure modes, and engineering practices for repeatable cloud deployment. Readers will find practical acceptance baselines built around sharding strategy, communication overlap, numerical alignment, and long-run stability validation.
1. Background: The Leap From “Can Run Inference” to “Can Train”
A domestic accelerator card platform recently announced that it has completed training adaptation for a frontier multimodal large model. In a dual-node, 16-card environment, the workload ran continuously and stably for 400 training steps. The team also built a native FSDP2 multimodal training path that connects the full chain of model loading, shard scheduling, and gradient synchronization.
The significance of this progress is not an isolated performance number. It marks a shift in where the domestic compute stack sits within the lifecycle of very large models. Over the past two years, public validation of domestic chips has mostly focused on the inference side. For example, one large model technical report listed a domestic NPU alongside mainstream GPUs to validate a fine-grained expert parallelism inference scheme. Which compute the foundation model pretraining actually runs on is often left undisclosed. For that reason, “completing training adaptation and running several hundred steps stably” is itself a substantive test of full-stack maturity.
One point deserves emphasis: 400 steps is a stability metric, not a performance metric. There is a large engineering gap between a training framework that “can start” and one that “can run long.” This article breaks those gaps down one by one.
2. Why Training Adaptation Is an Order of Magnitude Harder Than Inference Deployment
Inference is a forward-only computation graph with generous fault tolerance. When a single card runs out of memory, quantization or sharded weight loading can ease the pressure. Training requires forward pass, backward pass, and optimizer state updates to stay strictly consistent. Any numerical or scheduling mismatch will surface as abnormal loss.
The main difficulties fall into four categories:
- A complex memory ledger: parameters, gradients, optimizer states (first- and second-order momentum), activations, and temporary communication buffers all reside in memory at the same time. Multimodal models add the extra overhead of the vision encoder and projection layers.
- Diverse communication patterns: gradient reduction for data parallelism, intra-layer communication for tensor parallelism, point-to-point transfer for pipeline parallelism, and all-to-all for expert parallelism. The four patterns have completely different topologies and synchronization semantics.
- Strict numerical consistency requirements: loss scaling under mixed precision, reduction order, and operator accumulation strategy all affect the convergence curve. Cross-vendor backends are the most likely place to see “it runs, but the loss does not drop.”
- Long-run stability constraints: running several hundred steps without interruption means no memory leaks, no communication deadlocks, checkpoints that can be written and read, and recovery from a single point of failure.
3. Key Design of the Native FSDP2 Training Path
The core idea of FSDP2 is full sharding: parameters, gradients, and optimizer states are spread evenly across the data parallel group. Shards are all-gathered on demand during the forward and backward passes and released immediately after computation. The backward pass triggers another all-gather, combined with reduce-scatter to reduce gradients. Compared with earlier implementations, the new sharding paradigm places more emphasis on describing parallel dimensions explicitly with a device mesh, which decouples the sharding strategy from the parallel topology.
A schematic configuration skeleton looks like this (pseudocode, structure only):
# Describe "data parallel x model parallel" with a 2D device meshmesh = init_device_mesh("npu", (dp_size, tp_size), mesh_dim_names=("dp", "tp"))model = build_multimodal_model(cfg) # vision encoder + projection layer + language backbonemodel = apply_tensor_parallel(model, mesh["tp"])model = fully_shard(model, mesh=mesh["dp"], # native shardingreshard_after_forward=True)opt = torch.optim.AdamW(model.parameters(), lr=1e-4)for step, batch in enumerate(loader):loss = model(batch).lossloss.backward() # backward triggers all-gather + reduce-scatteropt.step(); opt.zero_grad()
Three details decide success or failure in practice:
- Sharding granularity and resharding timing: layer-by-layer sharding keeps peak memory low but increases the number of communication calls. Disabling resharding after the forward pass for compute-intensive layers trades memory for throughput.
- Communication and computation overlap: splitting gradient reduction into buckets so that backward computation and reduce-scatter are pipelined is the main way to avoid a communication wall at the 16-card, dual-node scale.
- Multimodal load balancing: image and text samples vary greatly in length, so batching must be bucketed by modality and sequence length. Otherwise a few cards sit idle and the whole step is held back by the longest sample.
4. Parallel Topology and Tuning on a Dual-Node, 16-Card Setup
Two 8-card servers are connected by high-speed interconnect to form a 16-card cluster. The typical approach is to use tensor parallelism inside each node to carry intra-layer splitting, taking advantage of high intra-node bandwidth, and data parallel sharding across nodes to carry gradient reduction, using inter-node bandwidth for a small number of large messages. Pipeline parallelism can be added when needed.
Tuning can proceed in this order:
- Measure the communication baseline first: run a collective communication benchmark to measure the actual bandwidth of intra-node and inter-node all-reduce and reduce-scatter, then use it to estimate a lower bound on per-step communication time.
- Then decide the parallel split: keep tensor parallel communication for a single layer inside one node to avoid high-frequency small messages across nodes.
- Tune overlap and bucket size: buckets that are too small make startup overhead dominant, while buckets that are too large leave an insufficient overlap window. Choose values based on measured curves.
- Finally tune batch and sequence: increase the micro-batch within the memory budget to reduce the share of scheduling in each step.
5. A Methodology for Verifying 400 Steps of Continuous Stable Running
Long-run stability validation should be designed in layers, forming a reproducible acceptance checklist:
- Numerical layer: fix the random seed and compare the loss deviation between single-card and multi-card runs over the first few steps against the expected magnitude. Check that the gradient norm stays smooth.
- Link layer: validate tensor loading and format conversion, shard initialization, forward pass, backward pass, optimizer update, and checkpoint save and restore, segment by segment.
- Resource layer: monitor memory and host memory curves to confirm there is no slow leak, and monitor temperature and throttling events.
- Resilience layer: inject a single-card failure or trigger a deliberate restart to verify that training resumes correctly from the most recent checkpoint.
# Minimal acceptance script skeleton for a long-run test (illustrative)for step in $(seq 1 400); dorun_one_step || { echo "fail at step $step"; collect_diag; exit 1; }if (( step % 50 == 0 )); then save_checkpoint $step; fidonecheck_loss_curve && check_memory_profile && echo "stability passed"
The criteria should be: no interruption within 400 steps, a loss curve consistent in trend with the reference implementation, a flat memory curve, and checkpoints every 50 steps that save successfully and stay continuous after resuming from the breakpoint.
6. Common Failures and How to Locate Them
| Symptom | Frequent cause | How to locate |
|---|---|---|
| OOM at startup | Sharding not in effect, activations not recomputed | Print per-card parameter and optimizer state usage |
| Loss does not drop or jumps | Mixed precision scaling, differences in reduction order | Single-card alignment experiment, gradient norm comparison |
| Large jitter in step time | Batching not bucketed by length, communication not overlapped | Instrument timing to separate compute and communication share |
| Hang after tens of steps | Inconsistent order of collective communication calls | Check communication calls inside conditional branches |
| Loss discontinuity after resuming | Optimizer state or data cursor not saved | Verify completeness of checkpoint fields |
7. Engineering System and Cloud Deployment Recommendations
A single successful adaptation is only the starting point. Sustainably supporting frontier model training requires an engineering foundation: unified image and dependency version management, configurable parallel strategies, queue and quota scheduling for training jobs, centralized collection of metrics and logs, and automatic alerting with self-healing from breakpoints. For cloud deployment, you can combine a container platform to host training images, object storage for datasets and checkpoints, a message queue to decouple the data preprocessing pipeline, and monitoring and alerting services to track inter-card communication and hardware health metrics. This turns “an expert getting it working once” into a standard process that a team can repeat.
The most valuable takeaway for readers: evaluating the training usability of domestic compute should move from “can it start a forward pass” to “can it keep advancing stably for hundreds of steps under a given parallel topology and recover from a checkpoint.” Building your own acceptance baseline around four main lines, sharding strategy, communication overlap, numerical alignment, and long-run stability validation, is the transferable and reusable practical path.
