A method, device and storage medium for reducing energy consumption of AI computing cluster

By dynamically adjusting the clock frequency and target parameters of the AI ​​acceleration chip, the problem of energy waste in the AI ​​computing cluster due to the barrel effect is solved and the overall energy efficiency is improved.

CN118259716BActive Publication Date: 2024-09-06CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410353844.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-09-06
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

When the AI ​​computing power cluster performs AI calculations, the barrel effect causes the entire cluster to idle ineffectively, increasing energy consumption and causing energy waste.

Method used

By dynamically adjusting the clock frequency of the AI ​​acceleration chip, multiple AI acceleration chips are dispatched according to the needs of the computing tasks, and through distributed computing, the energy consumption optimal clock frequency and target parameters of each target AI computing power server are obtained for fine-tuning and refinement Adjustment enables the network status between various AI computing servers to dynamically adjust the clock frequency.

Benefits of technology

It achieves matching of differentiated and appropriate clock frequencies for different computing tasks, improves the utilization rate of the AI ​​computing power server, and reduces the total energy consumption of the AI ​​computing power cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118259716B
    Figure CN118259716B
Patent Text Reader

Abstract

This invention provides a method, apparatus, and storage medium for reducing energy consumption in AI computing power clusters. The method includes: distributing multiple AI acceleration chips to a computing task based on the AI ​​computing power required for the task; identifying at least one target AI computing power server requiring energy-saving management from multiple AI computing power servers; obtaining the optimal operating clock frequency of the AI ​​acceleration chip for each target AI computing power server using distributed computing, thus obtaining a rough estimate of the clock frequency; for each target AI computing power server, obtaining the target parameters for the AI ​​acceleration chip corresponding to the AI ​​model to be computed in the computing task when the single-card energy consumption is lowest, and fine-tuning the rough estimate based on the target parameters to obtain a fine-tuned estimate. This method, apparatus, and storage medium can solve the problem that existing AI computing power clusters may experience ineffective idling, increased energy consumption, and energy waste due to the "weakest link" effect when performing AI calculations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device and storage medium for reducing energy consumption of an AI computing cluster. Background Art

[0002] The current AI (Artificial Intelligence) computing power consumes huge amounts of energy. During the AI ​​model calculation process, it is necessary to fine-tune the AI ​​computing power consumption to avoid unnecessary energy waste.

[0003] When executing AI calculations, the current AI model mainly uses AI acceleration chips to complete the calculations in parallel, that is, splitting an AI model into a large cluster containing multiple AI acceleration chips to perform calculations simultaneously and communicating the calculation process through the communication lossless optical cable in the middle. Since the AI ​​computing power cluster includes multiple AI acceleration chips with different computing capabilities, different unit time power, and different operating energy efficiency, some AI acceleration chips have fast computing speeds but high power consumption, while some AI acceleration chips have slow computing speeds but low power consumption, which makes the energy consumption control of the AI ​​computing power cluster more complicated. At the same time, it is possible that some AI acceleration chips with the slowest computing speed and low operating energy efficiency in a cluster will extend the computing time to varying degrees, and most of the AI ​​acceleration chips with fast computing speed and in the middle will idle and wait for the slow AI acceleration chip, resulting in energy waste of equipment idling. Therefore, for diversified and cross-regional AI computing power clusters, the whole cluster may idle ineffectively due to the barrel effect (such as slow computing speed and low operating energy efficiency of a single AI acceleration chip server), increasing energy consumption and thus causing energy waste. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method, device and storage medium for reducing the energy consumption of an AI computing power cluster in response to the above-mentioned deficiencies in the prior art, so as to solve the problem that when performing AI calculations, the existing AI computing power cluster may idle ineffectively, consume more energy, and thus waste energy due to the barrel effect.

[0005] In a first aspect, the present invention provides a method for reducing energy consumption of an AI computing cluster, the method comprising:

[0006] Dispatching multiple AI acceleration chips for the computing task according to the AI ​​computing power required by the computing task, wherein the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster;

[0007] Obtain at least one target AI computing server that requires energy-saving control from multiple AI computing servers;

[0008] Obtaining, by means of distributed computing, the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the at least one target AI computing power server, and obtaining a rough estimate of the clock frequency;

[0009] For each of the target AI computing power servers, obtain the target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and fine-tune the rough estimate according to the target parameters to obtain a fine-tuned estimate;

[0010] adjusting the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the refined estimation, and enabling each of the target AI computing power servers to train the AI ​​model to be calculated; and,

[0011] During the process of each of the target AI computing power servers training the AI ​​model to be calculated, the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server is dynamically adjusted according to the network status between the target AI computing power servers.

[0012] Furthermore, the step of allocating multiple AI acceleration chips to the computing task according to the AI ​​computing power required by the computing task specifically includes:

[0013] Evaluate the AI ​​computing power required for the computing task based on the AI ​​model to be calculated and the data to be trained in the computing task;

[0014] The number of AI acceleration chips to be distributed is estimated based on the AI ​​computing power required for the computing task;

[0015] A plurality of AI acceleration chips corresponding to the number are dispatched to the computing task.

[0016] Furthermore, the evaluating the AI ​​computing power required for the computing task according to the AI ​​model to be calculated and the data to be trained in the computing task specifically includes:

[0017] The AI ​​computing power required for the computing task is evaluated based on the algorithm classification and complexity of the AI ​​model to be calculated and the size of the data set corresponding to the data to be trained.

[0018] Furthermore, obtaining at least one target AI computing power server that needs energy-saving control from multiple AI computing power servers specifically includes:

[0019] At least one target AI computing power server requiring energy-saving control is obtained according to the temperature of each AI computing power server among the multiple AI computing power servers.

[0020] Further, obtaining at least one target AI computing server that requires energy-saving control according to the temperature of each AI computing server among the multiple AI computing servers specifically includes:

[0021] Receiving the temperature reported by the monitoring plug-in in each of the AI ​​computing power servers;

[0022] An AI computing power server whose temperature among the multiple AI computing power servers is greater than or equal to a preset temperature threshold is determined as at least one target AI computing power server that requires energy-saving control.

[0023] Furthermore, obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server in the distributed computing mode to obtain a rough estimate of the clock frequency specifically includes:

[0024] Acquire a small amount of data from the data to be trained in the computing task as a first training data set;

[0025] For each of the target AI computing power servers, the first training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively pre-train the AI ​​model to be calculated at different clock frequencies;

[0026] Obtain the pre-training energy consumption of the multiple AI acceleration chips of each of the target AI computing power servers during the pre-training process, and select the clock frequency corresponding to the AI ​​acceleration chip with the lowest pre-training energy consumption as the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the target AI computing power servers, to obtain a rough estimate of the clock frequency.

[0027] Furthermore, the obtaining of the pre-training energy consumption of the plurality of AI acceleration chips of each of the target AI computing power servers during the pre-training process specifically includes:

[0028] For each of the target AI computing power servers, the unit time power and overall computing time of the multiple AI acceleration chips in the target AI computing power server during the pre-training process are obtained, and the pre-training energy consumption of the multiple AI acceleration chips at different clock frequencies are calculated based on the unit time power and the overall computing time.

[0029] Furthermore, after obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server by means of distributed computing and obtaining a rough estimate of the clock frequency, the method further includes:

[0030] The rough estimates of the clock frequencies corresponding to the target AI computing power servers are respectively sent to the corresponding target AI computing power servers, so that the target AI computing power servers adjust the clock frequencies of the AI ​​acceleration chips on the target AI computing power servers according to the rough estimates.

[0031] Furthermore, the target parameters include a data set batch size, a number of threads for reading data in parallel, and a learning rate;

[0032] The obtaining of the target parameters when the energy consumption of a single AI acceleration chip card corresponding to the AI ​​model to be calculated in the computing task is the lowest specifically includes:

[0033] Acquire a small amount of data from the data to be trained in the computing task as a second training data set;

[0034] The second training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively use different data set batch sizes, numbers of threads for reading data in parallel, and learning rates to pre-train the AI ​​model to be calculated until the data set batch size, number of threads for reading data in parallel, and learning rate are found when the energy consumption of a single AI acceleration chip is the lowest.

[0035] Further, the fine-tuning the rough estimate according to the target parameter to obtain a fine-tuned fine estimate specifically includes:

[0036] Compare the dataset batch size, number of threads reading data in parallel, and learning rate corresponding to the rough estimate of the clock frequency with the dataset batch size, number of threads reading data in parallel, and learning rate when the energy consumption of a single AI accelerator chip is the lowest;

[0037] Determining whether fine-tuning is required according to the comparison result;

[0038] In response to the need for fine-tuning, the rough estimate is fine-tuned according to the batch size of the data set, the number of threads reading data in parallel, and the learning rate when the energy consumption of the AI ​​acceleration chip single card is lowest, to obtain a fine estimate after fine-tuning.

[0039] Furthermore, dynamically adjusting the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each of the target AI computing power servers specifically includes:

[0040] By constructing a topology map of the target AI computing power server, a topology map calculation is performed on the network status parameters of the target AI computing power server to obtain the target AI computing power server that needs to be optimized;

[0041] Dynamically adjust the clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized.

