Intelligent fault-tolerant and dynamic scaling method for computing power cluster oriented to large model training

By employing a multi-level perception and fault decision tree automatic classification method, combined with hierarchical checkpoint recovery, topology-aware rescheduling, and hybrid cloud elastic scaling, the high failure rate and insufficient resource utilization in large-scale computing cluster large model training are solved, achieving efficient and automated fault recovery and resource optimization.

CN123178134APending Publication Date: 2026-11-27XUNDA INTELLIGENT COMPUTING TECHNOLOGY (JILIN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611114770.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Large-scale model training on large computing clusters faces problems such as high failure rate, low recovery efficiency and insufficient resource utilization. Traditional fault-tolerance methods are time-consuming and rely on manual intervention, and cannot simultaneously guarantee the continuity of training and resource utilization.

Method used

By acquiring fault symptom information and health status information through multi-level joint sensing, automatically classifying fault types using fault decision trees, and generating joint scheduling instructions based on this, the system executes hierarchical checkpoint recovery, topology-aware rescheduling, and hybrid cloud elastic scaling to achieve automated fault handling and dynamic resource optimization.

Benefits of technology

It significantly reduces fault recovery time from hours to minutes, achieving near-lossless training continuity, improving resource utilization and reducing computing costs, and solving the problems of low fault recovery efficiency and insufficient resource utilization in existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178134A_ABST
    Figure CN123178134A_ABST
Patent Text Reader

Abstract

The application discloses a computing power cluster intelligent fault tolerance and dynamic expansion and contraction method for large model training, comprising the following steps: in response to the start of a training unit for executing a large model training task in a computing power cluster or a fault monitoring trigger, determining fault symptom information, health state information and resource utilization information of the training unit; determining a fault type based on the fault symptom information and the health state information, and determining whether to trigger elastic expansion and contraction based on the resource utilization information; in response to the fault type and the trigger result of the elastic expansion and contraction, generating a joint scheduling instruction, wherein the joint scheduling instruction is used for: performing hierarchical checkpoint recovery when the fault type is a recoverable type, performing topology-aware rescheduling when the fault type is an unrecoverable type, and performing hybrid cloud-based elastic expansion and contraction when the elastic expansion and contraction is triggered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention discloses an intelligent fault tolerance and dynamic scaling method for computing power clusters for large model training, belonging to the field of intelligent fault tolerance and dynamic scaling technology for computing power clusters. Background Technology

[0002] Currently, large-scale model training for large-scale computing clusters faces challenges such as high failure rates, low recovery efficiency, and insufficient resource utilization. Hardware failures, such as GPU malfunctions and NVLink communication errors, software anomalies, such as NCCL communication timeouts and training process freezes, as well as frequent network jitter, lead to frequent training task interruptions. Traditional fault-tolerance methods rely on full checkpoint recovery, which takes several hours and requires manual intervention, severely disrupting training continuity. Meanwhile, static resource configuration methods struggle to match the dynamic fluctuations of training load, resulting in insufficient computing power during peak periods and significant resource idleness during troughs, leading to high computing costs. While existing technologies include task restart or node rescheduling schemes based on fault detection, none of them organically integrate multi-level fault attribution, rapid hierarchical checkpoint recovery, and hybrid cloud elastic scaling, failing to simultaneously guarantee training continuity, resource utilization, and cost controllability.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides an intelligent fault-tolerance and dynamic scaling method for computing power clusters for large model training, which at least solves the technical problems of low fault recovery efficiency, strong reliance on manual intervention, insufficient resource utilization, and inability to adaptively scale in existing large model training.

[0005] According to one aspect of the present invention, in order to achieve the above-mentioned objective, a method for intelligent fault tolerance and dynamic scaling of computing power clusters for large model training is provided, comprising:

[0006] In response to the startup or fault monitoring trigger of the training unit performing large model training tasks in the computing power cluster, determine the fault symptoms, health status and resource utilization information of the training unit.

[0007] The fault type is determined based on fault symptom information and health status information, and whether elastic scaling is triggered is determined based on resource utilization information.

[0008] In response to the fault type and the triggering result of elastic scaling, a joint scheduling instruction is generated. The joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0009] Furthermore, the fault symptom information, health status information, and resource utilization information of the training unit are determined, including:

[0010] The health status of the graphics processor, NVLink error information between graphics processors, and power supply and fan status information are obtained from the hardware layer monitoring and used as health status information.

[0011] Obtain node status information obtained from fault domain isolation based on Kubernetes node heartbeats and independent heartbeat networks at the system layer, as fault symptom information;

[0012] Acquire NCCL communication timeout information, training process dead status information, and gradient anomaly information from the training layer monitoring as fault symptom information.

[0013] Furthermore, after obtaining health status information and fault symptom information, it also includes:

[0014] The system automatically classifies health status information and fault symptom information using a pre-set fault decision tree to distinguish between permanent hardware faults, transient software faults, and network jitter.

[0015] Among them, transient software failures or network jitters are classified as recoverable, while permanent hardware failures are classified as unrecoverable.

