Large Model Training Adaptation on Domestic GPUs: From "It Runs" to Out-of-the-Box Training

    This article examines why training adaptation—not inference—is the hardest threshold for deploying China's homegrown GPU hardware in large model work. It clarifies the difference between training adaptation and inference adaptation, explains a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path, and reviews a stability test in which 16 accelerator cards across two nodes completed 400 consecutive optimizer updates on a flagship open-source model approaching a trillion parameters. It also outlines the three layers of engineering capability behind a successful adaptation—operators, multi-card collaboration, and automation toolchains—traces the progression from "can train" to "out-of-the-box training," and offers practical advice for developers training large models on domestic platforms.

    1. Background: Why Training Adaptation Is Unavoidable for Domestic Compute

    Recently, a domestic full-function GPU vendor announced that, based on its flagship AI training-and-inference integrated compute card and its self-developed software stack, it had quickly completed training adaptation for a flagship open-source large language model approaching a trillion parameters. In a dual-node configuration totaling 16 accelerator cards, it achieved cross-node joint training, completing 400 consecutive optimizer updates with a stable process.

    The reason this is worth attention is not that it topped some benchmark, but that it touches the most real—and most easily misunderstood—link in deploying domestic compute: training adaptation. When the industry asks whether domestic cards can be put to real use, training capability is usually a harder threshold than inference. Inference determines whether a model can run; training determines whether an ecosystem can grow on its own.

    2. Clarifying the Concept: Training Adaptation ≠ Inference Adaptation

    Before diving into technical details, we first need to clear up a common misconception.

    Training adaptation means enabling a cutting-edge large model to complete the full pipeline of “model loading → data sharding → forward/backward computation → gradient synchronization → optimizer update” on the target hardware + software stack, and to iterate repeatedly and stably over long periods. It tests operator completeness, the communication library, numerical precision, and how well the distributed framework works together.

    Inference adaptation, by contrast, only requires that the model load correctly and produce results through a forward pass. It usually involves neither backpropagation nor large-scale gradient synchronization, and its demands on operator coverage breadth and numerical stability are far lower.

    One point must be stressed: completing training adaptation does not mean the model was pre-trained from scratch on this chip. A typical industry phenomenon is that some large models’ technical reports validate multiple hardware routes side by side, but that kind of work often focuses on inference-side operator validation or the feasibility of a particular parallelism scheme—not on disclosing the original compute source of the base model’s pre-training. So when we see “a card completed training adaptation for a model,” the accurate phrasing should be “the model ran through the full training pipeline on this platform,” not “the model was pre-trained by this card.” This distinction is essential for objectively assessing how mature domestic compute really is.

    3. Technical Core: A Native FSDP2 Multimodal Training Path

    The highlight of this adaptation was the construction of a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path.

    The core idea of FSDP is to shard model parameters, gradients, and optimizer states across individual compute processes, so that ultra-large models can be trained under limited GPU memory. Compared with earlier versions, FSDP2 improves sharding granularity, memory management, and coordination with the compiler—better fitting the traits of multimodal models: large parameter scale, heterogeneous structure, and high activation-memory footprint.

    The key to “native” is not forcing adaptation with external patches, but achieving deep coordination between the distributed strategy and the framework. It connects three critical links:

    • Model loading: split ultra-large parameters according to sharding rules and place them on each node;
    • Shard scheduling: dynamically all-gather parameters at each step, then re-shard and release them after computation;
    • Gradient synchronization: align gradients across processes via collective communication (all-reduce / reduce-scatter).

    A representative training loop usually looks like this (pseudocode, used to illustrate the flow rather than a specific implementation):

    1. for step, batch in enumerate(dataloader):
    2. # Forward: gather sharded parameters on demand
    3. loss = model(batch) # all-gather parameters → compute → release
    4. loss.backward() # reduce-scatter to synchronize gradients
    5. optimizer.step() # each process updates its own parameter shard
    6. optimizer.zero_grad()
    7. # Key monitoring point: log loss and gradient norm
    8. if not torch.isfinite(loss):
    9. raise RuntimeError(f"Non-finite loss at step {step}")

    4. Stability Verification: Dual-Node 16 Cards, 400 Consecutive Updates

    A single successful run does not mean the setup is usable; the real test of large-scale training is long-duration, cross-node, uninterrupted, stable iteration. This experiment used a total of 16 accelerator cards across two nodes for cross-node joint training, with all 16 training processes completing 400 consecutive optimizer updates.

    Two engineering points are worth expanding:

    First, cross-node communication is the stability bottleneck. Multi-card setups within a single machine typically run over high-speed interconnects, whereas cross-node communication depends on the network, and both latency and bandwidth significantly affect throughput and synchronization correctness. Keeping 16 processes continuously aligned at the dual-node scale—without deadlocks or gradient misalignment—shows that the collective communication library and topology-aware scheduling are already fairly mature.

    Second, numerical stability is the lifeline of whether training can run long. The report specifically notes that the loss and gradient norm stayed finite throughout, with no numerical overflow or abnormal interruption. This is extremely important:

    • If the loss becomes NaN or Inf, it usually means some computation overflowed, and training will collapse completely;
    • A sudden spike in gradient norm is a precursor to training divergence;
    • So in practice, gradient clipping and loss scaling under mixed precision are commonly introduced to protect numerical stability.

    Conceptual example:

    1. # Gradient clipping and overflow protection under mixed precision
    2. scaler.scale(loss).backward()
    3. scaler.unscale_(optimizer)
    4. grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    5. scaler.step(optimizer)
    6. scaler.update()
    7. if not torch.isfinite(grad_norm):
    8. # Detected an abnormal gradient norm; skip this step to avoid corrupting weights
    9. ...

    5. From Point to System: Three Layers of Engineering Capability

    Behind a single successful adaptation sits a whole set of engineering capabilities, which can be broken into three layers:

    1. Operator layer: The operators of cutting-edge large models—especially the many heterogeneous operators in multimodal models—must be fully implemented and numerically correct, or any one of them can become a weak link.
    2. Multi-card collaboration layer: Combinations of data parallelism, tensor parallelism, and expert parallelism must be jointly optimized against the communication topology and memory budget.
    3. Automation toolchain layer: From automatic model partitioning and configuration generation to fault recovery—the more automated this is, the shorter the gap between “can train” and “can train reproducibly.”

    Notably, the deployment cases show a breadth of capability: besides a complete from-scratch training run of a scientific foundation model (tens of billions of parameters), the setup also supported full-stack native training of a 5D world model and, in collaboration with research institutions, the full-pipeline training of an embodied-intelligence “brain” model. These span vastly different scenarios—scientific computing, world models, and embodied intelligence—which shows that the adaptation capability has moved from “patching a single model” to “general support for a class of models,” and is evolving toward the trillion-parameter scale.

    6. Evolution Roadmap: From “Can Train” to Out-of-the-Box Training

    The maturation of domestic compute training capability can be divided into progressive stages:

    • It runs: completing the training pipeline for a single model at a small card count;
    • It runs stably: cross-node, long-duration, hundreds to thousands of consecutive steps without crashing or overflowing;
    • It runs reproducibly: deterministic results, standardized configuration, recoverable faults;
    • Out-of-the-box training: mainstream model frameworks can start training directly with zero or minimal changes, with operators, parallelism strategies, and toolchains all in place.

    The goal that truly matters is the last one—letting cutting-edge large models on domestic full-function GPUs move from “can train” to “out-of-the-box training.” Reaching it requires continuously refining the complete training stack—from operator adaptation and multi-card collaboration to the automation toolchain—turning each round of “firefighting” manual adaptation into a standardized, reusable engineering foundation.

    7. Practical Advice for Developers

    If you plan to run large model training on a domestic platform, these practices can help:

    • Start small, then scale: validate correctness with multi-card setups on a single machine first, then scale to cross-node gradually, so that localization isn’t disturbed by scale-related noise;
    • Front-load monitoring: from the very first training step, continuously record loss, gradient norm, memory usage, and communication time so anomalies surface early;
    • Prioritize numerical stability: enable mixed precision + gradient clipping + overflow protection first, to avoid mid-training NaN;
    • Watch communication overhead: for cross-node training, pick parallelism strategies based on the topology, since communication is often the throughput bottleneck;
    • Prefer mature distributed solutions: sharding strategies that deeply coordinate with the framework, such as native FSDP2, are more stable and easier to maintain than bolt-on patches;
    • Drive toolchain automation: scripting model partitioning, configuration, and recovery flows is key to moving from “can train” to “reproducibly trainable.”

    Conclusion

    Domestic full-function GPUs completing training adaptation for a flagship large language model approaching a trillion parameters marks a solid step forward for domestic compute on this hard problem of large model training. But what ultimately decides an ecosystem’s success is not a single impressive technical report, but whether this capability can be distilled into a stable, reproducible, ready-to-use engineering system. From operators to toolchains, from single-point validation to general support, this path is walked through continuous engineering refinement—not one-off adaptation.