[0042] Furthermore, the target AI computing server topology map constructed by the method performs topology map calculation on the network status parameters of the target AI computing server to obtain the target AI computing server to be optimized, specifically including:

[0043] Taking each of the target AI computing servers as a node, taking the network link relationship between each of the target AI computing servers as an edge, and taking the network status parameters between each of the target AI computing servers as the attributes of the corresponding edge to construct a target AI computing server topology graph;

[0044] All adjacent target AI computing power servers whose network status parameters in the target AI computing power server topology diagram are greater than a preset parameter threshold are determined as target AI computing power servers that need to be optimized.

[0045] Furthermore, the network status parameter includes a round-trip delay RRT, and / or an available bandwidth, and / or a packet loss rate. The determining of all adjacent target AI computing servers whose network status parameters in the target AI computing power server topology map are greater than a preset parameter threshold as target AI computing power servers that need to be optimized specifically includes:

[0046] All adjacent target AI computing power servers in the target AI computing power server topology map whose RRT is greater than or equal to the preset RRT parameter threshold, and / or whose available bandwidth is greater than or equal to the preset available bandwidth parameter threshold, and / or whose packet loss rate is greater than or equal to the preset packet loss rate parameter threshold are determined as target AI computing power servers that need to be optimized.

[0047] Furthermore, the dynamically adjusting the clock frequency of the AI ​​acceleration chip on the target AI computing server that needs to be optimized specifically includes:

[0048] Constructing the A matrix based on the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the corresponding fine estimation of each node;

[0049] Construct an X matrix according to the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the attributes of the corresponding edges;

[0050] Obtaining an optimized estimated value of the clock frequency according to the A matrix and the X matrix;

[0051] The clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized is dynamically adjusted according to the optimization estimate.

[0052] Further, obtaining an optimized estimated value of the clock frequency according to the A matrix and the X matrix specifically includes:

[0053] The optimized estimate of the clock frequency is calculated using the following formula:

[0054] F final =maxout(A*Relu(A*XW)W)

[0055] Among them, F final represents the optimized estimated value of the clock frequency, maxout and Relu represent mathematical functions, A represents the A matrix, X represents the X matrix, and W represents the weight matrix.

[0056] In a second aspect, the present invention provides a device for reducing energy consumption of an AI computing cluster, comprising:

[0057] An acceleration chip dispatching module, used to dispatch multiple AI acceleration chips for a computing task according to the AI ​​computing power required by the computing task, wherein the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster;

[0058] An energy-saving control grouping module, connected to the acceleration chip dispatching module, for obtaining at least one target AI computing power server requiring energy-saving control from a plurality of AI computing power servers;

[0059] A rough estimation module, connected to the energy-saving control grouping module, is used to obtain the AI ​​acceleration chip operating clock frequency with the best energy consumption of each of the at least one target AI computing power server through distributed computing, and obtain a rough estimate of the clock frequency;

[0060] A fine estimation module, connected to the rough estimation module, for obtaining, for each of the target AI computing power servers, the target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and fine-tuning the rough estimation according to the target parameters to obtain a fine estimation after fine-tuning;

[0061] A fine adjustment module, connected to the fine estimation module, for adjusting the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the fine estimation, and enabling each of the target AI computing power servers to train the AI ​​model to be calculated;

[0062] A dynamic adjustment module is connected to the fine adjustment module and is used to dynamically adjust the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each target AI computing power server during the process of each target AI computing power server training the AI ​​model to be calculated.

[0063] In a third aspect, the present invention provides a device for reducing the energy consumption of an AI computing power cluster, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the method for reducing the energy consumption of an AI computing power cluster as described in the first aspect above.

[0064] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for reducing the energy consumption of an AI computing power cluster as described in the first aspect above is implemented.

[0065] The present invention provides a method, device and storage medium for reducing the energy consumption of an AI computing power cluster. First, multiple AI acceleration chips are dispatched for the computing task according to the AI ​​computing power required by the computing task. The multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster. Then, at least one target AI computing power server that needs energy-saving control is obtained from the multiple AI computing power servers. The operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the at least one target AI computing power server is obtained through distributed computing to obtain a rough estimate of the clock frequency. Then, for each of the target AI computing power servers, the operating clock frequency of the AI ​​acceleration chip with the best energy consumption is obtained. The target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and the rough estimate is fine-tuned according to the target parameters to obtain a fine-tuned fine estimate; and the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers is adjusted according to the fine estimate, and each of the target AI computing power servers is trained on the AI ​​model to be calculated; finally, in the process of each of the target AI computing power servers training the AI ​​model to be calculated, the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server is dynamically adjusted according to the network status between each of the target AI computing power servers. The present invention can match differentiated and appropriate AI acceleration chip clock frequencies for different computing tasks, improve the utilization rate of AI computing power servers, and minimize the total energy consumption of the AI ​​computing power cluster as a whole. It solves the problem that the existing AI computing power cluster may idle ineffectively, increase energy consumption, and thus waste energy due to the barrel effect when performing AI calculations. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 This is a flow chart of a method for reducing energy consumption of an AI computing cluster according to Embodiment 1 of the present invention;

[0067] Figure 2 This is a schematic diagram of the structure of the target AI computing power server topology diagram of an embodiment of the present invention;

[0068] Figure 3This is a scene diagram of a method for reducing energy consumption of an AI computing cluster according to an embodiment of the present invention;

[0069] Figure 4 This is a schematic diagram of the structure of a device for reducing energy consumption of an AI computing cluster according to Embodiment 2 of the present invention;

[0070] Figure 5 This is a schematic diagram of the structure of a device for reducing the energy consumption of an AI computing cluster according to Example 3 of the present invention. DETAILED DESCRIPTION

[0071] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0072] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.

[0073] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.

[0074] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0075] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.

[0076] Application Overview

[0077] At present, the IT system hardware of AI computing power cluster mainly includes CPU (central processing unit), memory, AI acceleration chip, and communication lines between multiple AI computing power servers, etc. The current hardware equipment energy saving will also consider using "frequency reduction" to reduce the operating speed of the equipment. For example, air conditioners or servers will use frequency reduction and frequency conversion technology to save energy. However, there is no relevant solution for the frequency conversion method of AI acceleration chips. One method that can be easily associated is: the clock frequency of a single AI acceleration chip can only be simply reduced through human intervention. After the clock frequency is reduced, the calculation rate of the AI ​​acceleration chip will indeed be reduced, and the unit time power of a single AI acceleration chip will also be reduced accordingly, so that the CPU can wait for data to be loaded from the memory to the AI ​​acceleration chip for AI calculation, or when the number of threads for batch or parallel reading of data in the data set is small, the AI ​​acceleration chip runs slower after the clock frequency changes, so the speed of data handling, transmission and data calculation can be coordinated, avoiding the AI ​​acceleration chip waiting for data handling and data transmission in vain but unable to perform data calculation, resulting in energy waste caused by idling.

[0078] However, when performing AI calculations, the current AI models mainly use AI acceleration chips to complete the calculations in parallel. That is, an AI model is split into a large cluster containing multiple AI acceleration chips for simultaneous calculations and the calculation process is communicated through the lossless optical cable in the middle. This is different from the previous adjustment of a single air conditioner or a single server's clock frequency, because the AI ​​computing power cluster includes multiple AI acceleration chips with different computing capabilities, different unit time power, and different operating energy efficiency. Some AI acceleration chips have fast computing speeds but high power consumption, while some AI acceleration chips have slow computing speeds but low power consumption. The energy consumption control of the AI ​​computing power cluster will inevitably be more complicated. At the same time, it is possible that some of the AI ​​acceleration chips with the slowest computing speed and low energy efficiency in a cluster will prolong the computing time to varying degrees, and most of the AI ​​acceleration chips with fast computing speed and in the middle will idle waiting for the slow AI acceleration chip, causing energy waste of equipment idling. Therefore, it is impossible to use the existing easy-to-think-of frequency reduction and frequency conversion technology to control the energy consumption of each AI acceleration chip. However, for diversified and cross-regional AI computing power clusters, the barrel effect (such as slow computing speed and low energy efficiency of a single AI acceleration chip server) may cause the entire cluster to idle ineffectively, increase energy consumption, and thus cause energy waste.

[0079] In response to the above technical problems, the idea of ​​this application is to provide a method, device and storage medium for reducing the energy consumption of AI computing power clusters. By dynamically adjusting the clock frequency of AI acceleration chips to optimize the energy consumption of AI computing power servers, it is possible to match differentiated and appropriate AI acceleration chip clock frequencies for different computing tasks, thereby improving the utilization rate of AI computing power servers and minimizing the overall energy consumption of the AI ​​computing power cluster.

[0080] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0081] Embodiment 1:

[0082] This embodiment provides a method for reducing the energy consumption of an AI computing cluster. Figure 1 As shown, the method includes:

[0083] Step S101: dispatching a plurality of AI acceleration chips for the computing task according to the AI ​​computing power required for the computing task, wherein the plurality of AI acceleration chips are located on a plurality of AI computing power servers in the AI ​​computing power cluster.

[0084] In this embodiment, the computing task includes the AI ​​model to be calculated and the data to be trained, and the AI ​​acceleration chip may be, for example, a GPU (graphics processing unit), an NPU (Neural network Processing Unit), and the like.