[0016] Furthermore, the restoration of tiered checkpoints includes:

[0017] During training, hot backup checkpoints based on ZeRO-3 shards are saved asynchronously. Only incremental checkpoints of model parameters are saved between adjacent hot backup checkpoints. At the moment of failure, an instant checkpoint containing the minimum state of the current training step is automatically triggered and saved.

[0018] During recovery, immediate checkpoints are loaded first, and hot backup checkpoints are loaded when immediate checkpoints are unavailable. The model state is restored by replaying at least one incremental checkpoint.

[0019] Furthermore, the restoration of tiered checkpoints also includes:

[0020] After the model state is restored, the NCCL communication group is rebuilt, and the model state of each training unit is synchronized to the training step before the failure occurred.

[0021] Furthermore, topology-aware rescheduling includes:

[0022] Obtain the topology location information of the training node that failed, and configure Pod anti-affinity rules for the training unit to be rebuilt;

[0023] Prioritize healthy nodes located in the same rack or NVLink domain as the faulty training node, and rebuild the training unit on the healthy node.

[0024] Call the non-blocking interface of the NCCL library to remove the faulty communication rank from the current distributed communication group and rebuild the distributed communication group according to the new resource topology.

[0025] Furthermore, elastic scaling based on hybrid cloud includes:

[0026] When an expansion operation is triggered, idle computing resources in the local resource pool are used first. If the idle computing resources in the local resource pool are insufficient, the elastic computing resource pool in the hybrid cloud is dynamically accessed through a dedicated line.

[0027] When a scaling-down operation is triggered, a lossless shutdown is performed on training units whose load is below a preset threshold. The lossless shutdown includes: sending a graceful exit signal to the training unit to be scaled down and waiting for the training unit to be scaled down to complete the current training step; triggering the training unit to be scaled down to save the parameter shards it is responsible for and the corresponding incremental checkpoints; removing the training unit to be scaled down from the current distributed communication group and reallocating its parameter shards to the remaining training units; and releasing the computing resources occupied by the training unit to be scaled down after confirming that the state transition is completed.

[0028] Furthermore, elastic scaling based on hybrid cloud also includes:

[0029] After completing the scaling up or scaling down operation, the tensor partitioning dimension of the tensor parallel strategy is adaptively adjusted according to the total number of currently available graphics processors, the number of model segments of the pipeline parallel strategy is adjusted according to the changes in cluster size, and the number of data shards of the data parallel strategy is adjusted according to the changes in the number of training nodes.

[0030] Furthermore, it also includes:

[0031] The time series trends of the cumulative ECC error rate of the graphics processor and the CRC error of NVLink are input into the time series prediction model to predict the failure probability of the target computing node in the future time window.

[0032] When the predicted failure probability exceeds a preset threshold, the training task executed on the target computing node is proactively migrated to the healthy node in advance, and the model weights and communication groups are preheated on the healthy node.

[0033] According to one embodiment of the present invention, an intelligent fault-tolerant and dynamically scaling system for computing power clusters for large model training is also provided, comprising:

[0034] The acquisition module is used to respond to the start-up or fault monitoring trigger of the training unit performing large model training tasks in the computing power cluster, and to determine the fault symptoms, health status and resource utilization information of the training unit.

[0035] The determination module is used to determine the fault type based on fault symptom information and health status information, and to determine whether to trigger elastic scaling based on resource utilization information;

[0036] The scheduling module is used to generate joint scheduling instructions in response to the fault type and the triggering result of elastic scaling. The joint scheduling instructions are used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0037] In this embodiment of the invention, a hierarchical checkpoint strategy significantly reduces the fault recovery time for large model training tasks from the traditional hourly level to the minute level, and only a very small number of training steps need to be rolled back after recovery, achieving near-lossless continuous training. A fault decision tree automatically distinguishes between permanent hardware faults, transient software faults, and network jitter, triggering different recovery operations accordingly, thus automating and intelligently handling faults and eliminating manual intervention. Based on real-time resource utilization information, dynamic triggering of hybrid cloud elastic scaling ensures rapid scaling response and lossless shutdown, significantly improving resource utilization during off-peak periods and effectively reducing computing costs. Adaptive adjustment of multiple parallel strategies after cluster size changes further balances computational and communication overhead, ensuring high training efficiency and stability, thereby solving the technical problems of low fault recovery efficiency, strong reliance on manual intervention, insufficient resource utilization, and inability to adaptively scale in existing large model training. Attached Figure Description

[0038] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0039] Figure 1 This is a flowchart of a computing power cluster intelligent fault tolerance and dynamic scaling method for training large models according to one embodiment of the present invention.

[0040] Figure 2 This is a structural block diagram of a computing power cluster intelligent fault-tolerant and dynamic scaling device for large model training according to one embodiment of the present invention. Detailed Implementation

[0041] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0043] According to an embodiment of the present invention, an embodiment of a computing power cluster intelligent fault tolerance and dynamic scaling method for training large models is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer device such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than that shown here.

