A GPU computing power pool intelligent management method and system
Through the recurrent neural network structure and intelligent decision-making mechanism, the problems of insufficient dynamic adaptability and lack of intelligent decision-making in traditional GPU computing power pool management are solved, and more efficient resource allocation and performance improvement are achieved.
Patent Information
- Application Number
- CN202410131653.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-01-31
AI Technical Summary
Traditional GPU computing power pool management methods lack dynamic adaptability and intelligent decision-making capabilities in the face of diverse and dynamically changing load and task conditions, resulting in inefficient resource allocation and poor overall performance.
The circular neural network structure is used to train and optimize the task resource allocation space of the computing power pool, monitor the operating status of the heterogeneous GPU resource pool in real time, and dynamically allocate and schedule based on the target computing power resource allocation network to achieve intelligent resource management.
It improves resource allocation efficiency and overall performance, realizes dynamic adaptability and intelligent decision-making for different load scenarios, and improves system flexibility and performance.
Smart Images

Figure CN117971475B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and system for intelligent management of a GPU computing power pool. Background Art
[0002] Effective management of GPU (Graphics Processing Unit) computing pools is crucial to improving computing performance and accelerating task processing. In traditional GPU computing management, static allocation or dynamic allocation based on simple rules is usually adopted. These methods may perform well in certain scenarios, but there are some technical problems when facing diverse and dynamically changing loads and tasks.
[0003] First, computing tasks and load conditions may change dynamically due to changes in time and application scenarios. Traditional static allocation is difficult to adapt to this dynamic nature, resulting in inefficient resource allocation. Second, in the case of unbalanced load, balanced distribution of tasks may not be achieved, resulting in some GPUs processing too many tasks and being overloaded, while other GPUs are relatively idle, affecting overall performance. Third, traditional rules and static allocation methods lack intelligent decision-making mechanisms and cannot make intelligent resource allocation and scheduling decisions based on real-time conditions, affecting the flexibility and performance of the system. Summary of the invention
[0004] This application provides a GPU computing power pool intelligent management method, which aims to solve the technical problems that traditional GPU computing power pool management methods lack dynamic adaptability when dealing with different load scenarios, lack intelligent decision-making capabilities, and cannot intelligently adjust resource allocation according to real-time operating status and application scenarios, resulting in inefficient resource allocation and poor overall performance.
[0005] In view of the above problems, the present application provides a method and system for intelligent management of a GPU computing power pool.
[0006] The first aspect disclosed in the present application provides a method for intelligent management of a GPU computing power pool, the method comprising: obtaining heterogeneous computing power resource information through a heterogeneous GPU resource pool, the heterogeneous computing power resource information including computing power parameter information of GPUs of various manufacturers and models in the resource pool; building multiple computing power resource training tasks according to application scenario information of the GPU computing power pool; crawling computing power pool operation data based on the multiple computing power resource training tasks to construct a computing power pool task resource allocation space; training and optimizing the computing power pool task resource allocation space using a recurrent neural network structure, obtaining a target computing power resource allocation network and deploying it to the heterogeneous GPU resource pool; monitoring the operating status information of the heterogeneous GPU resource pool in real time, and obtaining computing power pool resource load task information according to the operating status information; dynamically allocating the heterogeneous computing power resource information and the computing power pool resource load task information based on the target computing power resource allocation network, outputting computing power resource allocation parameter information, and performing resource scheduling management on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information.
[0007] Another aspect disclosed in the present application provides a GPU computing power pool intelligent management system, the system is used for the above-mentioned GPU computing power pool intelligent management method, the system includes: a resource information acquisition module, the resource information acquisition module is used to obtain heterogeneous computing power resource information through a heterogeneous GPU resource pool, the heterogeneous computing power resource information includes computing power parameter information of GPUs of various manufacturers and models in the resource pool; a training task acquisition module, the training task acquisition module is used to build multiple computing power resource training tasks according to the application scenario information of the GPU computing power pool; an allocation space construction module, the allocation space construction module is used to crawl computing power pool operation data based on the multiple computing power resource training tasks, and build a computing power pool task resource allocation space; a training optimization module The training optimization module is used to use the recurrent neural network structure to perform training optimization on the task resource allocation space of the computing power pool, and obtain the target computing power resource allocation network to be deployed to the heterogeneous GPU resource pool; the task information acquisition module, the task information acquisition module is used to monitor the operating status information of the heterogeneous GPU resource pool in real time, and obtain the computing power pool resource load task information according to the operating status information; the resource scheduling management module, the resource scheduling management module is used to dynamically allocate the heterogeneous computing power resource information and the computing power pool resource load task information based on the target computing power resource allocation network, output computing power resource allocation parameter information, and perform resource scheduling management on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information.
[0008] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0009] By training and optimizing the computing power pool task resource allocation space through a recurrent neural network structure, dynamic adaptability to different load scenarios can be achieved, and resource allocation efficiency can be improved; by real-time monitoring of the operating status information of the heterogeneous GPU resource pool and dynamic allocation based on the target computing power resource allocation network, intelligent decision-making is achieved, and GPU computing power resources can be managed more intelligently; through real-time monitoring and resource scheduling management based on computing power resource allocation parameter information, closed-loop control of resource scheduling for heterogeneous GPU resource pools is achieved, further improving the overall performance of the system. In summary, the GPU computing power pool intelligent management method solves the problems of insufficient dynamic adaptability, lack of intelligent decision-making, and unbalanced task allocation in the existing technology by introducing a recurrent neural network structure and an intelligent decision-making mechanism, and achieves the technical effect of improving resource allocation efficiency and overall performance.
[0010] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 A flowchart of a method for intelligent management of a GPU computing power pool is provided for an embodiment of the present application;
[0012] Figure 2 A schematic diagram of the structure of a GPU computing power pool intelligent management system is provided for an embodiment of the present application.
[0013] Explanation of the reference numerals: resource information acquisition module 10 , training task acquisition module 20 , allocation space construction module 30 , training optimization module 40 , task information acquisition module 50 , resource scheduling management module 60 . DETAILED DESCRIPTION
[0014] The embodiment of the present application provides a GPU computing power pool intelligent management method to solve the technical problems that the traditional GPU computing power pool management method lacks dynamic adaptability when dealing with different load scenarios, lacks intelligent decision-making capabilities, and is unable to intelligently adjust resource allocation according to real-time operating status and application scenarios, resulting in low resource allocation efficiency and poor overall performance.
[0015] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0016] Embodiment 1
[0017] like Figure 1 As shown, the embodiment of the present application provides a method for intelligent management of a GPU computing power pool, the method comprising:
[0018] Obtain heterogeneous computing power resource information through a heterogeneous GPU resource pool, wherein the heterogeneous computing power resource information includes computing power parameter information of GPUs of various manufacturers and models in the resource pool;
[0019] Connect to the heterogeneous GPU resource pool through network access. The resource pool contains GPU devices from different manufacturers, each with its own unique performance and specifications. Send a request to the resource pool through the query mechanism of the resource pool, and the resource pool responds to the request and provides heterogeneous computing resource information. The heterogeneous computing resource information includes the computing power parameter information of the GPU models of each manufacturer in the resource pool. This information includes the model, number of cores, memory size, floating point performance and other parameters of each GPU device, so as to provide basic data for subsequent task resource allocation and computing power optimization.
[0020] According to the application scenario information of the GPU computing power pool, build multiple computing power resource training tasks;
[0021] Obtain information about the application scenarios of the GPU computing power pool, including information about different task types, different business requirements, and different user groups. This information can be provided by system administrators, task schedulers, or other management components. According to the GPU computing power pool application scenario information, divide the tasks that need to be trained.
[0022] For each training task, appropriate computing resources are allocated from the heterogeneous GPU resource pool according to the nature and requirements of the task, that is, the appropriate model and number of GPU devices are selected to meet the computing requirements of the task. The operating environment of each training task is configured, including input data, model parameters, training hyperparameters, etc., and then these tasks are started to run on the allocated GPU devices.
[0023] By rationally allocating computing resources, each training task can be run effectively to optimize the overall system performance.
[0024] Crawling computing pool operation data based on the multiple computing resource training tasks, and building a computing pool task resource allocation space;
[0025] Monitor the running status and performance data of each computing resource training task in real time, including the task's computing speed, memory usage, training loss and other related indicators. Integrate the collected running data into a computing pool task resource allocation database, which includes historical GPU resource pool computing parameter information, computing pool resource load tasks and computing power allocation effect data. Extract evaluation indicators from the computing pool task resource allocation database to measure the allocation effect of computing power resources, including task completion time, resource utilization, training performance and other indicators. Perform a multi-dimensional weighted evaluation based on the extracted evaluation indicators to obtain the resource pool data computing power allocation effect index information, which helps to understand the performance of different tasks in computing power resource allocation.
[0026] The task resource allocation space of the computing power pool is trained and optimized by using a recurrent neural network structure, and a target computing power resource allocation network is obtained and deployed to the heterogeneous GPU resource pool;
[0027] Using the constructed computing power pool task resource allocation database as the training dataset, a recurrent neural network (RNN) structure is designed for training the computing power resource allocation network. RNN can capture the temporal relationship between tasks.
[0028] Using the prepared data set, the RNN is trained to optimize the computing pool task resource allocation space. The training goal is to learn the correlation between tasks and the corresponding computing resource allocation strategy. The trained RNN model is optimized and the model parameters are adjusted to improve its performance on the training data, including adjusting the learning rate and increasing the number of network layers. After the training is completed, an optimized target computing resource allocation network is obtained. This network can output the corresponding computing resource allocation parameters based on the input task information to meet the task requirements.
[0029] The trained target computing resource allocation network is deployed to the heterogeneous GPU resource pool, that is, the model parameters are configured into the resource pool management system to achieve real-time task resource allocation, which helps to improve the performance and efficiency of the entire system.
[0030] Monitor the operating status information of the heterogeneous GPU resource pool in real time, and obtain the computing power pool resource load task information according to the operating status information;
[0031] Set up a monitoring system to collect the operating status information of the heterogeneous GPU resource pool in real time through GPU management tools, API calls, etc. The monitored information includes but is not limited to the usage of each GPU card, remaining computing power, task queue length, etc. The collected operating status information should cover the detailed information of each GPU card in the GPU resource pool. Based on the collected operating status information, understand the computing tasks currently waiting to be executed and extract the computing power pool resource load task information.
[0032] Based on the target computing power resource allocation network, the heterogeneous computing power resource information and the computing power pool resource load task information are dynamically allocated, computing power resource allocation parameter information is output, and resource scheduling management is performed on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information.
[0033] The acquired heterogeneous computing resource information and computing pool resource load task information are input into the previously trained target computing resource allocation network. The target computing resource allocation network dynamically calculates the computing resource allocation parameters required for each task based on the input information, including determining the GPU device to which the task is assigned, the number of cores assigned, the size of video memory, etc. Based on the output computing resource allocation parameter information, the resource scheduling management of the heterogeneous GPU resource pool is performed, including reallocating tasks to different GPU devices, adjusting the number of cores and video memory of tasks, etc., to optimize resource utilization and task execution efficiency to the greatest extent.
[0034] Furthermore, the construction of the computing power pool task resource allocation space includes:
[0035] Based on the multiple computing resource training tasks, the computing pool operation data is crawled to obtain a computing pool task resource allocation database, wherein the computing pool task resource allocation database includes historical GPU resource pool computing parameter information, computing pool resource load tasks, and computing power allocation effect data;
[0036] Extracting evaluation indicators from the computing power allocation effect data to determine a computing power allocation effect evaluation indicator set;
[0037] Based on the computing power allocation effect evaluation indicator set, a multi-dimensional weighted evaluation is performed on the computing power allocation effect data to obtain resource pool data computing power allocation effect index information;
[0038] The computing power pool task resource allocation database is screened and integrated based on the computing power allocation effect index information of the resource pool data to obtain the computing power pool task resource allocation space.
[0039] Monitor the running status and performance data of multiple computing resource training tasks in real time, and obtain comprehensive running information by crawling these data, including but not limited to GPU computing power parameters, task load status, task execution time, etc.
[0040] The crawled data is integrated and stored in a special database, namely the computing power pool task resource allocation database, which includes historical GPU resource pool computing power parameter information, computing power pool resource load tasks and computing power allocation effect data. Among them, the historical GPU resource pool computing power parameter information records the model, number of cores, memory size, computing performance and other parameters of past GPU devices; the computing power pool resource load task records the currently running computing tasks, including task type, required resources, execution status, etc.; the computing power allocation effect data records the effects of past computing power resource allocation, such as task completion time, resource utilization, training performance and other indicators.
[0041] Representative and important evaluation indicators are extracted from the collected computing power allocation effect data. These indicators should be able to comprehensively reflect the effect of computing power resource allocation and can be used to measure various aspects of task execution.
[0042] According to the extracted evaluation indicators, a complete set of evaluation indicators for computing power allocation effect is determined, which includes time performance indicators, resource utilization indicators, quality performance indicators, and task queue management indicators. Among them, time performance indicators include task completion time, training iteration speed, etc.; resource utilization indicators include GPU utilization, memory utilization, storage utilization, etc.; quality performance indicators include training model accuracy, convergence speed, etc.; task queue management indicators include waiting time, task queue length, task scheduling efficiency, etc. Such a set of evaluation indicators for computing power allocation effect can objectively measure the effect of computing power resource allocation, which is helpful for comparing and analyzing different schemes in the subsequent optimization process.
[0043] According to the determined set of evaluation indicators for computing power allocation effect, each indicator is assigned a corresponding weight. These weights represent the relative importance of each indicator in the comprehensive evaluation. The weights can be set according to the actual situation and specific needs. The computing power allocation effect data is standardized to ensure that the numerical ranges between different indicators are consistent, which helps to avoid unfair weight distribution between different indicators.
[0044] The computing power allocation effect data of each task or time point is weighted according to the set weights to ensure that the contribution of each indicator to the overall effect is properly considered. The results of the weighted calculation are integrated to obtain a comprehensive resource pool data computing power allocation effect index. This index is an overall evaluation of the computing power resource allocation effect, reflecting the system's performance in comprehensive performance, and providing a quantitative reference for subsequent resource allocation strategies.
[0045] Determine the screening benchmark for the effect index, which can be a certain threshold. For example, set to select only data with an effect index higher than a certain threshold. The threshold is set according to the actual situation and specific needs. According to the set effect index screening benchmark, the data in the computing power pool task resource allocation database is screened. Only data that meets the screening criteria will be retained, and data that does not meet the criteria will be excluded.
[0046] The filtered data is integrated to obtain a smaller but more representative data set, which contains a more effective computing resource allocation scheme. This data set can be used as a training set for subsequent model training or as basic data for optimization algorithms. Based on the integrated data, the computing pool task resource allocation space is updated. This space reflects the computing resource allocation strategies that have historically worked well, providing more representative samples for subsequent model training.
[0047] Furthermore, obtaining the target computing power resource allocation network includes:
[0048] Clustering and dividing the data information in the task resource allocation space of the computing power pool according to the application scenario information of the GPU computing power pool to obtain the computing power pool resource data clustering information result;
[0049] Classify the computing power pool resource data clustering information results to obtain a labeled computing power pool resource sample data set;
[0050] Using a recurrent neural network structure, the labeled computing power pool resource sample data sets are respectively allocated and trained to obtain a computing power resource allocation network library;
[0051] Obtain a target application scenario of the computing power pool, perform a matching call from the computing power resource allocation network library based on the target application scenario of the computing power pool, and obtain the target computing power resource allocation network.
[0052] Collect and organize the application scenario information of GPU computing pool, including information on different task types, different business requirements, different user groups, etc. Use the integrated computing pool task resource allocation space data as the object of cluster analysis, and each data point represents a historical computing resource allocation plan.
[0053] Clustering algorithms, such as K-means clustering and hierarchical clustering, are used to cluster data according to the application scenario information of the GPU computing power pool. The algorithm groups data points into different clusters based on the similarities between them, and obtains clustering results, including data points in different clusters and their common features. These features involve computing power requirements and task types in different application scenarios, which helps to identify computing power resource demand patterns in different application scenarios.
[0054] For each cluster, analyze the clustering results and understand the characteristics of the data points in the cluster to determine that each cluster represents a specific application scenario. According to the analysis of the clustering results, assign corresponding category labels to each data point. These labels correspond to different application scenarios or resource demand patterns. The data points with assigned category labels are integrated to form a labeled computing pool resource sample data set. Each data point carries the application scenario category label to which it belongs. The association between the label and the data point is clear, so that the label information can be used accurately in subsequent training or analysis.
[0055] The recurrent neural network (RNN) structure is used to allocate and train the labeled computing power pool resource sample data sets respectively. Specifically, the recurrent neural network (RNN) structure is selected, designed and configured to adapt to the computing power resource allocation task. RNN can usually capture the timing information of the data and has a good processing ability for the timing characteristics of the task.
[0056] Using the obtained labeled computing pool resource sample data set, the data set is divided into a training set and a validation set, ensuring that the training set contains enough sample data so that the model can learn the computing power allocation rules in different application scenarios. Using the RNN structure, the category of each labeled computing pool resource sample data set is assigned training, including the model's forward propagation, back propagation, and parameter optimization process. During the training process, the validation set is used to verify the model to ensure the generalization performance of the model on unseen data. The model parameters are tuned according to the verification results to improve the performance of the model.
[0057] After training all categories of models, a computing resource allocation network library is obtained. The library contains a set of trained recurrent neural network models for allocating computing resources for different application scenarios. It can be used in practical applications to dynamically allocate computing resources to meet the needs of different application scenarios.
[0058] Determine the target application scenario of the current computing power pool, which is determined based on actual needs, business scale, task type, etc. According to the obtained target application scenario, a matching call is made from the computing power resource allocation network library, including comparing the similarity between the target application scenario and the trained model to find the model that best meets the target. Through matching calls, the recurrent neural network model that best matches the target application scenario is obtained, that is, the target computing power resource allocation network. This model has learned the computing power allocation strategy that adapts to the target application scenario during training, and can be used in actual operation to intelligently and dynamically allocate computing power resources to optimally meet the needs of different application scenarios.
[0059] Furthermore, obtaining a computing resource allocation network library includes:
[0060] Obtaining an initial hidden layer value of a recurrent neural network structure, and obtaining a model input weight matrix based on the initial hidden layer value;
[0061] Based on the labeled computing power pool resource sample data set and the model input weight matrix, the recurrent neural network structure is trained respectively to obtain a basic computing power resource allocation network set;
[0062] Define a network loss function to verify the basic computing power resource allocation network set and determine a network verification loss data set;
[0063] The basic computing power resource allocation network set is iteratively tuned based on the network verification loss data set to obtain the computing power resource allocation network library.
[0064] The initial hidden layer value is one of the parameters in the recurrent neural network structure. These values are obtained by random initialization and other methods before model training. In practical applications, the initial hidden layer values need to be fine-tuned to adapt to specific tasks and scenarios, which depends on the actual application needs and performance requirements.
[0065] The obtained initial hidden layer values are applied to the recurrent neural network structure. These values play an important role in the initial state of the model and affect the model's processing of input data. Based on the recurrent neural network structure with the initial hidden layer values applied, the input weight matrix of the model is calculated. This weight matrix is used to map the input data to the hidden layer of the recurrent neural network and is a key parameter used by the recurrent neural network to process input data in the initial state.
[0066] Using the obtained labeled computing pool resource sample data set, the data set is divided into a training set and a validation set. The training set is used to train the model, and the validation set is used to verify the performance of the model on unseen data. The obtained model input weight matrix is applied to the recurrent neural network structure to ensure that the initial state of the model conforms to the previous initial hidden layer value and weight matrix.
[0067] The training set is used to train the recurrent neural network structure, including forward propagation, back propagation and parameter optimization steps, to adjust the model parameters to adapt it to the resource allocation pattern in the labeled data set. During the training process, the validation set is used to verify the model performance, and the model parameters are tuned according to the verification results to improve the generalization ability of the model.
[0068] After training all the recurrent neural network models, we obtain the basic computing power resource allocation network set, which contains a set of trained recurrent neural network models for allocating computing power resources for different application scenarios. These models have learned computing power allocation strategies for different application scenarios during training.
[0069] Design and define a network loss function suitable for resource allocation tasks. This loss function is used to measure the performance of the model on the validation set, that is, the error of the model in predicting the allocation of computing power resources. Apply the defined network loss function to the basic computing power resource allocation network set, and calculate the loss of each model on the validation set to measure their performance on unseen data. By calculating the loss on the validation set, a network validation loss data set is obtained. This set contains the performance evaluation results of each model on the validation set, that is, the loss value. By obtaining the network validation loss data set, the performance of each model can be understood. For example, the differences between different models can be comprehensively considered to determine which models perform better in resource allocation tasks.
[0070] According to the network validation loss data set, understand the performance of each model on the validation set, determine which models have relatively good performance and which need further tuning. For models with poor performance, perform iterative tuning, including fine-tuning of model parameters, adjustment of learning rate, and increase of training data, to improve the performance of the model in resource allocation tasks. After tuning, retrain the tuned model and verify it on the validation set. Repeat this process until the performance of the model reaches the expected level. After multiple iterative tuning, a set of well-performing recurrent neural network models that have been trained and verified are obtained, forming a computing resource allocation network library.
[0071] Furthermore, the obtaining of the computing resource allocation network library includes:
[0072] Extracting model parameters from the basic computing resource allocation network set to determine model weights and model biases;
[0073] Performing gradient calculation on the model weight and model bias based on the network verification loss data set to obtain resource allocation network parameter gradient information;
[0074] Iteratively updating the model parameters based on the resource allocation network parameter gradient information by a back propagation algorithm to obtain model update parameter information;
[0075] The basic computing resource allocation network set is iteratively optimized based on the model update parameter information to obtain the computing resource allocation network library.
[0076] Traverse each trained recurrent neural network model in the basic computing resource allocation network set, extract the parameters of each model, including weight matrix and bias terms, etc. These parameters will be used in subsequent applications to dynamically allocate computing resources to meet the needs of different application scenarios. Store the extracted model weights and biases in the corresponding data structure, and organize the extracted model parameters to ensure that the parameters of each model can be clearly identified and used, which helps to conveniently call the corresponding parameters in practical applications.
[0077] Based on the network verification loss data set, the gradient of the weights and biases of each model is calculated, that is, the gradient of the loss function relative to these parameters is calculated. The gradient indicates the direction in which the loss function changes fastest under the current parameter value. The resource allocation network parameter gradient information is obtained through calculation.
[0078] In the back-propagation algorithm, an appropriate learning rate is selected according to the actual situation and specific needs. The learning rate determines the step size of the model parameters at each update. Too large a learning rate may lead to instability, while too small a learning rate may lead to slow convergence.
[0079] Based on the obtained gradient information, which represents the direction in the parameter space in which the parameters need to be adjusted to reduce the loss function, the weights and biases of the model are iteratively updated according to the back-propagation algorithm and the selected learning rate. This is achieved by multiplying the gradient by the learning rate and adding the result to the current parameter value.
[0080] Repeat the model parameter update steps to gradually optimize the model parameters. Each iteration will reduce the value of the loss function, making the model better adapted to the resource allocation task. After multiple iterations, the model update parameter information is obtained, including the updated weights and biases. These parameters will be used for resource allocation tasks in actual applications.
[0081] Apply the obtained model update parameter information to each model in the basic computing resource allocation network set, and retrain the updated basic computing resource allocation network set, including using new parameters for forward propagation, back propagation, and gradient descent. After training, use the validation set to verify the performance of the updated model and evaluate the performance of the model on unseen data to ensure that the updated model has better generalization ability in resource allocation tasks. If the performance verification result meets expectations, you can choose to end the iteration, otherwise you can continue to iterate and optimize, repeat the steps of applying new updated parameter information, retraining, and verifying performance until the performance of the model is good enough. After multiple iterative optimizations, the updated computing resource allocation network library is obtained. This library contains a recurrent neural network model with better performance for resource allocation tasks.
[0082] Furthermore, the method comprises:
[0083] Based on the computing power resource allocation parameter information, resource scheduling monitoring is performed on the heterogeneous GPU resource pool to obtain load task operation feedback information;
[0084] The difference between the load task running feedback information and the load task processing target is used as a computing power resource allocation incentive parameter;
[0085] Performing correlation analysis on the computing power resource allocation incentive parameters and constructing a load resource allocation control strategy;
[0086] Based on the load resource allocation control strategy, parameter optimization is performed in the computing power pool task resource allocation space to obtain computing power resource allocation optimization parameter information to perform closed-loop control of resource scheduling for the heterogeneous GPU resource pool.
[0087] Use the acquired computing power resource allocation parameter information to perform resource scheduling monitoring on the heterogeneous GPU resource pool. According to the model parameters, dynamically allocate computing power resources to meet the current load tasks and application scenarios. According to the resource scheduling monitoring, obtain feedback information on the operation of load tasks, including the load status of each GPU card, the status of running tasks, task completion time, etc.
[0088] Define the load task processing target according to the application scenario and task requirements, that is, the load task state or performance level expected to be achieved. Compare the actual load task operation feedback information with the load task processing target, and calculate the difference between them, including the load difference of each GPU card, the difference in task execution time, etc. The calculated difference is used as the computing power resource allocation incentive parameter. This parameter reflects the deviation between the current load task state and the expected target, and is used to guide the optimization direction of resource allocation. The optimization direction of resource allocation is determined based on the positive and negative and size of the incentive parameter. A positive value indicates the need to increase resources, a negative value indicates the need to reduce resources, and the size of the difference indicates the degree of optimization.
[0089] Use the computing power resource allocation incentive parameters to perform correlation analysis to understand the relationship between different parameters, including determining which incentive parameters have a greater impact on load resource allocation and the relationship between them. Based on the results of the correlation analysis, formulate a load resource allocation control strategy, which includes starting or shutting down certain GPU cards, adjusting the priority of the task queue, adjusting the resource allocation weight, etc. For example, based on the positive and negative and size of the incentive parameters, decide whether to start or shut down certain GPU cards. A positive value may indicate that computing resources need to be increased, while a negative value may indicate that some GPU cards are overloaded, and you can consider shutting some down to reduce the load; based on the size of the incentive parameters, adjust the priority of the task queue and allocate resources to tasks with larger incentive parameters to give priority to meeting the system's load task processing goals.
[0090] Use the constructed load resource allocation control strategy to perform parameter optimization in the computing power pool task resource allocation space, including using optimization algorithms such as genetic algorithms, particle swarm optimization algorithms, etc. to search and adjust the adjusted parameters to find the optimal resource allocation configuration. According to the results of parameter optimization, the optimized computing power resource allocation parameter information is obtained. These parameters are used to optimize the current resource allocation strategy.
[0091] The obtained computing resource allocation optimization parameter information is applied to the heterogeneous GPU resource pool to implement closed-loop control of resource scheduling, which ensures automatic adjustment according to real-time load conditions and goals to achieve better resource utilization and task execution performance.
[0092] While implementing closed-loop control, the operating status of the heterogeneous GPU resource pool is monitored in real time, actual load task operation feedback information is obtained, and further optimization and adjustment are made based on this information. This enables the system to dynamically adapt to different load conditions and improve the utilization efficiency and overall performance of heterogeneous GPU resources.
[0093] Furthermore, obtaining the computing power resource allocation optimization parameter information includes:
[0094] Based on the obtained computing power resource allocation optimization parameter information, similarity matching is performed in the computing power pool task resource allocation space to obtain a resource allocation parameter optimization library;
[0095] Perform data fitting according to the computing power allocation effect evaluation indicator set to construct a resource allocation parameter optimization evaluation function;
[0096] The resource allocation parameter optimization evaluation function is used to perform parameter comparison and screening in the resource allocation parameter optimization library to obtain the computing power resource allocation optimization parameter information.
[0097] The obtained computing power resource allocation optimization parameter information is matched with the information in the existing parameter library by similarity, which can be achieved by calculating the distance or similarity measurement between the parameters, such as Euclidean distance, cosine similarity, etc. Based on the similarity matching results, a resource allocation parameter optimization library is established, which contains the resource allocation optimization parameter information obtained through parameter optimization under different load conditions.
[0098] The obtained computing power allocation effect evaluation index set is fitted with the corresponding resource allocation parameters. This can be achieved through methods such as regression analysis in statistics or machine learning, with the goal of finding the relationship between the index and the parameter. Based on the results of data fitting, a resource allocation parameter optimization evaluation function is constructed. This function accepts resource allocation parameters as input and outputs an evaluation value, which indicates the optimization degree of the parameter configuration under a given load. This function can be used to evaluate the advantages and disadvantages of different resource allocation parameter configurations and provide guidance information for the dynamic allocation of computing power resources.
[0099] The obtained resource allocation parameter optimization library is used, which contains the resource allocation parameter information obtained through parameter optimization under different load conditions. Each parameter configuration in the resource allocation parameter optimization library is evaluated using the resource allocation parameter optimization evaluation function. According to the evaluation value, the parameter configuration with a higher degree of optimization is screened out. According to the screening results, the computing power resource allocation optimization parameter information is obtained. This information represents the resource allocation parameter configuration with a better degree of optimization screened out under a given load condition. These parameters are used for actual resource allocation control to improve the performance and efficiency of the system in the heterogeneous GPU resource pool.
[0100] In summary, the GPU computing power pool intelligent management method provided by the embodiment of the present application has the following technical effects:
[0101] 1. Through the recurrent neural network structure, the task resource allocation space of the computing power pool is trained and optimized, which can achieve dynamic adaptability to different load scenarios and improve resource allocation efficiency;
[0102] 2. By real-time monitoring of the operating status of heterogeneous GPU resource pools and dynamic allocation based on the target computing resource allocation network, intelligent decision-making is achieved, and GPU computing resources can be managed more intelligently;
[0103] 3. Through real-time monitoring and resource scheduling management based on computing power resource allocation parameter information, closed-loop control of resource scheduling of heterogeneous GPU resource pools is achieved, further improving the overall performance of the system.
[0104] In summary, the GPU computing power pool intelligent management method solves the problems of insufficient dynamic adaptability, lack of intelligent decision-making and unbalanced task allocation in the existing technology by introducing a recurrent neural network structure and an intelligent decision-making mechanism, and achieves the technical effect of improving resource allocation efficiency and overall performance.
[0105] Embodiment 2
[0106] Based on the same inventive concept as the method for intelligent management of GPU computing power pool in the aforementioned embodiment, Figure 2As shown, the present application provides a GPU computing power pool intelligent management system, the system comprising:
[0107] A resource information acquisition module 10, wherein the resource information acquisition module 10 is used to acquire heterogeneous computing power resource information through a heterogeneous GPU resource pool, wherein the heterogeneous computing power resource information includes computing power parameter information of GPUs of various manufacturers and models in the resource pool;
[0108] A training task acquisition module 20, wherein the training task acquisition module 20 is used to build multiple computing resource training tasks according to the GPU computing power pool application scenario information;
[0109] An allocation space construction module 30, wherein the allocation space construction module 30 is used to crawl computing power pool operation data based on the multiple computing power resource training tasks and construct a computing power pool task resource allocation space;
[0110] A training optimization module 40, wherein the training optimization module 40 is used to perform training optimization on the computing power pool task resource allocation space using a recurrent neural network structure, and obtain a target computing power resource allocation network to be deployed to the heterogeneous GPU resource pool;
[0111] A task information acquisition module 50, the task information acquisition module 50 is used to monitor the operation status information of the heterogeneous GPU resource pool in real time, and obtain the computing power pool resource load task information according to the operation status information;
[0112] The resource scheduling management module 60 is used to dynamically allocate the heterogeneous computing power resource information and the computing power pool resource load task information based on the target computing power resource allocation network, output computing power resource allocation parameter information, and perform resource scheduling management on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information.
[0113] Furthermore, the system further comprises:
[0114] A database acquisition module, wherein the database acquisition module is used to crawl the computing power pool operation data based on the multiple computing power resource training tasks to obtain a computing power pool task resource allocation database, wherein the computing power pool task resource allocation database includes historical GPU resource pool computing power parameter information, computing power pool resource load tasks, and computing power allocation effect data;
[0115] An evaluation indicator acquisition module, the evaluation indicator acquisition module is used to extract evaluation indicators from the computing power allocation effect data and determine a computing power allocation effect evaluation indicator set;
[0116] A computing power allocation effect index acquisition module, the computing power allocation effect index acquisition module is used to perform a multi-dimensional weighted evaluation on the computing power allocation effect data based on the computing power allocation effect evaluation indicator set to obtain resource pool data computing power allocation effect index information;
[0117] A resource allocation space acquisition module is used to screen and integrate the computing power pool task resource allocation database based on the computing power allocation effect index information of the resource pool data to obtain the computing power pool task resource allocation space.
[0118] Furthermore, the system further includes a resource allocation network acquisition module to perform the following operation steps:
[0119] Clustering and dividing the data information in the task resource allocation space of the computing power pool according to the application scenario information of the GPU computing power pool to obtain the computing power pool resource data clustering information result;
[0120] Classify the computing power pool resource data clustering information results to obtain a labeled computing power pool resource sample data set;
[0121] Using a recurrent neural network structure, the labeled computing power pool resource sample data sets are respectively allocated and trained to obtain a computing power resource allocation network library;
[0122] Obtain a target application scenario of the computing power pool, perform a matching call from the computing power resource allocation network library based on the target application scenario of the computing power pool, and obtain the target computing power resource allocation network.
[0123] Furthermore, the system further includes a network library acquisition module to perform the following operation steps:
[0124] Obtaining an initial hidden layer value of a recurrent neural network structure, and obtaining a model input weight matrix based on the initial hidden layer value;
[0125] Based on the labeled computing power pool resource sample data set and the model input weight matrix, the recurrent neural network structure is trained respectively to obtain a basic computing power resource allocation network set;
[0126] Define a network loss function to verify the basic computing power resource allocation network set and determine a network verification loss data set;
[0127] The basic computing power resource allocation network set is iteratively tuned based on the network verification loss data set to obtain the computing power resource allocation network library.
[0128] Furthermore, the system further includes allocating a network library acquisition module to perform the following operation steps:
[0129] Extracting model parameters from the basic computing resource allocation network set to determine model weights and model biases;
[0130] Performing gradient calculation on the model weight and model bias based on the network verification loss data set to obtain resource allocation network parameter gradient information;
[0131] Iteratively updating the model parameters based on the resource allocation network parameter gradient information by a back propagation algorithm to obtain model update parameter information;
[0132] The basic computing resource allocation network set is iteratively optimized based on the model update parameter information to obtain the computing resource allocation network library.
[0133] Furthermore, the system also includes a resource scheduling closed-loop control module to perform the following operation steps:
[0134] Based on the computing power resource allocation parameter information, resource scheduling monitoring is performed on the heterogeneous GPU resource pool to obtain load task operation feedback information;
[0135] The difference between the load task running feedback information and the load task processing target is used as a computing power resource allocation incentive parameter;
[0136] Performing correlation analysis on the computing power resource allocation incentive parameters and constructing a load resource allocation control strategy;
[0137] Based on the load resource allocation control strategy, parameter optimization is performed in the computing power pool task resource allocation space to obtain computing power resource allocation optimization parameter information to perform closed-loop control of resource scheduling for the heterogeneous GPU resource pool.
[0138] Furthermore, the system further includes an optimization parameter information acquisition module to perform the following operation steps:
[0139] Based on the obtained computing power resource allocation optimization parameter information, similarity matching is performed in the computing power pool task resource allocation space to obtain a resource allocation parameter optimization library;
[0140] Perform data fitting according to the computing power allocation effect evaluation indicator set to construct a resource allocation parameter optimization evaluation function;
[0141] The resource allocation parameter optimization evaluation function is used to perform parameter comparison and screening in the resource allocation parameter optimization library to obtain the computing power resource allocation optimization parameter information.
[0142] Through the above detailed description of a method for intelligent management of a GPU computing power pool, those skilled in the art can clearly understand a GPU computing power pool intelligent management system in this embodiment. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0143] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A GPU computing power pool intelligent management method, characterized in that: The method comprises: Obtain heterogeneous computing power resource information through a heterogeneous GPU resource pool, wherein the heterogeneous computing power resource information includes computing power parameter information of GPUs of various manufacturers and models in the resource pool; According to the application scenario information of the GPU computing power pool, build multiple computing power resource training tasks; Crawling computing pool operation data based on the multiple computing resource training tasks, and building a computing pool task resource allocation space; The task resource allocation space of the computing power pool is trained and optimized using a recurrent neural network structure, and a target computing power resource allocation network is obtained and deployed to the heterogeneous GPU resource pool, that is, the model parameters are configured into the resource pool management system; Monitor the operating status information of the heterogeneous GPU resource pool in real time, and obtain the computing power pool resource load task information according to the operating status information; Dynamically allocate the heterogeneous computing power resource information and the computing power pool resource load task information based on the target computing power resource allocation network, output computing power resource allocation parameter information, and perform resource scheduling management on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information; The construction of computing power pool task resource allocation space includes: Based on the multiple computing resource training tasks, the computing pool operation data is crawled to obtain a computing pool task resource allocation database, wherein the computing pool task resource allocation database includes historical GPU resource pool computing parameter information, computing pool resource load tasks, and computing power allocation effect data; Extracting evaluation indicators from the computing power allocation effect data to determine a computing power allocation effect evaluation indicator set; Based on the computing power allocation effect evaluation indicator set, a multi-dimensional weighted evaluation is performed on the computing power allocation effect data to obtain resource pool data computing power allocation effect index information; The computing power pool task resource allocation database is screened and integrated based on the computing power allocation effect index information of the resource pool data to obtain the computing power pool task resource allocation space.
2. The method according to claim 1, characterized in that The obtaining of the target computing power resource allocation network includes: Clustering and dividing the data information in the task resource allocation space of the computing power pool according to the application scenario information of the GPU computing power pool to obtain the computing power pool resource data clustering information result; Classify the computing power pool resource data clustering information results to obtain a labeled computing power pool resource sample data set; Using a recurrent neural network structure, the labeled computing power pool resource sample data sets are respectively allocated and trained to obtain a computing power resource allocation network library; Obtain a target application scenario of the computing power pool, perform a matching call from the computing power resource allocation network library based on the target application scenario of the computing power pool, and obtain the target computing power resource allocation network.
3. The method according to claim 2, characterized in that The obtaining of computing power resource allocation network library comprises: Obtaining an initial hidden layer value of a recurrent neural network structure, and obtaining a model input weight matrix based on the initial hidden layer value; Based on the labeled computing power pool resource sample data set and the model input weight matrix, the recurrent neural network structure is trained respectively to obtain a basic computing power resource allocation network set; Define a network loss function to verify the basic computing power resource allocation network set and determine a network verification loss data set; The basic computing power resource allocation network set is iteratively tuned based on the network verification loss data set to obtain the computing power resource allocation network library.
4. The method according to claim 3, characterized in that The obtaining of the computing resource allocation network library comprises: Extracting model parameters from the basic computing resource allocation network set to determine model weights and model biases; Performing gradient calculation on the model weight and model bias based on the network verification loss data set to obtain resource allocation network parameter gradient information; Iteratively updating the model parameters based on the resource allocation network parameter gradient information by a back propagation algorithm to obtain model update parameter information; The basic computing resource allocation network set is iteratively optimized based on the model update parameter information to obtain the computing resource allocation network library.
5. The method according to claim 1, characterized in that The method comprises: Based on the computing power resource allocation parameter information, resource scheduling monitoring is performed on the heterogeneous GPU resource pool to obtain load task operation feedback information; The difference between the load task running feedback information and the load task processing target is used as a computing power resource allocation incentive parameter; Performing correlation analysis on the computing power resource allocation incentive parameters and constructing a load resource allocation control strategy; Based on the load resource allocation control strategy, parameter optimization is performed in the computing power pool task resource allocation space to obtain computing power resource allocation optimization parameter information to perform closed-loop control of resource scheduling for the heterogeneous GPU resource pool.
6. The method according to claim 5, characterized in that The obtaining of computing power resource allocation optimization parameter information includes: Based on the obtained computing power resource allocation optimization parameter information, similarity matching is performed in the computing power pool task resource allocation space to obtain a resource allocation parameter optimization library; Perform data fitting according to the computing power allocation effect evaluation indicator set to construct a resource allocation parameter optimization evaluation function; The resource allocation parameter optimization evaluation function is used to perform parameter comparison and screening in the resource allocation parameter optimization library to obtain the computing power resource allocation optimization parameter information.
7. A GPU computing power pool intelligent management system, characterized in that: A method for intelligently managing a GPU computing power pool for implementing any one of claims 1 to 6, comprising: A resource information acquisition module, wherein the resource information acquisition module is used to acquire heterogeneous computing power resource information through a heterogeneous GPU resource pool, wherein the heterogeneous computing power resource information includes computing power parameter information of GPUs of various manufacturers and models in the resource pool; A training task acquisition module, which is used to build multiple computing resource training tasks according to the GPU computing pool application scenario information; An allocation space construction module, wherein the allocation space construction module is used to crawl computing power pool operation data based on the multiple computing power resource training tasks and construct a computing power pool task resource allocation space; A training optimization module, which is used to use a recurrent neural network structure to train and optimize the computing power pool task resource allocation space, obtain a target computing power resource allocation network and deploy it to the heterogeneous GPU resource pool, that is, configure the model parameters into the resource pool management system; A task information acquisition module, wherein the task information acquisition module is used to monitor the operation status information of the heterogeneous GPU resource pool in real time, and obtain the computing power pool resource load task information according to the operation status information; A resource scheduling management module, the resource scheduling management module is used to dynamically allocate the heterogeneous computing power resource information and the computing power pool resource load task information based on the target computing power resource allocation network, output computing power resource allocation parameter information, and perform resource scheduling management on the heterogeneous GPU resource pool based on the computing power resource allocation parameter information; Wherein, the system further comprises: A database acquisition module, wherein the database acquisition module is used to crawl the computing power pool operation data based on the multiple computing power resource training tasks to obtain a computing power pool task resource allocation database, wherein the computing power pool task resource allocation database includes historical GPU resource pool computing power parameter information, computing power pool resource load tasks, and computing power allocation effect data; An evaluation indicator acquisition module, the evaluation indicator acquisition module is used to extract evaluation indicators from the computing power allocation effect data and determine a computing power allocation effect evaluation indicator set; A computing power allocation effect index acquisition module, the computing power allocation effect index acquisition module is used to perform a multi-dimensional weighted evaluation on the computing power allocation effect data based on the computing power allocation effect evaluation indicator set to obtain resource pool data computing power allocation effect index information; A resource allocation space acquisition module is used to screen and integrate the computing power pool task resource allocation database based on the computing power allocation effect index information of the resource pool data to obtain the computing power pool task resource allocation space.