[0085] It should be noted that the method for reducing the energy consumption of an AI computing power cluster provided in this embodiment can be applied to an AI computing power energy-saving management platform. When the current user sends the AI ​​model to be calculated (such as a CHATGPT model, a YOLO model, an OGB model) and the data to be trained (pictures, videos or original data) to the AI ​​computing power energy-saving management platform, the AI ​​computing power energy-saving management platform dispatches multiple AI acceleration chips for the computing task according to the AI ​​computing power required for the computing task, so that the AI ​​model to be calculated can be loaded on these AI acceleration chips for calculation.

[0086] Optionally, the dispatching of multiple AI acceleration chips to the computing task according to the AI ​​computing power required by the computing task specifically includes:

[0087] Evaluate the AI ​​computing power required for the computing task based on the AI ​​model to be calculated and the data to be trained in the computing task;

[0088] The number of AI acceleration chips to be distributed is estimated based on the AI ​​computing power required for the computing task;

[0089] A plurality of AI acceleration chips corresponding to the number are dispatched to the computing task.

[0090] In this embodiment, the AI ​​computing power energy-saving management platform first evaluates the required AI computing power for the AI ​​model to be calculated and the data to be trained. Specifically, the AI ​​computing power required for the computing task can be evaluated according to the algorithm classification and complexity of the AI ​​model to be calculated and the size of the data set corresponding to the data to be trained. For example, it is determined whether the number of parameters required to be trained for the AI ​​model to be calculated is in the tens of millions, hundreds of millions, or millions, and whether the data set size is in the M level or G level. It is also possible to estimate how many AI acceleration chips are required for the computing power of the current AI model calculation task based on historical data and experience (for example, 20480TFLOPS corresponds to 64 AI acceleration chips) or specific functions. Assume that this step allocates X1 AI acceleration chips to a certain AI model (such as the CHATGPT model), and these X1 AI acceleration chips are distributed on X2 AI computing power servers, for example, X1=48, X2=6, that is, these 6 AI computing power servers undertake the training of the CHATGPT model, and each AI computing power server includes 8 AI acceleration chips, 1 CPU, and 1 memory.

[0091] Step S102: Obtain at least one target AI computing power server that requires energy-saving control from multiple AI computing power servers.

[0092] Specifically, at least one target AI computing power server requiring energy-saving control can be obtained according to the temperature of each AI computing power server among the multiple AI computing power servers.

[0093] In this embodiment, each AI acceleration chip in the AI ​​computing power cluster is installed with a monitoring plug-in, which can obtain the temperature T, clock frequency F, power per unit time P, etc. of each AI acceleration chip. The T\F\P monitored by the monitoring plug-in should be uploaded to the AI ​​computing power energy-saving management platform in real time. The monitoring plug-in can also monitor the network status between cross-domain AI computing power servers. The network status includes but is not limited to RRT (Round-Trip Time, round-trip delay) t or available bandwidth b or packet loss rate size l), and the t\b\l monitored by the monitoring plug-in is also uploaded to the AI ​​computing power energy-saving management platform in real time.

[0094] Optionally, acquiring at least one target AI computing server requiring energy-saving control according to the temperature of each AI computing server among the multiple AI computing servers specifically includes:

[0095] Receiving the temperature reported by the monitoring plug-in in each of the AI ​​computing power servers;

[0096] An AI computing power server whose temperature among the multiple AI computing power servers is greater than or equal to a preset temperature threshold is determined as at least one target AI computing power server that requires energy-saving control.

[0097] In this embodiment, when the number of AI computing power servers is X2, the monitoring plug-in needs to monitor the temperature T of the X2 AI computing power servers and report it to the AI ​​computing power energy-saving management platform. The AI ​​computing power energy-saving management platform determines whether the temperature T of each AI computing power server among the X2 AI computing power servers is too high. If X3 AI computing power servers (X3<=X2) exceed the temperature threshold, it means that these X3 AI computing power servers will require more energy consumption to cool them down, and at the same time require more energy consumption to dissipate heat themselves, thereby generating unnecessary energy waste. Then, the AI ​​computing power energy-saving management platform will group the X2 AI computing power servers, and group the X3 AI computing power servers whose AI computing power server temperatures are greater than or equal to the temperature threshold into a group so as to adjust their clock frequencies. For another group of AI computing power servers, a total of (X2-X3) servers, the clock frequency is not controlled and they run at the original clock frequency.

[0098] It should be noted that the management of energy-saving grouping of AI computing power servers is real-time and dynamic. As long as the temperature T is detected to be higher than the temperature threshold, the AI ​​computing power server will be included in the energy-saving control group so that its clock frequency can be adjusted to achieve energy saving.

[0099] Step S103: Obtain the AI ​​acceleration chip operating clock frequency with optimal energy consumption of each of the at least one target AI computing power server through distributed computing, and obtain a rough estimate of the clock frequency.

[0100] In this embodiment, distributed computing is performed on the AI ​​model to be calculated to find the AI ​​acceleration chip operating clock frequency with the best energy consumption, so as to obtain a rough estimate of the clock frequency.

[0101] Optionally, obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server by means of distributed computing to obtain a rough estimate of the clock frequency specifically includes:

[0102] Acquire a small amount of data from the data to be trained in the computing task as a first training data set;

[0103] For each of the target AI computing power servers, the first training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively pre-train the AI ​​model to be calculated at different clock frequencies;

[0104] Obtain the pre-training energy consumption of the multiple AI acceleration chips of each of the target AI computing power servers during the pre-training process, and select the clock frequency corresponding to the AI ​​acceleration chip with the lowest pre-training energy consumption as the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the target AI computing power servers, to obtain a rough estimate of the clock frequency.

[0105] It should be noted that in order to save time, the present invention uses a method of searching for optimal clock frequencies in parallel using multiple AI acceleration chips, that is, different AI acceleration chips are selected on the same target AI computing power server for pre-training of a small amount of data, rather than placing them all on one AI acceleration chip for pre-training. For example, assuming that each target AI computing power server has 8 AI acceleration chips, and each AI acceleration chip has 8 different available clock frequencies, then the 8 AI acceleration chips run at different clock frequencies, which is equivalent to each AI acceleration chip being responsible for one clock frequency, and if each AI acceleration chip has 10 different available clock frequencies, it is equivalent to having 2 AI acceleration chips test the pre-training energy consumption corresponding to the second round of clock frequencies.

[0106] In this embodiment, assuming that the number of target AI computing power servers that need energy-saving control is X3, the AI ​​computing power energy-saving management platform first obtains the reference clock frequency of each AI acceleration chip in the X3 target AI computing power servers, and then reads a small amount of original data to be trained (such as an epoach data) from the memory to pre-train the AI ​​model. These small amounts of original data will be distributed to multiple AI acceleration chips of the same target AI computing power server, so that different AI acceleration chips in the same target AI computing power server each run at a different clock frequency to perform an epoach operation (that is, a round of operation) on the AI ​​model to be calculated. During the pre-training process, the AI ​​computing power energy-saving management platform will calculate the pre-training energy consumption of these AI acceleration chips, and select the clock frequency corresponding to the AI ​​acceleration chip with the lowest pre-training energy consumption from each target AI computing power server as the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the target AI computing power servers, and obtain a rough estimate of the clock frequency.

[0107] Optionally, obtaining the pre-training energy consumption of the plurality of AI acceleration chips of each of the target AI computing power servers during the pre-training process specifically includes:

[0108] For each of the target AI computing power servers, the unit time power and overall computing time of the multiple AI acceleration chips in the target AI computing power server during the pre-training process are obtained, and the pre-training energy consumption of the multiple AI acceleration chips at different clock frequencies are calculated based on the unit time power and the overall computing time.

[0109] Specifically, during the pre-training process, the AI ​​acceleration chip monitoring plug-in monitors the power per unit time P and the overall computing time t of these AI acceleration chips, and calculates an epoach overall computing time t according to the power per unit time P of the AI ​​acceleration chip returned by each AI acceleration chip, and reports it to the AI ​​computing power energy saving management platform. In this pre-training, the batch size of the data set for a single calculation of the AI ​​model to be calculated, the number of threads for reading data in parallel, and the learning rate are temporarily set as an initial estimate. For example, the initial estimate of the batch size of the data set for a single calculation is A, the initial estimate of the number of threads for reading data in parallel is B, and the initial estimate of the learning rate is C. ABC can be given based on historical data or empirical values. For example, for a model with a data volume greater than 10G, the batch size of the data set for a single calculation is A=1024, and for a model with a data volume less than 1G, the batch size of the data set for a single calculation is A=64. When the number of parameters of the AI ​​model to be calculated exceeds 100 million, the corresponding number of threads for reading data in parallel B should be greater than 8. When the number of parameters of the AI ​​model is less than 2 million, the corresponding number of threads for reading data in parallel B should be less than 4.

[0110] Specifically, the AI ​​computing power energy saving management platform estimates the pre-training energy consumption when the AI ​​acceleration chip runs at different clock frequencies based on the reported power per unit time P of the AI ​​acceleration chip and the overall computing time t of an epoach. The pre-training energy consumption is calculated by integrating the function of the power per unit time P of the AI ​​acceleration chip over the overall computing time t, that is, using the formula: Calculated.

