Self-adaptive tuning system and method for pipeline parallel training for intelligent computing

The self-adaptive coordination system addresses inefficiencies in pipeline parallel training by dynamically adjusting submodel allocation and resource use, enhancing GPU utilization and efficiency in intelligent computing clusters.

JP2024535971AActive Publication Date: 2024-10-04ZHEJIANG LAB +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023573533
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-09-21
Filing Date
2023-07-04
Publication Date
2024-10-04
Estimated Expiration
2043-07-04

AI Technical Summary

Technical Problem

Static methods of layer partitioning in pipeline parallel training for intelligent computing reduce overall efficiency when deep learning models change during training, due to uneven task distribution and resource allocation.

Method used

A self-adaptive coordination system and method that includes a monitoring module to assess resource execution status and an adjustment module to dynamically adjust submodel allocation, CPU-GPU bank switching, recalculation, and network topology to balance computational tasks and resources across computing nodes.

Benefits of technology

Enhances the dynamic adaptability of pipeline parallelism, improving GPU utilization and overall efficiency by evenly distributing computational tasks and resources in intelligent computing clusters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535971000001_ABST
    Figure 2024535971000001_ABST
Patent Text Reader

Abstract

The present invention provides a self-adaptive adjustment system and method for pipeline parallel training for intelligent computing. [Solution] The system includes a monitoring module and an adjustment module, and when the division of the computing tasks of the computing nodes is uneven, the adjustment module determines an adjustment policy according to the uneven type of the computing nodes, and adjusts the allocation of sub-models in the computing cluster according to the adjustment policy, and the adjustment includes at least one of the following: transitioning at least some of the layers of the sub-models of the computing nodes with uneven division of the computing tasks from the computing nodes to other computing nodes; controlling the computing nodes with uneven division of the computing tasks to perform CPU-GPU bank switching or recalculation, or controlling the computing nodes with uneven division of the computing tasks to cancel currently running CPU-GPU bank switching or recalculation; and adjusting the network topology structure of the computing cluster. The present invention can dynamically adjust the allocation of sub-models in the computing cluster.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of intelligent computing, and in particular to a self-adaptive adjustment system and method for pipeline parallel training for intelligent computing. [Background technology]

[0002] The emergence of deep learning has brought major updates to fields such as natural language processing, audio / video processing, and media convergence. However, as deep learning models grow, some models have parameters that exceed tens of billions, and such large-scale models always complete model training by building a distributed machine learning system. Distributed training can break through the hash rate limitations of a single GPU, and accelerating model training by building a distributed training method on multiple machines and multiple GPU cards during model training has become a very popular method.

[0003] Pipeline parallelism is a common distributed training method. In the pipeline parallelism, a model is divided into multiple stages according to layers, each stage is placed on a GPU, forward calculation is performed sequentially in multiple stages, and the loss function is calculated in the last stage, and then backward calculation is performed sequentially from the last stage to the first stage. The idle waiting time between forward calculation and backward calculation in different stages in the entire process is different. And by simultaneously executing multiple mini-batches in each stage (or decomposing one mini-batch into multiple micro-batches and executing them simultaneously), pipeline execution of multiple stages is realized, reducing the idle waiting time of the GPU and improving efficiency. However, the computational needs, memory capacity and communication needs of different layers of a deep learning model are all different, and how to evenly allocate computation, internal memory and network resources in each stage is crucial to improving the computational efficiency of pipeline parallelism.

[0004] Current methods generally use static methods to split layers, for example, Pipedream uses dynamic programming to split. However, because current AI frameworks support dynamic computational maps, such as Pytorch, models may change during different training periods, and static splitting results face the problem of reduced overall efficiency after the model (e.g., neural network model) changes. Summary of the Invention [Problem to be solved by the invention]

[0005] The objective of the present invention is to provide a self-adaptive adjustment system and method for pipeline parallel training for intelligent computing, which solves the problem that the static method used in the prior art to divide layers results in a decrease in overall efficiency after the model is changed. [Means for solving the problem]

[0006] The technical solutions used in the present invention are as follows:

[0007] An embodiment of the present invention provides a self-adaptive adjustment system of pipeline parallel training for intelligent computing, wherein a computing cluster includes a plurality of computing nodes, the plurality of computing nodes can communicate with each other, each computing node includes at least one CPU and at least one GPU, a model to be trained includes a plurality of sub-models, a training process of the model to be trained includes a forward calculation step and a backward calculation step, in the forward calculation step, parameters are sequentially transferred from a first-layer sub-model to a final-layer sub-model of the plurality of sub-models, in the backward calculation step, parameters are sequentially transferred from the final-layer sub-model to the first-layer sub-model, and each computing node is used to train at least one sub-model; The system includes a monitoring module and an adjustment module; The monitoring module is used for monitoring and collecting the resource running status of each computing node in the computing cluster, and determining according to the resource running status of each computing node whether the computing task division of the computing node is equal, and if the computing task division of the computing node is uneven, determining the uneven type of the computing node; The adjustment module is used for determining an adjustment policy according to an uneven type of the computing node when the computing task of the computing node is unevenly divided, and adjusting the allocation of sub-models in the computing cluster according to the adjustment policy; The adjusting step comprises: Transitioning at least a part of layers of a submodel of a computing node having an uneven division of a computing task from the computing node to another computing node; Controlling the computing node having the uneven division of the computing task to perform CPU-GPU bank switching or recalculation, or controlling the computing node having the uneven division of the computing task to cancel the currently executing CPU-GPU bank switching or recalculation; and adjusting a network topology structure of the computing cluster.

[0008] The present invention further provides a self-adaptive adjustment method for pipeline parallel training for intelligent computing, in which a computing cluster includes a plurality of computing nodes, the plurality of computing nodes can communicate with each other, each computing node includes at least one CPU and at least one GPU, a model to be trained includes sub-models of multiple layers, a training process of the model to be trained includes a forward calculation step and a backward calculation step, in the forward calculation step, parameters are sequentially transferred from a sub-model of a first layer of the sub-models of the multiple layers to a sub-model of a final layer, in the backward calculation step, parameters are sequentially transferred from the sub-model of the final layer to the sub-model of the first layer, and each computing node is used to train at least one sub-model; The method comprises: A monitoring module monitors and collects the resource execution status of each computing node in the computing cluster, and according to the resource execution status of each computing node, determines whether the computing task division of the computing node is equal, and if the computing task division of the computing node is uneven, determines the uneven type of the computing node; and determining, by an adjustment module, an adjustment policy according to an uneven type of the computing node when the computing task division of the computing node is uneven, and adjusting the allocation of sub-models in the computing cluster according to the adjustment policy; The adjusting step comprises: Transitioning at least some layers of at least some submodels of a computing node having an uneven division of a computing task from the computing node to another computing node; Controlling the computing node having the uneven division of the computing task to perform CPU-GPU bank switching or recalculation, or controlling the computing node having the uneven division of the computing task to cancel the currently executing CPU-GPU bank switching or recalculation; and adjusting a network topology structure of the computing cluster.

