Process-level online recovery (also referred to as step-level recomputation recovery) is used to rectify the following faults:
If faults cannot be rectified in the preceding two scenarios, rescheduling mode is then triggered.
Compared with process-level rescheduling, process-level online recovery does not reschedule faulty processes, reducing waiting time for inter-process synchronization. In addition, checkpoint information is transmitted via high-speed network P2P between NPUs, eliminating the overhead of saving and loading checkpoints.
This fault handling mode is disabled by default. To enable it, see (Optional) Configuring Components.
For details about the key configuration steps of process-level online recovery, see Configuring Process-Level Online Recovery.
Product Type |
Product |
Training Framework |
|---|---|---|
Atlas A3 training products |
|
|
Product Type |
Product |
Training Framework |
|---|---|---|
Atlas A2 training products |
|
|
Atlas A3 training products |
|
|
If an on-chip memory or network fault occurs during training, the training status will become abnormal. Process-level online recovery notifies all training processes to stop, retains the current training information, and rectifies the fault. Once recovery is complete, all training processes revert to the status at the end of the previous step. The healthy server transfers the checkpoint data to the affected server via the parameter plane to restore parameters. Training then resumes by re-executing the current step.

The steps in the figure are described as follows:
During process-level online recovery, the cluster brain identifies network faults and on-chip memory faults based on fault information, and delivers the corresponding recovery policy, with support for recovery policy rollback. In the training container, the framework initializes the MindIO service. After the service is started, the optimizer updates the corresponding status to MindIO. Then, a DP replica group and optimizer replicas are created to ensure redundant backup of model parameters. When an exception occurs, the decorator captures the related fault mode. During process-level online recovery, operator resources are cleared, the UCE model optimizer is rebuilt, the parameter plane is repaired online, and the status is rolled back.
For non-MindSpeed-LLM/MindCluster users, adapt the following functions on the framework.
Function |
Description |
Adapted Component |
Reference Link |
|---|---|---|---|
Boot while initialization |
The MindIO service is started while a training framework is initialized. |
Distributed training framework |
|
Optimizer update status reporting |
Before optimizer update, the start and end of the update process are reported. |
||
Exception capture decorator |
The decorator is used to decorate the train function to capture fault modes. |
||
Operator resource clearing |
The callback function is used to clear operator resources. |
||
Status rollback |
A callback function is used to rebuild data iterators and reset framework variables. |
||
Recovery policy decision |
Fault information is used to determine whether network or on-chip memory faults have occurred, to deliver corresponding recovery policy, with support for recovery policy rollback. |
AI platform |
See here. |
Scheduling of faulty pods |
Faulty pods are scheduled, and scheduling policy rollback is supported. |
See here. |
Function |
Description |
Adapted Component |
Reference Link |
|---|---|---|---|
Boot while initialization |
The MindIO service is started while a training framework is initialized. |
Distributed training framework |
|
Optimizer update status reporting |
Before optimizer update, the start and end of the update process are reported. |
||
DP replica group creation |
The creation logic of dp_cp/dp_ep replica groups and gloo groups is added. The replica groups are created after native Megatron distributed parallel groups are created. |
||
Optimizer replica |
The functions of the native Megatron optimizer are inherited, with MindIO optimizer replica management logic embedded. |
||
Exception capture decorator |
The decorator is used to decorate the train function to capture fault modes. |
||
Operator resource clearing |
The callback function is used to clear operator resources. |
||
UCE model optimizer rebuilding |
A callback function is used to clear and rebuild the model optimizer object on the faulty rank. |
||
Online parameter plane repair |
A callback function is used to restore replica and recovery ranks. |
||
Status rollback |
A callback function is used to rebuild data iterators and reset framework variables. |
||
Recovery policy decision |
Fault information is used to determine whether network or on-chip memory faults have occurred, to deliver corresponding recovery policy, with support for recovery policy rollback. |
AI platform |
See here. |
Scheduling of faulty pods |
Faulty pods are scheduled, and scheduling policy rollback is supported. |
See here. |