[0111] For example, the pre-selected 500M data was used for AI model training. It ran for 200s under AI accelerator chip No. 3 (working at 1140HZ). The power per unit time of AI accelerator chip P = [305W, 307W, 279W, 356W.......], and the power integration result of AI accelerator chip No. 3 in these 200S was 16.7kwh. It ran for 150s under AI accelerator chip No. 7 (working at 1890HZ). The power per unit time of AI accelerator chip P = [355W, 367W, 379W, 356W.......], and the integration result of the power per unit time P of AI accelerator chip No. 7 in these 150s was 19.8kwh. By comparison, AI accelerator chip No. 3 with low clock frequency takes a long time but has low overall energy consumption. After testing multiple AI acceleration chips at different clock frequencies, the AI ​​computing power energy-saving management platform can derive the clock frequency with optimal energy consumption for each target AI computing power server (because the AI ​​acceleration chips in each target AI computing power server may be of different models), and use the clock frequency with optimal energy consumption for each target AI computing power server as a rough estimate of the clock frequency of the corresponding target AI computing power server.

[0112] Optionally, after obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server in the distributed computing mode and obtaining a rough estimate of the clock frequency, the method further includes:

[0113] The rough estimates of the clock frequencies corresponding to the target AI computing power servers are respectively sent to the corresponding target AI computing power servers, so that the target AI computing power servers adjust the clock frequencies of the AI ​​acceleration chips on the target AI computing power servers according to the rough estimates.

[0114] In this embodiment, for each target AI computing power server, the AI ​​computing power energy-saving management platform sends the clock frequency with optimal energy consumption (i.e., a rough estimate of the clock frequency) to all AI acceleration chips in the target AI computing power server, and controls the clock frequency of these AI acceleration chips to change. For example, the clock frequency of the eight AI acceleration chips in the original target AI computing power server No. 2 is 1560HZ, which is changed to 1140HZ after receiving the optimal clock frequency for energy consumption; the clock frequency of the AI ​​acceleration chip in the original target AI computing power server No. 4 is 1890HZ, which is changed to 1544HZ after receiving the optimal clock frequency for energy consumption.

[0115] Step S104: For each of the target AI computing power servers, obtain the target parameters when the energy consumption of a single AI acceleration chip corresponding to the AI ​​model to be calculated in the computing task is the lowest, and fine-tune the rough estimate according to the target parameters to obtain a fine estimate after fine-tuning.

[0116] In this embodiment, different AI models may have different performances when running at the same clock frequency. For example, some AI models have better energy efficiency when running at a clock frequency of 1140HZ, while another AI model may not have good energy efficiency when running at a clock frequency of 1140HZ. Therefore, in addition to coarse adjustment of the clock frequency, fine adjustment of the clock frequency is also required according to the characteristics of the AI ​​model.

[0117] Optionally, the target parameters include a data set batch size, a number of threads for reading data in parallel, and a learning rate;

[0118] The obtaining of the target parameters when the energy consumption of a single AI acceleration chip card corresponding to the AI ​​model to be calculated in the computing task is the lowest specifically includes:

[0119] Acquire a small amount of data from the data to be trained in the computing task as a second training data set;

[0120] The second training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively use different data set batch sizes, numbers of threads for reading data in parallel, and learning rates to pre-train the AI ​​model to be calculated until the data set batch size, number of threads for reading data in parallel, and learning rate are found when the energy consumption of a single AI acceleration chip is the lowest.

[0121] In this embodiment, the AI ​​computing power energy saving management platform reads a small amount of raw data to be trained from the memory to pre-train the AI ​​model. These small amounts of raw data will be distributed to multiple AI acceleration chips of the same target AI computing power server for pre-training. However, this pre-training is different from the previous pre-training in that the batch size of the data set, the number of threads reading data in parallel, and the learning rate of the AI ​​model will no longer be fixed to ABC, but will be dynamically adjusted to obtain the optimal ABC, and the rough estimate of the clock frequency obtained above will also be jointly dynamically adjusted. Multiple AI acceleration chips of the same target AI computing power server pre-train the AI ​​model, and the batch size of the data set for a single calculation, the number of threads reading data in parallel, and the learning rate used are all different, until the single calculation data set batch size, the number of threads reading data in parallel, and the learning rate combination are found when the energy consumption of the AI ​​acceleration chip single card is the lowest. For example, when the batch size of the single calculation data set A*=4096, the number of threads reading data in parallel B*=6, and the learning rate C*=1.0, the AI ​​acceleration chip trains the AI ​​model to be calculated with the lowest energy consumption. The calculation method of the energy consumption of a single AI acceleration chip can refer to the above steps. The AI ​​computing power energy-saving management platform calculates the overall computing time t of an epoach based on the reported power per unit time P of the AI ​​acceleration chip to estimate the energy consumption when the AI ​​acceleration chip runs at the roughly adjusted clock frequency.

[0122] Optionally, fine-tuning the rough estimate according to the target parameter to obtain a fine-tuned fine estimate specifically includes:

[0123] Compare the dataset batch size, number of threads reading data in parallel, and learning rate corresponding to the rough estimate of the clock frequency with the dataset batch size, number of threads reading data in parallel, and learning rate when the energy consumption of a single AI accelerator chip is the lowest;

[0124] Determining whether fine-tuning is required according to the comparison result;

[0125] In response to the need for fine-tuning, the rough estimate is fine-tuned according to the batch size of the data set, the number of threads reading data in parallel, and the learning rate when the energy consumption of the AI ​​acceleration chip single card is lowest, to obtain a fine estimate after fine-tuning.

[0126] In this embodiment, the single calculation data set batch size A*, the number of threads B* for reading data in parallel, and the learning rate C* corresponding to the lowest energy consumption of a single AI acceleration chip card are compared with the data set batch size A, the number of threads B for reading data in parallel, and the learning rate C corresponding to a rough estimate of the clock frequency. If the deviations of A*, B*, and C* from A, B, and C are large, it is necessary to fine-tune the rough estimate of the clock frequency. If the deviations from A, B, and C are small, no fine-tuning is required.

[0127] A specific clock frequency fine-tuning method (for example but not limited to) may be: when A* / A is greater than threshold interval 1, or B* / B is greater than threshold interval 2, or C* / C is greater than threshold interval 3, for example, 4096 / 1024 exceeds the threshold interval [0.5, 2], or 256 / 1024 exceeds the threshold interval [0.5, 2], it is necessary to fine-tune the rough estimate of the clock frequency 1140HZ, and the fine-tuning formula (for example but not limited to) is:

[0128] F new =F+log max F / F (A * / A-max / min(threshold interval 1)]+log max F / F (B * / B-max / min(threshold interval 2)]+log max F / F (C * / C-max / min(threshold interval 3)]

[0129] Among them, max F refers to the maximum clock frequency of the AI ​​accelerator chip, such as 1890HZ, F refers to a rough estimate of the clock frequency, max / min (threshold interval 1) means the maximum value of threshold interval 1 divided by the minimum value, and so on. F new It is the refined estimate after fine-tuning.

[0130] Step S105: Adjust the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the refined estimation, and enable each of the target AI computing power servers to train the AI ​​model to be calculated.

[0131] In this embodiment, a small amount of data is used for pre-training to obtain a fine estimate of the clock frequency F new After that, the clock frequency of the AI ​​acceleration chip of each target AI computing server can be adjusted to F new , the remaining large amount of data can be used new To conduct training.

[0132] Step S106: During the process of each of the target AI computing power servers training the AI ​​model to be calculated, the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server is dynamically adjusted according to the network status between the target AI computing power servers.

[0133] Optionally, dynamically adjusting the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each of the target AI computing power servers specifically includes:

[0134] By constructing a topology map of the target AI computing power server, a topology map calculation is performed on the network status parameters of the target AI computing power server to obtain the target AI computing power server that needs to be optimized;

[0135] Dynamically adjust the clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized.

[0136] It should be noted that the above pre-training process is to adjust the clock frequency of the AI ​​acceleration chip when the entire AI model to be calculated is assigned to a single AI acceleration chip, ensuring that the energy consumption can be reduced if the entire AI model is trained on a single AI acceleration chip. However, in the actual training process, the entire AI model is divided into multiple AI acceleration chips of multiple AI computing power servers for distributed parallel training. Therefore, in addition to considering the clock frequency of a single AI acceleration chip AI computing power server, it is also necessary to jointly estimate the cluster communication of multiple AI computing power servers: considering the impact of network latency, congestion and routing efficiency on the computing efficiency of AI acceleration chips between different target AI computing power servers, if the computing power calculated by the AI ​​acceleration chip does not match the network for transmitting data, it will appear that target AI computing power server No. 1 and target AI computing power server No. 3 have completed the calculation, but due to network congestion, the calculation results of target AI computing power servers No. 1 and No. 3 cannot communicate and interact quickly, resulting in resource waste in the process of waiting in line for network resources to transmit these data. For example, if the network is congested, it takes 3 minutes to transmit the calculation results of the target AI computing server. However, when the clock frequency of the target AI computing server is adjusted to 1140HZ, it only takes 1 minute to complete the calculation. Therefore, 3 minutes of waiting - 1 minute of calculation = 2 minutes of data idle period. Therefore, F new Further adjustment. The present invention adjusts F according to the network status new Make dynamic adjustments.

