A Domestic GPU Completes Training Adaptation for a Nearly Trillion-Parameter Model: 400 Stable Steps on 16 Cards Across 2 Nodes
This article explains a recent training adaptation in which a domestic full-function GPU vendor ran 400 consecutive optimizer updates on a nearly 3-trillion-parameter multimodal model using 16 accelerators across two nodes, with no numerical overflow or interruption. It clarifies the difference between training adaptation and pre-training, breaks down the native FSDP2 training path, explains what the stability test demonstrates, and outlines the engineering system and practical advice needed to move from "can train" to "ready to train out of the box."
1. Background: A Training Adaptation, Not a Pre-Training Reproduction
A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its in-house software stack, it quickly completed the training adaptation of a flagship multimodal model with nearly 3 trillion parameters. In an environment with two nodes and 16 accelerator cards in total, the setup completed 400 consecutive optimizer updates without any numerical overflow or abnormal interruption.
A common misunderstanding needs to be cleared up first: a successful training adaptation does not mean the model was pre-trained on this chip. The two are very different in engineering terms:
- Pre-training: Starting from randomly initialized parameters, consuming massive amounts of data and compute to produce a base model. The compute source, data mixture, and training stability are all core assets of the model.
- Training adaptation: Making an existing model architecture “run, run stably, and run correctly” on target hardware and a software stack, connecting the full chain of model loading, shard scheduling, operator mapping, gradient synchronization, and optimizer updates.
There are similar practices in the industry: the technical reports of some advanced models validate multiple accelerator paths side by side and provide fine-grained expert parallelism schemes, but this usually amounts to inference operator or partial training-path validation and is not equivalent to disclosing the original compute source of a public base pre-training run. Therefore, the value of an adaptation effort should be judged by “chain completeness, numerical stability, and scalability,” not by “whether the chip was used for pre-training.”
2. Core Technical Breakdown: A Native FSDP2 Multimodal Training Path
The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path. The core idea of FSDP2 is to fully shard model parameters, gradients, and optimizer states along the data-parallel dimension to reduce per-card memory pressure, while improving throughput through finer-grained communication scheduling.
A complete training chain typically includes the following stages:
- Model loading and structure parsing: Splitting ultra-large-scale parameters by layer or module and establishing a parameter-to-device mapping.
- Shard scheduling: Deciding the sharding granularity and prefetch strategy based on memory capacity and bandwidth constraints.
- Operator mapping and kernel adaptation: Mapping operators such as attention, normalization, activation, and loss to efficient implementations on the target hardware.
- Gradient synchronization and reduction: Aggregating gradients through operations such as all-reduce and reduce-scatter.
- Optimizer update: Completing parameter updates in the sharded state while preserving numerical consistency and convergence.
Illustrative pseudocode (used to explain the chain; it does not represent any specific API):
# Pseudocode: FSDP2-style sharded training loopfor step, batch in enumerate(dataloader):with shard_context(model): # parameter sharding contextout = model(batch) # forward, all-gather parameters on demandloss = criterion(out, labels)loss.backward() # backward, reduce-scatter gradients on demandoptimizer.step() # sharded optimizer updateoptimizer.zero_grad()log(step, loss, grad_norm) # log numerical health metrics
Multimodal scenarios introduce an additional alignment problem among the vision encoder, the projection layers, and the language backbone. The sharding strategy must account for the memory distribution and computational density of different modules to avoid a “bucket effect” that slows overall throughput.
3. Stability Validation: What 400 Consecutive Steps on 16 Cards Across 2 Nodes Means
The problem most likely to surface in cross-node training is not “can it run one step” but “can it run stably for many consecutive steps.” With two nodes, 16 cards, 16 training processes, 400 consecutive optimizer updates, and both loss and gradient norm remaining finite throughout, the run demonstrates the following:
- Numerical stability meets the bar: No NaN/Inf appeared, and gradient clipping and mixed-precision settings were configured reasonably.
- The communication path is reliable: Cross-node gradient synchronization ran for a long time without abnormal interruption.
- Shard scheduling is correct: The timing of parameter gathering and release was correct, with no crashes caused by memory leaks or accumulating fragmentation.
In engineering practice, it is advisable to build a “numerical health dashboard” that monitors at least the following metrics:
| Metric | Meaning | Warning Sign |
|---|---|---|
| loss | Convergence trend | Sudden spikes or abnormal plateaus |
| grad_norm | Gradient scale | Continuous growth or dropping to zero |
| Parameter/gradient finiteness | Numerical overflow | NaN/Inf appears |
| Memory usage | Fragmentation and leaks | Continuous monotonic increase |
| Communication time share | Parallel efficiency | Share too high, reducing throughput |
4. From “Can Train” to “Ready to Train Out of the Box”: The Engineering System
A single adaptation is only the starting point; the real barrier is a reusable engineering system. Mature training support capability should cover:
- Operator library completeness: Covering high-frequency operators such as attention variants, normalization, activation, and loss, while continuously filling in long-tail operators.
- Multi-card coordination and parallel strategies: Combined tuning of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, supporting topology matching for models of different scales.
- Automated toolchain: One-click environment setup, distributed launch, checkpoint resume, fault self-healing, and log aggregation to lower the barrier to use.
- Observability: Integration with common cloud capabilities such as monitoring, alerting, and log services to enable end-to-end tracing of training jobs.
On the direction of “domestic chips training domestic models,” existing practice includes: completing from-scratch training of a hundreds-of-billions-parameter scientific foundation model, supporting full-stack native training of a 5D world model, jointly completing the full-process training of an embodied brain model with research institutions, and currently advancing the training of trillion-parameter-scale models. Together, these cases verify the usability of domestic full-function GPUs in real training scenarios.
5. Practical Advice for Developers
- Start with small-scale validation: Run a few hundred steps on two nodes and 16 cards, confirm numerical stability, and then scale up.
- Prefer sharded parallelism: When memory is constrained, FSDP-style schemes are more robust than pure data parallelism.
- Set up numerical guardrails: Enable gradient clipping, loss scaling, and anomaly detection by default.
- Watch for communication bottlenecks: In cross-node scenarios, gradient synchronization is often the throughput ceiling.
- Build up the toolchain: Standardize environment, launch, resume, and monitoring to make training “ready to run out of the box.”
6. Conclusion
A domestic GPU completing the training adaptation of a nearly trillion-parameter model marks a key step for domestic compute toward “stable full-chain training.” For developers, the focus should shift from “is it supported” to “how to train efficiently, stably, and reusably.” As operator adaptation, multi-card coordination, and automated toolchains continue to mature, running frontier large models on domestic full-function GPUs is moving from “can train” to “ready to train out of the box.”