[0044] This method embodiment can be executed in an electronic device or similar computing device that includes a memory and a processor. Taking operation on a vehicle terminal as an example, the vehicle terminal may include one or more processors (processors may include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), digital signal processing (DSP) chips, microcontroller units (MCUs), field-programmable gate arrays (FPGAs), neural network processors (NPUs), tensor processors (TPUs), artificial intelligence (AI) type processors, etc.) and a memory for storing data. Optionally, the vehicle terminal may also include transmission devices, input / output devices, and display devices for communication functions. Those skilled in the art will understand that the above structural description is merely illustrative and does not limit the structure of the vehicle terminal. For example, the vehicle terminal may include more or fewer components than described above, or have a different configuration than described above.

[0045] The memory can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the intelligent fault-tolerant and dynamic scaling method for large-model training computing clusters in this embodiment of the invention. The processor executes various functional applications and data processing by running the computer program stored in the memory, thereby realizing the aforementioned intelligent fault-tolerant and dynamic scaling method for large-model training computing clusters. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0046] The transmission device is used to receive or send data via a network. Specific examples of the network mentioned above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0047] Display devices can be, for example, touchscreen liquid crystal displays (LCDs) and touch displays (also referred to as "touchscreens" or "touch displays"). The LCD allows users to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), which allows users to interact with the GUI through finger contact and / or gestures on a touch-sensitive surface. Optional human-computer interaction functions include: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital video, playing digital music, and / or web browsing, etc. Executable instructions for performing the above human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.

[0048] Figure 1 This is a flowchart of a method for intelligent fault tolerance and dynamic scaling of computing power clusters for large model training according to one embodiment of the present invention, as follows: Figure 1 As shown, the method includes the following steps:

[0049] Step S110: In response to the startup or fault monitoring trigger of the training unit performing the large model training task in the computing power cluster, determine the fault symptom information, health status information, and resource utilization information of the training unit. The specific steps are as follows:

[0050] In step S110, in response to the startup or fault monitoring trigger of a training unit performing a large model training task in the computing power cluster, a multi-level joint sensing step is executed to determine the fault symptom information, health status information, and resource utilization information of the training unit. The training unit refers to a containerized computing instance deployed on a computing node of the computing power cluster, and each training unit contains a training process and a management process. The aforementioned multi-level joint sensing step is initiated when a training unit is first scheduled to a computing node and starts running, or when a running training unit is detected as abnormal by the cluster's fault monitoring module and is triggered for re-detection.

[0051] Specifically, determining the health status information of the training unit includes acquiring the operating parameters of the graphics processing unit (GPU) on the training node through hardware-level monitoring. A device monitoring plugin deployed on each computing node reads the temperature, power consumption, ECC error accumulation rate, NVLink link bandwidth, and CRC checksum of each GPU in real time. When the ECC error accumulation rate of a GPU continuously increases within a unit of time, or when the NVLink bandwidth drops below a set percentage of the normal level, that GPU is marked as having an abnormal health status. Simultaneously, the output voltage of the power supply module, fan speed, and hard drive read / write error rate are monitored; these hardware parameters collectively constitute the health status information.

[0052] The identification of fault symptoms in the training unit is accomplished through collaborative monitoring at the system and training layers. At the system layer, based on the Kubernetes platform's node heartbeat mechanism, the node agent on each compute node reports the node's liveness status to the API server at high frequency. To avoid interference from compute network congestion on heartbeat detection, a separate low-speed heartbeat network is deployed specifically for transmitting node health probe messages. Once a heartbeat times out, it is determined that the node exhibits fault symptoms such as network partitioning or operating system hangs. Simultaneously, Pod lifecycle events are monitored, such as Pod eviction, image pull failure, or process termination due to insufficient memory; these events are recorded as fault symptoms. At the training layer, communication timeout events are monitored for the NCCL ensemble communication library, which is widely used in large model training. If a training process initiates an ensemble communication operation such as AllReduce or Broadcast and fails to receive responses from all participants within a preset time threshold, a communication fault symptom is identified. Furthermore, process freezes are detected by monitoring the training process's heartbeat and gradient update frequency: if the loss function value remains unchanged and the process is unresponsive for multiple consecutive gradient update cycles, a process freeze is detected. Gradient anomalies are detected by monitoring whether the norm of the gradient tensor exceeds a reasonable range; if the gradient norm approaches infinity, it is determined to be gradient explosion, and if it approaches zero, it is determined to be gradient vanishing.

[0053] Determining the resource utilization information of the training unit includes real-time collection of each graphics processing unit's (GPU) utilization, video memory usage, CPU core load, memory usage, and network bandwidth. This data is collected and aggregated at the second-level granularity by a resource monitoring component on the node, and can be tagged and stored based on the collection timestamp. Resource utilization information is not only used for subsequent elastic scaling decisions but also provides auxiliary information for fault location; for example, a persistently high video memory usage close to the upper limit indicates a potential risk of video memory leakage.