[0137] Optionally, the constructing a topology map of the target AI computing server and performing topology map calculation on the network status parameters of the target AI computing server to obtain the target AI computing server to be optimized specifically includes:

[0138] Taking each of the target AI computing servers as a node, taking the network link relationship between each of the target AI computing servers as an edge, and taking the network status parameters between each of the target AI computing servers as the attributes of the corresponding edge to construct a target AI computing server topology graph;

[0139] All adjacent target AI computing power servers whose network status parameters in the target AI computing power server topology diagram are greater than a preset parameter threshold are determined as target AI computing power servers that need to be optimized.

[0140] In this embodiment, the network status parameters include round trip time RRT, and / or available bandwidth, and / or packet loss rate.

[0141] Specifically, since the graph method can include the network status between multiple target AI computing servers, we first build a cross-network interconnected target AI computing server link topology graph. The nodes in this topology graph are X3 target AI computing servers, the edges are network links, and the attributes of the nodes are the current clock frequencies F of each target AI computing server. new , the attributes of the edge are RRT round-trip delay t, available bandwidth b, and packet loss rate l. For example, the target AI computing server topology map can be constructed as follows Figure 2 As shown, the topology diagram can be used to dynamically obtain the impact of the network on each target AI computing server.

[0142] Optionally, determining all adjacent target AI computing power servers whose network status parameters in the target AI computing power server topology map are greater than a preset parameter threshold as target AI computing power servers that need to be optimized specifically includes:

[0143] All adjacent target AI computing power servers in the target AI computing power server topology map whose RRT is greater than or equal to the preset RRT parameter threshold, and / or whose available bandwidth is greater than or equal to the preset available bandwidth parameter threshold, and / or whose packet loss rate is greater than or equal to the preset packet loss rate parameter threshold are determined as target AI computing power servers that need to be optimized.

[0144] In this embodiment, the network status parameters connecting the two target AI computing power servers are obtained through the topology map to determine whether the RRT round-trip delay t, available bandwidth b, and packet loss rate l are greater than or equal to the corresponding parameter thresholds D, E, and F, respectively. If they are greater than or equal to the thresholds D, E, and F, it means that the current network congestion is relatively serious, and the data calculated by the target AI computing power server needs to be queued before it can be transmitted. In this case, the two target AI computing power servers are determined as the target AI computing power servers that need to be optimized.

[0145] Optionally, the dynamically adjusting the clock frequency of the AI ​​acceleration chip on the target AI computing server that needs to be optimized specifically includes:

[0146] Constructing the A matrix based on the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the corresponding fine estimation of each node;

[0147] Construct an X matrix according to the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the attributes of the corresponding edges;

[0148] Obtaining an optimized estimated value of the clock frequency according to the A matrix and the X matrix;

[0149] The clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized is dynamically adjusted according to the optimization estimate.

[0150] Specifically, the optimized estimated value of the clock frequency is calculated using the following formula:

[0151] F final =maxout(A*Relu(A*XW)W)

[0152] Among them, F final represents the optimized estimated value of the clock frequency, maxout and Relu represent mathematical functions, A represents the A matrix, X represents the X matrix, and W represents the weight matrix.

[0153] In this embodiment, the A matrix represents the relationship between each target AI computing server node and other nodes. The number of rows and columns of the A matrix is ​​the number of target AI computing servers. Each row represents whether the target AI computing server has a network link relationship with other target AI computing servers. The "columns" of the A matrix represent the F of other target AI computing servers that have a network link relationship with the target AI computing server. new , and fill the other positions with 0. For example, if the target AI computing server 1 has a network connection with the target AI computing servers 2, 5, and 4, then the second, fifth, and fourth positions of the first row of the A matrix are the F corresponding to the target AI computing servers 2, 5, and 4, respectively. new2 、F new5 、F new4 , the other bits are all 0; the target AI computing server 2 has a network connection with the target AI computing servers 1 and 3, so the first and third bits of the second row of the A matrix are the F of the target AI computing servers 1 and 3. new1 、F new3 , the other bits are all 0, and so on.

[0154] In this embodiment, the X matrix covers the attributes of each edge, namely, the values ​​of the network state parameters RRT round-trip delay t, available bandwidth b, and packet loss rate size l. The number of rows and columns of the X matrix is ​​the number of target AI computing servers. Each row covers the network link relationship between the target AI computing server and other target AI computing servers. The "column" of the X matrix represents that if the target AI computing server has a link relationship with other target AI computing servers, the corresponding position is: [t, b, l], and the other positions are filled with 0. For example, the target AI computing server 1 has a network link relationship with the target AI computing servers 2, 5, and 4. The network link will be affected by [t1, b1, l1], [t3, b3, l3], and [t6, b6, l6]. Then the second, fifth, and fourth bits of the first row of the X matrix are [t1, b1, l1], [t3, b3, l3], and [t6, b6, l6], and the other bits are all 0, and so on.

[0155] In this embodiment, the W matrix represents the weight matrix. In multiple rounds of training, F final The value of A, F in the X matrix new , [t, b, l] are all historical data and are known, so the most suitable W matrix can be deduced based on the above formula, so that F final The predicted value is closest to the actual value. After obtaining W through a large amount of training, the next time you perform reasoning, you can find the optimal F corresponding to multiple AI acceleration chips. final When , W\A\X can be used to calculate the most appropriate F for each target AI computing server. final Since it is a matrix operation, the result is also a matrix, and each row is the final value F of the clock frequency of the corresponding AI computing server. final .

[0156] In a specific embodiment, taking the AI ​​acceleration chip as a GPU as an example, the method for reducing the energy consumption of an AI computing cluster is applied to Figure 3 The scene graph shown may specifically include the following steps:

[0157] (1) At the hardware level, a new AI computing power energy-saving management platform is built on the AI ​​computing power hardware. A monitoring plug-in is installed for each GPU. The monitoring plug-in can obtain the temperature T, utilization U, clock frequency F, and power per unit time P of each GPU. The T\U\F\P monitored by the monitoring plug-in is uploaded to the AI ​​computing power energy-saving management platform in real time. The network status between cross-domain servers (including but not limited to RRT round-trip delay t or available bandwidth b or packet loss rate size l) needs to be monitored, and the monitored t\b\l must also be uploaded to the AI ​​computing power energy-saving management platform.

[0158] (2) The current user sends the AI ​​model to be calculated (such as CHATGPT model, YOLO model, OGB model) and the data to be trained (pictures, videos or raw data) to the AI ​​computing power energy-saving management platform. The AI ​​computing power energy-saving management platform first evaluates the required AI computing power for the AI ​​model to be calculated and the data to be trained, and evaluates the required AI computing power based on the algorithm classification, complexity and data set size of the AI ​​model to be calculated. The AI ​​computing power energy-saving management platform then dispatches GPUs for the current computing task based on the estimated number of GPUs, so that the AI ​​model can be loaded on these GPUs for calculation. For example, the number of GPUs dispatched is X1, and these X1 GPUs are distributed on X2 AI computing power servers.

[0159] (3) Energy consumption grouping and control of X2 AI computing servers: The monitoring plug-in needs to monitor the temperature T of X2 AI computing servers and report it to the AI ​​computing power energy-saving management platform. The AI ​​computing power energy-saving management platform determines whether the temperature T of each AI computing server among the X2 AI computing servers is too high. If X3 servers (X3<=X2) exceed the temperature threshold, it means that these X3 servers will require more energy to cool them down, and more energy to dissipate heat themselves, thereby generating unnecessary energy waste. Then, the AI ​​computing power energy-saving management platform will group the X2 servers. The X3 AI computing servers whose AI computing server temperatures are greater than or equal to the temperature threshold are grouped together and their clock frequencies are adjusted. For the specific method, please refer to the subsequent steps. A more suitable optimal clock frequency is found again through the pre-training process. For the other group of AI computing servers, a total of (X2-X3) servers, the clock frequency is not controlled and they run at the original clock frequency.

[0160] It should be noted that the management of energy-saving grouping of AI computing power servers is real-time and dynamic. As long as the temperature T is detected to be higher than the temperature threshold, the AI ​​computing power server will be included in the energy-saving control group so that its clock frequency can be adjusted to achieve energy saving.

[0161] (4) Find the GPU operating clock frequency with optimal energy consumption through distributed pre-training.

[0162] First, obtain the base clock frequency of each GPU in the X3 AI computing servers, send the machine instruction for obtaining the GPU clock frequency to the GPU, and the GPU will return the clock frequency at which it can run (for example, 8 available frequency bands: 1080HZ, 1140HZ, 1280HZ, 1340HZ, 1480HZ, 1560HZ, 1680HZ, 1890HZ).