[0009] The present invention further provides a self-adaptive adjustment device for pipeline parallel training for intelligent computing, comprising: a memory; and one or more processors, wherein an executable code is stored in the memory; and when the one or more processors execute the executable code, the self-adaptive adjustment method for pipeline parallel training for intelligent computing is executed.

[0010] The present invention further provides a computer-readable storage medium having a program stored therein, which, when executed by a processor, performs the above self-adaptive adjustment method of pipeline parallel training for intelligent computing. Effect of the Invention

[0011] The beneficial effect of the present invention is that when the division of computing tasks of the computing nodes is uneven by the adjustment module, the allocation of sub-models in the computing cluster is dynamically adjusted, the dynamic adaptation capability of pipeline parallelism is effectively improved, and the GPU utilization rate of the intelligent computing cluster is improved. [Brief description of the drawings]

[0012] In order to more clearly explain the technical solutions of the embodiments of the present invention, the following briefly describes the drawings necessary for describing the embodiments. Obviously, the drawings described below are only examples of the embodiments of the present invention, and those skilled in the art can further obtain other drawings based on these drawings without requiring creative efforts.

[0013] [Figure 1] FIG. 1 is a structural schematic diagram of a computing cluster according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a structural schematic diagram of a self-adaptive adjustment system of pipeline parallel training for intelligent computing according to an embodiment of the present invention. [Diagram 3] FIG. 3 is a schematic flow chart of a computation adjustment policy according to an embodiment of the present invention. [Figure 4] FIG. 4 is a schematic flow chart of an internal memory adjustment policy according to an embodiment of the present invention. [Diagram 5] FIG. 5 is a schematic flow chart of a topology adjustment policy according to an embodiment of the present invention. [Figure 6] FIG. 6 is a schematic flow chart of a self-adaptive adjustment method for pipeline parallel training for intelligent computing according to an embodiment of the present invention. [Figure 7] FIG. 7 is a structural schematic diagram of a self-adaptive adjustment device for pipeline parallel training for intelligent computing according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] The technical solutions of the embodiments of the present invention will be described below clearly and completely with reference to the drawings of the embodiments of the present invention, and of course the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, any other embodiments obtained by those skilled in the art without inventive efforts are all within the protection scope of the present invention.

[0015] In addition, unless contradictory, the features of the following examples and embodiments can be combined with each other.

[0016] Computing clusters generally support multi-tenancy, and the performance of computing nodes in computing clusters will change as the shared tasks change, especially in the public cloud scenario. Therefore, a self-adaptive adjustment method for layer splitting with pipeline parallelism is needed to adapt to the dynamically changing scenario.

[0017] 1, a computing cluster according to an embodiment of the present invention may include a plurality of computing nodes, which may communicate with each other, and each computing node may include at least one CPU and at least one GPU. As shown in FIG. 1, the computing cluster may include computing node 1, computing node 2, ..., computing node N, where N is a positive integer and N is 3 or more.

[0018] The trained object model of the embodiment of the present invention may be a neural network model or may be another type of model, for example a mathematical model of the trained object.

[0019] In an embodiment of the present invention, the trained model may include multiple submodels, and the trained model is trained in a pipeline parallel manner, and specifically, the training process of the trained model includes a forward calculation step and a backward calculation step. In the forward calculation step, parameters are transferred sequentially from the first submodel of the multiple submodels to the last submodel, and in the backward calculation step, parameters are transferred sequentially from the last submodel to the first submodel. Note that one training iteration (i.e., one training process, which may be referred to as a first training iteration or a first training process) includes one forward calculation step and one backward calculation step.

[0020] For example, the model to be trained is a neural network model, which includes a first layer network, a second layer network, a third layer network, and a fourth layer network, the first layer network, the second layer network, the third layer network, and the fourth layer network are sequentially connected, the first layer network is a sub-model of the first layer, and the fourth layer network is a sub-model of the final layer. In the forward calculation phase, parameters are sequentially transmitted from the first layer network to the second layer network, the third layer network, and the fourth layer network, and in the backward calculation phase, parameters are sequentially transmitted from the fourth layer network to the third layer network, the second layer network, and the first layer network. In addition, the types of the first layer network, the second layer network and the third layer network may be designed as needed. For example, the first layer network is an input layer, the second layer network is a convolutional layer, the third layer network is a pooling layer, and the fourth layer network is an output layer.

[0021] Each computing node in the computing cluster is for training at least one sub-model, ie, each computing node is assigned at least one sub-model, thereby improving the GPU utilization rate of the intelligent computing cluster.

[0022] Referring to FIG. 2 , an embodiment of the present invention provides a self-adaptive adjustment system for pipeline parallel training for intelligent computing, which may include a monitoring module 10 and an adjustment module 20 .

[0023] In the embodiment of the present invention, the monitoring module 10 is responsible for monitoring and collecting the resource execution status of each computing node in the computing cluster, and determining whether the division of the computing tasks of the computing node is equal according to the resource execution status of each computing node, and determining the unevenness type of the computing node if the division of the computing tasks of the computing node is uneven. If the monitoring module 10 determines that the computing cluster has a computing node with uneven division of the computing tasks, it will notify the adjustment module 20 that the computing cluster has a computing node with uneven division of the computing tasks and the corresponding unevenness type. By using the above embodiment, the monitoring module 10 is responsible for monitoring and collecting the resource execution status of the computing node 1, the computing node 2, ..., the computing node N, and determining that the division of the computing tasks of the computing node 2 is uneven according to the resource execution status of the computing node 1, the computing node 2, ..., the computing node N, and further determining the unevenness type of the computing node 2. And the monitoring module 10 will notify the adjustment module 20 that the division of the computing tasks of the computing node 2 is uneven and the unevenness type.

