Large-Model Training Adaptation on Domestic Full-Function GPUs: Sharded Loading, Multi-Node Stability, and Engineering Validation

    This article examines what it takes to move large-model training adaptation beyond inference deployment on domestic full-function GPUs. It distinguishes inference deployment, training adaptation, and full pretraining; outlines key challenges such as parameter, gradient, and optimizer-state sharding, operator coverage, and multimodal dynamic shapes; and describes a native sharded data-parallel path covering sharded loading, scheduling, and gradient synchronization. It also reviews a two-node, 16-card validation in which 16 training processes completed 400 consecutive optimizer updates with loss and gradient norms remaining finite, and discusses numerical stability, reusable tooling, and next steps for scaling the software ecosystem.

    As large model parameter scales continue to grow, competition in training infrastructure is shifting from single-card compute toward overall coordination among chips, compilers, communication libraries, distributed frameworks, and model code. For domestic full-function GPUs, being able to run a model is only the starting point. The real marker of engineering value is whether the platform can complete complex model loading, sharding, forward computation, backpropagation, gradient synchronization, and optimizer updates while maintaining stability over long periods in multi-node, multi-card environments.

    A recent training adaptation effort for advanced open-source large models has completed validation. The system used domestic high-performance AI training-and-inference cards with a supporting software stack. In a two-node, 16-card environment, 16 training processes completed 400 consecutive optimizer updates. Loss values and gradient norms remained within a finite range throughout training, with no numerical overflow or abnormal interruption. The significance of this result is not that a model has completed pretraining from scratch on this hardware, but that the domestic hardware platform has demonstrated the basic engineering capability to support a complex model training pipeline.

    1. Training Adaptation Does Not Equal Pretraining from Scratch

    When discussing large models and chip adaptation, three concepts must first be distinguished: inference deployment, training adaptation, and full pretraining.

    Inference deployment focuses mainly on whether a model can be loaded correctly and can complete input-to-output computation through compilation, operator execution, and memory management. Its core metrics usually include first-token latency, throughput, memory usage, and concurrency stability. Inference scenarios generally do not require saving a complete backward computation graph, nor do they involve gradient synchronization or optimizer states, so the engineering complexity is relatively lower.

    Training adaptation goes further. In addition to the operators required for forward inference, it must support backpropagation, gradient computation, activation saving, parameter updates, mixed-precision control, and distributed communication. A model being able to complete a training step on target hardware does not mean it has completed full-corpus pretraining on that platform; it means the training pipeline has been connected at the functional and stability levels.

    Full pretraining is a longer-cycle, larger-scale engineering process. It involves data cleaning, data mixing, checkpoint management, task scheduling, fault recovery, training monitoring, cost control, and tens of thousands or more iterative updates. A training adaptation test can prove that the hardware and software stack have training capability, but it cannot directly establish the source of the model’s original pretraining compute, nor can a short-cycle stability test be equated with full foundation model training.

    Therefore, technical reports should clearly state the test scope, training steps, parallel scale, and validation objectives, avoiding misinterpretation of “successful adaptation” as “the model has completed pretraining on this platform.”

    2. Main Technical Challenges in Adapting Complex Large Models

    For models with hundreds of billions of parameters or more, the difficulty of adaptation is not only about adding more devices. It requires solving problems at multiple levels at the same time.

    2.1 Parameters and States Cannot Fully Reside on a Single Card

    Very large models usually contain three main categories of data: parameters, gradients, and optimizer states. With common adaptive optimization methods, optimizer states may reach several times the parameter scale. Even when low-precision parameters are used, a single card’s memory can hardly hold the complete model and the intermediate activations generated during training.

    Therefore, the training system must adopt strategies such as parameter sharding, gradient sharding, and optimizer-state sharding. In data-parallel sharding, for example, each process retains only part of the parameters and states, temporarily aggregates the required parameters before executing a layer, and releases or re-shards them after computation. This can significantly reduce per-card memory pressure, but it also introduces additional communication and scheduling overhead.

    2.2 Operator Coverage Determines Whether the Model Can Actually Run

    Large models typically include many types of operators, such as matrix multiplication, normalization, rotary position encoding, attention computation, gated routing, sparse expert dispatch, and multimodal input processing. The inference stage covers only the forward path, while the training stage must also provide backward implementations for these operators and ensure controllable computation results under different precisions.

    The adaptation process usually requires building an operator inventory and classifying operators into “already implemented, composable, requires optimized implementation, and not yet supported.” For high-frequency core operators, correctness and performance should be prioritized. For low-frequency or special operators, a general implementation can first complete the loop, followed by gradual optimization based on performance analysis.

    2.3 Multimodal Data Brings More Complex Dynamic Shapes

    If a model processes text, images, audio, or other modalities at the same time, input length, modality count, and feature dimensions may all vary. Dynamic shapes affect memory planning, compilation caches, batching strategies, and communication scheduling.

    In engineering implementation, data from different modalities must be uniformly encapsulated, input tensor layouts, mask rules, and positional encoding methods must be clearly defined, and stable interfaces must be established among model loading, data preprocessing, and distributed sharding. Otherwise, even if a single-modality path can run, multimodal training may still encounter problems during data concatenation, sequence alignment, or backpropagation.

    3. Key Stages of the Native Sharded Training Path

    An important direction of this adaptation is to build a native sharded data-parallel training path. Its core goal is to organize parameters according to distributed training requirements from the moment the model is loaded, rather than first constructing a complete model on a single card and then forcing it to be split.

    3.1 Sharded Loading

    Traditional approaches often read the complete checkpoint first and then split the model across devices. In very large model scenarios, this can cause excessive host memory peaks and long loading waits.

    A more reasonable approach is to directly read the parameter shard required by each process based on the parameter layout and process topology. This reduces startup peaks and shortens model initialization time. Sharded loading also needs to handle checkpoint versions, parameter naming, weight formats, and missing fields, ensuring that all processes have a consistent understanding of the model structure.

    3.2 Sharded Scheduling

    During forward computation, some layers need to temporarily aggregate parameters and release redundant copies after computation. The scheduler must coordinate computation streams, communication streams, and memory lifetimes, overlapping communication with computation as much as possible to reduce device idle time.

    If parameter aggregation happens too early, it may cause memory peaks; if it happens too late, computation may wait. Therefore, scheduling policies need to adjust dynamically based on layer size, network bandwidth, computation time, and device memory.

    3.3 Gradient Synchronization

    After backpropagation is complete, each process must reduce the corresponding gradients to ensure that different shards hold consistent update information. Gradient synchronization is usually performed through collective communication operations, and actual efficiency depends on communication topology, message size, data type, and communication library implementation.

    In multi-node environments, the performance difference between intra-node and inter-node communication is significant. A reasonable approach is to first use high-speed intra-node interconnects for local aggregation, then perform cross-node communication, and reduce the number of small messages through gradient bucketing. For large-scale training tasks, attention must also be paid to abnormal retries, timeout detection, and process consistency during communication.

    4. Continuous Stability Validation Across Two Nodes and Multiple Cards

    Compared with validating only a single-step run, completing hundreds of consecutive optimizer updates better reflects the engineering maturity of the system. One successful forward and backward pass only shows that the main operators can execute; long-duration continuous training also exposes issues such as memory leaks, communication blocking, inconsistent random number states, mixed-precision overflow, and checkpoint errors.

    Stability testing should focus on at least the following metrics:

    1. Loss value changes: Loss should show a reasonable trend according to task characteristics and must not suddenly become non-numeric or infinite.
    2. Gradient norm: Gradient norms can indicate whether training exhibits explosion, vanishing, or abnormal oscillation.
    3. Device memory usage: Memory should remain relatively stable across consecutive iterations and should not continue growing with step count.
    4. Communication status: Collective communication time, timeout conditions, and whether all processes have consistent step counts should be recorded.
    5. Throughput and utilization: Observe compute-unit utilization, communication ratio, and whether data loading becomes a bottleneck.
    6. Checkpoint consistency: After saving and restoring, model parameters, optimizer states, and random number states should be able to continue seamlessly.

    In the two-node, 16-card environment, 16 training processes completed 400 consecutive optimizer updates, and loss and gradient norms remained within a finite range throughout. This indicates that the training pipeline has at least passed basic functional and short-cycle stability validation. From a production perspective, however, longer-cycle tests, more nodes, larger batches, and fault-injection tests are still required.

    5. Numerical Stability Is a Core Metric of Training Adaptation

    To improve throughput, large-model training usually uses low-precision computation. However, the reduced dynamic range of low precision can lead to gradient underflow, overflow, or accumulated errors. Therefore, training systems generally combine mechanisms such as loss scaling, high-precision computation for key operators, gradient clipping, and overflow detection.

    A complete numerical stability solution should include:

    • Periodically monitoring loss values and gradient norms;
    • Intercepting abnormal values in time to prevent errors from spreading across the entire model;
    • Using higher precision in key normalization, reduction, and exponential operations;
    • Saving necessary training states to support rollback after anomalies;
    • Validating separately for different batch sizes, sequence lengths, and parallel scales.

    It is important to note that the absence of overflow over a short period does not prove absolute stability over long-term training. Numerical behavior may change when model scale, learning rate, data distribution, and parallelism change. Therefore, stability testing must cover multiple configurations rather than relying on a single experimental result.

    6. An Engineering System from “Can Run” to “Can Scale”

    Large-model training adaptation cannot remain at the level of a single model or a one-time demonstration; it also needs to form a reusable toolchain.

    First is automated model checking. The system should be able to scan model structure, identify unsupported operators, abnormal tensor layouts, and potential dynamic shape issues, and provide clear prompts before training starts.

    Second is automated performance analysis. By recording operator time, communication time, memory peaks, and data loading time, it is possible to determine whether bottlenecks come from computation, communication, or the input pipeline. Only after bottleneck localization can subsequent optimization avoid blind adjustment.

    Third is a complete fault-handling mechanism. In multi-node, multi-card training, if one process fails, other processes are often forced to stop as well. Therefore, capabilities such as process status monitoring, timeout detection, checkpoint recovery, and log aggregation are needed to reduce the cost of rerunning long tasks after failures.

    Finally, unified validation criteria should be established. In addition to functional correctness, training throughput, scaling efficiency, memory usage, communication ratio, recovery time, and long-cycle stability should also be evaluated. Only with a complete metric system can the maturity of adaptation work be judged objectively.

    7. Next Directions for the Domestic Compute Ecosystem

    Based on existing practice, domestic full-function GPUs have begun to move from inference deployment and partial operator adaptation into the stage of complex model training. Future competition will focus on three directions.

    First, improve software stack compatibility. Training frameworks, compilers, automatic differentiation systems, and communication components need to form a more stable collaborative relationship to reduce model migration costs.

    Second, improve multi-card and multi-node scaling capabilities. Single-machine performance does not equal cluster performance. Cross-node communication efficiency, task scheduling, and fault recovery capabilities will directly affect actual training costs.

    Third, promote automation of training tools. Model analysis, parallel strategy generation, memory planning, performance tuning, and anomaly diagnosis should all minimize manual intervention so that frontier models can complete migration and validation faster.

    Overall, very large model training adaptation is a systems engineering effort. Completing 400 consecutive update steps on two nodes with 16 cards shows that the target platform already has a relatively complete training loop and a certain stability foundation. But it should be understood as an important milestone toward scalable training, not the endpoint of full pretraining capability. As operators, communication, compilation, and operations systems continue to improve, domestic compute platforms are expected to move large-model training from “migratable” toward “stable operation, continuous optimization, and out-of-the-box readiness.”