[0163] Secondly, the AI ​​computing power energy-saving management platform reads a small amount of raw data to be trained from the memory to pre-train the AI ​​model. These small amounts of raw data will be distributed to multiple GPUs of the same AI computing power server (that is, using multiple GPUs to search for clock frequencies in parallel, so that parallel optimization can save time), so that different GPUs in the same AI computing power server each run at different clock frequencies to perform an epoach operation (that is, a round of operation) on the AI ​​model to be calculated. During the pre-training process, the GPU monitoring plug-in will monitor the unit time power P and the overall calculation time t of these GPUs, and calculate an epoach overall calculation time t based on the GPU unit time power P returned by each GPU and report it to the AI ​​computing power energy-saving management platform. The AI ​​computing power energy-saving management platform estimates the pre-training energy consumption when the GPU runs at different clock frequencies based on the reported GPU unit time power P and the calculation of an epoach overall calculation time t. The calculation method for pre-training energy consumption is the integral of the function of the GPU unit time power P over the overall calculation time t, that is, the formula: After multiple GPUs have tested different clock frequencies, the AI ​​computing power energy-saving management platform can obtain the optimal clock frequency for each AI computing power server, and send this optimal clock frequency to all GPUs in the AI ​​computing power server to control the clock frequencies of these GPUs to change.

[0164] It should be noted that in the pre-training of step 4, the batch size of the data set for a single calculation of the AI ​​model to be calculated, the number of threads for reading data in parallel, and the learning rate are temporarily set to an initial estimate.

[0165] (5) Fine-tune the GPU clock frequency based on the model characteristics. Specifically, jointly tune the batch size of the data set for a single calculation, the number of threads that read data in parallel, and the learning rate with the rough estimate of the clock frequency selected in step 4.

[0166] The AI ​​computing power energy-saving management platform reads a small amount of raw data to be trained from the memory to pre-train the AI ​​model. These small amounts of raw data will be distributed to multiple GPUs of the same AI computing power server for pre-training. However, this pre-training is different from the previous step 4 pre-training in that the batch size of the AI ​​model's data set, the number of threads reading data in parallel, and the learning rate will no longer be fixed to ABC, but will be dynamically adjusted to obtain the optimal ABC. At the same time, the clock frequency in step 4 will also be jointly dynamically adjusted. Multiple GPUs of the same AI computing power server pre-train the AI ​​model, and the batch size of the data set for a single calculation, the number of threads reading data in parallel, and the learning rate used are all different, until the single-calculation data set batch size, the number of threads reading data in parallel, and the learning rate combination are found when the GPU single card has the lowest energy consumption. Compare the single calculation data set batch size A*, the number of threads B* that read data in parallel, and the learning rate C* that correspond to the lowest energy consumption of a single GPU card with the initial estimated value ABC in step 4. If the deviations of A*, B*, C* from A, B, C are large, it is necessary to fine-tune the rough estimate of the clock frequency in step 4. If the deviations from A, B, C are small, it is not necessary to fine-tune the rough estimate of the clock frequency in step 4.

[0167] (6) Dynamically adjust the GPU clock frequency of AI computing clusters that communicate across networks based on the load of non-GPU computing hardware such as the network.

[0168] Taking into account the impact of network latency, congestion, and routing efficiency on GPU computing efficiency between different AI computing servers, the present invention dynamically adjusts the clock frequency according to network status parameters (including but not limited to: RRT round-trip latency t or available bandwidth b or packet loss rate l): first, obtain the network status parameters connecting the two AI computing servers, and determine whether the RRT round-trip latency t, available bandwidth b, and packet loss rate are greater than thresholds D, E, and F, respectively. If they are greater than thresholds D, E, and F, it means that the current network congestion is more serious, and the data calculated by the AI ​​computing server needs to be queued before it can be transmitted. Then, the clock frequencies of the two servers must be dynamically adjusted. The specific adjustment method is: construct a cross-network interoperable AI computing server link topology map, in which the nodes in the topology map are X3 AI computing servers, the edges of which are network links, and the attributes of the nodes are the current clock frequencies F of each AI computing server. new The attributes of the edge are RRT round-trip delay t, available bandwidth b, and packet loss rate l. The impact of the network on each AI computing server is dynamically obtained through this topology graph.

[0169] Since the graph method can include the network status between multiple AI computing servers, the F final, will be determined by the other AI computing servers connected to this AI computing server and the network link status. Ultimately, the F final It can be obtained according to the following formula:

[0170] F final =maxout(A*Relu(A*XW)W)

[0171] Among them, the A matrix represents the relationship between each AI computing server node and other nodes. The number of rows and columns of the A matrix is ​​the number of AI computing servers. Each row represents whether the AI ​​computing server has a network connection relationship with other AI computing servers. The "columns" of the A matrix represent the F of other AI computing servers that have a network connection relationship with the AI ​​computing server. new , and fill the other positions with 0.

[0172] Among them, the X matrix covers the attributes of each edge, namely the values ​​of the network state parameters RRT round-trip delay t, available bandwidth b, and packet loss rate l. The number of rows and columns of the X matrix is ​​the number of AI computing servers. Each row covers the network link relationship between the AI ​​computing server and other AI computing servers. The "column" of the X matrix represents that if the AI ​​computing server has a link relationship with other AI computing servers, the corresponding position is: [t, b, l], and other positions are filled with 0.

[0173] In multiple rounds of training, F final The value of A, F in the X matrix new , [t, b, l] are all historical data and are known, so the most suitable W matrix can be deduced based on the above formula, so that F final The predicted value is closest to the actual value. After obtaining W through a large amount of training, the next time you perform inference, find the optimal F corresponding to multiple GPUs. final When , W\A\X can be used to calculate the most appropriate F for each AI computing server. final Since it is a matrix operation, the result is also a matrix, and each row is the final value F of the clock frequency of the corresponding AI computing server. final .

[0174] (7) Get F in step 6 final , the AI ​​computing power energy-saving management platform will control the clock frequency of each AI computing power server that needs to be dynamically adjusted according to the clock frequency, from F new Adjust to F final .

[0175] The method for reducing the energy consumption of an AI computing power cluster provided in an embodiment of the present invention first dispatches multiple AI acceleration chips for the computing task according to the AI ​​computing power required by the computing task, and the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster; then, at least one target AI computing power server that needs energy-saving control is obtained from the multiple AI computing power servers; and the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the at least one target AI computing power server is obtained through distributed computing to obtain a rough estimate of the clock frequency; and then, for each of the target AI computing power servers, the computing task is obtained. The target parameter when the energy consumption of a single AI acceleration chip corresponding to the AI ​​model to be calculated is the lowest, and the rough estimate is fine-tuned according to the target parameter to obtain a fine-tuned fine estimate; and the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers is adjusted according to the fine estimate, and each of the target AI computing power servers is trained on the AI ​​model to be calculated; finally, in the process of each of the target AI computing power servers training the AI ​​model to be calculated, the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server is dynamically adjusted according to the network status between each of the target AI computing power servers. The present invention can match differentiated and appropriate AI acceleration chip clock frequencies for different computing tasks, improve the utilization rate of AI computing power servers, and minimize the total energy consumption of the AI ​​computing power cluster as a whole. It solves the problem that the existing AI computing power cluster may idle ineffectively, increase energy consumption, and thus waste energy due to the barrel effect when performing AI calculations.

[0176] Embodiment 2:

[0177] like Figure 4 As shown, this embodiment provides a device for reducing the energy consumption of an AI computing power cluster, which is used to execute the above method for reducing the energy consumption of an AI computing power cluster, including:

[0178] An acceleration chip dispatching module 11 is used to dispatch a plurality of AI acceleration chips to a computing task according to the AI ​​computing power required by the computing task, wherein the plurality of AI acceleration chips are located on a plurality of AI computing power servers in an AI computing power cluster;

[0179] The energy-saving control grouping module 12 is connected to the acceleration chip dispatching module 11 and is used to obtain at least one target AI computing power server that needs energy-saving control from multiple AI computing power servers;

[0180] A rough estimation module 13 is connected to the energy-saving control group 12 module, and is used to obtain the AI ​​acceleration chip operating clock frequency with the best energy consumption of each of the at least one target AI computing power server through distributed computing, and obtain a rough estimate of the clock frequency;

[0181] A fine estimation module 14 is connected to the rough estimation module 13, and is used to obtain, for each of the target AI computing power servers, the target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and fine-tune the rough estimation according to the target parameters to obtain a fine estimation after fine-tuning;

[0182] A fine adjustment module 15, connected to the fine estimation module 14, is used to adjust the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the fine estimation, and enable each of the target AI computing power servers to train the AI ​​model to be calculated;

[0183] The dynamic adjustment module 16 is connected to the fine adjustment module 15, and is used to dynamically adjust the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each target AI computing power server during the process of each target AI computing power server training the AI ​​model to be calculated.

[0184] Optionally, the acceleration chip dispatching module 11 specifically includes:

[0185] A computing power evaluation unit, used to evaluate the AI ​​computing power required for the computing task according to the AI ​​model to be calculated and the data to be trained in the computing task;

[0186] A quantity estimation unit, used to estimate the number of AI acceleration chips to be dispatched according to the AI ​​computing power required for the computing task;

[0187] A dispatching unit is used to dispatch a plurality of AI acceleration chips corresponding to the quantity for the computing task.

[0188] Optionally, the computing power evaluation unit is specifically used for:

