Training Adaptation of Domestic GPUs for Large Models: From Barely Running to Stable Training
This article examines the recent cross-node training test conducted on domestic GPUs, clarifying what the results do and do not prove. It breaks down the essential differences between inference adaptation and training adaptation, explains why parameter scale directly impacts memory limits, and explores the sharding approach and constraints of FSDP2. The goal is to help readers evaluate the actual progress and remaining challenges in large-model training on domestic hardware.
A recent update on domestic GPU adaptation for large-model training has drawn attention. According to public information, a vendor completed a cross-node joint training test on 16 accelerators across two machines. Sixteen training processes completed 400 consecutive optimizer updates, with loss values and gradient norms remaining bounded throughout—no numerical overflow or abnormal interruption occurred.
This news is worth examining, but it’s important to first clarify what it actually demonstrates. The public information did not specify the model version, numerical precision, or parallel strategy used. It also did not state whether this was full-parameter training, parameter-efficient fine-tuning, or partial-parameter updates, nor whether CPU or NVMe offloading was employed. These configurations determine the meaning of the results. Therefore, this article treats the test as a solution-level small-scale validation: it proves that the software-hardware pipeline in this configuration can operate end-to-end, but it does not support the conclusion that a “near three-trillion-parameter model can now complete full-parameter training stably on this platform.”
I. How Training Adaptation Differs from Inference Adaptation
In the industry, the term “adaptation” often refers to two distinct tasks with vastly different levels of difficulty.
Inference adaptation typically begins after a new model is released. The chip vendor works to quickly fill in the operators required for inference, allowing the model to complete forward computation and produce outputs. Core tasks include operator coverage, precision alignment, and inference engine integration. This kind of work has a relatively controllable timeline, which is why it frequently appears in marketing efforts.
Training adaptation, by contrast, requires the entire training loop to function correctly, including forward propagation, backward propagation, gradient synchronization, and optimizer updates. Specifically, it involves at least four areas:
- Operator completeness: In addition to forward operators, the corresponding backward operators must be available, and numerical behavior should closely match the reference implementation.
- Distributed communication: Collective communication operations such as AllReduce, AllGather, and ReduceScatter across multiple GPUs and nodes must be both efficient and stable.
- Memory management: Training consumes significantly more memory than inference. Memory fragmentation or leaks can cause task failures.
- Long-duration stability: Training often runs for days or even weeks. Occasional numerical anomalies or hardware faults can interrupt a job.
Another distinction is important. The successful training adaptation of one model does not imply that its base pre-training was also completed on the same platform. Some technical reports validate multiple hardware paths simultaneously, but this usually constitutes operator-level or solution-level validation—not a claim about the original pre-training computational source. Keeping these two types of conclusions separate allows readers to evaluate a technical path objectively.
II. Why Parameter Scale Directly Overwhelms Memory
During training, the memory must hold parameters, gradients, optimizer states, and activation values. Using the common mixed-precision training setup with the Adam optimizer as an example, each parameter requires roughly 16 bytes of model state, including BF16 weights, BF16 gradients, FP32 master weights, and two FP32 Adam states. This is a commonly used estimate; actual numbers vary depending on the implementation.
Under this estimate, a 300-billion-parameter model requires approximately 4.8 TB of model state. A model approaching three trillion parameters would require roughly 48 TB. Even if each GPU has 64 GB of memory, 16 GPUs total about 1 TB—still insufficient to hold the complete model state. For full-parameter training, additional measures beyond sharding are necessary, such as offloading part of the state to CPU memory or NVMe, or training only a subset of parameters. The original report did not specify which approach was used, making it difficult for readers to determine the actual scale of the experiment.
For MoE models, two concepts must be distinguished. The total parameter count determines how much model state must be stored, while the number of active parameters per token determines the per-step computation cost. Both must be reported separately in any evaluation.
III. FSDP2: Sharding Approach and Its Boundaries
Fully Sharded Data Parallel (FSDP) works by partitioning parameters, gradients, and optimizer states across devices, with each GPU storing only one shard. When computing a specific layer, the system temporarily gathers the needed parameters via collective communication, then releases them after computation. Compared to unsharded data parallelism, this approach significantly reduces the per-GPU memory footprint of model states.
FSDP2 introduces three main improvements over its predecessor. First, it uses a finer sharding granularity, managing tensors individually rather than at the level of entire modules. Second, it overlaps parameter gathering with the previous layer’s computation through prefetching, hiding part of the communication overhead. Third, it offers greater flexibility when combined with tensor parallelism, pipeline parallelism, and expert parallelism. The specific interfaces for these improvements may vary across PyTorch versions, so practitioners should consult the documentation for the version they use.
The memory reduction from sharding covers only one part of the picture. The table below summarizes the main memory components and how they change.
| Memory Component | Reduced by Sharding? | Notes |
|---|---|---|
| Parameters, gradients, optimizer states | Roughly 1/N | N is the number of sharding devices, assuming even distribution |
| Activation values | Largely unchanged | Depends on sequence length, batch size, and recomputation strategy |
| Communication buffers | Largely unchanged | Temporary buffers for parameter gathering occupy additional space |
| Temporarily gathered full parameters | Peak may be higher | Deeper prefetching means more parameters reside simultaneously |
Therefore, “memory drops to 1/N after sharding” serves only as a theoretical lower bound for the model-state portion. Determining whether a given configuration can run requires examining the measured peak memory usage.
A viable training path must connect three stages. The first is model loading and shard initialization, which requires distributed loading of very large weights, lazy initialization, and memory-controllable shard placement. The second is shard scheduling—the timing of gathering and releasing directly impacts peak memory and computational efficiency. The third is gradient synchronization, where gradient shards from each GPU must be reduced and redistributed after backward propagation.
