Engineering Practice and Stability Validation for Large-Scale Model Training on Domestic GPUs

    This article examines what it takes to move from "Day 0 inference adaptation" to full-stack training adaptation on domestic GPUs. It covers native sharded training paths for trillion-parameter models, a stability validation methodology based on a two-node, 16-GPU cross-node joint training run, and the engineering system required to scale from small-scale verification to production training. Readers will learn the key technical requirements of training adaptation, how to design and validate cross-node training stability, and the roadmap toward "train-out-of-the-box" usability for domestic AI accelerators.

    Engineering Practice and Stability Validation for Thousand-GPU-Scale LLM Training on Domestic GPUs

    From “Day 0 Inference Adaptation” to “Full-Pipeline Training Adaptation”: A Capability Leap

    In the domestic compute ecosystem, whenever a new flagship open-source large model is released, the common headline is that a chip vendor has completed “Day 0 adaptation.” But an important distinction needs to be made: most Day 0 adaptations remain at the level of inference integration — model weights can be loaded, inference operators execute correctly, and outputs align with the reference implementation. This matters, but it is fundamentally different from “training adaptation.”

    Training adaptation means building a complete training pipeline on the target hardware, including:

    • Model loading and weight sharding: For trillion-parameter models, a single GPU cannot hold the full parameters in memory, so parameter partitioning and distributed loading are mandatory;
    • Shard scheduling and communication orchestration: Determining how parameters, gradients, and optimizer states are partitioned and aggregated across devices;
    • Operator completeness for forward/backward computation: Training requires far broader operator coverage than inference (e.g., backward propagation, gradient reduction, mixed-precision conversion);
    • Gradient synchronization and optimizer updates: The correctness and efficiency of cross-node communication directly determine training throughput and convergence quality.

    The industry understands this well. For example, some leading model teams validate multiple hardware routes in their technical reports, but what is usually validated is the inference-side feasibility of inference operators or fine-grained expert parallelism — not that the base model was pre-trained on that hardware. Training adaptation is therefore the true litmus test of a domestic GPU and its software stack, and it is the core topic of this article.

    The Technical Core of Training Adaptation: A Native Sharded Training Path

    2.1 Why a Native Sharding Strategy Is Needed

    For training trillion-parameter multimodal models, traditional data parallelism (DP) is no longer viable: every data-parallel replica must store full parameters, gradients, and optimizer states, with memory overhead exceeding ten times the parameter count (with Adam mixed-precision training, roughly 16GB per billion parameters). Fully Sharded Data Parallel (FSDP-style approaches) partitions parameters, gradients, and optimizer states entirely along the device dimension, performs on-demand aggregation (all-gather) during computation, and releases memory immediately afterward, compressing per-GPU memory usage to an acceptable range.

    Achieving this on domestic GPUs is not about “whether PyTorch interfaces can run” but about:

    1. Performance alignment of communication primitives: Collective operations such as all-gather and reduce-scatter must be deeply optimized for the domestic interconnect topology, otherwise communication overhead will erode compute gains;
    2. Compatibility of shard metadata management: Weight partitioning, persistence, and recovery must align with mainstream distributed training frameworks’ state dict formats, otherwise cross-platform resumption of interrupted training is impossible;
    3. Native operator-level support: Sharded tensors participate in computation with non-standard shapes, requiring the underlying operator library to guarantee correctness and performance for arbitrary partition dimensions.

    A “native training path” means model loading, shard scheduling, and gradient synchronization run as first-class citizens on the target software stack, without relying on extensive compatibility layers and conversion logic. This is the dividing line between “adaptation succeeded” and “scalable production.”

    2.2 A Skeleton of the Training Pipeline

    The following pseudocode illustrates the key elements that a sharded-data-parallel training loop must handle in practice:

    1. # Illustrative code: key elements of a sharded data parallel training loop
    2. model = build_model(config)
    3. model = shard_wrap(model, strategy="full_shard") # Shard params / grads / optimizer states
    4. optimizer = build_optimizer(model.parameters())
    5. dataloader = build_sharded_loader(dataset, world_size, rank)
    6. for step, batch in enumerate(dataloader):
    7. loss = model(batch) # Forward: aggregate sharded params on demand
    8. loss.backward() # Backward: reduce-scatter gradients
    9. clip_grad_norm_(model.parameters(), 1.0)
    10. optimizer.step() # Update only the local shard
    11. optimizer.zero_grad(set_to_none=True)
    12. # Stability monitoring: loss and gradient norms must remain finite
    13. assert torch.isfinite(loss), f"loss overflow at step {step}"

    The code looks simple, but every line represents substantial engineering work in the software stack across operators, communication, and memory management.

    Cross-Node Joint Training: A Stability Validation Methodology on Two Nodes with 16 GPUs

    The persuasiveness of training adaptation ultimately rests on measured data from continuous stable operation. Taking a small but representative validation configuration — joint cross-node training on 16 unified training-and-inference accelerator cards across two machines — as an example, a rigorous validation plan should include the following elements:

    3.1 Validation Goals and Acceptance Criteria

    • Process-level completeness: All 16 training processes (one per card) run without stragglers or hangs, completing the full preset number of optimizer update steps (e.g., 400 consecutive steps);
    • Numerical validity: Loss and gradient norms remain finite throughout, with no NaN/Inf numerical overflow;
    • No abnormal interruptions: Training is not interrupted by communication timeouts, out-of-memory errors, or operator failures.

    400 consecutive optimizer updates may sound modest, but the point is to cover the early training phase where problems most often surface: warmup of mixed-precision loss scaling, the first full establishment of the communication topology, and the cumulative effects of memory fragmentation. If defects exist in these areas, they typically appear within the first few hundred steps.

    3.2 Cross-Node Communication Is the Biggest Variable

    The two-node setup introduces a key variable: inter-node connectivity. Compared with high-speed intra-node interconnect, cross-node communication offers lower bandwidth and higher latency, so gradient synchronization strategies need targeted design:

    • Communication–computation overlap: During backpropagation, layers whose gradients are already computed immediately launch gradient reduction, pipelined with the backward computation of subsequent layers;
    • Gradient bucketing: Small gradient tensors are merged into communication-friendly large blocks, reducing protocol overhead of small-packet communication;
    • Topology-aware scheduling: The sharding strategy should be aware of the “fast intra-node, slow inter-node” hierarchy, keeping high-frequency communication within nodes wherever possible.

    These optimizations are industry best practices, but implementing them one by one on domestic interconnect protocols and NIC ecosystems still requires considerable engineering effort.

    From Small-Scale Validation to Production at Scale: The Value of an Engineering System

    Success in a single experiment does not equal production capability. Turning training adaptation into a replicable capability requires a mature engineering system with these typical components:

    Layer Key Capabilities
    Operator layer Operator library covering all training scenarios, with fast custom operator enablement
    Parallelism strategy layer Orchestration of data, tensor, pipeline, and expert parallelism
    Scheduling layer Multi-node multi-GPU job orchestration, elastic fault tolerance, resumable training
    Toolchain layer Performance profiling, memory analysis, communication bottleneck diagnosis, automated regression testing

    Supported by this system, domestic compute has delivered several representative real-world training efforts:

    1. From-scratch pre-training of a scientific foundation model: Completed full training of a 200-billion-parameter scientific domain foundation model from random initialization, validating stability over long training cycles (weeks to months);
    2. Full-stack native training of a high-dimensional world model: Supported native training of a frontier multi-dimensional world model on domestic compute, demonstrating the software stack’s ability to handle non-standard model architectures;
    3. End-to-end training of embodied intelligence models: Completed the full pipeline from data processing to training convergence for embodied-brain-type models, covering operator requirements from multimodal inputs and complex loss functions;
    4. Toward trillion parameters: Building on the above experience, advancing training engineering for trillion-parameter models, which places higher demands on sharding strategies, fault tolerance, and communication efficiency.

    The common lesson from these cases: maturity in training capability is not the linear accumulation of one-off adaptations, but the compounding result of an engineering system. Each completed model training deposits operator coverage, fault-tolerance experience, and performance-tuning knowledge that significantly lowers the adaptation cost of the next model.

    From “Can Train” to “Train Out of the Box”: The Next Stage of Evolution

    The main challenge for large model training on domestic GPUs is shifting from “can training be completed” to “training efficiency and usability.” Toward the goal of “train out of the box,” the following directions deserve sustained investment:

    • Automated operator adaptation: Operator coverage scanning tools automatically identify missing operators when new models are released and generate remediation task lists, compressing adaptation cycles from weeks to days;
    • Automated parallelism strategy search: Given a model architecture and cluster topology, automatically search for the throughput-optimal parallel configuration under memory constraints, reducing the need for users’ distributed systems expertise;
    • Training observability: Unify metrics such as loss curves, gradient norms, communication time, and memory water levels into logging services and monitoring/alerting systems, so numerical anomalies are caught before they spread;
    • Integration with cloud-native infrastructure: Deliver training environments as container images, host massive training corpora and checkpoints on object storage, and decouple data processing from training scheduling via message queues — making large-scale training as orchestratable and reproducible as ordinary cloud workloads. This combination of general cloud product capabilities is a critical foundation for the “train out of the box” experience.

    Conclusion

    Training adaptation for very large models is the threshold domestic GPUs must cross to move from “usable” to “good to use.” It tests not only peak chip compute, but the overall maturity of the software stack in sharded training, cross-node communication, numerical stability, and engineering systems. A stability validation of two nodes and 16 GPUs running 400 consecutive steps without anomalies, together with hands-on results training multiple large-parameter models from scratch, shows that domestic compute has the foundational capability to handle full-pipeline training of frontier complex models. The next stage of competition will focus on automated toolchains and out-of-the-box experiences — only when large models can truly be “trained out of the box” on domestic general-purpose GPUs will compute autonomy complete the loop from technical breakthrough to industry-wide benefit.