[0189] The AI ​​computing power required for the computing task is evaluated based on the algorithm classification and complexity of the AI ​​model to be calculated and the size of the data set corresponding to the data to be trained.

[0190] Optionally, the energy-saving control grouping module 12 includes:

[0191] The grouping unit is used to obtain at least one target AI computing power server that needs energy-saving control according to the temperature of each AI computing power server among the multiple AI computing power servers.

[0192] Optionally, the grouping unit specifically includes:

[0193] A temperature receiving unit, used to receive the temperature reported by the monitoring plug-in in each of the AI ​​computing power servers;

[0194] The grouping unit is used to determine the AI ​​computing power servers whose temperature is greater than or equal to the preset temperature threshold among the multiple AI computing power servers as at least one target AI computing power server that needs energy-saving control.

[0195] Optionally, the rough estimation module 13 specifically includes:

[0196] A first acquisition unit, used to acquire a small amount of data from the data to be trained in the computing task as a first training data set;

[0197] A first allocation unit is used to allocate the first training data set to the multiple AI acceleration chips of the target AI computing power server for each of the target AI computing power servers, so that the multiple AI acceleration chips in the target AI computing power server pre-train the AI ​​model to be calculated at different clock frequencies respectively;

[0198] A rough estimation unit is used to obtain the pre-training energy consumption of multiple AI acceleration chips of each of the target AI computing power servers during the pre-training process, and select the clock frequency corresponding to the AI ​​acceleration chip with the lowest pre-training energy consumption as the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the target AI computing power servers, so as to obtain a rough estimate of the clock frequency.

[0199] Optionally, the rough estimation unit includes:

[0200] The pre-training energy consumption calculation unit is used to obtain the unit time power and overall computing time of multiple AI acceleration chips in the target AI computing power server during the pre-training process for each target AI computing power server, and calculate the pre-training energy consumption of multiple AI acceleration chips at different clock frequencies according to the unit time power and overall computing time.

[0201] Optionally, the device further comprises:

[0202] A rough adjustment module is used to send a rough estimate of the clock frequency corresponding to each of the target AI computing power servers to the corresponding target AI computing power servers, so that the target AI computing power server adjusts the clock frequency of the AI ​​acceleration chip on the target AI computing power server according to the rough estimate.

[0203] Optionally, the target parameters include a data set batch size, a number of threads for reading data in parallel, and a learning rate;

[0204] The fine estimation module 14 comprises:

[0205] A second acquisition unit, used to acquire a small amount of data from the data to be trained in the computing task as a second training data set;

[0206] The second allocation unit is used to allocate the second training data set to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively use different data set batch sizes, numbers of threads for reading data in parallel, and learning rates to pre-train the AI ​​model to be calculated until the data set batch size, number of threads for reading data in parallel, and learning rate are found when the energy consumption of a single AI acceleration chip is the lowest.

[0207] Optionally, the fine estimation module 14 further includes:

[0208] A parameter comparison unit, used to compare the data set batch size, the number of threads reading data in parallel, and the learning rate corresponding to the rough estimate of the clock frequency with the data set batch size, the number of threads reading data in parallel, and the learning rate when the energy consumption of a single AI acceleration chip card is the lowest;

[0209] A fine-tuning judgment unit, used to judge whether fine-tuning is needed according to the comparison result;

[0210] A fine estimation unit is used to fine-tune the rough estimate in response to the need for fine-tuning, according to the batch size of the data set when the energy consumption of the single AI acceleration chip card is lowest, the number of threads reading data in parallel, and the learning rate, to obtain a fine-tuned fine estimate.

[0211] Optionally, the dynamic adjustment module 16 includes:

[0212] An optimization server acquisition unit is used to perform topology calculation on the network status parameters of the target AI computing power server through the constructed target AI computing power server topology map, so as to obtain the target AI computing power server to be optimized;

[0213] A dynamic adjustment unit is used to dynamically adjust the clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized.

[0214] Optionally, the optimization server acquisition unit includes:

[0215] A topology map construction unit, used to construct a topology map of the target AI computing power servers using each of the target AI computing power servers as a node, using the network link relationship between each of the target AI computing power servers as an edge, and using the network state parameters between each of the target AI computing power servers as the attributes of the corresponding edge;

[0216] The server determination unit is used to determine all adjacent target AI computing power servers whose network status parameters in the target AI computing power server topology diagram are greater than a preset parameter threshold as target AI computing power servers that need to be optimized.

[0217] Optionally, the network status parameter includes a round trip delay RRT, and / or an available bandwidth, and / or a packet loss rate, and the server determination unit is specifically used to:

[0218] All adjacent target AI computing power servers in the target AI computing power server topology map whose RRT is greater than or equal to the preset RRT parameter threshold, and / or whose available bandwidth is greater than or equal to the preset available bandwidth parameter threshold, and / or whose packet loss rate is greater than or equal to the preset packet loss rate parameter threshold are determined as target AI computing power servers that need to be optimized.

[0219] Optionally, the dynamic adjustment unit includes:

[0220] A matrix construction unit, used to construct the A matrix according to the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the corresponding fine estimation of each node;

[0221] An X matrix construction unit, used to construct an X matrix according to the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the attributes of the corresponding edges;

[0222] An optimization estimation unit, used for obtaining an optimized estimation value of the clock frequency according to the A matrix and the X matrix;

[0223] A dynamic adjustment unit is used to dynamically adjust the clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized according to the optimization estimate.

[0224] Optionally, the optimization estimation unit is specifically used for:

[0225] The optimized estimate of the clock frequency is calculated using the following formula:

[0226] F final =maxout(A*Relu(A*XW)W)

[0227] Among them, F final represents the optimized estimated value of the clock frequency, maxout and Relu represent mathematical functions, A represents the A matrix, X represents the X matrix, and W represents the weight matrix.

[0228] Embodiment 3:

[0229] refer to Figure 5This embodiment provides a device for reducing the energy consumption of an AI computing power cluster, including a memory 21 and a processor 22. The memory 21 stores a computer program, and the processor 22 is configured to run the computer program to execute the method for reducing the energy consumption of an AI computing power cluster in Example 1.

[0230] The memory 21 is connected to the processor 22. The memory 21 may be a flash memory, a read-only memory or other memory. The processor 22 may be a central processing unit or a single-chip microcomputer.

[0231] Embodiment 4:

[0232] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for reducing the energy consumption of an AI computing cluster in the above-mentioned embodiment 1 is implemented.

[0233] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0234] In summary, the method, device and storage medium for reducing the energy consumption of an AI computing power cluster provided by the embodiments of the present invention first dispatch multiple AI acceleration chips for the computing task according to the AI ​​computing power required by the computing task, and the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster; then, at least one target AI computing power server that needs energy-saving control is obtained from the multiple AI computing power servers; and the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the at least one target AI computing power server is obtained through distributed computing to obtain a rough estimate of the clock frequency; and then, for each of the target AI computing power servers, the operating clock frequency of the AI ​​acceleration chip with the best energy consumption is obtained. Take the target parameter when the energy consumption of a single AI acceleration chip card corresponding to the AI ​​model to be calculated in the computing task is the lowest, and fine-tune the rough estimate according to the target parameter to obtain a fine-tuned fine estimate; and adjust the clock frequency of the AI ​​acceleration chip of each target AI computing server according to the fine estimate, and enable each target AI computing server to train the AI ​​model to be calculated; finally, in the process of each target AI computing server training the AI ​​model to be calculated, dynamically adjust the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing server according to the network status between each target AI computing server. The present invention can match differentiated and appropriate AI acceleration chip clock frequencies for different computing tasks, improve the utilization rate of AI computing servers, and minimize the total energy consumption of the AI ​​computing cluster as a whole. It solves the problem that the existing AI computing cluster may idle ineffectively, increase energy consumption, and thus waste energy due to the barrel effect when performing AI calculations.

[0235] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A method for reducing the energy consumption of an artificial intelligence (AI) computing power cluster, characterized in that: The method comprises: Dispatching multiple AI acceleration chips for the computing task according to the AI ​​computing power required by the computing task, wherein the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster; Obtain at least one target AI computing server that requires energy-saving control from multiple AI computing servers; Obtaining, by means of distributed computing, the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the at least one target AI computing power server, and obtaining a rough estimate of the clock frequency; For each of the target AI computing power servers, obtain the target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and fine-tune the rough estimate according to the target parameters to obtain a fine-tuned estimate; adjusting the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the refined estimation, and enabling each of the target AI computing power servers to train the AI ​​model to be calculated; and, In the process of each of the target AI computing servers training the AI ​​model to be calculated, dynamically adjusting the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing server according to the network status between the target AI computing servers; The target parameters include the batch size of the data set, the number of threads reading data in parallel, and the learning rate; The obtaining of the target parameters when the energy consumption of a single AI acceleration chip card corresponding to the AI ​​model to be calculated in the computing task is the lowest specifically includes: Acquire a small amount of data from the data to be trained in the computing task as a second training data set; The second training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively use different data set batch sizes, numbers of threads for reading data in parallel, and learning rates to pre-train the AI ​​model to be calculated until the data set batch size, number of threads for reading data in parallel, and learning rate are found when the energy consumption of a single AI acceleration chip is the lowest.