[0054] The collection of fault symptom information, health status information, and resource utilization information is performed in parallel and periodically. This collection process can begin immediately in response to the training unit's startup event, or it can be triggered by external fault monitoring events during training unit operation. All collected information is structured and stored in the cluster's distributed database for subsequent fault type determination and scaling decisions. Through this multi-level, multi-dimensional joint perception, the state environment of the training unit can be accurately captured before or even momentarily before anomalies occur in large model training tasks, providing a data foundation for subsequent intelligent fault tolerance and dynamic scaling.

[0055] Step S120: Determine the fault type based on fault symptom information and health status information, and determine whether to trigger elastic scaling based on resource utilization information. The specific steps are as follows:

[0056] In step S120, based on the fault symptom information and health status information obtained in the previous steps, a fault type determination step is further performed. Specifically, the collected data, such as the GPU health status parameters, node heartbeat status, NCCL communication timeout events, training process dead flags, and gradient anomaly flags, are input into a pre-constructed fault decision tree for automatic classification. This fault decision tree, according to its hierarchical structure of hardware layer, system layer, and training layer, determines the root cause of the fault level by level.

[0057] For example, when health status information shows a continuously rising ECC error rate for a GPU and a surge in CRC checksum errors on the NVLink link, the fault decision tree classifies it as a permanent hardware failure. If the fault symptom information only includes NCCL communication timeouts, and the GPU health status and network device status at the hardware level are normal, it is determined to be a transient failure of the network jitter type. If the fault symptom information shows that the training process heartbeat has stopped but the node heartbeat is normal and the GPU health status is good, it is determined to be a transient software failure, such as the training process crashing due to a code error. If multiple training units on the same node simultaneously exhibit fault symptoms and the node heartbeat is lost, it is determined to be a permanent hardware failure at the node level.

[0058] Based on the fault type determination, the recoverability of the fault is further assessed. Transient software faults and network jitter are classified as recoverable, meaning that training can be resumed simply by restarting the training process or rebuilding the communication group, without needing to migrate the training unit. Permanent hardware faults are classified as unrecoverable, meaning that the computing node where the current training unit resides can no longer provide reliable service, and the training task needs to be migrated to another healthy node.

[0059] Simultaneously, based on the resource utilization information obtained from the above steps, the triggering judgment steps for elastic scaling up and down are executed in parallel. Resource utilization information includes the utilization rate of each GPU, memory usage, the number of training tasks in the queue, and the CPU load. Multiple sets of scaling up and down decision indicators are preset, including scaling up and scaling down indicators. Specifically, the scaling up indicator is set as follows: a scaling up decision is triggered when the utilization rate of any GPU exceeds a first threshold for multiple consecutive sampling periods, or when the number of tasks waiting to be scheduled in the training task queue exceeds a second threshold. The scaling down indicator is set as follows: a scaling down decision is triggered when the utilization rate of all GPUs is below a third threshold for multiple consecutive sampling periods, the training task queue is empty, and the remaining computing resources are sufficient to handle all running training tasks.

[0060] To avoid training task jitter caused by frequent scaling operations, a delayed confirmation mechanism is introduced when determining whether to trigger elastic scaling. That is, when the scaling or shrinking criteria are met for the first time, scaling is not triggered immediately. Instead, it is observed for several consecutive sampling periods, and elastic scaling is only triggered after the criteria are consistently met. Simultaneously, the step size for each scaling operation is dynamically adjusted according to the scale of the computing cluster. For large clusters at the kilocal level, the step size for the number of GPUs in each scaling operation is set larger; for small-scale clusters, the step size is set smaller to ensure smooth resource adjustments.

[0061] Through the above steps, accurate differentiation of fault types and real-time awareness of changes in resource demand are achieved, providing a decision-making basis for generating differentiated joint scheduling instructions. The fault type determines whether hierarchical checkpoint recovery or topology-aware rescheduling is adopted, while the triggering result of elastic scaling determines whether the cluster's computing resource scale needs to be adjusted. This intelligent decision-making method based on multi-source information fusion enables large model training tasks to automatically select the optimal recovery path when a fault occurs, and to automatically adjust resource supply when the load fluctuates, thereby ensuring the continuity of training and efficient utilization of resources.

[0062] Step S140: In response to the fault type and the triggering result of elastic scaling, a joint scheduling instruction is generated. This joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable; perform topology-aware rescheduling when the fault type is unrecoverable; and perform hybrid cloud-based elastic scaling when elastic scaling is triggered. The specific steps are as follows:

[0063] In step S140, in response to the fault type determined in the above steps and the triggering result of elastic scaling, a joint scheduling instruction generation step is executed. This joint scheduling instruction invokes the corresponding recovery mechanism or resource adjustment mechanism according to different fault types and scaling requirements, to ensure the continuity of large model training tasks and dynamically optimize computing resources.

