Management method and management device for deep learning training tasks
By dynamically adjusting the computer cluster resource capacity in the deep learning training task management system, the problem of low resource utilization is solved, and efficient resource utilization and cost reduction are achieved.
Patent Information
- Application Number
- CN202011486962.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-16
AI Technical Summary
The existing deep learning training task management system has low resource utilization, resulting in low training efficiency and high cost. It is difficult to effectively solve the problem of idle or tense resources.
By determining the resource usage information of the task queue, adjusting the resource capacity of the computer cluster, dynamically allocating GPU resources, alleviating resource tension and avoiding idle resources, thereby improving overall resource utilization and reducing training costs.
It achieves efficient utilization of resources, reduces the training cost of deep learning training tasks, avoids the problem of idle and tense resources, and improves training efficiency.
Smart Images

Figure CN112527503B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a management method and device for deep learning training tasks. Background Art
[0002] In the field of deep learning technology, the training process of deep learning models is indispensable. The training process of deep learning models can be regarded as deep learning training tasks. The management system of deep learning training tasks can manage the training processes of multiple deep learning training tasks so that multiple deep learning training tasks can be trained in sequence. However, the existing management system of deep learning training tasks has low resource utilization, resulting in low training efficiency and high training cost. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application provide a management method and a management device for deep learning training tasks.
[0004] According to one aspect of the present application, a method for managing deep learning training tasks is provided, including: determining resource usage information of a first task queue where a first deep learning training task is located; adjusting the resource capacity of a first computer cluster corresponding to the first task queue based on the resource usage information of the first task queue; and controlling the first computer cluster after adjusting the resource capacity to execute the first deep learning training task.
[0005] According to another aspect of the present application, a deep learning training task management device is provided, including: a determination module, used to determine the resource usage information of the first task queue where the first deep learning training task is located; an adjustment module, used to adjust the resource capacity of the first computer cluster corresponding to the first task queue based on the resource usage information of the first task queue; an execution module, used to control the first computer cluster after the resource capacity is adjusted to execute the first deep learning training task.
[0006] According to another aspect of the present application, a computer-readable storage medium is provided, which stores a computer program, and the computer program is used to execute the above-mentioned deep learning training task management method.
[0007] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is used to execute the above-mentioned deep learning training task management method.
[0008] The embodiments of the present application provide a method and device for managing deep learning training tasks. By adjusting the resource capacity of the first computer cluster corresponding to the first task queue according to the resource usage information of the first task queue, when the resource usage of the first computer cluster is tight, the resources of the second computer cluster can be adjusted to the first computer cluster, or when the resources of the first computer cluster are idle, the idle resources of the first computer cluster can be adjusted to the second computer cluster, thereby improving the overall resource utilization, avoiding the problems of idle resources and resource shortages, and reducing the training cost of deep learning training tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0010] Figure 1 It is a schematic diagram of the system architecture of a management system for deep learning training tasks provided by an exemplary embodiment of the present application.
[0011] Figure 2 It is a flowchart of a method for managing deep learning training tasks provided by an exemplary embodiment of the present application.
[0012] Figure 3 It is a flowchart of adjusting the resource capacity of the first computer cluster corresponding to the first task queue provided by another exemplary embodiment of the present application.
[0013] Figure 4 It is a flowchart of a method for managing deep learning training tasks provided by another exemplary embodiment of the present application.
[0014] Figure 5 It is a flowchart of determining the score of the first deep learning training task provided by another exemplary embodiment of the present application.
[0015] Figure 6 It is a flowchart of a method for managing deep learning training tasks provided by another exemplary embodiment of the present application.
[0016] Figure 7 It is a scenario diagram of a method for managing deep learning training tasks provided by an exemplary embodiment of the present application.
[0017] Figure 8 It is a structural diagram of a deep learning training task management device provided by an exemplary embodiment of the present application.
[0018] Fig. 9 It is a structural diagram of an adjustment module of a deep learning training task management device provided by another exemplary embodiment of the present application.
[0019] Fig.10 It is a structural diagram of a deep learning training task management device provided by another exemplary embodiment of the present application.
[0020] Fig.11 It is a structural diagram of the second determination module of the management device for deep learning training tasks provided by another exemplary embodiment of the present application.
[0021] Fig.12 It is a structural diagram of a deep learning training task management device provided by another exemplary embodiment of the present application.
[0022] Fig.13 is a block diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0023] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0024] Application Overview
[0025] At present, deep learning models based on neural networks can extract features from the input of the model (such as images or audio, etc.), and process them according to the extracted features to output recognition or detection results. Since the deep learning model automatically extracts features based on the model, it can reduce the impact of human factors on the recognition or detection results, and has the advantages of high efficiency and relatively stable recognition or detection results. Due to the above advantages, deep learning models are widely used in various fields such as automatic speech recognition, image recognition, and visual art processing.
[0026] The training process of deep learning models is generally to train the model using a large number of training samples on a computer cluster. This training process requires a large amount of computing resources, such as graphics processing units (GPUs).
[0027] The number of graphics processors corresponding to a certain computer cluster is fixed. When there are multiple deep learning training tasks that need to be executed on the computer cluster, some training tasks may need to wait in line for a long time, resulting in low training efficiency; when there are no or few deep learning training tasks to be executed on the computer cluster, the resource utilization of the computer cluster will be low.
[0028] Exemplary Systems
[0029] Figure 1 1 is a schematic diagram of the system architecture of a deep learning training task management system 1 provided by an exemplary embodiment of the present application. Figure 1 As shown, the management system 1 of the deep learning training task includes a computer device 10, a first computer cluster 20, and a second computer cluster 30. The computer device 10 can adjust the GPU resources corresponding to the first computer cluster 20 and the second computer cluster 30. Specifically, the computer device 10 can adjust the number of GPU resources corresponding to the computer clusters. For example, in the initial case, the first computer cluster 20 corresponds to 50 GPUs and the second computer cluster 30 corresponds to 50 GPUs. When there are more deep learning training tasks to be performed on the second computer cluster 30 and fewer deep learning training tasks to be performed on the first computer cluster 20, the computer device 10 can adjust the GPU resources corresponding to the first computer cluster 20 and the second computer cluster 30, for example, so that the first computer cluster 20 corresponds to 40 GPUs and the second computer cluster 30 corresponds to 60 GPUs. In one embodiment, the computer device 10 may be a server.
[0030] It should be noted that the above application scenarios are only shown to facilitate understanding of the principles of the present application, and the embodiments of the present application are not limited thereto. On the contrary, the embodiments of the present application can be applied to any scenario that may be applicable.
[0031] Exemplary Methods
[0032] Figure 2 is a flowchart of a method for managing deep learning training tasks provided by an exemplary embodiment of the present application. The execution subject of this embodiment may be, for example, Figure 1 Computer equipment such as Figure 2 As shown, the method includes the following steps.
[0033] Step 110: Determine resource usage information of a first task queue where a first deep learning training task is located.
[0034] The first task queue may correspond to the first computer cluster, and the information of the first task queue may be presented on the computer device, and / or on the computer corresponding to the first computer cluster. For example, the information of the task queue may refer to a list containing various tasks, specifically, the list may be composed of the names (or numbers) corresponding to the various tasks, and the computer device receives the user's input (the input is, for example, the user clicks on the name corresponding to any task in the list), and displays the specific data involved in the task training based on the input. Further, in the list, the status of each task may also be displayed, such as in progress or waiting. If the task is in progress, progress information may be further displayed, such as 50% completed, etc. Optionally, the information of the first task queue may include the name (or number) corresponding to at least one first deep learning training task, and the data involved in the first deep learning training task itself may be stored on the computer corresponding to the first computer cluster. When the first deep learning training task to be executed is submitted to the first computer cluster, it will be sorted in the first task queue according to the submission time, and the first computer cluster may execute the corresponding first deep learning training task in the order of submission. For example, the first deep learning training task submitted first is executed first. Of course, the sorting method of the task queue is not limited to this. For example, the tasks can also be sorted according to their priorities.
[0035] In one embodiment, the resource usage information of the first task queue includes the total amount of GPU resources required to be occupied when all the first deep learning training tasks in the first task queue are executed. The total amount of GPU resources can be obtained by summing the GPU resources required to be occupied when each of the current first deep learning training tasks is executed.
[0036] In other embodiments, the resource usage information may include the total amount of central processing unit (CPU) resources required when all first deep learning training tasks in the first task queue are executed, or the total amount of GPU resources and CPU resources occupied, or the total amount of other resources, etc.
[0037] Step 120: Based on the resource usage information of the first task queue, adjust the resource capacity of the first computer cluster corresponding to the first task queue.
[0038] The computer device can simultaneously monitor the execution of tasks on the first computer cluster and the second computer cluster. Here, the second computer cluster is similar to the first computer cluster, which corresponds to a second task queue. The number of second deep learning training tasks queued on the second task queue can be zero, one or more.
[0039] When the total amount of GPU resources required to execute all the first deep learning training tasks in the first task queue exceeds the GPU resource capacity corresponding to the first computer cluster, the computer device can adjust the resources (for example, idle resources) in the GPU resource capacity corresponding to the second computer cluster to the first computer cluster to alleviate the problem of tight resource usage of the first computer cluster and long waiting time for tasks to be executed.
[0040] In one case, the computer device may allocate a certain amount of GPU resources (corresponding to the first computer cluster) to the first group of users for executing the first deep learning training task submitted by the first group of users. The computer device may also allocate a certain amount of GPU resources (corresponding to the second computer cluster) to the second group of users for executing the second deep learning training task submitted by the second group of users. For example, the GPU resource capacity ratio of the first computer cluster and the second computer cluster initially allocated by the computer device is 30:30, that is, the first computer cluster and the second computer cluster each correspond to 30 GPUs. When the first group of users submits a large number of first deep learning training tasks, resulting in a problem of tight resource usage in the first computer cluster, the computer device may adjust the GPU resource capacity ratio of the first computer cluster and the second computer cluster to 40:20 to alleviate the problem of tight resource usage in the first computer cluster.
[0041] Here, the first group of users and the second group of users can be set based on the organizational structure of the enterprise, and can be members of different organizations of the enterprise. For example, the first group of users can be employees of the first department of the enterprise, and the second group of users can be employees of the second department of the enterprise. That is, the first computer cluster and the second computer cluster can be divided based on the organizational structure of the enterprise, and can be allocated to different organizations of the enterprise. For example, the first computer cluster corresponds to the first department, and the second computer cluster corresponds to the second department. In this way, different computer clusters can be allocated to different departments, and multiple computer clusters can be reasonably divided according to the needs of different departments, thereby improving the utilization of resources as a whole. In addition, in special cases, according to the resource usage of a specific computer cluster (resource usage information of the task queue), the resource capacity corresponding to the computer cluster can be increased or decreased, which can further improve the utilization of resources as a whole and avoid the problem of idle resources and resource shortage. Moreover, GPU hardware is expensive. By adjusting the resource capacity of each computer cluster, the training cost of deep learning training tasks can be reduced while avoiding resource waste.
[0042] In other embodiments, different computer clusters may be divided according to the type of department or task, etc. The specific division method of the computer cluster may be set according to actual use needs, and the embodiments of the present application do not limit this.
[0043] Step 130: Control the first computer cluster after adjusting resource capacity to execute the first deep learning training task.
[0044] In one embodiment, the computer device can sort the first deep learning training tasks in the first task queue based on certain rules (some embodiments are given below), and send the specific data corresponding to each first deep learning training task in sequence to the first computer cluster after adjusting the resource capacity, so that the first computer cluster executes the corresponding deep learning training task.
[0045] An embodiment of the present application provides a method for managing deep learning training tasks. By adjusting the resource capacity of a first computer cluster corresponding to a first task queue according to resource usage information of a first task queue, when resource usage of the first computer cluster is tight, resources of a second computer cluster can be adjusted to the first computer cluster; or when resources of the first computer cluster are idle, idle resources of the first computer cluster can be adjusted to the second computer cluster. This can improve resource utilization as a whole, avoid problems of idle resources and resource shortages, and further reduce the training cost of deep learning training tasks.
[0046] Figure 3 FIG. 1 is a flow chart of adjusting the resource capacity of the first computer cluster corresponding to the first task queue provided by another exemplary embodiment of the present application. Figure 2 The present application is extended based on the embodiment shown Figure 3 The embodiment shown is described below with emphasis on Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.
[0047] like Figure 3 As shown, in the deep learning training task management method provided in the embodiment of the present application, based on the resource usage information of the first task queue, adjusting the resource capacity of the first computer cluster corresponding to the first task queue (i.e., step 120) includes:
[0048] Step 121: Determine the average waiting time of deep learning training tasks in the first task queue included in the resource usage information of the first task queue.
[0049] In one embodiment, since the average waiting time can be used to indicate resource usage, for example, the longer the average waiting time, the more constrained the resources are, the resource usage information may include the average waiting time of the deep learning training tasks in the task queue. The computer device counts the waiting time of each deep learning training task in the task queue, and determines the average waiting time based on the waiting time of each deep learning training task.
[0050] Since the type of deep learning training tasks, resource requirements and other information can affect the use of resources by deep learning training tasks, the average waiting time of deep learning training tasks in the first task queue can be determined by the computer device according to the type of each deep learning training task in the first task queue, resource requirements and other information. Alternatively, the average waiting time is determined by the first computer cluster according to the type of each deep learning training task in the first task queue, resource requirements and other information, and transmitted to the computer device by the first computer cluster.
[0051] The process of determining the average waiting time of the deep learning training tasks in the second task queue is similar to that of the first task queue and will not be repeated here.
[0052] Step 122: Based on the average waiting time of the deep learning training tasks in the first task queue and the average waiting time of the deep learning training tasks in the second task queue, modify the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster.
[0053] In one embodiment, when the average waiting time of deep learning training tasks in the first task queue is greater than the average waiting time of deep learning training tasks in the second task queue, it indicates that the resource usage of the first computer cluster is more intense than that of the second computer cluster. At this time, the computer device may modify the labels of part or all of the resources of the second computer cluster from the second computer cluster to the first computer cluster to alleviate the computing burden of the first computer cluster.
[0054] In one embodiment, when the average waiting time of deep learning training tasks in the first task queue is greater than a first threshold, and the average waiting time of deep learning training tasks in the second task queue is less than a second threshold, the labels of some or all resources of the second computer cluster corresponding to the second task queue are changed from the second computer cluster to the first computer cluster.
[0055] For example, in the initial case, the GPU resource capacity ratio of the first computer cluster and the second computer cluster may be 30:30. When the average waiting time of the deep learning training tasks in the first task queue is greater than the first threshold, and the average waiting time of the deep learning training tasks in the second task queue is less than the second threshold, the labels of 10 GPUs in the GPU resource capacity of the second computer cluster may be modified from the second computer cluster to the first computer cluster. That is, after adjustment, the first computer cluster corresponds to 40 GPUs and the second computer cluster corresponds to 20 GPUs.
[0056] Similarly, when the average waiting time of deep learning training tasks in the first task queue is less than the second threshold, and the average waiting time of deep learning training tasks in the second task queue is greater than the first threshold, the labels of some or all resources of the first computer cluster corresponding to the first task queue are changed from the first computer cluster to the second computer cluster.
[0057] Here, the first threshold and the second threshold can be preset according to actual usage requirements.
[0058] Furthermore, after the computer device modifies the labels of some or all of the resources of the second computer cluster from the second computer cluster to the first computer cluster, the computer device may modify (or restore) the labels of some or all of the resources from the first computer cluster to the second computer cluster based on the average waiting time of the deep learning training tasks in the subsequent second task queue. For example, when the average waiting time of the deep learning training tasks in the second task queue is greater than the third threshold, the computer device restores the labels of 10 GPUs in the GPU resource capacity of the first computer cluster from the first computer cluster to the second computer cluster. That is, the GPU resource capacity ratio of the first computer cluster and the second computer cluster is restored from 40:20 to 30:30 to meet the resource usage requirements of the deep learning training tasks in the second task queue.
[0059] Here, the third threshold value may be greater than the second threshold value, and the third threshold value may be equal to, less than or greater than the first threshold value. When the average waiting time of the deep learning training task in the second task queue is greater than the third threshold value, it means that the resources of the second computer cluster are also beginning to become tight, and the second computer cluster has a demand for increasing resources. If the third threshold value is set equal to the second threshold value, when the resources of the second computer cluster are in a critical state of resource adjustment, the resources of the second computer cluster may be frequently adjusted. Because when the average waiting time of the deep learning training task in the second task queue is less than the second threshold value, the computer device modifies the label of some resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster. At this time, due to the decrease in the resources of the second computer cluster, the average waiting time corresponding to the second task queue will gradually increase, and may be greater than the third threshold value (the third threshold value is equal to the second threshold value) in a short time. At this time, the computer device will modify (or restore) the label of some resources from the first computer cluster to the second computer cluster, so that the average waiting time corresponding to the second task queue will gradually decrease, and may be less than the second threshold value in a short time. In this way, there will be a situation where the resources of the second computer cluster are frequently adjusted. Therefore, by setting the third threshold to be greater than the second threshold, a certain margin can be provided for adjusting the resources of the second computer cluster, thereby avoiding frequent adjustment of the resources of the computer cluster.
[0060] The deep learning training task management method provided in this embodiment can reasonably judge the resource usage of each task queue by determining the average waiting time of the deep learning training tasks in each task queue, and by comparing the average waiting time of the deep learning training tasks in each task queue with the size of a preset threshold, it can timely determine the task queue that needs to adjust the GPU resources and make real-time adjustments to the GPU resources between the corresponding computer clusters, thereby timely alleviating the computing burden of the computer cluster corresponding to the task queue with tight resources, realizing resource sharing and reducing training costs.
[0061] In one embodiment, the computer device can count the time during which the average waiting time of the first computer cluster is lower than a preset threshold. If the duration is greater than the preset threshold, it is determined that the resource usage of the first computer cluster is not saturated. For example, when the average waiting time of the deep learning training task in the first task queue is 0, the computer device can count the time during which the average waiting time is 0. If the average waiting time is 0 for a period of time exceeding a certain threshold, it means that the first task queue is idle for a long time, that is, the resource usage of the first computer cluster is not saturated. At this time, the computer device can modify the labels of some GPUs in the GPU resource capacity of the first computer cluster from the first computer cluster to other required computer clusters.
[0062] Optionally, in another embodiment, step 120 may include: determining the resource usage duration corresponding to the first task queue included in the resource usage information of the first task queue; based on the resource usage duration, modifying the labels of part or all of the resources of the first computer cluster corresponding to the first task queue from the first computer cluster to the second computer cluster, and the second computer cluster corresponds to the second task queue.
[0063] The resource usage information includes the resource usage duration corresponding to the task queue. Here, the resource usage duration may refer to the time when the task queue starts to occupy the corresponding computer cluster. When the resource usage duration exceeds the preset duration, the task queue may stop using the computer cluster, and the resources of the computer cluster may be allocated to one or more other computer clusters.
[0064] The resource usage duration corresponding to the task queue can be determined by the computer device through monitoring the task queue. Alternatively, the resource usage duration can be determined by the corresponding computer cluster monitoring the task queue and transmitted to the computer device by the computer cluster.
[0065] For example, the computer device may adjust the GPU resources between three computer clusters, i.e., the first, second and third computer clusters, the GPU resource capacity ratio of the three may be 30:30:40 (in the initial case), and the three correspond to the first, second and third task queues, respectively. When the resource usage duration corresponding to the first task queue exceeds the preset duration, the labels of 15 GPUs among the 30 GPUs corresponding to the first computer cluster may be modified from the first computer cluster to the second computer cluster, and the labels of the other 15 GPUs may be modified from the first computer cluster to the third computer cluster. That is, the GPU resource capacity ratio of the first, second and third computer clusters becomes 0:45:55.
[0066] Here, the preset duration can be the duration of using the first computer cluster resource that the computer device presets for the user of the first task queue, and it can be set according to actual needs. Exceeding the preset duration, the computer device can limit the user of the first task queue to use the resource of the first computer cluster. For example, 30 GUPs corresponding to the first computer cluster can be evenly distributed to other computer clusters, or can be distributed to other computer clusters according to a preset rule, and the embodiment of the present application does not specifically limit this.
[0067] Furthermore, the preset duration may be the budgeted usage duration corresponding to the first task queue. After the budgeted usage duration is extended, the computer device may restore the GPU resource capacity ratio of the first, second, and third computer clusters to the initial 30:30:40 to meet the resource usage requirements of the deep learning training tasks in the first task queue.
[0068] The deep learning training task management method provided in this embodiment can allocate the GPU resources of the computer cluster corresponding to the task queue to other computer clusters when the resource usage time corresponding to the task queue exceeds the preset time, so that the usage period can be set for users corresponding to some task queues, thereby realizing flexible management of each task queue, and then realizing the regulation of the overall GPU resources to avoid resource waste.
[0069] In other embodiments, the resource usage information may include the average waiting time of deep learning training tasks in the task queue and the resource usage duration corresponding to the task queue. The computer device may implement real-time adjustment of GPU resources between various computer clusters based on the resource usage information.
[0070] Figure 4 FIG. 1 is a flowchart of a method for managing deep learning training tasks provided by another exemplary embodiment of the present application. Figure 2 The present application is extended based on the embodiment shown Figure 4 The embodiment shown is described below with emphasis on Figure 4The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.
[0071] like Figure 4 As shown, in the management method of deep learning training tasks provided in the embodiment of the present application, it also includes:
[0072] Step 125: Determine a score for the first deep learning training task based on the first preset scoring strategy.
[0073] Step 126: Determine the execution order of the first deep learning training task in the first task queue based on the score of the first deep learning training task.
[0074] Specifically, each first deep learning training task in the first task queue can be scored based on a first preset scoring strategy. The first preset scoring strategy may be scoring according to the user's submission time. For example, in the first preset scoring strategy, the earlier the deep learning training task is submitted, the higher the corresponding score. The score determines the execution order of the first deep learning training task. Based on the execution order, the computer device can control the first computer cluster after adjusting the resource capacity to execute the first deep learning training task. For example, each first deep learning training task in the first task queue is executed in order from high to low. In other words, the higher the score of the first deep learning training task, the higher its ranking in the first task queue, and the earlier it is executed.
[0075] The scoring strategies corresponding to different task queues may be the same or different. For example, the score of the second deep learning training task in the second task queue may be determined based on the second preset scoring strategy, and the execution order of the second deep learning training task in the second task queue may be determined based on the score of the second deep learning training task. The second preset scoring strategy may be scoring based on the amount of resource application submitted by the user. For example, in the second preset scoring strategy, the less the amount of resource application for the deep learning training task, the higher the corresponding score. Here, the second preset scoring strategy is different from the first preset scoring strategy, and both can be set according to actual usage needs. The scoring process can be performed by a computer device or by respective computer clusters.
[0076] It should be understood that the scoring strategy can also be a weighted calculation based on multiple different scoring methods to obtain the final score. For example, the first score is first determined according to the order in which the deep learning training tasks are submitted, and then the second score is determined according to the amount of resource applications for the deep learning training tasks, and finally the first score and the second score are weighted to obtain the final score.
[0077] The management method of deep learning training tasks provided in this embodiment can determine the execution order of deep learning training tasks in a task queue in the task queue based on a preset scoring strategy, so that each deep learning training task can be executed in an orderly manner. In addition, the scoring strategies corresponding to different task queues can be different to meet the actual needs of different users corresponding to different task queues.
[0078] Figure 5 FIG. 1 is a flowchart of determining the score of the first deep learning training task provided by another exemplary embodiment of the present application. Figure 4 The present application is extended based on the embodiment shown Figure 5 The embodiment shown is described below with emphasis on Figure 5 The embodiment shown and Figure 4 The differences and similarities of the illustrated embodiments are not described in detail.
[0079] like Figure 5 As shown, in the deep learning training task management method provided in the embodiment of the present application, determining the score of the first deep learning training task based on the first preset scoring strategy (i.e., step 125) includes:
[0080] Step 1251: Determine a first score of the first deep learning training task based on the submission time of the first deep learning training task.
[0081] Specifically, the earlier the submission time of the first deep learning training task, the higher its first score. For example, the computer device can arrange the deep learning training tasks in the current task queue in order of submission time from early to late, and record the first score corresponding to the deep learning training task ranked first (with the earliest submission time in the current task queue) as S1, the first score corresponding to the deep learning training task ranked second as S1-k1, and the first score corresponding to the deep learning training task ranked nth as S1-(n-1)k1. Here, S1 and k1 can be pre-set values, k1 is a coefficient and k1 is a positive number. In other embodiments, the first score can be determined by other formulas or rules, and the embodiments of the present application are not specifically limited to this.
[0082] Step 1252: Determine a second score for the first deep learning training task based on the resource application amount for the first deep learning training task.
[0083] When submitting a deep learning training task, the user can submit the resource application amount required for the deep learning training task, that is, the size of the GPU resources required to execute the deep learning training task. The smaller the resource application amount, the higher the second score. In general, deep learning training tasks with small resource applications (small scale, may occupy one or two GPUs) are used for debugging and exploration of algorithms, which need to obtain training feedback in a timely manner. Therefore, the smaller the resource application amount of the deep learning training task, the higher its second score. For example, the resource application amount is recorded as T, and the computer device can determine the second score based on the formula S2-Tk2, where S2 and k2 are preset constants, k2 is a coefficient and k2 is a positive number. Of course, the second score can be determined by other formulas or rules, and the embodiments of the present application do not specifically limit this.
[0084] In other embodiments, the resource application amount required for the deep learning training task can be determined by a computer device or a corresponding computer cluster based on the parameters of the deep learning training task.
[0085] Step 1253: Determine a score for the first deep learning training task based on a weighted sum of the first score and the second score.
[0086] Based on the scores of deep learning training tasks, you can sort the deep learning training tasks in the task queue. The higher the score of a deep learning training task, the higher its ranking.
[0087] In one embodiment, the score of the deep learning training task can be determined only based on the resource application amount of the deep learning training task, and then the execution order of each deep learning training task in the corresponding task queue can be determined.
[0088] In one embodiment, the score of the deep learning training task can be determined according to the identity information of the user who submitted the deep learning training task, and then the execution order of each deep learning training task in the corresponding task queue can be determined.
[0089] For example, the higher the position of the user, the higher the score of the deep learning training task submitted by the user, the higher the ranking of the deep learning training task, and the priority can be given. Under normal circumstances, the deep learning training tasks submitted by senior algorithm researchers are more important than the deep learning training tasks submitted by ordinary or intern researchers, so they will be given priority. For example, the user's position level is recorded as P, and the value of P can be 1, 2, 3... The larger the value of P, the higher the position. When P is 1, the corresponding deep learning training task score is recorded as S3. The computer device can determine the score based on the formula S3+Pk3, where S3 and k3 are preset constants, k3 is a coefficient and k3 is a positive number. Of course, the score can be determined by other formulas or rules, and the embodiments of the present application do not impose specific restrictions on this.
[0090] In one embodiment, the same user may submit multiple deep learning training tasks to the same task queue. At this time, the scores corresponding to each of the multiple deep learning training tasks can be determined according to the number of deep learning training tasks submitted by the user to the task queue (which may be deductions or negative scores). The more deep learning training tasks submitted by the same user, the lower the score of the deep learning training tasks submitted by the user, and the lower the ranking. Here, the deductions for multiple deep learning training tasks submitted by the same user may be different. For example, the deductions for the multiple deep learning training tasks may be successively decreasing, that is, a certain amount of deep learning training tasks submitted by other users are separated between two adjacent deep learning training tasks. Optionally, the scores of the multiple deep learning training tasks submitted by the same user may also be the same, and then be executed in sequence. For example, the number of deep learning training tasks submitted by the same user is recorded as U, and the computer device can determine the score based on the formula S4-Uk4, where S4 and k4 are preset constants, k4 is a coefficient and k4 is a positive number. Of course, the score can be determined by other formulas or rules, and the embodiments of the present application do not impose specific restrictions on this.
[0091] Since multiple users in any task queue share the GPU resources of the corresponding computer cluster, if a user submits too many deep learning training tasks, most of the GPU resources will be occupied, which will increase the waiting time of other users in the same group and hinder other users from using the GPU resources of the computer cluster. By deducting points for multiple deep learning training tasks submitted by the same user, it can be guaranteed to a certain extent that each user can use the corresponding GPU resources equally.
[0092] The deep learning training task management method provided in this embodiment reduces the points of the deep learning training task according to the number of deep learning training tasks submitted by the same user to the task queue, so that its execution order is later, thereby providing more users with the opportunity to use the corresponding computer cluster and improving the user experience.
[0093] In one embodiment, the score of each deep learning training task can be determined based on at least one of the following information, such as: submission time, resource application amount, user identity information, and the number of deep learning training tasks submitted by the user to a task queue.
[0094] Figure 6 FIG. 1 is a flowchart of a method for managing deep learning training tasks provided by another exemplary embodiment of the present application. Figure 2 The present application is extended based on the embodiment shown Figure 6 The embodiment shown is described below with emphasis on Figure 6 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.
[0095] like Figure 6 As shown, in the management method of deep learning training tasks provided in the embodiment of the present application, it also includes:
[0096] Step 140: Determine the average number of deep learning training tasks in multiple task queues.
[0097] Each computer cluster corresponds to a task queue, and multiple computer clusters correspond to multiple task queues one by one, and the multiple computer clusters are self-built computer clusters, such as computer clusters specially built within a certain enterprise. Self-built computer clusters can be called private clouds, or Internet Data Centers (IDCs). Self-built computer clusters have low long-term use costs and high security.
[0098] According to the number of all deep learning training tasks in multiple task queues corresponding to multiple self-built computer clusters, the average number of deep learning training tasks corresponding to each task queue is calculated to obtain the average number of deep learning training tasks in the multiple task queues.
[0099] Step 150: Based on the average number, enable a public cloud computer cluster.
[0100] When the average number is greater than the fourth threshold, it indicates that the resource usage of the multiple self-built computer clusters is very tight. Even if the resource capacity of the multiple self-built computer clusters is adjusted relative to each other, it still cannot meet the huge number of deep learning training tasks as a whole. Therefore, the public cloud computer cluster can be enabled at this time.
[0101] Public cloud computer clusters can be professional cloud computing services provided by Alibaba Cloud, Kingsoft Cloud, or Amazon Web Services (AWS). The cost of using public cloud computer clusters is higher than that of self-built computer clusters, but they can be used at any time.
[0102] Here, the fourth threshold value can be set according to usage needs, so as to save costs as much as possible while alleviating the computing burden of the self-built computer cluster.
[0103] Step 160: Synchronize the training data corresponding to the N deep learning training tasks with the highest execution order in each of the multiple task queues to the public cloud computer cluster. N is an integer greater than or equal to 1.
[0104] Step 170: Schedule the N deep learning training tasks with the highest execution order in each of the multiple task queues to the public cloud computer cluster for execution.
[0105] In order to alleviate the computing burden of each self-built computing cluster and achieve fair management of each group of users, the N deep learning training tasks with the highest execution order in each task queue can be scheduled to the public cloud computer cluster for execution.
[0106] Of course, according to actual needs, different numbers of deep learning training tasks can be selected from various task queues and scheduled to the public cloud computer cluster for execution.
[0107] Computer equipment can call the public cloud software development kit (SDK) to open the corresponding server resources for deep learning training tasks according to the resource application amount of the deep learning training tasks that need to be scheduled. By adapting multiple public cloud SDKs, the best price can be achieved. The public cloud opens resources quickly, usually within minutes.
[0108] When certain deep learning training tasks are scheduled to be executed in a public cloud computer cluster, the training data corresponding to these deep learning training tasks can be synchronized to the public cloud's storage system, which can increase the speed of the training process.
[0109] Specifically, computer devices can transfer training data corresponding to deep learning training tasks to the storage system of the public cloud, so that the public cloud computer cluster can greatly optimize the training speed by pre-loading training data.
[0110] When the average number is less than or equal to the fifth threshold, it means that the resource usage of the self-built multiple computer clusters is not saturated. At this time, the public cloud computer cluster can be released (or closed) to reduce costs. If there are still deep learning training tasks that have not been executed on the public cloud computer cluster, they can be transferred back to the self-built computer cluster for execution.
[0111] Here, the fifth threshold value can be less than the fourth threshold value, and it can be set according to actual use needs. In this way, when the average number of tasks is greater than the fourth threshold value, it means that all computer cluster resources are tight, and the public cloud computer cluster is opened at this time; after the public cloud computer cluster is opened, when the average number of tasks is less than or equal to the fifth threshold value, the public cloud computer cluster can be closed to save resources. At the same time, by setting the fifth threshold value to be less than the fourth threshold value, there is a certain margin between opening the public cloud computer cluster and closing the public cloud computer cluster, thereby avoiding frequent switching between opening and closing the public cloud computer cluster.
[0112] The deep learning training task management method provided in this embodiment, by setting up a mechanism to schedule deep learning training tasks to the public cloud, can start the public cloud computer cluster when the resource usage of multiple self-built computer clusters is very tight, thereby alleviating the computing burden of each self-built computing cluster.
[0113] In one embodiment, whether to enable a public cloud computer cluster can be determined by determining the average waiting time of each deep learning training task in multiple task queues.
[0114] For example, according to the waiting time of all deep learning training tasks in multiple task queues corresponding to multiple self-built computer clusters, the average waiting time of each deep learning training task is calculated, and the average waiting time of each deep learning training task in the multiple task queues can be obtained. When the average waiting time is greater than the sixth threshold, it means that the resource usage of the multiple self-built computer clusters is very tight, and even if the resource capacity of the multiple self-built computer clusters is adjusted, it still cannot meet the huge number of deep learning training tasks as a whole, so the public cloud computer cluster can be opened at this time.
[0115] Here, the sixth threshold value can be set according to usage needs, so as to save costs as much as possible while alleviating the computing burden of the self-built computer cluster.
[0116] In one embodiment, whether to enable a public cloud computer cluster can be determined by determining the average number of deep learning training tasks in multiple task queues and the average waiting time of each deep learning training task in the multiple task queues. In this way, by combining the two parameters of average number and average waiting time to determine whether to enable a public cloud computer cluster, a balance between relieving computing burden and cost can be ensured, and the training efficiency of deep learning training tasks can be guaranteed at a reasonable cost.
[0117] Figure 7 FIG. 1 is a schematic diagram of a scenario of a method for managing deep learning training tasks provided by an exemplary embodiment of the present application. Figure 7 As shown, the computer device can provide corresponding computer clusters (such as the first, second and third computer clusters) for three groups of users from the IDC-GPU cluster, where the three groups of users can correspond to the first, second and third task queues respectively. The first task queue includes deep learning training tasks A1, A2, C1, B1 and B2; the second task queue includes deep learning training tasks D1, D2, D3, E1 and E2; the third task queue includes deep learning training tasks F1 and F2. Here, the letters A, B, C, D, E and F can represent different users, and the numbers 1, 2 and 3 can represent different deep learning training tasks submitted by the same user.
[0118] Computer equipment can realize real-time adjustment of GPU resources between various computer clusters based on resource usage information of the three task queues, resource usage duration, average waiting time of deep learning training tasks in each task queue, and other information, thereby improving training efficiency.
[0119] Furthermore, when the computing burden of the entire IDC-GPU cluster is heavy, the computer device can activate the corresponding server resources (public cloud-GPU cluster) through the public cloud SDK, and schedule some deep learning training tasks in the queue to the public cloud computer cluster for execution, so as to alleviate the computing burden of the IDC-GPU cluster.
[0120] In some cases, different deep learning training tasks in the task queue may require the same or different types of GPUs. For deep learning training tasks that require different GPU types, the computer device may further adjust the resource capacity of each computer cluster according to the GPU type.
[0121] Exemplary Devices
[0122] Figure 8 Schematic diagram of the structure of a deep learning training task management device provided by an exemplary embodiment of the present application. Figure 8 As shown, the device 800 includes: a first determining module 810 , an adjusting module 820 and an executing module 830 .
[0123] The first determination module 810 is used to determine the resource usage information of the first task queue where the first deep learning training task is located; the adjustment module 820 is used to adjust the resource capacity of the first computer cluster corresponding to the first task queue based on the resource usage information of the first task queue; the execution module 830 is used to control the first computer cluster after the resource capacity is adjusted to execute the first deep learning training task.
[0124] An embodiment of the present application provides a management device for deep learning training tasks. By adjusting the resource capacity of the first computer cluster corresponding to the first task queue according to the resource usage information of the first task queue, when the resource usage of the first computer cluster is tight, the resources of the second computer cluster can be adjusted to the first computer cluster, or when there are idle resources in the first computer cluster, the idle resources of the first computer cluster can be adjusted to the second computer cluster, thereby improving the overall resource utilization, avoiding the problems of idle resources and resource shortages, and further reducing the training cost of deep learning training tasks.
[0125] Fig. 98 is a schematic diagram of the structure of the adjustment module 820 of the management device for deep learning training tasks provided by another exemplary embodiment of the present application. Figure 8 The present application is extended based on the embodiment shown Fig. 9 The embodiment shown is described below in detail. Fig. 9 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.
[0126] like Fig. 9 As shown, the adjustment module 820 includes: a first determining unit 821 and a first modifying unit 822 .
[0127] The first determining unit 821 is used to determine the average waiting time of the deep learning training tasks in the first task queue included in the resource usage information of the first task queue.
[0128] The first modification unit 822 is used to modify the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster based on the average waiting time of the deep learning training tasks in the first task queue and the average waiting time of the deep learning training tasks in the second task queue.
[0129] According to one embodiment of the present application, after the first modification unit 822 modifies the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster, it is also used to modify the labels of some or all resources from the first computer cluster to the second computer cluster based on the average waiting time of the deep learning training tasks in the second task queue.
[0130] Fig.10 Schematic diagram of a management device for deep learning training tasks provided by another exemplary embodiment of the present application. Figure 8 The present application is extended based on the embodiment shown Fig.10 The embodiment shown is described below in detail. Fig.10 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.
[0131] like Fig.10 As shown, the apparatus 800 further includes: a second determination module 825 and a third determination module 826 .
[0132] The second determination module 825 is used to determine the score of the first deep learning training task based on the first preset scoring strategy.
[0133] The third determination module 826 is used to determine the execution order of the first deep learning training task in the first task queue based on the score of the first deep learning training task. The execution module 830 controls the first computer cluster after adjusting the resource capacity to execute the first deep learning training task based on the execution order.
[0134] According to an embodiment of the present application, the second determination module 825 is further used to determine the score of the second deep learning training task in the second task queue based on the second preset scoring strategy. The third determination module 826 is further used to determine the execution order of the second deep learning training task in the second task queue based on the score of the second deep learning training task, wherein the first preset scoring strategy is different from the second preset scoring strategy.
[0135] Fig.11 8 is a schematic diagram of the structure of the second determination module 825 of the management device for deep learning training tasks provided by another exemplary embodiment of the present application. Fig.10 The present application is extended based on the embodiment shown Fig.11 The embodiment shown is described below in detail. Fig.11 The embodiment shown and Fig.10 The differences and similarities of the illustrated embodiments are not described in detail.
[0136] like Fig.11 As shown, the second determination module 825 includes: a second determination unit 8251 , a third determination unit 8252 and a fourth determination unit 8253 .
[0137] The second determining unit 8251 is used to determine a first score of the first deep learning training task based on the submission time of the first deep learning training task.
[0138] The third determining unit 8252 is used to determine a second score of the first deep learning training task based on the resource application amount of the first deep learning training task.
[0139] The fourth determining unit 8253 is used to determine the score of the first deep learning training task based on the weighted sum of the first score and the second score.
[0140] According to an embodiment of the present application, Fig.11 The fourth determination unit 8253 is used to: determine the third score of the first deep learning training task based on the identity information of the user who submitted the first deep learning training task; and determine the score of the first deep learning training task based on the weighted sum of the first score, the second score and the third score.
[0141] According to an embodiment of the present application, Fig.11The fourth determination unit 8253 is used to: determine the third score of the first deep learning training task based on the identity information of the user who submitted the first deep learning training task; determine the deduction points of the first deep learning training task based on the number of deep learning training tasks submitted by the user to the first task queue; and determine the score of the first deep learning training task based on the weighted sum of the first score, the second score, the third score and the deduction points.
[0142] According to an embodiment of the present application, Fig. 9 As shown, the adjustment module 820 includes: a first determining unit 821 and a first modifying unit 822 .
[0143] The first determining unit 821 is configured to determine a resource usage duration corresponding to the first task queue included in the resource usage information of the first task queue.
[0144] The first modifying unit 822 is used to modify the labels of some or all resources of the first computer cluster corresponding to the first task queue from the first computer cluster to the second computer cluster based on the resource usage time, and the second computer cluster corresponds to the second task queue.
[0145] Fig.12 Schematic diagram of a management device for deep learning training tasks provided by another exemplary embodiment of the present application. Figure 8 The present application is extended based on the embodiment shown Fig.12 The embodiment shown is described below in detail. Fig.12 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.
[0146] like Fig.12 As shown, the device 800 further includes: a fourth determination module 840 , an opening module 850 and a scheduling module 870 .
[0147] In this embodiment, the first computer cluster is one of a plurality of computer clusters, the plurality of computer clusters correspond to a plurality of task queues one-to-one, and the plurality of computer clusters are a plurality of self-built computer clusters.
[0148] The fourth determination module 840 is used to determine the average number of deep learning training tasks in multiple task queues.
[0149] The enabling module 850 is used to enable the public cloud computer cluster based on the average quantity.
[0150] The scheduling module 870 is used to schedule N deep learning training tasks with a higher execution order in each task queue of multiple task queues to the public cloud computer cluster for execution, where N is an integer greater than or equal to 1.
[0151] According to an embodiment of the present application, the fourth determination module 840 is used to determine the average number of deep learning training tasks in multiple task queues and the average waiting time of each deep learning training task in the multiple task queues. The activation module 850 is used to activate the public cloud computer cluster based on the average number and the average waiting time of each deep learning training task in the multiple task queues. The scheduling module 870 is used to schedule the N deep learning training tasks with the highest execution order in each task queue of the multiple task queues to the public cloud computer cluster for execution, where N is an integer greater than or equal to 1.
[0152] According to an embodiment of the present application, Fig.12 As shown, the device 800 also includes a data synchronization module 860, which is used to synchronize the training data corresponding to the N deep learning training tasks with the highest execution order in each task queue of the multiple task queues to the public cloud computer cluster.
[0153] It should be understood that the operations and functions of the first determination module 810, the adjustment module 820, the execution module 830, the second determination module 825, the third determination module 826, the fourth determination module 840, the start module 850, the data synchronization module 860 and the scheduling module 870 in the above-mentioned embodiment, as well as the first determination unit 821 and the first modification unit 822, and the second determination unit 8251, the third determination unit 8252 and the fourth determination unit 8253 can refer to the above-mentioned Figures 2 to 7 The description of the deep learning training task management method provided is not repeated here to avoid repetition.
[0154] Exemplary Electronic Devices
[0155] Below, reference Fig.13 The electronic device 90 according to the embodiment of the present application is described. The electronic device 90 can perform the management process of the above-mentioned deep learning training task.
[0156] Fig.13 A block diagram of an electronic device 90 according to an embodiment of the present application is illustrated.
[0157] like Fig.13 As shown, the electronic device 90 includes one or more processors 91 and a memory 92 .
[0158] The processor 91 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 90 to perform desired functions.
[0159] The memory 92 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 91 may run the program instructions to implement the management method of the deep learning training tasks of the various embodiments of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, video image signals, etc. may also be stored in the computer-readable storage medium.
[0160] In one example, the electronic device 90 may further include: an input device 93 and an output device 94 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0161] The input device 93 includes but is not limited to a keyboard, a mouse, and the like.
[0162] The output device 94 can output various information to the outside, including the determined resource capacity information, average waiting time, etc. The output device 94 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0163] Of course, to simplify, Fig.13 Only some of the components related to the present application in the electronic device 90 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 90 may also include any other appropriate components.
[0164] Exemplary computer program products and computer-readable storage media
[0165] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for managing deep learning training tasks according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0166] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0167] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the method for managing deep learning training tasks according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0168] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0169] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0170] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0171] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0172] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0173] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for managing deep learning training tasks, comprising: Determine resource usage information of a first task queue where a first deep learning training task is located; Determine an average waiting time of deep learning training tasks in the first task queue included in the resource usage information of the first task queue; Based on the average waiting time of the deep learning training tasks in the first task queue and the average waiting time of the deep learning training tasks in the second task queue, modifying the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster; Controlling the first computer cluster after adjusting resource capacity to perform the first deep learning training task, Based on the average waiting time of the deep learning training tasks in the first task queue and the average waiting time of the deep learning training tasks in the second task queue, modifying the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster includes: When the average waiting time of the deep learning training tasks in the first task queue is greater than the average waiting time of the deep learning training tasks in the second task queue, modifying the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster; or When the average waiting time of deep learning training tasks in the first task queue is greater than a first threshold, and the average waiting time of deep learning training tasks in the second task queue is less than a second threshold, the labels of some or all resources of the second computer cluster corresponding to the second task queue are changed from the second computer cluster to the first computer cluster.
2. The management method according to claim 1, wherein: After modifying the labels of some or all of the resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster, the method further includes: modifying the labels of some or all of the resources from the first computer cluster to the second computer cluster based on the average waiting time of the deep learning training tasks in the second task queue.
3. The management method according to claim 1, further comprising: Determining a score for the first deep learning training task based on a first preset scoring strategy; Determining an execution order of the first deep learning training task in the first task queue based on the score of the first deep learning training task; Based on the execution order, the step of controlling the first computer cluster after adjusting the resource capacity to execute the first deep learning training task is executed.
4. The management method according to claim 3, further comprising: Determine a score of a second deep learning training task in a second task queue based on a second preset scoring strategy; Determining an execution order of the second deep learning training task in the second task queue based on the score of the second deep learning training task, wherein the first preset scoring strategy is different from the second preset scoring strategy.
5. The management method according to claim 3, wherein: The determining the score of the first deep learning training task based on the first preset scoring strategy includes: Determine a first score for the first deep learning training task based on the submission time of the first deep learning training task; Determining a second score for the first deep learning training task based on the resource application amount of the first deep learning training task; Determine a score for the first deep learning training task based on a weighted sum of the first score and the second score.
6. The management method according to claim 3, wherein: The determining the score of the first deep learning training task based on the first preset scoring strategy includes: Determining a first score for the first deep learning training task based on a submission time of the first deep learning training task; Determining a second score for the first deep learning training task based on the resource application amount of the first deep learning training task; Determining a third score for the first deep learning training task based on the identity information of the user who submitted the first deep learning training task; Determine a score for the first deep learning training task based on a weighted sum of the first score, the second score, and the third score.
7. A management device for deep learning training tasks, comprising: A determination module, used to determine resource usage information of a first task queue where a first deep learning training task is located; An adjustment module is used to determine an average waiting time of deep learning training tasks in the first task queue included in the resource usage information of the first task queue; based on the average waiting time of the deep learning training tasks in the first task queue and the average waiting time of the deep learning training tasks in the second task queue, modify the labels of some or all resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster; an execution module, configured to control the first computer cluster after adjusting resource capacity to execute the first deep learning training task, The adjustment module is specifically used to modify the labels of part or all of the resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster when the average waiting time of the deep learning training tasks in the first task queue is greater than the average waiting time of the deep learning training tasks in the second task queue; or the adjustment module is specifically used to modify the labels of part or all of the resources of the second computer cluster corresponding to the second task queue from the second computer cluster to the first computer cluster when the average waiting time of the deep learning training tasks in the first task queue is greater than a first threshold and the average waiting time of the deep learning training tasks in the second task queue is less than a second threshold.
8. A computer-readable storage medium storing a computer program for executing the deep learning training task management method described in any one of claims 1 to 6.
9. An electronic device, comprising: processor; a memory for storing instructions executable by the processor, The processor is used to execute the deep learning training task management method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Test task scheduling method and system
CN111143210A
Resource management method and device based on Hadoop cluster, equipment and storage medium
CN111651266A