2. The method according to claim 1, characterized in that The step of dispatching a plurality of AI acceleration chips to the computing task according to the AI ​​computing power required by the computing task specifically includes: Evaluate the AI ​​computing power required for the computing task based on the AI ​​model to be calculated and the data to be trained in the computing task; The number of AI acceleration chips to be distributed is estimated based on the AI ​​computing power required for the computing task; A plurality of AI acceleration chips corresponding to the number are dispatched to the computing task.

3. The method according to claim 2, characterized in that The step of evaluating the AI ​​computing power required for the computing task according to the AI ​​model to be calculated and the data to be trained in the computing task specifically includes: The AI ​​computing power required for the computing task is evaluated based on the algorithm classification and complexity of the AI ​​model to be calculated and the size of the data set corresponding to the data to be trained.

4. The method according to claim 1, characterized in that: The obtaining at least one target AI computing power server requiring energy-saving control from the multiple AI computing power servers specifically includes: At least one target AI computing power server requiring energy-saving control is obtained according to the temperature of each AI computing power server among the multiple AI computing power servers.

5. The method according to claim 4, characterized in that The acquiring at least one target AI computing server requiring energy-saving control according to the temperature of each AI computing server among the multiple AI computing servers specifically includes: Receiving the temperature reported by the monitoring plug-in in each of the AI ​​computing power servers; An AI computing power server whose temperature among the multiple AI computing power servers is greater than or equal to a preset temperature threshold is determined as at least one target AI computing power server that requires energy-saving control.

6. The method according to claim 1, characterized in that The step of obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server by means of distributed computing to obtain a rough estimate of the clock frequency specifically includes: Acquire a small amount of data from the data to be trained in the computing task as a first training data set; For each of the target AI computing power servers, the first training data set is distributed to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively pre-train the AI ​​model to be calculated at different clock frequencies; Obtain the pre-training energy consumption of the multiple AI acceleration chips of each of the target AI computing power servers during the pre-training process, and select the clock frequency corresponding to the AI ​​acceleration chip with the lowest pre-training energy consumption as the operating clock frequency of the AI ​​acceleration chip with the best energy consumption for each of the target AI computing power servers, to obtain a rough estimate of the clock frequency.

7. The method according to claim 6, characterized in that The obtaining of the pre-training energy consumption of the plurality of AI acceleration chips of each of the target AI computing power servers during the pre-training process specifically includes: For each of the target AI computing power servers, the unit time power and overall computing time of the multiple AI acceleration chips in the target AI computing power server during the pre-training process are obtained, and the pre-training energy consumption of the multiple AI acceleration chips at different clock frequencies are calculated based on the unit time power and the overall computing time.

8. The method according to claim 1, characterized in that After obtaining the operating clock frequency of the AI ​​acceleration chip with the best energy consumption of each of the at least one target AI computing power server in a distributed computing manner and obtaining a rough estimate of the clock frequency, the method further includes: The rough estimates of the clock frequencies corresponding to the target AI computing power servers are respectively sent to the corresponding target AI computing power servers, so that the target AI computing power servers adjust the clock frequencies of the AI ​​acceleration chips on the target AI computing power servers according to the rough estimates.

9. The method according to claim 1, characterized in that: The fine-tuning of the rough estimate according to the target parameter to obtain a fine-tuned precise estimate specifically includes: Compare the dataset batch size, number of threads reading data in parallel, and learning rate corresponding to the rough estimate of the clock frequency with the dataset batch size, number of threads reading data in parallel, and learning rate when the energy consumption of a single AI accelerator chip is the lowest; Determining whether fine-tuning is required according to the comparison result; In response to the need for fine-tuning, the rough estimate is fine-tuned according to the batch size of the data set, the number of threads reading data in parallel, and the learning rate when the energy consumption of the AI ​​acceleration chip single card is lowest, to obtain a fine estimate after fine-tuning.

10. The method according to claim 1, characterized in that The dynamically adjusting the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each of the target AI computing power servers specifically includes: By constructing a topology map of the target AI computing power server, a topology map calculation is performed on the network status parameters of the target AI computing power server to obtain the target AI computing power server that needs to be optimized; Dynamically adjust the clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized.

11. The method according to claim 10, characterized in that The target AI computing server topology map constructed by the method calculates the network status parameters of the target AI computing server topology map to obtain the target AI computing server to be optimized, specifically including: Taking each of the target AI computing servers as a node, taking the network link relationship between each of the target AI computing servers as an edge, and taking the network status parameters between each of the target AI computing servers as the attributes of the corresponding edge to construct a target AI computing server topology graph; All adjacent target AI computing power servers whose network status parameters in the target AI computing power server topology diagram are greater than a preset parameter threshold are determined as target AI computing power servers that need to be optimized.

12. The method according to claim 11, characterized in that The network status parameters include round-trip delay RRT, and / or available bandwidth, and / or packet loss rate. The step of determining all adjacent target AI computing servers whose network status parameters in the target AI computing server topology map are greater than a preset parameter threshold as target AI computing servers that need to be optimized specifically includes: All adjacent target AI computing power servers in the target AI computing power server topology map whose RRT is greater than or equal to the preset RRT parameter threshold, and / or whose available bandwidth is greater than or equal to the preset available bandwidth parameter threshold, and / or whose packet loss rate is greater than or equal to the preset packet loss rate parameter threshold are determined as target AI computing power servers that need to be optimized.

13. The method according to claim 11, characterized in that The dynamically adjusting the clock frequency of the AI ​​acceleration chip on the target AI computing server that needs to be optimized specifically includes: Constructing the A matrix based on the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the corresponding fine estimation of each node; Construct an X matrix according to the network link relationship between each node and other nodes in the target AI computing power server topology diagram and the attributes of the corresponding edges; Obtaining an optimized estimated value of the clock frequency according to the A matrix and the X matrix; The clock frequency of the AI ​​acceleration chip on the target AI computing power server that needs to be optimized is dynamically adjusted according to the optimization estimate.

14. The method according to claim 13, characterized in that The step of obtaining an optimized estimated value of the clock frequency according to the A matrix and the X matrix specifically includes: The optimized estimate of the clock frequency is calculated using the following formula: F final =maxout(A*Air(A*XW)W) Among them, F final represents the optimized estimated value of the clock frequency, maxout and Relu represent mathematical functions, A represents the A matrix, X represents the X matrix, and W represents the weight matrix.

15. A device for reducing the energy consumption of an artificial intelligence (AI) computing cluster, characterized in that: The device comprises: An acceleration chip dispatching module, used to dispatch multiple AI acceleration chips for a computing task according to the AI ​​computing power required by the computing task, wherein the multiple AI acceleration chips are located on multiple AI computing power servers in the AI ​​computing power cluster; An energy-saving control grouping module, connected to the acceleration chip dispatching module, for obtaining at least one target AI computing power server requiring energy-saving control from a plurality of AI computing power servers; A rough estimation module, connected to the energy-saving control grouping module, is used to obtain the AI ​​acceleration chip operating clock frequency with the best energy consumption of each of the at least one target AI computing power server through distributed computing, and obtain a rough estimate of the clock frequency; A fine estimation module, connected to the rough estimation module, for obtaining, for each of the target AI computing power servers, the target parameters of the AI ​​acceleration chip corresponding to the AI ​​model to be calculated in the computing task when the energy consumption of the single card is the lowest, and fine-tuning the rough estimation according to the target parameters to obtain a fine estimation after fine-tuning; A fine adjustment module, connected to the fine estimation module, for adjusting the clock frequency of the AI ​​acceleration chip of each of the target AI computing power servers according to the fine estimation, and enabling each of the target AI computing power servers to train the AI ​​model to be calculated; A dynamic adjustment module, connected to the fine adjustment module, for dynamically adjusting the clock frequency of the AI ​​acceleration chip on the corresponding target AI computing power server according to the network status between each of the target AI computing power servers during the process of each of the target AI computing power servers training the AI ​​model to be calculated; The target parameters include the batch size of the data set, the number of threads reading data in parallel, and the learning rate; The fine estimation module comprises: A second acquisition unit, used to acquire a small amount of data from the data to be trained in the computing task as a second training data set; The second allocation unit is used to allocate the second training data set to the multiple AI acceleration chips of the target AI computing power server, so that the multiple AI acceleration chips in the target AI computing power server respectively use different data set batch sizes, numbers of threads for reading data in parallel, and learning rates to pre-train the AI ​​model to be calculated until the data set batch size, number of threads for reading data in parallel, and learning rate are found when the energy consumption of a single AI acceleration chip is the lowest.

16. A device for reducing energy consumption of an artificial intelligence (AI) computing cluster, characterized in that: It includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to implement the method for reducing the energy consumption of an artificial intelligence (AI) computing power cluster as described in any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for reducing the energy consumption of an artificial intelligence (AI) computing power cluster as described in any one of claims 1 to 14 is implemented.

Citation Information

Patent Citations

  • AOV gateway key path query-based optimization method for dynamic power consumption of heterogeneous system

    CN106896895A

  • GPU power measuring method of heterogeneous multi-core system

    US20160274636A1