[0024] The adjustment module 20 is for determining an adjustment policy based on the uneven type of the computing node when the computing task division of the computing node is uneven, and adjusting the allocation of sub-models in the computing cluster based on the adjustment policy. In an embodiment of the present invention, when the adjustment module 20 receives instruction information sent from the monitoring module 10 to indicate that the computing cluster has a computing node with an uneven division of the computing task, the adjustment module 20 determines an adjustment policy based on the uneven type of the computing node with an uneven division of the computing task, and adjusts the allocation of sub-models in the computing cluster based on the adjustment policy. The instruction information includes the uneven type of the computing node with an uneven division of the computing task.

[0025] In an embodiment of the present invention, adjusting the allocation of sub-models on a computing cluster comprises: (1) Transitioning at least a part of layers of a submodel of a computing node in which a computing task is unevenly divided from the computing node to another computing node; (2) Controlling a computing node with an uneven division of a computing task to perform CPU-GPU bank switching or recalculation, or controlling a computing node with an uneven division of a computing task to cancel a currently running CPU-GPU bank switching or recalculation; (3) adjusting a network topology structure of the computing cluster.

[0026] The adjustment module 20 in the self-adaptive adjustment system of pipeline parallel training for intelligent computing according to an embodiment of the present invention dynamically adjusts the allocation of sub-models in the computing cluster when the division of computing tasks of the computing nodes is uneven, effectively improving the dynamic adaptation ability of pipeline parallelism, and improving the GPU utilization rate of the intelligent computing cluster.

[0027] In this embodiment, the resource execution status may include information such as calculation delay, GPU utilization rate, network transmission delay and internal memory utilization rate, that is, the monitoring module 10 monitors and collects information such as calculation delay, GPU utilization rate, network transmission delay and internal memory utilization rate of each computing node in the computing cluster, specifically, the monitoring module 10 monitors and collects information such as calculation delay, GPU utilization rate, network transmission delay and internal memory utilization rate of the forward calculation stage and the backward calculation stage in each training iteration process, thus monitoring and collecting more complete execution information, thereby contributing to the selection of subsequent adjustment policies, thereby effectively improving the GPU utilization rate of the computing cluster. It is understood that in other embodiments, the resource execution status may include part of information such as calculation delay, GPU utilization rate, network transmission delay and internal memory utilization rate.

[0028] The means by which the monitoring module 10 collects the resource execution status of each computing node in the computing cluster during each training iteration may be set as necessary. For example, in some embodiments, after each training iteration is completed, each computing node in the computing cluster sends information such as the computation delay, GPU utilization rate, network transmission delay, and internal memory utilization rate of the node during the training iteration to the monitoring module 10.

[0029] In some other embodiments, the monitoring module 10 actively reads information such as the computation delay, GPU utilization rate, network transmission delay, and internal memory utilization rate of each computing node from each computing node in the computing cluster, for example, the monitoring module 10 can periodically read information such as the computation delay, GPU utilization rate, network transmission delay, and internal memory utilization rate of each computing node from each computing node in the computing cluster. The reading cycle can be set as needed, for example, the monitoring module 10 reads information such as the computation delay, GPU utilization rate, network transmission delay, and internal memory utilization rate of each computing node from each computing node in the computing cluster every 10 minutes.

[0030] As an option, when the monitoring module 10 determines according to the resource execution status of each computing node whether the division of the computing tasks of the computing node is equal, specifically, when the monitoring module 10 determines according to the resource execution status of the current computing node that at least one of the following situations exists in the current computing node, it determines that the division of the computing tasks of the current computing node is uneven:

[0031] In situation 1, the computation delay of the current computation node is greater than or equal to a predetermined delay threshold.

[0032] The magnitude of the predetermined delay threshold may be set as necessary, for example, determining that the division of the computational task of the current computational node is unequal if the computational delay of the current computational node exceeds half or more of the magnitude of the computational delay of the other computational nodes.

[0033] In situation 2, the internal memory utilization rate of the current computing node is equal to or greater than a predetermined internal memory utilization rate threshold, and the GPU utilization rate of the current computing node is less than the average GPU utilization rate of all computing nodes in the computing cluster.

[0034] The size of the predetermined internal memory utilization threshold may be set as needed. For example, if the internal memory utilization of the current computing node exceeds 90% and the GPU utilization of the current computing node is less than the average value of the GPU utilization of all computing nodes in the computing cluster, it is determined that the division of the computing tasks of the current computing node is uneven.

[0035] In situation 3, the network delay of the current computing node exceeds a predetermined multiple of the maximum network delay of other computing nodes in the computing cluster, and the predetermined multiple is 1 or greater.

[0036] The size of the predetermined multiple may be set as needed, for example, if the network transmission delay of the current computing node exceeds one or more times the maximum access delay of other computing nodes in the computing cluster, it is determined that the division of the computing task of the current computing node is uneven.

