Adapting Domestic GPUs for LLM Training: From "It Runs" to Stable Training
As open-source large language models scale from billions to trillions of parameters, choosing the right compute foundation has become a critical decision for developers and enterprises. This article examines a key technical question: how to determine whether a domestic GPU truly supports LLM training rather than only inference. Drawing on a real-world adaptation effort for a flagship multi-trillion-parameter model, it covers the technical requirements of training adaptation, the construction of a native FSDP2 multimodal training pipeline, cross-node stability validation on 16 cards, and a four-layer engineering framework for reliable large-scale training.
In recent years, open-source large language models have grown rapidly in scale, from tens of billions to trillions of parameters. Against this backdrop, selecting a compute foundation has become one of the core challenges for developers and enterprises. As domestic GPU ecosystems mature, a question worth exploring in depth is: how do you determine whether a domestic GPU genuinely supports model training, rather than just inference? Based on a hands-on training adaptation project for a flagship multi-trillion-parameter model, this article systematically reviews the technical scope of training adaptation, the key implementation path, and the engineering methodology behind it.
1. Training Adaptation vs. Inference Adaptation: A World of Difference
In discussions about domestic chip ecosystems, “Day 0 support for the latest open-source LLM” is often a headline claim. However, it is important to clarify that most of these adaptations refer to inference adaptation — the model weights are already trained, and the chip only needs to support forward computation, operator mapping, and inference performance optimization. The main challenges of inference adaptation lie in operator coverage, memory layout optimization, and batch throughput.
Training adaptation is a fundamentally different level of work. The training process involves forward computation, backpropagation, gradient communication, optimizer updates, and mixed-precision numerical management. A deviation in any one of these stages can cause anything from a non-converging loss to training crashes or corrupted weights. There are precedents in the industry where multiple chip lines are listed side by side in a model’s technical report — but in substance these were only inference-level operator validations, and they do not prove that the base model’s pretraining compute came from any particular chip. Therefore, when evaluating the real training capability of a compute product, the focus should be on whether it can run the complete training pipeline, not merely whether “the model loads and produces output.”
2. Building a Native FSDP2 Multimodal Training Path
One of the core outcomes of this project was building a native FSDP2 multimodal training path. FSDP (Fully Sharded Data Parallel) is the mainstream distributed strategy for training extremely large models. Its core idea is to shard model parameters, gradients, and optimizer states across multiple GPUs, so that each card holds only one slice of the full state — dramatically reducing per-device memory usage. The second-generation implementation (FSDP2) further improves sharding granularity, communication scheduling, and composability, making it better suited to the heterogeneous structure of multimodal models.
Building a native FSDP2 training path requires solving three key problems at the software stack level:
Model loading and sharded initialization. A multi-trillion-parameter model cannot be loaded in full into a single card’s memory. The system must support lazy initialization and layer-by-layer sharding — allocating memory according to the sharding plan during model construction, rather than loading the full model first and then splitting it, which would cause memory spikes.
Shard scheduling and computation-communication overlap. During the forward and backward passes, sharded parameters must be reconstructed via all-gather communication at the right moment, then released promptly after use. An efficient implementation pipelines communication with computation, hiding communication latency behind compute.
Gradient synchronization and optimizer updates. After backpropagation, gradients are synchronized via reduce-scatter, and each card’s sharded optimizer independently updates its local parameter shard. The numerical correctness of gradient synchronization and the handling of scaling under mixed precision are critical defenses for training stability.
3. Stability Validation for Cross-Node Training on Two Machines with 16 Cards
Getting the pipeline working in theory is only the first step; the real test is continuous, stable operation. The project used two machines with a total of 16 all-in-one training-and-inference compute cards for cross-node joint training tests. The acceptance criteria were unambiguous: all 16 training processes had to complete 400 consecutive optimizer updates, with loss and gradient norm remaining finite throughout — no numerical overflow and no abnormal interruption.
This validation design carries several technical implications:
Reliability of cross-node communication. The two-machine setup introduces inter-node network communication, which has lower bandwidth, higher latency, and more jitter than intra-node communication. This places higher demands on the fault tolerance and congestion control of the communication library.
Long-term observation of numerical stability. 400 consecutive updates are enough to expose common mixed-precision training problems such as gradient underflow and loss spikes. A gradient norm that stays finite throughout indicates that gradient clipping, loss scaling, and related mechanisms work correctly across the entire software stack.
Multi-process consistency. All 16 training processes completing the same number of updates means no process fell behind due to communication timeouts, out-of-memory errors, or synchronization deadlocks — the most common and hardest-to-diagnose failure types in distributed training engineering.
4. From “Can Train” to “Trains Reliably”: A Four-Layer Engineering Capability Framework
A single successful adaptation does not equal systematic capability. Based on this project and industry experience, supporting frontier LLM training on domestic GPUs requires four layers of engineering capability:
Operator adaptation layer. Cover the full set of operators required for training — attention variants, normalization, mixed-precision conversion, and various multimodal fusion operators — while ensuring numerical accuracy aligns with reference implementations.
Multi-GPU coordination layer. Provide a mature collective communication library that supports flexible combinations of data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism (EP). In particular, the fine-grained expert parallelism that Mixture-of-Experts models depend on is highly sensitive to all-to-all communication efficiency, making it a current focus of training framework optimization.
Training framework layer. Natively support mainstream distributed training abstractions, so developers can write training scripts in familiar ways instead of rewriting the entire logic for a specific piece of hardware. This directly determines migration cost.
Automated toolchain layer. This includes health monitoring for training jobs (loss curves, gradient norms, communication latency, memory levels), automatic fault detection and checkpoint-based recovery, and performance profiling with bottleneck identification. This layer determines the distance between “feasible in the lab” and “reliable in production.”
5. A Reference Path for Large-Scale Training in Practice
Publicly documented work shows that domestic compute has already reached several milestone achievements in large-scale training: complete from-scratch pretraining of a 200-billion-parameter-class scientific foundation model, full-stack native training of world models, and end-to-end training of embodied AI models — with progress continuing toward trillion-parameter-scale training. Together, these cases outline a clear capability evolution path: first validate convergence correctness of from-scratch pretraining on mid-scale models, then validate full-pipeline training capability on complex architectures (multimodal, world, and embodied models), and finally take on ultra-large parameter scales.
For enterprise users evaluating domestic training compute, a similar acceptance approach makes sense: first run a complete training cycle on a small model to verify convergence, then scale up to the target size step by step, focusing on numerical stability and fault recovery over long-running jobs — rather than fixating on single-step performance metrics.
6. Conclusion
From “fast inference deployment” to “full-pipeline stable training,” domestic GPUs are undergoing a critical capability transition. The essence of training adaptation is not getting any single operator to run, but ensuring that the complete pipeline — from model loading and shard scheduling to gradient synchronization — can withstand long-duration, multi-node, high-concurrency workloads. As the operator ecosystem, parallelism strategies, and automated toolchains continue to mature, frontier LLMs on domestic full-featured GPUs are moving from “can be trained” to “trainable out of the box,” offering the LLM industry a more diverse and resilient set of compute foundation options.