[0064] When the fault type is determined to be recoverable, the joint scheduling instruction instructs the execution of a tiered checkpoint recovery operation. Recoverable types include transient software faults and network jitter. In this case, the compute node hosting the training unit remains healthy and no task migration is required. The tiered checkpoint recovery operation first attempts to load the most recently automatically saved instant checkpoint from high-speed shared storage. This instant checkpoint is automatically triggered by the training process at the moment the fault occurs and contains the minimum necessary states, such as model parameters, optimizer state, and data iterator position for the current training step. If the instant checkpoint is available, it is directly loaded into the recovered training process, restoring the model state to the training step before the fault. If the instant checkpoint fails to be saved or is corrupted, the latest saved hot backup checkpoint is loaded, and several adjacent incremental checkpoints are replayed. The model state is restored to the most recent stable state before the fault by parameter concatenation. After state recovery is complete, the NCCL communication group is rebuilt, enabling each training unit to re-establish ensemble communication connections and continue subsequent training iterations from the recovered training step.

[0065] When a fault is determined to be unrecoverable, the joint scheduling instruction instructs a topology-aware rescheduling operation. Unrecoverable faults include permanent hardware failures, such as GPU hardware failure, unrecoverable NVLink link errors, node power failures, or lost storage volumes. In this case, the compute node containing the faulty training unit is marked as unhealthy and cannot continue to support training tasks. The topology-aware rescheduling operation first obtains the topology location information of the faulty node, including the rack identifier, NVLink domain, and the level of the connected switch. Then, based on this topology information, candidate nodes are selected from the healthy node pool of the compute cluster. During the selection process, Pod anti-affinity rules are configured to avoid scheduling rebuilt training units to the same node or the same fault domain, preventing the propagation of a single point of failure. Simultaneously, healthy nodes located in the same rack or NVLink domain as the faulty node are prioritized to reduce cross-domain communication overhead caused by communication group reconstruction. After selecting the target node, the training unit is recreated on that node, and the parameter shards previously handled by the faulty training unit are allocated to the newly created training unit. Next, the non-blocking interface of the NCCL library is invoked to remove the faulty communication rank from the current distributed communication group and dynamically rebuild the distributed communication group according to the new resource topology. After reconstruction, the most recently saved checkpoint is loaded to resume training from the state before the failure.

[0066] When elastic scaling is triggered, indicating a need for expansion or scaling down, the joint scheduling command instructs the execution of hybrid cloud-based elastic scaling operations. The trigger condition for expansion is that resource utilization information meets expansion metrics, such as persistently high GPU utilization or training task queue numbers exceeding a threshold. The expansion command first schedules idle computing resources in the local resource pool, incorporating idle GPU nodes into the current training cluster. If the idle resources in the local resource pool are insufficient to meet the expansion requirements, it dynamically connects to the elastic computing resource pool in the hybrid cloud via a dedicated line. When connecting to cloud resources, it automatically selects the resource with the lowest unit computing power cost from multiple hybrid cloud providers and preheats the dataset and model weights required for training to the cloud nodes via a dedicated data line, ensuring that the cloud nodes and local nodes operate in the same environment. After the cloud nodes are added, the distributed parallel strategy is automatically adjusted to allow the newly added computing resources to participate in training.

[0067] The scaling-down operation is triggered when resource utilization information meets scaling-down criteria, such as persistently low GPU utilization and no task queuing. The scaling-down instruction first selects the training unit with the lowest load as the target, avoiding core nodes handling critical checkpoints or in hot standby mode. Then, a graceful exit signal is sent to the training unit to be scaled down, waiting for it to complete its current training step to avoid interrupting ongoing data processing. Before exiting, the training unit automatically saves the parameter shards it is responsible for and their corresponding incremental checkpoints to ensure no state loss. Next, the training unit is removed from the current NCCL communication group, and its parameter shards are reallocated to the remaining training units. After confirming all state transitions are complete, the computing resources occupied by the training unit are released. If the released resources come from the local resource pool, they are marked as idle for subsequent scheduling; if they come from the hybrid cloud, a release instruction is sent to the cloud service provider to stop billing.

[0068] The three types of joint scheduling instructions described above can be executed independently or in combination. For example, when the fault type is unrecoverable and a scaling requirement is triggered simultaneously, new computing resources can be requested from the hybrid cloud to supplement the computing power lost due to the isolation of the faulty node while performing topology-aware rescheduling. The instruction generation priority follows the order of fault tolerance first, then scaling up or down, ensuring that the continuity of training tasks takes precedence over resource optimization and avoiding the introduction of additional complexity due to simultaneous resource adjustments during fault recovery.

[0069] Through the generation and execution of the aforementioned joint scheduling instructions, large model training tasks can achieve near-lossless, minute-level recovery in the event of recoverable failures, automated task migration and communication group reconstruction in the event of unrecoverable failures, and seamless elastic scaling based on hybrid cloud during load fluctuations. The entire process requires no manual intervention, significantly improving training continuity and resource utilization.

