Training Adaptation for Domestic AI Accelerators: Stability Beyond Inference Validation

    This article examines what it really means to adapt an AI accelerator for training rather than inference. It explains why inference-capable chips may not support training, discusses the role and limits of native FSDP2 for very large models, and analyzes a two-node 16-accelerator validation run of 400 optimizer updates. It also outlines the limits of that result, provides a checklist for judging whether training adaptation is complete, and reviews the container, scheduling, storage, and monitoring support a training platform needs. The article concludes that the 400-step run is an early signal, not proof of full convergence, long-term stability, or fault tolerance.

    Training Adaptation for Domestic AI Accelerators: Stability Beyond Inference Validation

    1. Inference Adaptation vs. Training Adaptation

    Many technical reports state that a chip has been “adapted to” a certain open-source model. This usually refers to inference adaptation: running already-trained weights on the chip and verifying operator correctness, memory bandwidth, batched inference throughput, and concurrent processing capability. During inference, weights are fixed, gradients do not need to be computed, and optimizer states are not updated. Therefore, a chip that can complete inference does not necessarily support training the same model.

    Training adaptation has higher requirements. The chip must support backpropagation, gradient computation, gradient synchronization, and optimizer updates, while maintaining numerical stability and convergence after hundreds or even tens of thousands of iterations. Correct single-step computation is only the starting point. In long-running training, issues such as gradually increasing gradient norms, accumulating low-precision errors, and communication timeouts may emerge later. To judge whether an adaptation effort qualifies as training adaptation, one should examine which training stages it covers and how many steps it actually runs.

    2. The Role and Boundaries of FSDP2

    Native FSDP2 (Fully Sharded Data Parallel) is the training-path foundation for this practice. It shards model parameters, gradients, and optimizer states across the cards in a data-parallel group, with each card holding only a subset. When computing a given layer, the system uses All-Gather to collect the full parameters required for that layer, and after computation, uses Reduce-Scatter to shard gradients back to each card. This approach can significantly reduce per-card state memory usage.

    FSDP2 also has clear boundaries. It is essentially a sharding method within data parallelism and cannot solve memory problems for extremely large models on its own. Take a dense model with 3 trillion parameters. Under a common mixed-precision plus Adam optimizer configuration, the training state of each parameter occupies about 16 bytes, for a total of about 48 TB. Even if each card has 100 GB of memory, 16 cards provide only about 1.6 TB in total. Therefore, training extremely large models usually also requires tensor parallelism, pipeline parallelism, expert parallelism, or offloading some states to CPU memory or NVMe storage. Whether the model is dense or uses a mixture-of-experts (MoE) structure, and how many parameters are actually activated in each forward computation, determine the feasible parallelism approach.

    Cross-node gradient synchronization is also critical to performance. The training library needs to fully utilize inter-node RDMA network bandwidth and overlap computation with communication to hide network latency. MFU (Model FLOPs Utilization), the ratio of actual computation to the hardware’s theoretical peak, can measure the effectiveness of this optimization.

    3. Two-Node 16-Accelerator 400-Step Validation: Results and Limitations

    This test used two machines with a total of 16 high-end AI training/inference integrated accelerators, ran 16 training processes, and completed 400 consecutive optimizer updates. During the test, loss and gradient norms remained finite, with no numerical overflow or interruption.

    This result shows that, under the model, parallel configuration, and data conditions used in this test, the training pipeline was numerically stable within 400 steps, and cross-node communication and optimizer updates executed normally. It can serve as early evidence for adaptation work.

    This result does not show the following:

    • The model can fully converge on this cluster. 400 steps are far shorter than the number of steps in full pretraining.
    • There is no memory leak. The absence of OOM within 400 steps only means that short-run execution did not expose problems. Memory fragmentation and leaks during long-running execution require separate monitoring.
    • The cluster has long-term fault tolerance. The report does not record recovery after hardware failures, node restarts, or network jitter.
    • The result can be directly generalized to other model scales or other clusters.

    To reproduce or evaluate this result, the following information needs to be provided: accelerator model and per-card memory, inter-node interconnect bandwidth, parallel partitioning method, batch size and sequence length, computation precision and loss scale settings, throughput (tokens/s), MFU, peak memory, and checkpoint size. The model’s total parameter count, activated parameter count, and architecture type also need to be clearly specified.

    4. How to Judge Whether a Training Adaptation Is Complete

    The following items can be checked one by one.

    1. Single-step forward and backward computation results align with a reference implementation, with errors within a pre-agreed range.
    2. Continuously record loss, gradient norm, and learning rate during runtime. No NaN or Inf appears during long-running execution.
    3. The number of run steps covers key stages of the target training, such as learning-rate warmup, peak learning-rate stage, and decay stage.
    4. Save at least one checkpoint and successfully restore from it, with the loss curve remaining continuous after restoration.
    5. Throughput and MFU remain stable, and peak memory stays within budget.
    6. When a task fails, training can automatically resume from the most recent checkpoint.

    Alarm thresholds need to be determined based on baseline measurements and should not directly reuse generic values. For example, a sudden increase in gradient norm to several times the historical median, or frequent NCCL communication timeouts, is worth triggering an alarm.

    5. Engineering Support from the Training Platform

    The training platform needs to provide support in containers, scheduling, storage, and monitoring.

    For containers and scheduling, Kubernetes with a batch scheduling plugin such as Volcano can schedule multi-node, multi-GPU jobs as a whole, avoiding situations where some processes are ready while others are still waiting for resources.

    For storage, checkpoints for extremely large models are large, and read/write speed directly affects recovery time after a failure. A parallel file system or object storage can be used, and actual read/write bandwidth should be measured rather than relying only on nominal specifications.

    For monitoring, metrics such as GPU temperature, ECC error count, network packet loss rate, and NCCL timeouts need to be collected, alarm thresholds set, and abnormal processes located with logs. The industry commonly targets minute-level fault recovery, but actual recovery time needs to be measured on the target cluster.

    Conclusion

    This practice provides a valuable early signal: domestic accelerators completed a 400-step numerically stable training run in a two-node, 16-card configuration. This shows that part of the training pipeline has been run successfully. However, this validation did not cover the convergence process of full pretraining, long-term stability, or fault tolerance, nor did it disclose the model structure and parallel configuration. To judge whether domestic compute can support trillion-parameter model training, model structure, parallel scheme, throughput data, and long-running records need to be disclosed. As operator adaptation, multi-card coordination, and automated toolchains gradually mature, achieving “out-of-the-box training” under specific model and cluster conditions is a goal worth expecting, but it remains unverified.