[0037] As an option, the monitoring module 10 determines an uneven type of the computing node when the division of the computing tasks of the computing nodes is uneven, specifically, (if the computation delay of the current computing node is equal to or greater than a predetermined delay threshold, and / or the internal memory utilization rate of the current computing node is equal to or greater than a predetermined internal memory utilization rate threshold, and the GPU utilization rate of the current computing node is less than the average value of the GPU utilization rates of all computing nodes in the computing cluster, the uneven type of the current computing node includes that too many layers are assigned to the current computing stage; if the network delay of the current computing node exceeds a predetermined multiple of the maximum network delay of other computing nodes in the computing cluster, the uneven type of the current computing node includes that the network is abnormal.

[0038] When the computation delay of the current computing node is equal to or greater than a predetermined delay threshold, the adjustment policy includes a computation adjustment policy, which is responsible for adjusting a part of the computing node with extremely high computation delay, and re-adjusting the layer of the computing node according to the computation adjustment policy to reduce the computation task of the computing node, thereby reducing the computation delay of the computing node. For example, adjust If the computation delay of the current computation node Node exceeds half the magnitude of the computation delay of the other computation nodes, adjust The layers (i.e., sub-models) allocated to the current calculation stage (which may be a forward calculation stage or a backward calculation stage) are deemed to be too large, and the adjustment module 20 reallocates them using a calculation adjustment policy.

[0039] The computation adjustment policy of the embodiment of the present invention may include: when the current computation node uses CPU-GPU bank switching or recalculation, cancel the CPU-GPU bank switching or recalculation used by the current computation node; and when the memory capacity required by the current computation node to execute the submodel on the current computation node exceeds the maximum internal memory of the current computation node after canceling the CPU-GPU bank switching or recalculation used by the current computation node, transition at least some layers of at least some submodels of the current computation node to another computation node for execution based on the GPU utilization rate of the computation node immediately before the current computation node and the GPU utilization rate of the computation node immediately after the current computation node. Also, if the memory capacity required by the current computation node to execute the submodel on the current computation node does not exceed the maximum internal memory of the current computation node, the adjustment module 20 ends the adjustment. Canceling the CPU-GPU bank switching or recalculation performed by the current computation node saves the size of the internal memory available for computation in the current computation node, reduces the computation task of the current computation node, and thereby reduces the computation delay of the current computation node. In addition, when adjusting the allocation of sub-models in the computing cluster, the memory capacity required for calculation and the maximum internal memory of the current computing node are taken into consideration. If the memory capacity required for calculation exceeds the maximum internal memory of the current computing node, the sub-models are reallocated, and thus the computing tasks of the current computing node can be reduced, thereby reducing the computation delay of the current computing node.

[0040] Transitioning at least some layers of at least some submodels of the current computing node to another computing node for execution based on the GPU utilization rate of the computing node immediately before the current computing node and the GPU utilization rate of the computing node immediately before the current computing node may include at least one of steps 1 and 2 below.

[0041] In step 1, if the GPU utilization rate of the computation node immediately preceding the current computation node is smaller than the GPU utilization rate of the computation node immediately following the current computation node, the computation node immediately preceding the current computation node is set as the initial target computation node; if the computation node immediately preceding the current computation node is the initial target computation node, the GPU utilization rate of the initial target computation node is compared with the GPU utilization rate of the computation node immediately preceding the initial target computation node; if the GPU utilization rate of the initial target computation node is smaller than the GPU utilization rate of the computation node immediately preceding the initial target computation node, the initial target computation node is set as the final target computation node; if the GPU utilization rate of the initial target computation node is greater than the GPU utilization rate of the computation node immediately preceding the initial target computation node, the computation node immediately preceding the initial target computation node is set as the new initial target computation node and the comparison is continued by transitioning forward; this is repeated sequentially up to the first target computation node; and at least some layers of at least some of the submodels of the current computation node are transitioned to the final target computation node and executed. When adjusting the allocation of sub-models in a computing cluster, the memory capacity required for calculation and the maximum internal memory of the current computing node are taken into consideration. If the memory capacity required for calculation exceeds the maximum internal memory of the current computing node, the sub-models are reallocated and at least some layers of at least some of the sub-models of the current computing node are transitioned to other computing nodes preceding the current computing node in the current calculation stage that have a relatively low GPU utilization rate, which helps minimize the calculation delay of the computing cluster.

[0042] In step 2, if the GPU utilization rate of the computation node immediately before the current computation node is greater than the GPU utilization rate of the computation node next to the current computation node, the computation node next to the current computation node is set as the initial target computation node, and if the computation node next to the current computation node is the initial target computation node, the GPU utilization rate of the initial target computation node is compared with the GPU utilization rate of the computation node next to the initial target computation node, and if the GPU utilization rate of the initial target computation node is less than the GPU utilization rate of the computation node next to the initial target computation node, the initial target computation node is set as the final target computation node, and if the GPU utilization rate of the initial target computation node is greater than the GPU utilization rate of the computation node next to the initial target computation node, the computation node next to the initial target computation node is set as the new initial target computation node and the comparison is continued by transitioning forward, and this is repeated sequentially up to the first target computation node, and at least some subunits of at least some submodels of the current computation node are transitioned to the final target computation node and executed. When adjusting the allocation of sub-models in a computing cluster, the memory capacity required for calculation and the maximum internal memory of the current computing node are taken into consideration. If the memory capacity required for calculation exceeds the maximum internal memory of the current computing node, the sub-models are reallocated and at least some layers of at least some of the sub-models of the current computing node are transitioned to other computing nodes behind the current computing node in the current calculation stage that have a relatively low GPU utilization rate, which helps minimize the calculation delay of the computing cluster.

[0043] In addition, in steps 1 and 2, the current computation stage is a computation stage in which a computation node with a very high computational delay is currently in a training iteration.

[0044] As an option, in some embodiments, when the adjustment sub-model transitions at least some layers of at least some sub-models of the current computing node to other computing nodes based on the GPU utilization of the computing node immediately before the current computing node and the GPU utilization of the computing node immediately after the current computing node to execute them, specifically, the adjustment sub-model first executes step 1, and if there is a computing node whose GPU utilization is smaller than that of the current computing node among the other computing nodes whose calculation time in the current calculation stage is before the current computing node, the adjustment is terminated when a final target computing node is found. If there is no calculation node whose calculation time in the current calculation stage is before the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, step 2 is executed, and if there is a calculation node whose calculation time in the current calculation stage is after the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, the adjustment is terminated when the final target calculation node is found, and if there is no calculation node whose calculation time in the current calculation stage is after the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, it is explained that it is impossible to reassign the sub-model.

[0045] In some other embodiments, when the adjustment sub-model transitions at least some layers of at least some sub-models of the current computing node to other computing nodes based on the GPU utilization of the computing node immediately before the current computing node and the GPU utilization of the computing node immediately after the current computing node to execute them, specifically, the adjustment sub-model first executes step 2, and if there is a computing node whose GPU utilization is smaller than that of the current computing node among the other computing nodes whose calculation time in the current calculation stage is after the current computing node, the adjustment is terminated when the final target computing node is found. If there is no other calculation node whose calculation time in the current calculation stage is after the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, step 1 is executed, and if there is another calculation node whose calculation time in the current calculation stage is before the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, the adjustment is terminated when the final target calculation node is found, and if there is no other calculation node whose calculation time in the current calculation stage is before the current calculation node and whose GPU utilization rate is smaller than that of the current calculation node, it is explained that it is impossible to reassign the sub-model.

[0046] Furthermore, in some embodiments, the computation adjustment policy may further include, after at least some layers of at least some submodels of the current computation node are transitioned to other computation nodes for execution, the current computation node regenerates model parameters and updates model version information of the current computation node. In this way, model parameters are regenerated and the version number is updated in the computation stage where the layers are changed. The same lot of data training is trained using the same version of the model to ensure the consistency of training. Since the pipeline parallel method itself supports multiple version parameters, old versions of models are released by pipeline parallel model version management.

[0047] Illustratively, in a specific embodiment, referring to FIG. 3, the computation adjustment policy may include the following steps.

[0048] Current computation node adjust If the computation delay of is relatively large, first adjust Determine whether to use CPU-GPU bank switching or recalculation. If YES, first cancel CPU-GPU bank switching or recalculation. After canceling CPU-GPU bank switching or recalculation, the memory capacity of the current computing node Node adjust If the maximum internal memory is not exceeded, the adjustment is terminated. If NO, steps S1 to S2 are continued.

[0049] Next, the current computing node adjust By comparing the GPU utilization of the two computing nodes before and after the two stages, adjust The layer is a compute node with relatively low GPU utilization. target Transition to.

[0050] Node target If is the previous compute node, the compute node Node target The previous compute node before Continue comparing and Node before GPU utilization rate of Node target If the GPU utilization is less than the target Continue moving forward through the layers of Node target If is the next compute node, compute node Node target Next compute node after Compare the Node after GPU utilization rate of Node target If the GPU utilization is less than the target Continue moving backward through the layers until the last computation node.

[0051] Finally, the model parameters are regenerated at the stage where the layer has been changed, and the version number is updated. If the same lot of data training uses the same version of the model training, the consistency of the training is ensured. Since pipeline parallelism itself supports multiple version parameters, old versions of the model are released by pipeline parallelism's model version management.

[0052] When the internal memory utilization rate of the current computing node is equal to or greater than a predetermined internal memory utilization rate threshold, and the GPU utilization rate of the current computing node is less than the average GPU utilization rate of all computing nodes in the computing cluster, the adjustment policy includes an internal memory adjustment policy, which is responsible for adjusting the computing node with extremely high internal memory utilization rate but extremely low GPU utilization rate, and adjusts the layers of the computing node according to the internal memory adjustment policy to reduce the computing task of the computing node, thereby reducing the computing delay of the computing node. For example, when the internal memory utilization rate of the current computing node is greater than 90%, but the GPU utilization rate of the current computing node is lower than the average GPU utilization rate of all computing nodes in the computing cluster, the layers allocated to the current computing node in the current computing stage (the current computing stage may be a forward computing stage or a backward computing stage) are deemed to be too many, and are re-allocated using the internal memory adjustment policy. Note that the current computing stage is the computing stage in which the computing node with the current extremely high internal memory utilization rate but extremely low GPU utilization rate is in the training iteration.

[0053] The internal memory adjustment policy of the embodiment of the present invention may include the following: If the GPU overhead of the current computing node recalculating is greater than the GPU overhead of the current computing node switching the CPU-GPU bank, the current computing node uses CPU-GPU bank switching to reduce the internal memory usage of the current computing node. If the GPU overhead of the current computing node recalculating is less than the GPU overhead of the current computing node switching the CPU-GPU bank, the current computing node uses recalculation to reduce the internal memory usage of the current computing node. In response to the problem that the GPU graphic memory is relatively small or the internal memory usage is relatively high but the calculation effect is relatively low due to the model itself, such as model parameters and intermediate variables, the graphic memory (GPU) is limited, so it is not possible to further improve the GPU calculation efficiency by transitioning layers of adjacent stages. Therefore, the embodiment first reduces the internal memory usage of the current computing stage by recalculating or switching the CPU-GPU bank. If the GPU overhead of recomputation exceeds the GPU overhead of bank switching, bank switching is used, but conversely, if the GPU overhead of bank switching exceeds the GPU overhead of recomputation, recomputation is used.

[0054] Further, in some embodiments, the internal memory adjustment policy may further include: determining a computation time of the current computation node based on the original task training time of the current computation node and the time required for the current computation node to perform recalculation or CPU-GPU bank switching; if the computation time of the current computation node is equal to or greater than the average task training time of all computation nodes in the computation cluster, transitioning at least some subunits of at least some submodels of the current computation node to an adjacent computation node of the current computation node for execution; if the computation time of the current computation node is less than the average task training time of all computation nodes in the computation cluster, setting the current computation node as a target computation node to be populated by the subunits of the computation node to which the other computation node performs layer transition. Since bank switching or recalculation both increase additional computation overhead, the computation time T of the stage is calculated by adding the original task training time of the current computation node plus the time required for bank switching or recalculation. adjust Next, the calculation time T adjust and the average computation time T average Compare with T adjust <T average In the case of T, the computational efficiency of each computational stage is relatively low, and a layer transition policy is used to import layers from adjacent computation stages to balance the computational efficiency of each computation stage. adjust ≧T average If , some layers are removed from the current calculation stage and transition is made to the adjacent calculation stage, thus finally achieving the effect of minimizing the calculation delay of the calculation cluster.

[0055] Exemplarily, in a specific embodiment, referring to FIG. 4, the internal memory adjustment policy may include the following steps.

[0056] Deciding whether to use recalculation or bank switching First, we reduce the internal memory usage of this stage by recalculation or CPU-GPU bank switching. If the GPU overhead of recalculation exceeds the GPU overhead of bank switching, we use bank switching, but conversely, if the GPU overhead of bank switching exceeds the GPU overhead of recalculation, we use recalculation.

[0057] Regarding the update of the calculation time of the current calculation stage, the original task training time of the current calculation node is added to the time required for bank switching or recalculation, and the calculation time of that stage is calculated as T adjust Let us assume that.

[0058] For comparison with the average calculation time of other calculation steps, the calculation time T adjust and the average computation time T average Compare with.

[0059] For adjustments based on the calculation adjustment policy, see T adjust <T average In the case of T, the computational efficiency is relatively low, and a layer transition policy is used to import layers from adjacent stages to balance the computational efficiency of each stage. adjust ≧T average In this case, some layers are removed from the stage to transition to the adjacent stage.

[0060] When the network delay of the current computing node exceeds a predetermined multiple of the maximum network delay of other computing nodes in the computing cluster, the adjustment policy includes a topology adjustment policy, which is responsible for adjusting some computing nodes with extremely high network delay. For example, when the network transmission delay of a computing node exceeds one or more times the maximum access delay between other computing nodes in the computing cluster, it is deemed that there may be an abnormality in the network of the computing node, and the topology adjustment policy is used to adjust it again.

[0061] The topology adjustment policy of an embodiment of the present invention may include: selecting three consecutive computing nodes with the smallest network delay with the current computing node, and determining a maximum network delay of the computing node that is not delayed by the current network that is greater than or equal to 1 time; performing task exchange between the current computing node and an intermediate computing node of the three consecutive computing nodes; determining whether the network delay of the computing nodes before and after each of the two computing nodes after the task exchange exceeds the maximum network delay; if YES, continuing to select three consecutive computing nodes with the next smallest delay, and repeating the task exchange process until all computing nodes have been traversed; if there is still no computing node that does not exceed the maximum network delay, terminating the network topology adjustment of the computing cluster; if NO, exchanging model parameters and intermediate variables between the two computing nodes after the task exchange.

[0062] Furthermore, in some embodiments, the topology adjustment policy may further include: if the internal memory utilization of any one of the two computing nodes after the task exchange is equal to or greater than a predetermined internal memory utilization threshold, continuing to adjust the allocation of sub-models in the computing cluster using the internal memory adjustment policy; and if the internal memory utilization of any one of the two computing nodes after the task exchange is still equal to or greater than the predetermined internal memory utilization threshold after continuing to adjust the allocation of sub-models in the computing cluster using the internal memory adjustment policy, transitioning at least some subunits of at least some sub-models of at least some of the computing nodes whose internal memory utilization is still equal to or greater than the predetermined internal memory utilization threshold using the computing adjustment policy.

[0063] Illustratively, in a specific embodiment, referring to FIG. 5, the topology adjustment policy may include the following steps.

[0064] Whether the access latency of the current compute node exceeds one time the maximum access latency of other compute nodes is checked. slowAfter the communication delay between the current computing node and other computing nodes in the previous and next stages becomes relatively slow, first test the network access delay between the current computing node and other nodes. If the network access delay between the current computing node and the adjacent computing nodes is more than one time the maximum access delay between the other computing nodes, it is determined that there may be an abnormality between the networks, and continue to perform topology adjustment; if not, stop the topology adjustment of the computing node.

[0065] For the three consecutive compute nodes with the smallest access delay, slow The three consecutive compute nodes with the smallest access latency A , Node B , Node C Select .

[0066] For exchanges with intermediate nodes, the intermediate nodes of three consecutive nodes B and Node slow Exchange it for.

[0067] To determine if the delay is normal, see Node. B and Node slow The process tests and determines whether the delay between the compute nodes before and after the node is normal, i.e., whether it does not exceed the maximum access delay of the currently normal compute node. If the delay is not normal, the process performs the step of determining whether the compute node is in the last lot described below. If the delay is normal, the process performs the step of determining whether the internal memory is sufficient described below.

[0068] Regarding the judgment of whether it is the final lot's calculation node, if it is not the final lot's calculation node, slow continues to select three consecutive computation nodes with the next smallest delay, and then exchanges them with intermediate computation nodes until all computation nodes have been traversed. If no suitable computation node has been found to exchange with the intermediate computation node until all computation nodes have been traversed, the network topology adjustment is terminated.

[0069] To determine whether the internal memory is sufficient, slow and the computation node B Exchange model parameters and intermediate variables with to determine whether the internal memory is sufficient.

[0070] Regarding the use of the internal memory adjustment policy, if the internal memory is insufficient, the internal memory adjustment policy is used to adjust it, and if it is still insufficient, the memory capacity is reduced by transitioning layers according to the calculation adjustment policy. If the internal memory is sufficient, the network topology adjustment is terminated.

[0071] The present invention further provides a self-adaptive adjustment method for pipeline parallel training for intelligent computing. Referring to FIG. 6, the self-adaptive adjustment method for pipeline parallel training for intelligent computing includes: S100, the monitoring module is responsible for monitoring and collecting the resource running status of each computing node in the computing cluster, and determining whether the computing task division of the computing node is equal according to the resource running status of each computing node, and if the computing task division of the computing node is uneven, determining the uneven type of the computing node; The adjustment module may include: when the division of the computing tasks of the computing nodes is uneven, determining an adjustment policy according to an uneven type of the computing nodes, and adjusting the allocation of the sub-models in the computing cluster according to the adjustment policy S200; Here, the adjustment is Transitioning at least some layers of at least some submodels of a computing node having an uneven division of a computing task from the computing node to another computing node; Controlling a computing node with an uneven division of computing tasks to perform CPU-GPU bank switching or recalculation, or controlling a computing node with an uneven division of computing tasks to cancel a currently running CPU-GPU bank switching or recalculation; and adjusting a network topology structure of the computing cluster.

[0072] The present invention further provides a self-adaptive adjustment device for pipeline parallel training for intelligent computing, comprising: a memory; and one or more processors, wherein executable code is stored in the memory; and when the one or more processors execute the executable code, the self-adaptive adjustment method for pipeline parallel training for intelligent computing is executed.

[0073] The present invention further provides a computer-readable storage medium having a program stored therein, which, when executed by a processor, performs the above self-adaptive adjustment method of pipeline parallel training for intelligent computing.

[0074] Corresponding to the above embodiment of the self-adaptive adjustment method for pipeline parallel training for intelligent computing, the present invention further provides an embodiment of a self-adaptive adjustment device for pipeline parallel training for intelligent computing.

[0075] Referring to FIG. 7, the self-adaptive adjustment device for pipeline parallel training for intelligent computing according to an embodiment of the present invention includes a memory and one or more processors, and is for performing the self-adaptive adjustment method for pipeline parallel training for intelligent computing in the above embodiment when executable code is stored in the memory and the one or more processors execute the executable code.

[0076] The embodiment of the self-adaptive adjustment device of pipeline parallel training for intelligent computing according to the embodiment of the present invention may be applied to any device having data processing capability, and the device having data processing capability may be a device or equipment such as a computer. The device embodiment may be realized by software, hardware, or a combination of software and hardware. Taking software implementation as an example, a device in a logical sense is formed by the processor of any device having data processing capability located therein reading corresponding computer program instructions in non-volatile memory into internal memory and executing them. From the hardware perspective, FIG. 7 is a hardware structure diagram of any device having data processing capability located in the self-adaptive adjustment device of pipeline parallel training for intelligent computing according to the embodiment of the present invention. In addition to the processor, internal memory, network interface, and non-volatile memory shown in FIG. 7, any device having data processing capability located in the embodiment may generally further include other hardware according to the actual function of the device having data processing capability, and detailed description thereof will be omitted.

[0077] The process of implementing the functions and actions of each unit of the above device specifically refers to the process of implementing the corresponding steps in the above method, and detailed description is omitted here.

[0078] The device embodiments basically correspond to the method embodiments, so the relevant parts can be referred to the description of the method embodiments. The device embodiments described above are merely schematic, and the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or may be located in multiple network units. According to actual needs, some or all of the modules may be selected to achieve the purpose of the proposed invention. Those skilled in the art can understand and implement it without any creative effort.

[0079] An embodiment of the present invention further provides a computer-readable storage medium, storing a program therein, which, when executed by a processor, performs the self-adaptive adjustment method for pipeline parallel training for intelligent computing in the above embodiment.

[0080] The computer-readable storage medium may be an internal storage unit of any device having data processing capability described in any one of the above embodiments, such as a hard disk or internal memory. The computer-readable storage medium may be an external storage device of any device having data processing capability, such as a plug-in hard disk, a Smart Media Card (SMC), an SD card, a flash card, etc., disposed in the device. Furthermore, the computer-readable storage medium may include an external storage device in addition to the internal storage unit of any device having data processing capability. The computer-readable storage medium may be for storing the computer program and other programs and data required by the device having data processing capability, and may be for temporarily storing output data or data to be output.

[0081] The above description is merely a preferred embodiment of the present invention, and is not intended to limit the present invention. Those skilled in the art can make various modifications and changes to the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention. [Explanation of symbols]

[0082] 10 Monitoring Module 20 Adjustment Module

Claims

1. A self-adaptive tuning system for pipeline parallel training for intelligent computing, comprising: The computing cluster includes a plurality of computing nodes, the plurality of computing nodes can communicate with each other, each computing node includes at least one CPU and at least one GPU, the model to be trained includes sub-models of multiple layers, the training process of the model to be trained includes a forward calculation step and a backward calculation step, in the forward calculation step, parameters are sequentially transferred from a sub-model of a first layer of the sub-models of the multiple layers to a sub-model of a final layer, in the backward calculation step, parameters are sequentially transferred from a sub-model of the final layer to the sub-model of the first layer, and each computing node is used to train at least one sub-model; The system includes a monitoring module and an adjustment module; The monitoring module is used for monitoring and collecting the resource running status of each computing node in the computing cluster, and determining according to the resource running status of each computing node whether the computing task division of the computing node is equal, and if the computing task division of the computing node is uneven, determining the uneven type of the computing node; The adjustment module is used for determining an adjustment policy according to an uneven type of the computing node when the computing task of the computing node is unevenly divided, and adjusting the allocation of sub-models in the computing cluster according to the adjustment policy; The adjusting step comprises: Transitioning at least a part of layers of a submodel of a computing node having an uneven division of a computing task from the computing node to another computing node; Controlling a computing node having an uneven division of a computing task to execute a CPU-GPU bank switching or a recalculation, or controlling a computing node having an uneven division of a computing task to cancel a currently executed CPU-GPU bank switching or a recalculation; and adjusting a network topology structure of the computing cluster. A self-adaptive adjustment system of pipeline parallel training for intelligent computing, characterized by:

2. The resource execution status includes a calculation delay, a GPU utilization rate, a network transmission delay, and an internal memory utilization rate; The monitoring module is used for determining whether the division of the computing tasks of each computing node is equal according to the resource execution status of the computing node, specifically, when it is determined that at least one of the following statuses 1 to 3 exists in the current computing node according to the resource execution status of the current computing node, determining that the division of the computing tasks of the current computing node is uneven: The situation 1 is that the computation delay of the current computation node is equal to or greater than a predetermined delay threshold; The second situation is that the internal memory utilization rate of the current computing node is equal to or greater than a predetermined internal memory utilization rate threshold, and the GPU utilization rate of the current computing node is less than the average GPU utilization rate of all computing nodes in the computing cluster; The third situation is that the network delay of the current computing node exceeds a predetermined multiple of the maximum network delay of other computing nodes in the computing cluster, and the predetermined multiple is 1 or more. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 1.

3. The monitoring module determines an unevenness type of the computing node when the division of the computing task of the computing node is uneven, specifically, If the computation latency of the current computation node is equal to or greater than a predetermined latency threshold, and / or the internal memory utilization of the current computation node is equal to or greater than a predetermined internal memory utilization threshold, and the GPU utilization of the current computation node is less than the average GPU utilization of all computation nodes in the computation cluster, the imbalance type of the current computation node includes that too many layers are assigned to the current computation stage; and If the network delay of the current computing node exceeds a predetermined multiple of the maximum network delay of other computing nodes in the computing cluster, the unevenness type of the current computing node is used to include that the network is abnormal. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 2.

4. When the computation delay of the current computation node is equal to or greater than a predetermined delay threshold, the adjustment policy includes a computation adjustment policy; The computation adjustment policy includes: If the current computing node uses CPU-GPU bank switching or recalculation, canceling the CPU-GPU bank switching or recalculation used by the current computing node; and if a memory capacity required for the current computing node to execute a submodel on the current computing node exceeds a maximum internal memory capacity of the current computing node after canceling the CPU-GPU bank switching or recalculation used by the current computing node, transitioning at least some layers of at least some of the submodels of the current computing node to another computing node and executing them based on a GPU utilization rate of a computing node immediately before the current computing node and a GPU utilization rate of a computing node immediately after the current computing node. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 3.

5. Transitioning at least some layers of at least some submodels of the current computing node to another computing node based on a GPU utilization rate of a computing node immediately before the current computing node and a GPU utilization rate of a computing node immediately after the current computing node and executing the at least some layers of the submodels of the current computing node to another computing node, If the GPU utilization rate of the computing node immediately preceding the current computing node is smaller than the GPU utilization rate of the computing node immediately following the current computing node, the computing node immediately preceding the current computing node is set as an initial target computing node; If the previous computing node of the current computing node is an initial target computing node, a GPU utilization rate of the initial target computing node is compared with a GPU utilization rate of the previous computing node of the initial target computing node, and if the GPU utilization rate of the initial target computing node is smaller than the GPU utilization rate of the previous computing node of the initial target computing node, the initial target computing node is set as a final target computing node, and if the GPU utilization rate of the initial target computing node is larger than the GPU utilization rate of the previous computing node of the initial target computing node, the previous computing node of the initial target computing node is set as a new initial target computing node, and the comparison is continued by moving forward, and the comparison is continued until the first target computing node. and transitioning at least some layers of at least some submodels of the current computing node to a final target computing node for execution. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 4.

6. Transitioning at least some layers of at least some submodels of the current computing node to another computing node based on a GPU utilization rate of a computing node immediately before the current computing node and a GPU utilization rate of a computing node immediately after the current computing node and executing the at least some layers of the submodels of the current computing node to another computing node, If the GPU utilization rate of the computing node immediately before the current computing node is greater than the GPU utilization rate of the computing node immediately after the current computing node, the computing node immediately after the current computing node is set as an initial target computing node; If the next computing node of the current computing node is an initial target computing node, a GPU utilization rate of the initial target computing node is compared with a GPU utilization rate of the next computing node of the initial target computing node, and if the GPU utilization rate of the initial target computing node is smaller than the GPU utilization rate of the next computing node of the initial target computing node, the initial target computing node is set as a final target computing node, and if the GPU utilization rate of the initial target computing node is larger than the GPU utilization rate of the next computing node of the initial target computing node, the next computing node of the initial target computing node is set as a new initial target computing node, and the comparison is continued by moving forward, and the comparison is continued until the first target computing node. and transitioning at least some of the subunits of at least some of the submodels of the current computing node to a final target computing node for execution. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 4.

7. The computation adjustment policy includes: The method further includes: after at least some layers of at least some submodels of the current computing node are transitioned to another computing node and executed, the current computing node regenerates model parameters and updates model version information of the current computing node. The self-adaptive adjustment system of pipeline parallel training for intelligent computing according to claim 5 or 6.

8. When the internal memory utilization rate of the current computing node is equal to or greater than a predetermined internal memory utilization rate threshold, and the GPU utilization rate of the current computing node is less than an average value of the GPU utilization rates of all computing nodes in the computing cluster, the throttling policy includes an internal memory throttling policy; The internal memory adjustment policy comprises: When the GPU overhead of the current computing node recalculating is larger than the GPU overhead of the current computing node switching between CPU and GPU banks, the current computing node uses CPU-GPU bank switching to reduce the internal memory usage rate of the current computing node; When the GPU overhead of the current computing node recalculating is smaller than the GPU overhead of the current computing node switching CPU-GPU banks, the current computing node uses recalculation to reduce the internal memory usage of the current computing node. The self-adaptive adjustment system of pipeline parallel training for intelligent computing according to claim 3 or 4.

9. The internal memory adjustment policy comprises: determining a computation time of the current computation node based on an original task training time of the current computation node and a time required for the current computation node to perform the recomputation or the CPU-GPU bank switch; When the computation time of the current computation node is equal to or greater than the average task training time of all computation nodes in the computation cluster, transitioning at least some subunits of at least some submodels of the current computation node to an adjacent computation node of the current computation node for execution; If the computation time of the current computation node is less than the average task training time of all computation nodes in the computation cluster, the current computation node is set as a target computation node to be populated by a subunit of a computation node to which another computation node performs a layer transition. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 8.

10. The adjustment policy includes a topology adjustment policy when a network delay of a current computing node exceeds a predetermined multiple of a maximum network delay of other computing nodes in the computing cluster; The topology adjustment policy includes: Selecting three consecutive computing nodes with the smallest network delays with the current computing node, and determining a maximum network delay of at least one of the computing nodes with no current network delay; swapping the current computing node with an intermediate computing node of the three consecutive computing nodes; Determine whether the network delay of the computing nodes before and after each of the two computing nodes after the task exchange exceeds the maximum network delay, and if YES, continue to select three consecutive computing nodes with the next smallest delay, and repeat the task exchange process until all computing nodes are traversed, and if there is still no computing node whose network delay does not exceed the maximum network delay, end the network topology adjustment of the computing cluster; if not, exchanging model parameters and intermediate variables between the two computing nodes after the task exchange. The self-adaptive adjustment system of pipeline parallel training for intelligent computing according to claim 3 or 4.

11. The topology adjustment policy includes: If the internal memory usage rate of any one of the two computing nodes after the task exchange is equal to or greater than a predetermined internal memory usage rate threshold, continue to adjust the allocation of the sub-models in the computing cluster using an internal memory adjustment policy; and if the internal memory usage of any one of the two computing nodes after the task exchange is still equal to or greater than a predetermined internal memory usage threshold after continuing to adjust the allocation of the sub-models in the computing cluster using the internal memory adjustment policy, transitioning at least some subunits of at least some sub-models of the computing node whose internal memory usage is still equal to or greater than the predetermined internal memory usage threshold using the computing adjustment policy. The self-adaptive adjustment system of pipeline parallel training for intelligent computing as claimed in claim 10.

12. A self-adaptive adjustment method for pipeline parallel training for intelligent computing, comprising: The computing cluster includes a plurality of computing nodes, the plurality of computing nodes can communicate with each other, each computing node includes at least one CPU and at least one GPU, the model to be trained includes sub-models of multiple layers, the training process of the model to be trained includes a forward calculation step and a backward calculation step, in the forward calculation step, parameters are sequentially transferred from a sub-model of a first layer of the sub-models of the multiple layers to a sub-model of a final layer, in the backward calculation step, parameters are sequentially transferred from a sub-model of the final layer to the sub-model of the first layer, and each computing node is used to train at least one sub-model; The method comprises: A monitoring module monitors and collects the resource execution status of each computing node in the computing cluster, and according to the resource execution status of each computing node, determines whether the computing task division of the computing node is equal, and if the computing task division of the computing node is uneven, determines the uneven type of the computing node; and determining, by an adjustment module, an adjustment policy according to an uneven type of the computing node when the computing task division of the computing node is uneven, and adjusting the allocation of sub-models in the computing cluster according to the adjustment policy; The adjusting step comprises: Transitioning at least some layers of at least some submodels of a computing node having an uneven division of a computing task from the computing node to another computing node; Controlling a computing node having an uneven division of a computing task to execute a CPU-GPU bank switching or a recalculation, or controlling a computing node having an uneven division of a computing task to cancel a currently executed CPU-GPU bank switching or a recalculation; and adjusting a network topology structure of the computing cluster. The present invention relates to a self-adaptive adjustment method for pipeline parallel training for intelligent computing.

13. A self-adaptive tuning device for pipeline parallel training for intelligent computing, comprising: The self-adaptive adjustment method for pipeline parallel training for intelligent computing according to claim 12 is performed by storing an executable code in the memory and executing the executable code in the one or more processors. A self-adaptive adjustment device for pipeline parallel training for intelligent computing, characterized by:

14. 1. A computer-readable storage medium, comprising: The program is stored, and when the program is executed by a processor, the method for self-adaptive adjustment of pipeline parallel training for intelligent computing according to claim 12 is performed. A computer-readable storage medium comprising:

Citation Information

Patent Citations

  • Data processing unit

    JP1982157368A

  • System and Method for Scalable Real-Time Micro-Object Position Control with the Aid of a Digital Computer

    US20180081347A1