[0070] Based on steps S110 to S140 above, in this embodiment of the invention, the fault recovery time for large model training tasks is significantly reduced from the traditional hourly level to the minute level through a hierarchical checkpoint strategy. Furthermore, only a very small number of training steps need to be rolled back after recovery, achieving near-lossless continuous training. By automatically distinguishing between permanent hardware faults, transient software faults, and network jitter using a fault decision tree and triggering different recovery operations accordingly, fault handling is automated and intelligent, eliminating manual intervention. Dynamically triggering hybrid cloud elastic scaling based on real-time resource utilization information enables rapid scaling response and lossless shutdown, significantly improving resource utilization during off-peak periods and effectively reducing computing costs. Adaptively adjusting multiple parallel strategies after cluster size changes further balances computational and communication overhead, ensuring high training efficiency and stability. This solves the technical problems of low fault recovery efficiency, strong reliance on manual intervention, insufficient resource utilization, and inability to adaptively scale in existing large model training.

[0071] The method of embodiments of the present invention determines the fault symptom information, health status information, and resource utilization information of the training unit, including: acquiring the health status of the graphics processor monitored by the hardware layer, the NVLink error information between graphics processors, and the power supply and fan status information as health status information; acquiring the node status information obtained by the system layer based on Kubernetes node heartbeat and independent heartbeat network for fault domain isolation as fault symptom information; and acquiring the NCCL communication timeout information, training process stuck status information, and gradient anomaly information monitored by the training layer as fault symptom information.

[0072] This embodiment, through multi-level joint perception at the hardware, system, and training layers, can comprehensively capture multi-dimensional fault symptoms information, ranging from GPU hardware failures, NVLink errors, power supply fan anomalies to node heartbeat timeouts, NCCL communication timeouts, process freezes, and gradient anomalies. This provides complete and reliable data support for accurately distinguishing between recoverable and unrecoverable faults.

[0073] Furthermore, after acquiring health status information and fault symptom information, the process also includes: automatically classifying the health status information and fault symptom information through a pre-set fault decision tree to distinguish between permanent hardware faults, transient software faults, and network jitter; wherein, transient software faults or network jitter are classified as recoverable types, and permanent hardware faults are classified as unrecoverable types.

[0074] This embodiment uses a pre-set fault decision tree to automatically classify health status information and fault symptom information, which can accurately distinguish between permanent hardware faults, transient software faults and network jitter. This enables rapid hierarchical checkpoint recovery for recoverable faults and topology-aware rescheduling for unrecoverable faults, avoiding the inefficiency or ineffective recovery caused by a uniform processing method.

[0075] Furthermore, the hierarchical checkpoint recovery includes: asynchronously saving hot backup checkpoints based on ZeRO-3 shards during training, saving only incremental checkpoints of model parameters between adjacent hot backup checkpoints, and automatically triggering the saving of an instant checkpoint containing the minimum state of the current training step at the moment of failure; prioritizing the loading of instant checkpoints during recovery, loading hot backup checkpoints when instant checkpoints are unavailable, and restoring the model state by replaying at least one incremental checkpoint.

[0076] This embodiment employs a three-tiered mechanism: asynchronously saving ZeRO-3 sharded hot backup checkpoints, saving only incremental checkpoints between adjacent checkpoints, and automatically triggering instant checkpoints at the moment of failure. During recovery, it prioritizes loading instant checkpoints, loads hot backups when unavailable, and uses incremental replay. This significantly improves the speed of fault recovery, and after recovery, only a very small number of training steps need to be rolled back, resulting in near-lossless performance.

[0077] Furthermore, the graded checkpoint recovery also includes: after the model state recovery is completed, rebuilding the NCCL communication group and synchronizing the model state of each training unit to the training step before the failure occurred.

[0078] This embodiment immediately rebuilds the NCCL communication group and synchronizes each training unit to the training step before the failure after the model state is restored, ensuring the integrity of distributed communication and the consistency of model state, so that the restored training can be seamlessly connected and continue to be executed without deviation.

[0079] Furthermore, topology-aware rescheduling includes: obtaining the topology location information of the failed training node and configuring Pod anti-affinity rules for the training unit to be rebuilt; prioritizing healthy nodes located in the same rack or the same NVLink domain as the failed training node and rebuilding the training unit on the healthy node; calling the non-blocking interface of the NCCL library to remove the failed communication rank from the current distributed communication group and rebuilding the distributed communication group according to the new resource topology.

[0080] This embodiment obtains the topology location information of the faulty node and configures Pod anti-affinity, preferentially selects healthy nodes in the same rack or NVLink domain to rebuild the training unit, and calls the NCCL non-blocking interface to dynamically remove the faulty communication rank and rebuild the communication group, thereby minimizing the communication reconstruction overhead, avoiding global job restart, and realizing rapid isolation of faulty nodes and seamless migration of training tasks.

[0081] Furthermore, the elastic scaling based on hybrid cloud includes: when a scaling operation is triggered, idle computing resources in the local resource pool are prioritized; when the idle computing resources in the local resource pool are insufficient, the elastic computing resource pool in the hybrid cloud is dynamically accessed via a dedicated line; when a scaling operation is triggered, training units with loads below a preset threshold are taken offline without loss. The lossless offline process includes: sending a graceful exit signal to the training unit to be scaled down and waiting for the training unit to be scaled down to complete the current training step; the training unit to be scaled down saves the parameter shards it is responsible for and the corresponding incremental checkpoints; removing the training unit to be scaled down from the current distributed communication group and reallocating its parameter shards to the remaining training units; and releasing the computing resources occupied by the training unit to be scaled down after confirming that the state transition is complete.

[0082] This embodiment adopts an elastic scaling strategy that prioritizes local resource pools and connects to the hybrid cloud via dedicated lines when resources are insufficient. It also includes a lossless scaling-down process that includes graceful exit, state preservation, communication group removal and parameter fragmentation reallocation, and release upon confirmation. This achieves real-time matching of resource supply and training load, and significantly reduces computing costs while ensuring training continuity.

[0083] Furthermore, the elastic scaling based on hybrid cloud also includes: after completing the scaling up or scaling down operation, adaptively adjusting the tensor split dimension of the tensor parallel strategy according to the total number of currently available graphics processors, adjusting the number of model segments of the pipeline parallel strategy according to changes in cluster size, and adjusting the number of data shards of the data parallel strategy according to changes in the number of training nodes.

[0084] This embodiment adaptively adjusts the tensor parallel split dimension based on the current total number of GPUs after scaling up or down, adjusts the number of pipeline parallel model segments based on changes in cluster size, and adjusts the number of data parallel shards based on changes in the number of nodes. This allows for real-time optimization of computation and communication load balancing when the cluster size changes dynamically, avoiding a decrease in parallel efficiency due to resource increases or decreases.

[0085] Furthermore, it also includes: inputting the time series trend of the cumulative ECC error rate of the graphics processor and the time series trend of the CRC error of NVLink into the time series prediction model to predict the failure probability of the target computing node in the future time window; when the predicted failure probability exceeds a preset threshold, the training task executed on the target computing node is proactively migrated to the healthy node in advance, and the model weights and communication groups are preheated on the healthy node.

[0086] This embodiment predicts the failure probability by inputting the cumulative ECC error rate of the GPU and the time series trend of CRC error of NVLink into the time series prediction model. When the probability exceeds the threshold, the training task is proactively migrated to a healthy node in advance and the model weights and communication groups are warmed up. This realizes the transformation from passive fault recovery to active fault avoidance and completely eliminates the training interruption caused by sudden node failure.

[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0088] This invention also provides an intelligent fault-tolerant and dynamically scaling device for computing power clusters for large model training. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0089] Figure 2 According to one embodiment of the present invention, a computing power cluster intelligent fault-tolerant and dynamic scaling device for large model training includes:

[0090] The acquisition module 201 is used to determine the fault symptoms, health status and resource utilization information of the training unit in response to the start-up or fault monitoring trigger of the training unit performing large model training tasks in the computing power cluster.

[0091] The determination module 202 is used to determine the fault type based on fault symptom information and health status information, and to determine whether to trigger elastic scaling based on resource utilization information;

[0092] The scheduling module 203 is used to generate joint scheduling instructions in response to the fault type and the triggering result of elastic scaling. The joint scheduling instructions are used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0093] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0094] According to one embodiment of the present invention, an electronic device is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the above-described intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training.

[0095] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0096] Step S1: In response to the start-up or fault monitoring trigger of the training unit performing the large model training task in the computing power cluster, determine the fault symptom information, health status information and resource utilization information of the training unit.

[0097] Step S2: Determine the fault type based on fault symptom information and health status information, and determine whether to trigger elastic scaling based on resource utilization information;

[0098] Step S3: In response to the fault type and the triggering result of elastic scaling, generate a joint scheduling instruction, wherein the joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0099] According to one embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the storage medium is located to execute the above-described intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training.

[0100] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0101] Step S1: In response to the start-up or fault monitoring trigger of the training unit performing the large model training task in the computing power cluster, determine the fault symptom information, health status information and resource utilization information of the training unit.

[0102] Step S2: Determine the fault type based on fault symptom information and health status information, and determine whether to trigger elastic scaling based on resource utilization information;

[0103] Step S3: In response to the fault type and the triggering result of elastic scaling, generate a joint scheduling instruction, wherein the joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0104] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0105] According to one embodiment of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the above-described intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training.

[0106] Optionally, in this embodiment, the above-mentioned computer program product can be configured as a computer program that performs the following steps:

[0107] Step S1: In response to the start-up or fault monitoring trigger of the training unit performing the large model training task in the computing power cluster, determine the fault symptom information, health status information and resource utilization information of the training unit.

[0108] Step S2: Determine the fault type based on fault symptom information and health status information, and determine whether to trigger elastic scaling based on resource utilization information;

[0109] Step S3: In response to the fault type and the triggering result of elastic scaling, generate a joint scheduling instruction, wherein the joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when elastic scaling is triggered.

[0110] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0111] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0116] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for intelligent fault tolerance and dynamic scaling of computing power clusters for large model training, characterized in that, include: In response to the startup or fault monitoring trigger of a training unit performing a large model training task in the computing power cluster, determine the fault symptom information, health status information and resource utilization information of the training unit. The fault type is determined based on the fault symptom information and the health status information, and whether to trigger elastic scaling is determined based on the resource utilization information. In response to the fault type and the triggering result of the elastic scaling, a joint scheduling instruction is generated, wherein the joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when the elastic scaling is triggered.

2. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 1, characterized in that, The fault symptom information, health status information, and resource utilization information of the training unit are determined, including: The health status of the graphics processor, NVLink error information between graphics processors, and power supply and fan status information monitored at the hardware layer are obtained as the health status information. The node status information obtained by the system layer based on Kubernetes node heartbeat and independent heartbeat network for fault domain isolation is used as the fault symptom information. The NCCL communication timeout information, training process dead status information, and gradient anomaly information monitored by the training layer are obtained as the fault symptom information.

3. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 2, characterized in that, After obtaining the health status information and the fault symptom information, the method further includes: The health status information and fault symptom information are automatically classified using a pre-set fault decision tree to distinguish between permanent hardware faults, transient software faults, and network jitter. Specifically, transient software failures or network jitters are classified as recoverable types, while permanent hardware failures are classified as unrecoverable types.

4. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 1, characterized in that, The restoration of the graded checkpoints includes: During training, hot backup checkpoints based on ZeRO-3 shards are saved asynchronously. Only incremental checkpoints of model parameters are saved between adjacent hot backup checkpoints, and an instant checkpoint containing the minimum state of the current training step is automatically triggered to be saved at the moment of failure. During recovery, the immediate checkpoint is loaded first, and if the immediate checkpoint is unavailable, the hot backup checkpoint is loaded and the model state is restored by replaying at least one of the incremental checkpoints.

5. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 4, characterized in that, The restoration of the graded checkpoints also includes: After the model state is restored, the NCCL communication group is rebuilt, and the model state of each training unit is synchronized to the training step before the failure occurred.

6. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 1, characterized in that, The topology-aware rescheduling includes: Obtain the topology location information of the training node that failed, and configure Pod anti-affinity rules for the training unit to be rebuilt; Prioritize selecting a healthy node that is in the same rack or the same NVLink domain as the training node that has failed, and rebuild the training unit on the healthy node; Call the non-blocking interface of the NCCL library to remove the faulty communication rank from the current distributed communication group and rebuild the distributed communication group according to the new resource topology.

7. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 1, characterized in that, The hybrid cloud-based elastic scaling includes: When an expansion operation is triggered, idle computing resources in the local resource pool are used first. If the idle computing resources in the local resource pool are insufficient, the elastic computing resource pool in the hybrid cloud is dynamically accessed through a dedicated line. When a scaling-down operation is triggered, a lossless shutdown is performed on training units whose load is below a preset threshold. The lossless shutdown includes: sending a graceful exit signal to the training unit to be scaled down and waiting for the training unit to be scaled down to complete the current training step; triggering the training unit to be scaled down to save the parameter shards it is responsible for and the corresponding incremental checkpoints; removing the training unit to be scaled down from the current distributed communication group and reallocating its parameter shards to the remaining training units; and releasing the computing resources occupied by the training unit to be scaled down after confirming that the state transition is completed.

8. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 7, characterized in that, The hybrid cloud-based elastic scaling also includes: After completing the scaling up or scaling down operation, the tensor partitioning dimension of the tensor parallel strategy is adaptively adjusted according to the total number of currently available graphics processors, the number of model segments of the pipeline parallel strategy is adjusted according to the changes in cluster size, and the number of data shards of the data parallel strategy is adjusted according to the changes in the number of training nodes.

9. The intelligent fault-tolerant and dynamic scaling method for computing power clusters for large model training according to claim 1, characterized in that, Also includes: The time series trends of the cumulative ECC error rate of the graphics processor and the CRC error of NVLink are input into the time series prediction model to predict the failure probability of the target computing node in the future time window. When the predicted failure probability exceeds a preset threshold, the training task executed on the target computing node is proactively migrated to a healthy node, and the model weights and communication groups are preheated on the healthy node.

10. A computing power cluster intelligent fault-tolerant and dynamic scaling system for large model training, characterized in that, include: The acquisition module is used to determine the fault symptom information, health status information and resource utilization information of the training unit in response to the start-up or fault monitoring trigger of the training unit performing large model training tasks in the computing power cluster. The determination module is used to determine the fault type based on the fault symptom information and the health status information, and to determine whether to trigger elastic scaling based on the resource utilization information; The scheduling module is used to generate a joint scheduling instruction in response to the fault type and the triggering result of the elastic scaling, wherein the joint scheduling instruction is used to: perform hierarchical checkpoint recovery when the fault type is recoverable, perform topology-aware rescheduling when the fault type is unrecoverable, and perform hybrid cloud-based elastic scaling when the elastic scaling is triggered.