Heterogeneous computing power equipment selection method, device, equipment, medium, product and system

By using the computing power matching model in multiple heterogeneous computing systems, the computing power requirements of natural language are converted into standard data, the heterogeneous computing resources are matched, and the results are output in natural language, which solves the problem of high knowledge reserve and high cost in the existing technology. problem, achieving low-cost, efficient computing resource matching and user-friendly interaction.

CN118245238BActive Publication Date: 2024-09-13SHANDONG HAILIANG INFORMATION TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684030.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

In multiple heterogeneous computing systems, the computing power demand side needs to provide detailed data to the computing power supply side to match the computing power resources, resulting in high knowledge reserves and labor costs, a lack of natural language level communication, and increased interactive understanding costs.

Method used

By obtaining the heterogeneous computing resource status data of the heterogeneous computing system and the natural language description of the computing power demand side, use the pre-built computing power matching model to convert it into a standard data format to achieve matching of computing power requirements and resources, and Output the results in natural language.

Benefits of technology

It lowers the technical threshold for computing power demanders, improves user experience, reduces labor costs, achieves low-cost matching of computing power resources, and provides high service quality close to real people.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245238B
    Figure CN118245238B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment, medium, product and system for selecting heterogeneous computing power equipment, which are applied to the field of artificial intelligence technology. The method includes obtaining computing power demand data described in natural language by the computing power demander, and converting the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system; calling a pre-built computing power matching model, and determining the computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data of the heterogeneous computing system. The computing power matching data is converted into a computing power resource selection result described in natural language for output. The present invention can solve the problem of high requirements for computing power demanders and high labor costs for computing power suppliers in related technologies, and can achieve low-cost computing power resource matching on the basis of no technical language level communication between the supply and demand parties.
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, equipment, medium, product and system for selecting heterogeneous computing power equipment. Background Art

[0002] With the rapid development of artificial intelligence technology, heterogeneous computing systems that can effectively and collaboratively process large amounts of data, such as multi-heterogeneous computing systems, are widely used. In multi-heterogeneous computing systems, heterogeneous computing power with different computing performance, such as heterogeneous computing chips or computing cards, will be connected to the same distributed computing system. The computing power demander selects different computing power resources according to the task to be processed, and the system calls the corresponding computing power resources in response to user needs.

[0003] In related technologies, when computing power demanders select computing power resources, they need to provide detailed data such as computing power usage type data or professional description data of tasks to be processed to professionals of computing power suppliers in order to obtain corresponding computing power resource recommendation information. This not only requires computing power demanders to have sufficient knowledge reserves, but also requires a lot of manpower costs to match computing power.

[0004] In view of this, being able to achieve low-cost matching of computing resources without the need for technical language communication between the supply and demand parties is a technical problem that technical personnel in this field need to solve.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The present invention provides a method, apparatus, electronic device, non-volatile storage medium, computer program product and heterogeneous computing system for selecting heterogeneous computing power equipment, which not only does not require the professional knowledge and knowledge reserves of the computing power demander, but also can achieve low-cost computing power resource matching.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] A first aspect of the present invention provides a method for selecting a heterogeneous computing device, comprising:

[0009] Obtain heterogeneous computing resource status data of heterogeneous computing systems;

[0010] Obtain computing power demand data described by the computing power demander in natural language, and convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system;

[0011] Calling a pre-built computing power matching model, based on the computing power requirement standard data and the heterogeneous computing power resource status data, determining computing power matching data that matches the computing power requirement data; wherein the computing power matching model constructs a matching relationship between computing power requirements and computing power resources;

[0012] The computing power matching data is converted into a computing power resource selection result described in natural language for output.

[0013] In a first exemplary implementation, the converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system includes:

[0014] Acquire a computing power requirement question and answer sample data set in advance; the computing power requirement question and answer sample data set includes multiple groups of computing power requirement question and answer samples, each computing power requirement question and answer sample includes at least a computing power requirement question sample and a corresponding computing power requirement standard sample, the computing power requirement question sample is computing power requirement information described in natural language form, and the computing power requirement standard sample is computing power requirement information that meets the computing power requirement data format;

[0015] A format conversion model is pre-trained based on the computing power requirement question and answer sample data set; the format conversion model is used to convert the computing power requirement data described in natural language form into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system;

[0016] The computing power requirement data is input into a trained format conversion model, and the output of the format conversion model is used as the computing power requirement standard data.

[0017] In a second exemplary implementation, before converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system, the method further includes:

[0018] Obtain the pre-trained language model that has completed the pre-training phase;

[0019] Obtain a computing power requirement question and answer sample data set; the computing power requirement question and answer sample data set is a fine-tuning data set of the pre-trained language model;

[0020] The pre-trained language model is fine-tuned using the computing power requirement question and answer sample data set to obtain a format conversion model, so as to use the format conversion model to convert the computing power requirement data into computing power requirement standard data.

[0021] In a third exemplary implementation, the fine-tuning of the pre-trained language model using the computing power requirement question and answer sample dataset includes:

[0022] Pre-constructing a first training parameter and a second training parameter; the input dimension of the first training parameter is the same as the input dimension of the pre-trained language model, and the first difference between the output dimension and the output dimension of the pre-trained language model is greater than a first preset threshold; the output dimension of the second training parameter is the same as the output dimension of the pre-trained language model, and the second difference between the input dimension and the input dimension of the pre-trained language model is greater than a second preset threshold;

[0023] Initialize the first training parameter to Gaussian distribution, and initialize the second training parameter to 0;

[0024] In the process of fine-tuning the pre-trained language model using the computing power requirement question and answer sample data set, the pre-trained model parameters of the pre-trained language model are fixed unchanged, and the first training parameters and the second training parameters are updated;

[0025] After the first training parameters and the second training parameters are trained, the first training parameters, the second training parameters and the model parameters are merged by using a re-parameterization method.

[0026] In a fourth exemplary implementation, the converting the computing power matching data into a computing power resource selection result described in a natural language form and outputting the result includes:

[0027] Acquire a computing power matching question and answer sample data set in advance; the computing power matching question and answer sample data set includes multiple groups of computing power matching question and answer samples, each computing power matching question and answer sample includes at least a computing power matching question sample and a corresponding computing power matching answer sample, the computing power matching question sample is computing power matching information that satisfies the computing power output data format of the heterogeneous computing system, and the computing power matching answer sample is computing power matching information described in natural language form;

[0028] A format conversion model is pre-trained based on the computing power matching question and answer sample data set; the format conversion model is also used to convert the computing power matching data that meets the computing power output data format into a computing power resource selection result described in natural language;

[0029] Get conversion prompt information;

[0030] Generate user reply prompt data according to the conversion prompt information and the computing power matching data;

[0031] The user reply prompt data is input into the format conversion model, and the output of the format conversion model is used as the computing power resource selection result.

[0032] In a fifth exemplary implementation, before converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system, the method further includes:

[0033] Obtain the pre-trained language model that has completed the pre-training phase;

[0034] Obtain a question and answer sample fine-tuning dataset; the question and answer sample fine-tuning dataset includes a computing power requirement question and answer sample dataset and a computing power matching question and answer sample dataset;

[0035] The pre-trained language model is fine-tuned using the question and answer sample fine-tuning data set to obtain a format conversion model, so as to use the format conversion model to convert the computing power requirement data into computing power requirement standard data, and convert the computing power matching data into computing power resource selection results.

[0036] In a sixth exemplary implementation, the obtaining of heterogeneous computing resource status data of a heterogeneous computing system includes:

[0037] Obtain the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the CPU utilization rate;

[0038] Send a fee query request to the database to obtain the rate data of each computing resource;

[0039] Based on the rate data of each computing resource, the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the central processing unit utilization rate, the heterogeneous computing resource status data is constructed.

[0040] In a seventh exemplary implementation, determining computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data includes:

[0041] Pre-acquire a computing power matching sample data set; the computing power matching sample data set includes a plurality of computing power matching samples, each computing power matching sample includes at least one set of corresponding demand-side attribute sample data and supply-side attribute sample data, and a label identifying matching information is set between the demand-side attribute sample data and the supply-side attribute sample data;

[0042] Pre-training a computing power matching model based on the computing power matching sample data set; the computing power matching model is used to determine matching computing power matching data for the computing power demand data;

[0043] The computing power requirement standard data and the heterogeneous computing power resource status data are input into a trained computing power matching model, and the output of the computing power matching model is used as computing power matching data.

[0044] In an eighth exemplary implementation, obtaining a computing power matching sample data set includes:

[0045] Pre-configure matching capability label data and matching degree label data; the matching capability label data includes a matching identification value and a non-matching identification value, the matching identification value is used to identify that the matching requirement is met between the demand side attribute sample data and the supplier side attribute sample data, and the non-matching identification value is used to identify that the matching requirement is not met between the demand side attribute sample data and the supplier side attribute sample data;

[0046] When receiving a matching capability labeling instruction, performing matching capability labeling on the computing power matching samples of the computing power matching sample data set based on the identification value carried by the matching capability labeling instruction;

[0047] For each computing power matching sample, if the matching capability label data of the current computing power matching sample is a matching identification value, obtain the matching degree identification value corresponding to the current computing power matching sample, and generate the matching degree label data of the current computing power matching sample according to the matching degree identification value.

[0048] In a ninth exemplary implementation, obtaining the matching degree identification value corresponding to the current computing power matching sample includes:

[0049] The pre-built matching score calculation formula is called to calculate the matching score value between the demand-side attribute sample data and the supply-side attribute sample data, so as to serve as the matching degree identification value of each computing power matching sample; the matching score calculation formula is:

[0050] Label 2-score = α Y+ β t;

[0051] Get the matching score value of the current computing power matching sample;

[0052] In the formula, Label 2-score is the matching score, Y is the computing resource rate, t is the task completion time, α represents the first weight factor of the computing resource rate, β A second weighting factor representing the task completion time.

[0053] In a tenth exemplary implementation, before calling the pre-built computing power matching model, the method further includes:

[0054] Pre-constructing a model network structure of a computing power matching model; the model network structure includes a demand-side network model link, a supply-side network model link, and a feature splicing output layer; the demand-side network model link is used to extract demand feature data of the demand-side attribute sample data, the supply-side network model link is used to extract supply feature data of the supply-side attribute sample data, and the feature splicing output layer is used to output the splicing features of the demand feature data and the supply feature data;

[0055] Determine matching capability loss information based on the splicing features output by the feature splicing output layer, and determine matching degree loss information based on the demand feature data and the supply feature data;

[0056] Based on the matching capability loss information and the matching degree loss information, the model parameters of the computing power matching model are continuously iteratively updated until a preset model training stop condition is met.

[0057] In an eleventh exemplary implementation, the demand-side network model link includes, in order according to the data flow processing direction of the demand-side attribute sample data, a first input layer, a first fully connected layer, a second fully connected layer, and a third fully connected layer;

[0058] The activation function of each neuron in the first fully connected layer, the second fully connected layer and the third fully connected layer is a linear rectification function.

[0059] In a twelfth exemplary embodiment, the supplier network model link includes, in order according to the data flow processing direction of the supplier attribute sample data, a second input layer, a fourth fully connected layer, a fifth fully connected layer, and a sixth fully connected layer;

[0060] The activation function of each neuron in the fourth fully connected layer, the fifth fully connected layer and the sixth fully connected layer is a linear rectification function.

[0061] In a thirteenth exemplary embodiment, the feature concatenation output layer includes a concatenation layer and a seventh fully connected layer;

[0062] The seventh fully connected layer is connected to the output of the concatenation layer;

[0063] The splicing layer is used to splice the demand characteristic data and the supply characteristic data.

[0064] In a fourteenth exemplary implementation, the determining matching capability loss information based on the splicing features output by the feature splicing output layer includes:

[0065] The matching capability loss function relationship is called to calculate the matching capability loss information; the matching capability loss function relationship is:

[0066] L1=L1=softmax{h3(h1(x), h2(y)), g_1};

[0067] Where L1 represents the matching ability loss information, softmax represents the normalized exponential function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_1 represents the matching ability label data, h1(x) represents the demand feature data, h2(y) represents the supply feature data, and h3 represents the output of the feature concatenation output layer.

[0068] In a fifteenth exemplary implementation, the determining the matching degree loss information based on the demand characteristic data and the supply characteristic data includes:

[0069] The matching degree loss function relationship is called to calculate the matching degree loss information; the matching degree loss function relationship is:

[0070] L2=[g_2-(1-sigmoid(||h1(x)-h2(y)|| 2 ))] 2 ;

[0071] Where L2 represents the matching degree loss information, sigmoid represents the S-shaped curve function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_2 represents the matching degree label data, h1(x) represents the demand feature data, and h2(y) represents the supply feature data.

[0072] A second aspect of the present invention provides a heterogeneous computing power device selection device, comprising:

[0073] A resource data acquisition module is used to obtain the heterogeneous computing power resource status data of the heterogeneous computing system;

[0074] The demand data acquisition module is used to obtain the computing power demand data described by the computing power demander in natural language;

[0075] A demand data conversion module, used to convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system;

[0076] A supply and demand matching module, used to call a pre-built computing power matching model, and determine computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data; wherein the computing power matching model constructs a matching relationship between computing power demand and computing power resources;

[0077] The matching result output module is used to convert the computing power matching data into a computing power resource selection result described in natural language for output.

[0078] A third aspect of the present invention provides an electronic device, comprising a processor, wherein the processor is used to implement the steps of the heterogeneous computing power device selection method as described in any of the preceding items when executing a computer program stored in a memory.

[0079] A fourth aspect of the present invention provides a non-volatile storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the heterogeneous computing power device selection method as described in any of the preceding items are implemented.

[0080] A fifth aspect of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the heterogeneous computing power device selection method as described in any of the preceding items.

[0081] A sixth aspect of the present invention provides a heterogeneous computing system, including multiple types of computing nodes, processors, monitors, and memories;

[0082] The processor is connected to each computing node and the monitor respectively, and the monitor is connected to each computing node;

[0083] The monitor is used to collect hardware data of each computing power node, and the memory stores computing power resource rate data;

[0084] The processor is used to obtain the hardware data collected by the monitor and the computing power resource rate data as heterogeneous computing power resource status data, and implement the steps of the heterogeneous computing power device selection method as described in any of the previous items when executing the computer program stored in the memory.

[0085] In a first exemplary embodiment, it further includes a display screen for providing a human-computer interaction interface;

[0086] The human-computer interaction interface includes a computing power requirement input area and a computing power resource selection result display area;

[0087] The computing power requirement input area is used to receive computing power requirement data described in natural language output by the computing power demander, and the computing power resource selection result display area is used to display the computing power resource selection result matching the computing power requirement data to the computing power demander;

[0088] The processor is also used to execute the steps of the heterogeneous computing power device selection method when it is detected that the computing power matching request is triggered.

[0089] In a second exemplary implementation, the computing power requirement input area includes a data input area and / or a computing power matching request trigger area; the data input area is a voice input area and / or a text input area;

[0090] The voice input area is used to receive audio data of computing power demand described in natural language by the computing power demander;

[0091] The text input area is used to receive text data of computing power demand described by the computing power demander in natural language;

[0092] The computing power matching request triggering area is used to provide the computing power demander with a function of triggering a computing power matching request.

[0093] The advantage of the technical solution provided by the present invention is that the computing power demand information described in natural language by the computing power demander is converted into computing power demand data that can be understood by the heterogeneous computing system, and the computing power demander is matched with appropriate computing power resources according to the real-time status of the computing power resources of the heterogeneous computing system, and the final computing power resource selection result is output to the computing power demander in the form of natural language. During the whole process, the computing power demander and the heterogeneous computing system communicate through natural language, and the heterogeneous computing system can provide high service quality that is closest to real people, and user communication is smoother and the use experience is better; further, the computing power demander only needs to clarify the computing power demand without understanding the characteristics of the computing power itself, the environment in which the computing power is located, and the professional description of the task to be performed. By replacing the technical language level of the relevant technology with the natural language level, it can interact with the heterogeneous computing system. Without the need for the computing power demander to have professional knowledge, the selection of computing power resources can be realized, which effectively reduces the technical threshold of the computing power demander, has better practicality and universality, and is conducive to improving the user experience; in addition, computing power matching is realized through a computing power matching model, and there is no need for the computing power supplier to provide expensive manpower costs to achieve it, and low-cost computing power resource matching can be achieved.

[0094] In addition, the present invention also provides corresponding implementation devices, electronic devices, non-volatile storage media, computer program products and heterogeneous computing systems for the heterogeneous computing power device selection method, further making the method more practical, and the devices, electronic devices, non-volatile storage media, computer program products and heterogeneous computing systems have corresponding advantages.

[0095] The technical features mentioned above, the technical features to be mentioned below, and the technical features shown separately in the drawings can be arbitrarily combined with each other, as long as the combined technical features are not contradictory. All feasible feature combinations are technical contents clearly recorded in this article. Any of the multiple sub-features contained in the same sentence can be applied independently, and does not have to be applied together with other sub-features. It should be understood that the above general description and the detailed description below are only exemplary and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] In order to more clearly illustrate the technical solutions of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0097] Figure 1 A schematic diagram of a flow chart of a method for selecting a heterogeneous computing device provided by the present invention;

[0098] Figure 2 A schematic diagram of a flow chart of another heterogeneous computing power device selection method provided by the present invention;

[0099] Figure 3 A schematic diagram of the fine-tuning process of the format conversion model provided by the present invention;

[0100] Figure 4 A schematic diagram of the model structure of the computing power matching model provided by the present invention in an exemplary application scenario;

[0101] Figure 5 A schematic diagram of a hardware framework of an exemplary application scenario provided by the present invention;

[0102] Figure 6 A schematic flow chart of a method for selecting a heterogeneous computing device in an illustrative example provided by the present invention;

[0103] Figure 7 A structural diagram of an exemplary implementation of the heterogeneous computing power device selection device provided by the present invention;

[0104] Figure 8 A structural diagram of an exemplary embodiment of an electronic device provided by the present invention;

[0105] Fig. 9 A structural diagram of an exemplary implementation of a heterogeneous computing system provided by the present invention;

[0106] Fig.10 A schematic diagram of a computing power selection page for a heterogeneous computing system for an exemplary application scenario provided by the present invention. DETAILED DESCRIPTION

[0107] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Among them, the terms "first", "second", "third", "fourth", etc. in the specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations of the two are intended to cover non-exclusive inclusions. The term "exemplary" means "used as an example, embodiment or illustrative". Any embodiment described here as "exemplary" is not necessarily interpreted as being superior or better than other embodiments.

[0108] Heterogeneous computing is a parallel and distributed computing technology that can best match the parallelism type of computing tasks with the computing type that the machine can effectively support and can make the best use of various computing resources. With the rapid development of artificial intelligence technology, multi-heterogeneous computing systems are widely used. Multi-heterogeneous computing systems deploy a group of multiple types of computing nodes with different computing performance to the same distributed computing system, including but not limited to heterogeneous computing chips, GPUs (Graphics Processing Units), FPGAs (Field Programmable Gate Arrays), and computing cards such as NVIDIA computing accelerator cards and Cambrian computing accelerator cards. Each type of computing node resource can also include multiple computing nodes, such as multiple FPGAs and multiple NVIDIA computing accelerator cards. Different types of heterogeneous computing resources have different advantages in different application scenarios, such as artificial intelligence tasks. When computing power demanders actually use computing power, they need to choose computing power resources between different heterogeneous computing power resources.

[0109] At present, when computing power demanders select computing power resources, they need to provide detailed computing power usage types to the professional staff of computing power suppliers, or they need to provide detailed and professional descriptions of the tasks they use computing power resources to perform. The professional staff of computing power suppliers recommend appropriate computing power selection results for them based on the descriptions of computing power demanders. However, this requires computing power demanders to make relevant technical preparations before selecting computing power suitable for themselves, and they need to understand the real-time status of heterogeneous computing systems. Since the characteristics of computing power itself and the environment in which computing power is located are difficult for computing power demanders to obtain, this undoubtedly increases the difficulty for computing power demanders, and computing power demanders need to reserve enough professional technical knowledge. Furthermore, computing power suppliers need to have rich professional knowledge to match the computing power needs of computing power demanders, which has high labor costs and high costs for interactive understanding between computing power demanders and computing power suppliers, making computing power selection a difficult and time-consuming task.

[0110] In view of this, in order to solve the problem that the supply and demand parties in the related technology cannot achieve natural language level communication, reduce the cost of interaction and understanding between the computing power demander and the computing power supplier, and reduce the labor cost of the computing power supplier, the present invention converts the computing power demand information described in natural language by the computing power demander into computing power demand data that can be understood by the heterogeneous computing system, matches the computing power demander with appropriate computing power resources according to the real-time status of the computing power resources of the heterogeneous computing system, and outputs the final computing power resource selection result to the computing power demander in the form of natural language, which not only does not require the professional knowledge and knowledge reserve of the computing power demander, but also can achieve low-cost computing power resource matching. After introducing the technical scheme of the present invention, various non-limiting embodiments of the present invention are described in detail below. In order to better illustrate the present invention, many specific details are given in the specific embodiments below. Those skilled in the art should understand that the present invention can also be implemented without these specific details. In other examples, the methods, means, components and circuits well known to those skilled in the art are not described in detail to highlight the main purpose of the present invention.

[0111] First see Figure 1 , Figure 1 A flowchart of a method for selecting a heterogeneous computing device is provided for this embodiment. This embodiment may include the following contents:

[0112] S101: Obtain heterogeneous computing resource status data of a heterogeneous computing system.

[0113] The heterogeneous computing resource status data includes the status data of each computing node of the heterogeneous computing system, and the heterogeneous computing resource status data can be obtained in real time or according to preset rules, such as when the computing selection is triggered, which does not affect the implementation of the present invention. The heterogeneous computing resource status data includes but is not limited to the available memory of each computing node, the status data of the server where each computing node is located, and the charging situation of the computing resources provided by each computing node.

[0114] S102: Obtain computing power demand data described in natural language by the computing power demander, and convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system.

[0115] In the present invention, the computing power demander outputs computing power demand data to the heterogeneous computing system in the process of calling the computing power resources of the heterogeneous computing system. The so-called computing power demand data is the demand described by the computing power demander in natural language, that is, the computing power demand data is not expressed in technical terms. The computing power demand data can be a statement of the computing power resources to be used by the computing power demander, or a statement describing the task to be performed to the computing power supplier so that the computing power supplier can recommend computing power. For example, the computing power demand data can be the need for 1 GPU and 2 FPGAs, or it can be the computing power resources required for the task of using a certain data set to train a convolutional neural network to obtain a model for recognizing faces. This does not affect the implementation of the present invention. The computing power demand standard data uses professional terms or technical terms to describe the computing power demand information of the computing power demander. The training samples can be used in advance to train the artificial intelligence model based on the deep learning algorithm, and the training can obtain a model capable of learning to convert the computing power demand data into the computing power demand standard data. A mapping relationship table and a key information extraction table can also be constructed in advance, and the required key information can be extracted from the computing power demand data through the key information extraction table, and the key information can be combined into the computing power demand standard data through the mapping relationship table. Of course, technicians in the relevant field can also use other methods to achieve the conversion between the two, which does not affect the implementation of the present invention.

[0116] S103: Call a pre-built computing power matching model to determine computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data.

[0117] In this embodiment, the computing power matching model constructs a matching relationship between computing power demand and computing power resources. The computing power matching model can be a model that uses training samples to train an artificial intelligence model based on a deep learning algorithm to obtain a model with learning computing power resource matching capabilities. The computing power matching model can also be a computing power matching mapping table, which constructs a mapping relationship between computing power demand standard data and heterogeneous computing power resource status data. Of course, technicians in the relevant field can also use other methods to achieve the conversion between the two, which does not affect the implementation of the present invention. The computing power matching data is the computing power resources output by the computing power matching model that match the computing power demand of S101, which is a description at the technical language level. Among them, the computing power matching data is provided by the heterogeneous computing system to the user, and is used to perform the identification information of the heterogeneous computing power equipment required by the user to perform the task, such as the heterogeneous computing power identification and number, and can also be directly provided to the user with heterogeneous computing power equipment that adapts to the user's needs.

[0118] S104: Convert the computing power matching data into a computing power resource selection result described in natural language and output it.

[0119] After the computing power supplier in the previous step determines the computing power resources that match the computing power demander's computing power demand, since the computing power matching data is based on the expression of professional terms or technical terms, in order to reduce the interactive understanding cost between the supply and demand parties, and is applicable to computing power demanders who do not need knowledge reserves, this step will further convert the computing power matching data into computing power resource selection results, and the computing power resource selection results are described in natural language as a reply to the computing power demander. This step can use the same idea as S102 for format conversion, or it can use different methods, which does not affect the implementation of the present invention. For example, the computing power matching data is: RTX (Real Time eXchange, real-time communication) 3090, and the computing power resource selection result is: Hello, please select the RTX 3090 graphics card, which is more in line with your computing power requirements.

[0120] In the technical solution provided in this embodiment, the computing power demand information described in natural language by the computing power demander is converted into computing power demand data that can be understood by the heterogeneous computing system, and the computing power demander is matched with appropriate computing power resources according to the real-time status of the computing power resources of the heterogeneous computing system, and the final computing power resource selection result is output to the computing power demander in the form of natural language. During the whole process, the computing power demander and the heterogeneous computing system communicate through natural language. The heterogeneous computing system can provide high service quality that is closest to real people, and the user communication is smoother and the user experience is better. Furthermore, the computing power demander only needs to clarify the computing power demand without understanding the characteristics of the computing power itself, the environment in which the computing power is located, and the professional description of the task to be performed. The natural language level replaces the technical language level of the relevant technology to interact with the heterogeneous computing system. The computing power resource selection can be realized without the need for the computing power demander to have professional knowledge, which effectively reduces the technical threshold of the computing power demander, has better practicality and universality, and is conducive to improving the user experience. In addition, computing power matching is realized through a computing power matching model, which does not require the computing power supplier to provide expensive manpower costs to achieve, and can achieve low-cost computing power resource matching.

[0121] It should be noted that there is no strict order of execution between the steps in the present invention. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just a schematic and does not mean that this is the only execution order.

[0122] In the above embodiment, there is no limitation on how to convert the data format. In this embodiment, an exemplary implementation of the data conversion format is given, and a natural language processing model is used to establish natural language-level communication with the computing power demander, so as to help the computing power demander to conveniently and easily select automatic computing power in a heterogeneous computing power scenario, which may include the following steps:

[0123] The process of converting the computing power requirement data into computing power requirement standard data in a computing power requirement data format that meets the computing power requirement data format of the heterogeneous computing system may include:

[0124] Obtain a sample data set of computing power requirement questions and answers in advance; the sample data set of computing power requirement questions and answers includes multiple groups of computing power requirement questions and answers samples, each of which includes at least a computing power requirement question sample and a corresponding computing power requirement standard sample. The computing power requirement question sample is computing power requirement information described in natural language, such as a computing power requirement method to explain the training data set, a sentence containing a learning task, the target time for task completion, and the effect to be achieved by the task. The computing power requirement standard sample is computing power requirement information that meets the computing power requirement data format, such as a data set, a training task, a task duration, a model effect, etc. For example, the computing power requirement question sample of the computing power requirement question and answer sample may be: I want to train a classification model for the CIFAR10 data set, using the VGG (Visual Geometry Group) series model. How should I choose computing power? The corresponding computing power requirement standard sample is: Dataset: CIFAR10, Model: VGG series. The format conversion model is pre-trained based on the computing power requirement question and answer sample data set; the format conversion model has the learning ability to convert the computing power requirement data described in natural language into the computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system. After the format conversion model is trained, the computing power requirement data can be input into the format conversion model, and the output of the format conversion model is used as the computing power requirement standard data.

[0125] The process of converting the computing power matching data into a computing power resource selection result described in natural language for output may include: pre-acquiring a computing power matching question and answer sample data set; the computing power matching question and answer sample data set includes multiple groups of computing power matching question and answer samples, each computing power matching question and answer sample includes at least a computing power matching question sample and a corresponding computing power matching answer sample, the computing power matching question sample is computing power matching information that meets the computing power output data format of the heterogeneous computing system, and the computing power matching answer sample is computing power matching information described in natural language; for example, the computing power matching question sample of the computing power matching question and answer sample is RTX 3090. The corresponding computing power matching answer sample is: Dear, hello, please choose the RTX 3090 graphics card, which is more in line with your requirements. The above format conversion model or a new format conversion model is pre-trained based on the computing power matching question and answer sample data set; the format conversion model can be used to convert the computing power matching data into a computing power resource selection result described in natural language. After the format conversion format is trained, the computing power matching data can be converted and input into the format conversion model, and the output of the format conversion model is used as the computing power resource selection result.

[0126] Among them, the format conversion model can be based on any natural language processing model recorded in the relevant technology, such as a model based on Transformer. The natural language processing model can analyze, understand and process natural language with language as the object, conduct quantitative research on language information with the support of computers, and provide language descriptions that can be used by humans and computers. After determining the type of natural language processing model to be used, any corresponding training method can be used in combination with the training samples recorded above to train the natural language model until the iteration stop condition is met. In order to further improve the training efficiency, the format conversion model can also be implemented based on a pre-trained language model, such as BERT (Bidirectional Encoder Representations from Transformers, a pre-trained language model based on a transformer. With the development of artificial intelligence technology, the scale of natural language processing models is getting larger and larger. Large language models can capture deeper language rules and more detailed semantic information through larger-scale data and more complex model architectures. They perform well in multiple language tasks and can generate more fluent and accurate texts. The format conversion model of this embodiment can also adopt a large-scale pre-trained language model, that is, a large language model, such as LLama-7B (billion) (LargeLanguage Model Meta Artificial Intelligence, Large Language Model Meta Artificial Intelligence Model), LLama-13B, ChatGLM (Chinese-English Bilingual Dialogue Model).

[0127] Among them, for the pre-trained language model, its training process usually includes a pre-training stage and a fine-tuning stage. In the pre-training stage, the model uses large-scale text data to learn language patterns and structures. Through tasks such as predicting the next word and masking, the model can learn rich language features from the data. In the fine-tuning stage, the model will use specific task data, that is, downstream application data, for optimization to improve performance on downstream tasks. The implementation process of format conversion based on the pre-trained language model in this embodiment may include:

[0128] For the implementation method of converting computing power demand data into computing power demand standard data, the implementation method of converting computing power matching data into computing power resource selection results described in natural language is different from the application scenarios, such as pre-trained language models with different model architectures, and the format conversion models can be trained separately. The process of converting computing power demand data into computing power demand standard data that meets the computing power demand data format of heterogeneous computing systems may include: obtaining a pre-trained language model that has completed the pre-training stage; obtaining a computing power demand question and answer sample data set; the computing power demand question and answer sample data set is a fine-tuning data set of the pre-trained language model; using the computing power demand question and answer sample data set to fine-tune the pre-trained language model to obtain a format conversion model, so as to use the format conversion model to convert the computing power demand data into computing power demand standard data. The implementation process of converting computing power matching data into computing power resource selection results described in natural language may include: pre-acquiring a computing power matching question and answer sample data set. The format conversion model is trained in advance based on the computing power matching question and answer sample data set; the format conversion model is also used to convert the computing power matching data that meets the computing power output data format into the computing power resource selection result described in natural language; in order to trigger the output of the format conversion model, the conversion prompt information can be set in advance, such as ", please reply to the customer", and the conversion prompt information can be directly added to the computing power matching data. After the format conversion model recognizes the conversion prompt information, it can perform the format conversion task. Correspondingly, the conversion prompt information can be obtained; according to the conversion prompt information and the computing power matching data, the user reply prompt data is generated. The user reply prompt data is the computing power matching data carrying the conversion prompt information, which can be used as the input of the format conversion model. For example, the computing power matching data is RTX (Real Time eXchange, real-time communication) 3090, and the user reply prompt data can be "RTX 3090, please reply to the customer". The user reply prompt data is input into the format conversion model, and the format conversion model processes it and outputs the computing power resource selection result to reply to the computing power demander. In this embodiment, the computing power requirement question and answer sample data set and the computing power matching question and answer sample data set can refer to the contents recorded in the above embodiments, and will not be repeated here.

[0129] In order to further improve the efficiency of S102 and S104 and the efficiency of selecting the entire heterogeneous computing power device, this embodiment can use the computing power demand question and answer sample data set and the computing power matching question and answer sample data set as a mixed training sample set to fine-tune a large language model, such as Figure 2 As shown, it may include the following:

[0130] Obtain the pre-trained language model that has completed the pre-training phase; obtain the question and answer sample fine-tuning data set; the question and answer sample fine-tuning data set includes the computing power demand question and answer sample data set and the computing power matching question and answer sample data set; use the question and answer sample fine-tuning data set to fine-tune the pre-trained language model to obtain the format conversion model. Obtain the computing power demand data input by the computing power demander, input it into the fine-tuned format conversion model, the format conversion model converts the computing power demand data into computing power demand standard data, and inputs it into the computing power matching model. The computing power matching model determines the computing power matching data based on the heterogeneous computing power resource status data and the computing power demand standard data, and outputs the computing power matching data to the format conversion model. The format conversion model converts the computing power matching data into the computing power resource selection result, and then replies to the computing power demander.

[0131] It is understandable that the fine-tuning method of the pre-trained language model affects the model performance of the pre-trained language model. In order to further improve the format conversion accuracy, based on the above embodiment, this embodiment also provides an exemplary fine-tuning method, such as Figure 3 As shown, it may include the following:

[0132] Pre-construct a first training parameter A and a second training parameter B, the hyperparameter controlling the parameter amount of the first training parameter A and the second training parameter B is a rank parameter, the input dimension of the first training parameter is the same as the input dimension of the pre-trained language model, and the first difference between the output dimension and the output dimension of the pre-trained language model is greater than a first preset threshold; the output dimension of the second training parameter is the same as the output dimension of the pre-trained language model, and the second difference between the input dimension and the input dimension of the pre-trained language model is greater than a second preset threshold; initialize the first training parameter to a Gaussian distribution, and initialize the second training parameter to 0; in the process of fine-tuning the pre-trained language model using a computing power demand question and answer sample data set, fix the pre-trained model parameters of the pre-trained language model unchanged, the dimension of the pre-trained model parameters of the pre-trained language model is d×d, and update the first training parameter and the second training parameter; when the first training parameter and the second training parameter are trained, merge the first training parameter, the second training parameter and the model parameter using a re-parameterization method.

[0133] In this embodiment, the pre-trained language model is fine-tuned to adapt to downstream tasks based on Lora (Low-Rank). When the pre-trained language model is used to adapt to downstream tasks, only a small number of parameters need to be trained to achieve a good effect. LoRA uses the computing power demand question and answer sample data set and only trains the newly added parameters to adapt the format conversion task. Exemplarily, LoRA adds two parameters A and B next to the pre-trained model structure, which are initialized to Gaussian distribution and 0 respectively. The additional parameters are 0 at the beginning of training. The input dimension of A and the output dimension of B are the same as the input and output dimensions of the original model, respectively, while the output dimension of A and the input dimension of B are a value much smaller than the input and output dimensions of the original model, which can greatly reduce the parameters to be trained. During training, only the parameters of A and B are updated, and the pre-trained model parameters are fixed. After the new parameters are trained, the idea of ​​re-parameterization can be used during inference to merge the new parameters with the old model parameters, so that the effect of fine-tuning the entire model can be achieved on the new task, and the time consumption of inference will not be increased during inference, which effectively improves the efficiency of model training.

[0134] In addition, the present invention also provides another fine-tuning method, which pre-constructs a differentiable network, and the auxiliary parameters to be trained of the differentiable network correspond to the model parameters to be optimized of the pre-trained language model. The model parameters to be optimized can be a matrix composed of a set of model parameters of the network structure, or can be parameters corresponding to a neuron. In the process of model fine-tuning, the auxiliary parameters in the differentiable network will be updated first. For example, the value of the auxiliary parameter can be calculated based on the gating method. By comparing the value of the auxiliary parameter with the size of the set threshold, it is determined whether there are parameters that need to be updated in the pre-trained language model, and a mask is generated according to the parameter update situation. The mask value includes two types: need to be updated and do not need to be updated. Based on the mask information, the requires_grad (gradient setting value) of the corresponding parameter in the pre-trained language model is set to False, so that the gradient is not calculated during back propagation, thereby reducing the back propagation time.

[0135] From the above, it can be seen that this embodiment uses a natural language processing model, such as a large language model, to replace the experts of the computing power supplier to communicate with the computing power demand customers. According to the natural language description of the computing power demand by the computing power demander and the current status of the multi-heterogeneous computing system, the computing power selection result is finally output in the form of natural language, thereby realizing the natural language level interaction between the supply and demand parties, facilitating intelligent communication between the computing power supply and demand parties, lowering the technical threshold for the computing power demander, and at the same time reducing the labor cost of the computing power supplier.

[0136] Exemplarily, based on the above embodiments, the present invention also limits the method for obtaining heterogeneous computing resource status data, which may include the following contents: obtaining the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the utilization rate of the central processing unit; sending a fee query request to the database to obtain the rate data of each computing resource; constructing heterogeneous computing resource status data based on the rate data of each computing resource, the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the utilization rate of the central processing unit.

[0137] In this embodiment, a monitor can be deployed in advance at each computing power node, and the monitor can obtain real-time status information of the computing power node and the server where the computing power node is located, including: the real-time available memory size of the heterogeneous computing power, the real-time CPU utilization rate of the server where the heterogeneous computing power is located, and the real-time available memory size of the server where the heterogeneous computing power is located. The monitor sends the collected information in real time or periodically. For each computing power resource rate data, the computing power supplier can store the computing power resource usage fees of different computing power nodes in the database in advance, and the corresponding data can be obtained by querying the database.

[0138] As can be seen from the above, this embodiment can obtain heterogeneous computing resource status data by acquiring monitoring data from the monitor and querying the database, which is easy to implement and simple to operate.

[0139] The above embodiments do not limit how to match and recommend computing power to computing power demanders. The present invention also provides a computing power matching implementation method, which can automatically and accurately match and recommend appropriate computing power to computing power demanders, and may include the following contents:

[0140] Acquire a computing power matching sample data set in advance; train a computing power matching model based on the computing power matching sample data set in advance; input computing power requirement standard data and heterogeneous computing power resource status data into the trained computing power matching model, and use the output of the computing power matching model as computing power matching data.

[0141] In this embodiment, the computing power matching sample data set may include multiple computing power matching samples, and the number of computing power matching samples is flexibly selected according to actual conditions, and the present invention does not impose any restrictions on this. For each computing power matching sample, each computing power matching sample includes at least one set of corresponding demand-side attribute sample data and supply-side attribute sample data, that is, the demand-side attribute sample data and the supply-side attribute sample data are a set of data corresponding to each other, and the demand-side attribute sample data is the indicator data of the multi-dimensional attributes of the computing power demand side, including but not limited to the data set, training task, task duration, task effect, and corresponding to the computing power demand question and answer sample data set; the supply-side attribute sample data is the data of the multi-dimensional attributes of the computing power supplier, including but not limited to the real-time available memory size of the heterogeneous computing power, the real-time CPU utilization rate of the server where the heterogeneous computing power is located, the real-time available memory size of the server where the heterogeneous computing power is located, and the heterogeneous computing power usage rate, corresponding to the heterogeneous computing power resource status data. Each computing power matching sample of the computing power matching sample data set of this embodiment has a label, and the label is used to identify the matching information between the two. The matching information includes whether there is a match and / or the degree of matching. In other words, a label identifying the matching information is set between the demand-side attribute sample data and the supply-side attribute sample data of each computing power matching sample.

[0142] Exemplarily, this embodiment also provides a label generation process for each computing power matching sample: pre-configure matching capability label data and matching degree label data; matching capability label data is used to identify whether there is a match, which is a hard indicator, that is, whether the matching requirements are met between the demand-side attribute sample data and the supplier-side attribute sample data. The matching capability label data includes a matching identification value and a non-matching identification value. The matching identification value is used to identify that the matching requirements are met between the demand-side attribute sample data and the supplier-side attribute sample data, and the non-matching identification value is used to identify that the matching requirements are not met between the demand-side attribute sample data and the supplier-side attribute sample data. If the two meet the matching requirements, the label between the two is assigned a matching identification value. If the two do not meet the matching requirements, the label between the two is assigned a non-matching identification value. For example, the matching identification value is 1, and the non-matching identification value is 0, which means no match; if the label between the demand-side attribute sample data and the supplier-side attribute sample data is 0, it means that the requirements cannot be met and matching cannot be performed, that is, the computing power cannot meet the requirements at all. The matching degree label data is used to identify the matching degree between the demand-side attribute sample data and the supply-side attribute sample data. In other words, only when the demand-side attribute sample data and the supply-side attribute sample data meet the matching requirements, the matching degree label data will be further set. When the matching capability labeling instruction is received, the matching capability labeling instruction can be issued by an expert, that is, through manual labeling. Of course, automatic labeling can also be achieved through a script. The matching capability labeling instruction will carry a matching identification value or a non-matching identification value to label the computing power matching sample of the computing power matching sample data set based on the identification value carried by the matching capability labeling instruction; for each computing power matching sample, if the matching capability label data of the current computing power matching sample is a matching identification value, the matching degree identification value corresponding to the current computing power matching sample is obtained, and the matching degree label data of the current computing power matching sample is generated according to the matching degree identification value. Similarly, the matching degree identification value can be measured based on the rate and task time as reference factors, and the matching degree identification value can be determined manually or by a script, which does not affect the implementation of the present invention.

[0143] As an efficient way to quantify the matching degree identification value, the pre-built matching score calculation formula can be called to calculate the matching score value between the demand side attribute sample data and the supply side attribute sample data as the matching degree identification value of each computing power matching sample; the matching score calculation formula can be expressed as:

[0144] Label 2-score = α Y+ β t;

[0145] Get the matching score value of the current computing power matching sample;

[0146] In the formula, Label2-score is the matching score, Y is the computing resource rate, t is the task completion time, α The first weight factor representing the computing resource rate, β The second weight factor indicating the task completion time. The first weight factor and the second weight factor can be assigned according to the actual situation, and are used to indicate whether the rate or time has a greater impact on the matching degree. In this embodiment, if the supply and demand matching can be performed, or if the supply and demand matching cannot be performed, the matching degree of the matching pair is 0. The matching degree of different matching pairs is scored, and the score can be between 0.5 and 1, for example.

[0147] In the process of model training using the above training samples, the demand-side attribute sample data and the supply-side attribute sample data can be randomly generated and randomly combined into a computing power matching sample, and then the corresponding labels are assigned by the above method. Historical data can also be obtained from the historical operation records of the data center, which does not affect the implementation of the present invention. After determining the training sample data, technicians in this field can flexibly select any deep learning network model architecture as the network structure of the computing power matching model according to actual needs, such as DSSM (Deep Structured Semantic Models), CLSM (convolutional latent semantic model), LSTM (Long-Short-Term Memory)-DSSM), and train it to have the learning ability to determine the matching computing power matching data for the computing power demand data, that is, the finally trained computing power matching model can be used to determine the matching computing power matching data for the computing power demand data.

[0148] Based on the above embodiments, in order to improve the model performance of the computing power matching model, the present invention also provides an exemplary network model structure of the computing power matching model, that is, before training the computing power matching model, the model network structure of the computing power matching model can be pre-constructed. The model network structure of the computing power matching model includes a demand-side network model link, a supply-side network model link, and a feature splicing output layer; the demand-side network model link is used to extract the demand feature data of the demand-side attribute sample data, the supply-side network model link is used to extract the supply feature data of the supplier-side attribute sample data, and the feature splicing output layer is used to output the splicing features of the demand feature data and the supply feature data. Figure 4As shown, the demand-side network model link includes, in accordance with the data flow processing direction of the demand-side attribute sample data, the first input layer, the first fully connected layer, the second fully connected layer and the third fully connected layer in sequence; the first input layer is used to input the demand-side attribute sample data, and the activation function of each neuron in the first fully connected layer, the second fully connected layer and the third fully connected layer is a linear rectification function. The supply-side network model link includes, in accordance with the data flow processing direction of the supply-side attribute sample data, the second input layer is used to input the supply-side attribute sample data, and the activation function of each neuron in the fourth fully connected layer, the fifth fully connected layer and the sixth fully connected layer is a linear rectification function. The feature concatenation output layer includes a concatenation layer and a seventh fully connected layer; the seventh fully connected layer is connected to the output of the concatenation layer; the concatenation layer is used to concatenate the demand feature data and the supply feature data. Among them, each neuron of each fully connected layer is fully connected with all neurons of its previous layer. The fully connected layer can integrate the local information with category distinction in the convolution layer or the pooling layer. The number of neurons contained in each fully connected layer can be flexibly selected according to the actual situation. The fully connected layers of the demand-side network model link and the supply-side network model link can adopt the same configuration or different configurations. For example, the neurons of the first fully connected layer and the fourth fully connected layer are the same, both including 64, the neurons contained in the second fully connected layer and the fifth fully connected layer are the same, both including 32, and the neurons contained in the third fully connected layer and the sixth fully connected layer are the same, both including 10. In addition, those skilled in the art can also replace the fully connected layer with other structures based on actual needs, such as multi-layer perceptron MLP, convolutional neural network, Transformer (converter) module, which will not affect the implementation of the present invention.

[0149] It is understandable that different loss functions are used in the model training process, and the final model training effect and model training time are also different. Based on the above embodiment, the present invention also provides an exemplary calculation method for the loss information of the computing power matching model, which may include the following contents:

[0150] The matching capability loss information is determined based on the splicing features output by the feature splicing output layer, and the matching degree loss information is determined based on the demand feature data and the supply feature data. Based on the matching capability loss information and the matching degree loss information, the model parameters of the computing power matching model are continuously iteratively updated until the preset model training stop conditions are met.

[0151] Among them, the preset model training stop condition can be the convergence of the natural language model, the number of iterations can be a preset number threshold, or the model accuracy of the natural language model can reach a preset accuracy threshold, such as 98%. Technical personnel in this field can choose according to actual conditions. The loss information of the computing power matching model includes two parts: matching ability loss information and matching degree loss information. The loss of matching or not is defined as the cross entropy loss. The configuration matching ability label data can be used as a hard constraint, and the matching ability loss function relationship can be called to calculate the matching ability loss information; the matching ability loss function relationship can be expressed as:

[0152] L1=softmax{h3(h1(x),h2(y)),g_1};

[0153] Where L1 represents the matching ability loss information, softmax represents the normalized exponential function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_1 represents the matching ability label data, h1(x) represents the demand feature data, h2(y) represents the supply feature data, and h3 represents the output of the feature concatenation output layer.

[0154] Among them, the loss of matching degree is defined as the measurement loss, and the matching degree label data can be used as a soft constraint. The matching degree loss function relationship can be called to calculate the matching degree loss information; the matching degree loss function relationship is:

[0155] L2=[g_2-(1-sigmoid(||h1(x)-h2(y)|| 2 ))] 2 ;

[0156] Where L2 represents the matching degree loss information, sigmoid represents the S-shaped curve function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_2 represents the matching degree label data, h1(x) represents the demand feature data, and h2(y) represents the supply feature data.

[0157] From the above, it can be seen that the present invention uses computing power matching samples annotated with double labels to train the computing power matching model of the dual-path network model structure under the loss of matching degree and matching ability, so as to obtain a computing power matching model with better accuracy and better training effect. While ensuring the accuracy of the computing power matching effect, it also improves the user experience at the same time.

[0158] Finally, based on the technical solution of the present invention, Figure 5 Some possible application scenarios involved in the technical solution of the present invention are introduced by way of examples. Figure 5 A schematic diagram of a hardware composition framework applicable to a computing power selection method provided by the present invention may include the following contents:

[0159] The hardware component framework may include a first electronic device 51 and a second electronic device 52, and the first electronic device 51 and the second electronic device 52 are connected via a network 53. Figure 6 As shown, the first electronic device 51 deploys a processor for executing the format conversion model and computing power matching model training recorded in any of the above embodiments, and the second electronic device 52 deploys the trained format conversion model and computing power matching model training, and provides a user end of a human-computer interaction interface, such as Figure 2 As shown, the second electronic device 52 receives the computing power demand data of the user, obtains the computing power resource selection result based on the trained conversion model and computing power matching model, and replies it to the user.

[0160] It should be noted that the above application scenarios are only shown to facilitate understanding of the concept and principle of the present invention, and the embodiments of the present invention are not limited in this respect. On the contrary, the embodiments of the present invention can be applied to any applicable scenario.

[0161] From the above, it can be seen that this embodiment can achieve accurate selection of computing power resources without the need for the computing power demander to have professional knowledge. The computing power supply and demand parties can communicate through natural language, and the computing power supplier can provide better anthropomorphic services. There is no need for the computing power supplier to provide expensive manpower costs, thereby achieving low-cost and high-precision computing power resource matching.

[0162] The present invention also provides a corresponding device for the heterogeneous computing power device selection method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The heterogeneous computing power device selection device provided by the present invention is introduced below. The device is used to implement the heterogeneous computing power device selection method provided by the present invention. In this embodiment, the heterogeneous computing power device selection device may include or be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the heterogeneous computing power device selection method disclosed in Example 1. The program module referred to in this embodiment refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the heterogeneous computing power device selection device in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment. The heterogeneous computing power device selection device described below and the heterogeneous computing power device selection method described above can be referred to each other.

[0163] From the perspective of functional modules, see Figure 7 , Figure 7 A structural diagram of a heterogeneous computing power device selection device provided in this embodiment in a specific implementation manner, the device may include:

[0164] Resource data acquisition module 701, used to obtain heterogeneous computing power resource status data of the heterogeneous computing system;

[0165] The demand data acquisition module 702 is used to acquire the computing power demand data described by the computing power demander in natural language;

[0166] The demand data conversion module 703 is used to convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system;

[0167] The supply and demand matching module 704 is used to call a pre-built computing power matching model, and determine computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data; wherein the computing power matching model constructs a matching relationship between computing power demand and computing power resources;

[0168] The matching result output module 705 is used to convert the computing power matching data into a computing power resource selection result described in natural language for output.

[0169] Illustratively, in some implementations of this embodiment, the demand data conversion module 703 may also be used to:

[0170] Obtain a computing power requirement question and answer sample data set in advance; the computing power requirement question and answer sample data set includes multiple groups of computing power requirement question and answer samples, each computing power requirement question and answer sample includes at least a computing power requirement question sample and a corresponding computing power requirement standard sample, the computing power requirement question sample is computing power requirement information described in natural language form, and the computing power requirement standard sample is computing power requirement information that meets the computing power requirement data format;

[0171] A format conversion model is pre-trained based on a sample data set of computing power requirement questions and answers; the format conversion model is used to convert computing power requirement data described in natural language into computing power requirement standard data in a computing power requirement data format that meets the computing power requirement data format of heterogeneous computing systems;

[0172] The computing power requirement data is input into the trained format conversion model, and the output of the format conversion model is used as the computing power requirement standard data.

[0173] Illustratively, in some other implementations of this embodiment, the demand data conversion module 703 may also be used to:

[0174] Obtain the pre-trained language model that has completed the pre-training phase;

[0175] Obtain a sample data set of questions and answers on computing power requirements. The sample data set of questions and answers on computing power requirements is a fine-tuning data set for the pre-trained language model.

[0176] The pre-trained language model is fine-tuned using the computing power requirement question and answer sample dataset to obtain a format conversion model, which is used to convert the computing power requirement data into standard computing power requirement data.

[0177] As an exemplary implementation of the above embodiment, the demand data conversion module 703 may be further used for:

[0178] Pre-constructing a first training parameter and a second training parameter; the input dimension of the first training parameter is the same as the input dimension of the pre-trained language model, and the first difference between the output dimension and the output dimension of the pre-trained language model is greater than a first preset threshold; the output dimension of the second training parameter is the same as the output dimension of the pre-trained language model, and the second difference between the input dimension and the input dimension of the pre-trained language model is greater than a second preset threshold;

[0179] Initialize the first training parameter to Gaussian distribution and initialize the second training parameter to 0;

[0180] In the process of fine-tuning the pre-trained language model using the computing power demand question and answer sample data set, the pre-trained model parameters of the pre-trained language model are fixed unchanged, and the first training parameters and the second training parameters are updated;

[0181] After the first training parameters and the second training parameters are trained, the first training parameters, the second training parameters and the model parameters are merged by using a re-parameterization method.

[0182] As another exemplary implementation of the above embodiment, the demand data conversion module 703 may be further used for:

[0183] Acquire a computing power matching question and answer sample data set in advance; the computing power matching question and answer sample data set includes multiple groups of computing power matching question and answer samples, each computing power matching question and answer sample includes at least a computing power matching question sample and a corresponding computing power matching answer sample, the computing power matching question sample is computing power matching information that satisfies the computing power output data format of the heterogeneous computing system, and the computing power matching answer sample is computing power matching information described in natural language;

[0184] The format conversion model is pre-trained based on the computing power matching question and answer sample data set; the format conversion model is also used to convert the computing power matching data that meets the computing power output data format into the computing power resource selection result described in natural language;

[0185] Get conversion prompt information;

[0186] Generate user response prompt data based on conversion prompt information and computing power matching data;

[0187] The user response prompt data is input into the format conversion model, and the output of the format conversion model is used as the computing resource selection result.

[0188] Illustratively, in some other implementations of this embodiment, the demand data conversion module 703 may also be used to:

[0189] Obtain the pre-trained language model that has completed the pre-training phase;

[0190] Obtain a question-and-answer sample fine-tuning dataset; the question-and-answer sample fine-tuning dataset includes a computing power requirement question-and-answer sample dataset and a computing power matching question-and-answer sample dataset;

[0191] The pre-trained language model is fine-tuned using the question-and-answer sample fine-tuning dataset to obtain a format conversion model, which is used to convert the computing power requirement data into computing power requirement standard data, and to convert the computing power matching data into computing power resource selection results.

[0192] Illustratively, in some other implementations of this embodiment, the resource data acquisition module 701 may also be used to:

[0193] Obtain the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the CPU utilization rate;

[0194] Send a fee query request to the database to obtain the rate data of each computing resource;

[0195] Based on the rate data of each computing resource, the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the central processing unit utilization rate, the heterogeneous computing resource status data is constructed.

[0196] For example, in some other implementations of this embodiment, the supply-demand matching module 704 may also be used to:

[0197] Acquire a computing power matching sample data set in advance; the computing power matching sample data set includes a plurality of computing power matching samples, each computing power matching sample includes at least one set of corresponding demand-side attribute sample data and supply-side attribute sample data, and a label identifying matching information is set between the demand-side attribute sample data and the supply-side attribute sample data;

[0198] A computing power matching model is pre-trained based on a computing power matching sample data set; the computing power matching model is used to determine matching computing power matching data for computing power demand data;

[0199] The computing power requirement standard data and heterogeneous computing power resource status data are input into the trained computing power matching model, and the output of the computing power matching model is used as the computing power matching data.

[0200] As an exemplary implementation of the above embodiment, the supply-demand matching module 704 may be further used to:

[0201] Pre-configure matching capability label data and matching degree label data; the matching capability label data includes a matching identification value and a non-matching identification value, the matching identification value is used to identify that the matching requirements are met between the demand side attribute sample data and the supply side attribute sample data, and the non-matching identification value is used to identify that the matching requirements are not met between the demand side attribute sample data and the supply side attribute sample data;

[0202] When receiving a matching capability labeling instruction, performing matching capability labeling on a computing power matching sample of a computing power matching sample data set based on an identification value carried by the matching capability labeling instruction;

[0203] For each computing power matching sample, if the matching capability label data of the current computing power matching sample is a matching identification value, the matching degree identification value corresponding to the current computing power matching sample is obtained, and the matching degree label data of the current computing power matching sample is generated according to the matching degree identification value.

[0204] As an exemplary implementation of the above embodiment, the supply-demand matching module 704 may be further used to:

[0205] The pre-built matching score calculation formula is called to calculate the matching score value between the demand-side attribute sample data and the supply-side attribute sample data, which is used as the matching degree identification value of each computing power matching sample; the matching score calculation formula is:

[0206] Label 2-score = α Y+ β t;

[0207] Get the matching score value of the current computing power matching sample;

[0208] In the formula, Label 2-score is the matching score, Y is the computing resource rate, t is the task completion time, α The first weight factor representing the computing resource rate, β The second weighting factor representing the task completion time.

[0209] For example, in some other implementations of this embodiment, the supply-demand matching module 704 may also be used to:

[0210] Pre-build the model network structure of the computing power matching model; the model network structure includes a demand-side network model link, a supply-side network model link and a feature splicing output layer; the demand-side network model link is used to extract demand feature data of the demand-side attribute sample data, the supply-side network model link is used to extract supply feature data of the supply-side attribute sample data, and the feature splicing output layer is used to output the splicing features of the demand feature data and the supply feature data;

[0211] Determine matching capability loss information based on the splicing features output by the feature splicing output layer, and determine matching degree loss information based on the demand feature data and the supply feature data;

[0212] Based on the matching ability loss information and the matching degree loss information, the model parameters of the computing power matching model are continuously iteratively updated until the preset model training stop conditions are met.

[0213] Exemplarily, the demand-side network model link in the above embodiment includes, in order according to the data flow processing direction of the demand-side attribute sample data, a first input layer, a first fully connected layer, a second fully connected layer, and a third fully connected layer;

[0214] The activation function of each neuron in the first fully connected layer, the second fully connected layer, and the third fully connected layer is a linear rectification function.

[0215] Exemplarily, the supplier network model link in the above embodiment includes, in order according to the data flow processing direction of the supplier attribute sample data, a second input layer, a fourth fully connected layer, a fifth fully connected layer, and a sixth fully connected layer;

[0216] The activation function of each neuron in the fourth fully connected layer, the fifth fully connected layer and the sixth fully connected layer is a linear rectification function.

[0217] Exemplarily, the feature concatenation output layer in the above embodiment includes a concatenation layer and a seventh fully connected layer;

[0218] The seventh fully connected layer is connected to the output of the concatenation layer;

[0219] The splicing layer is used to splice demand feature data and supply feature data.

[0220] As an exemplary implementation of the above embodiment, the supply-demand matching module 704 may be further used to:

[0221] Call the matching capability loss function relationship to calculate the matching capability loss information; the matching capability loss function relationship is:

[0222] L1=softmax{h3(h1(x),h2(y)),g_1};

[0223] Where L1 represents the matching ability loss information, softmax represents the normalized exponential function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_1 represents the matching ability label data, h1(x) represents the demand feature data, h2(y) represents the supply feature data, and h3 represents the output of the feature concatenation output layer.

[0224] As another exemplary implementation of the above embodiment, the supply-demand matching module 704 may be further used to:

[0225] Call the matching degree loss function relationship to calculate the matching degree loss information; the matching degree loss function relationship is:

[0226] L2=[g_2-(1-sigmoid(||h1(x)-h2(y)|| 2 ))] 2 ;

[0227] Where L2 represents the matching degree loss information, sigmoid represents the S-shaped curve function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_2 represents the matching degree label data, h1(x) represents the demand feature data, and h2(y) represents the supply feature data.

[0228] The functions of the functional modules of the heterogeneous computing power equipment selection device in this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0229] From the above, it can be seen that this embodiment can realize the selection of computing power resources without the need for the computing power demander to have professional knowledge, and can achieve low-cost computing power resource matching without the need for the computing power supplier to provide expensive manpower costs.

[0230] The heterogeneous computing power device selection apparatus mentioned above is described from the perspective of functional modules. Furthermore, the present invention also provides an electronic device, which is described from the perspective of hardware. Figure 8 The following is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention in one implementation manner. Figure 8 As shown, the electronic device includes a memory 80 for storing computer programs; a processor 81 for implementing the steps of the heterogeneous computing power device selection method mentioned in any of the above embodiments when executing the computer program.

[0231] Among them, the processor 81 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 81 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 81 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 81 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 81 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 81 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0232] The memory 80 may include one or more computer non-volatile storage media, which may be non-transitory. The memory 80 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the memory 80 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 80 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 80 may also include both an internal storage unit and an external storage device of an electronic device. The memory 80 may be used not only to store application software and various types of data installed in the electronic device, such as: the code of the program in the process of executing the heterogeneous computing power device selection method, but also to temporarily store data that has been output or is to be output. In this embodiment, the memory 80 is at least used to store the following computer program 801, wherein, after the computer program is loaded and executed by the processor 81, the relevant steps of the heterogeneous computing power device selection method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 80 may also include an operating system 802 and data 803, and the storage method may be temporary storage or permanent storage. The operating system 802 may include Windows, Unix, Linux, etc. The data 803 may include but is not limited to data corresponding to the selection result of the heterogeneous computing power device, etc.

[0233] In some embodiments, the electronic device may further include a display screen 82, an input / output interface 83, a communication interface 84 or a network interface, a power supply 85 and a communication bus 86. Among them, the display screen 82 and the input / output interface 83 such as a keyboard belong to the user interface, and exemplary user interfaces may also include standard wired interfaces, wireless interfaces, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 84 may exemplarily include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 86 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0234] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 87 for realizing various functions.

[0235] The functions of the functional modules of the electronic device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0236] From the above, it can be seen that this embodiment can realize the selection of computing power resources without the need for the computing power demander to have professional knowledge, and can achieve low-cost computing power resource matching without the need for the computing power supplier to provide expensive manpower costs.

[0237] It is understandable that if the heterogeneous computing power device in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes but is not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program codes. Based on this, the present invention also provides a non-volatile storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of selecting a heterogeneous computing power device as described in any of the above embodiments are performed.

[0238] It is understandable that if the heterogeneous computing power device in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, the computer software product does not need to be stored in a physical storage medium. For example, it can be directly transmitted to a computer or other device with information processing capabilities through a wired network or a wireless network to perform all or part of the steps of the methods of each embodiment of the present invention. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product. Based on this, the present invention also provides a computer program product that stores a computer program. When the computer program is executed by a processor, the steps of selecting a heterogeneous computing power device as described in any of the above embodiments are performed.

[0239] Finally, the present invention also provides a heterogeneous computing system, see Fig. 9 , which may include:

[0240] The heterogeneous computing system may include multiple types of computing nodes 90, processors 81, monitors 91 and memory 80; each computing node is deployed on a corresponding node, such as a server, and a node may deploy multiple computing nodes or one computing node. The processor 81 is connected to each computing node 90 and the monitor 91 respectively, and the monitor 91 is connected to each computing node 90; the monitor 91 is used to collect hardware data of each computing node 90, and the memory 80 stores computing resource rate data; the processor 81 is used to obtain the hardware data and computing resource rate data collected by the monitor 91 as heterogeneous computing resource status data, and implement the steps of the heterogeneous computing device selection method recorded in any of the above embodiments when executing the computer program stored in the memory 80. Each type of computing node may include multiple computing nodes, and the type and number of computing nodes contained in the heterogeneous computing system can be flexibly selected according to actual conditions. The processor and each computing node can be connected through any communication method, such as wired connection and remote connection. The processor can be deployed to a computing node in a heterogeneous computing system. For ease of description, the computing node is defined as the target computing node; the target computing node is the computing node with the highest computing performance among all computing nodes in the heterogeneous computing system. As an exemplary implementation, the processor can also be deployed to any server, and the server is in communication connection with each computing node in the heterogeneous computing system.

[0241] Furthermore, the heterogeneous computing system also includes a display screen for providing a human-computer interaction interface, and the human-computer interaction interface has a computing power selection page, which may include a computing power requirement input area and a computing power resource selection result display area, such as Fig.10As shown, the computing power demand input area is used to receive the computing power demand data described in natural language output by the computing power demander, and the computing power demand input area includes a data input area and / or a computing power matching request trigger area; the data input area is a voice input area and / or a text input area; wherein the voice input area is used to receive the computing power demand audio data described in natural language by the computing power demander; the text input area is used to receive the computing power demand text data described in natural language by the computing power demander; in other words, when the user inputs the computing power demand data, he can input it in the form of text or voice. The computing power resource selection result display area is used to display the computing power resource selection result matching the computing power demand data to the computing power demander. Correspondingly, the processor is also used to implement the steps of the heterogeneous computing power device selection method recorded in any of the above embodiments when it is detected that the computing power matching request is triggered. The computing power matching request can be triggered when the system detects that there is no input in the text input area or the voice input area within a preset time period, and automatically sends a computing power matching request instruction. Of course, it can also be actively triggered by the computing power demander. A computing power matching request triggering area can be set in the computing power demand input area to provide the computing power demander with the function of triggering a computing power matching request.

[0242] The functions of the functional modules of the computing power node selection system of the heterogeneous computing system in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0243] From the above, it can be seen that this embodiment can realize natural language-level communication between heterogeneous computing systems and computing power demanders. The computing power demanders can easily select computing power resources, and the heterogeneous computing systems do not need to provide human resources for computing power matching, thereby reducing the cost of heterogeneous computing systems.

[0244] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device, electronic device, non-volatile storage medium, computer program product and heterogeneous computing system disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0245] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0246] The above is a detailed introduction to a heterogeneous computing power device selection method, device, electronic device, non-volatile storage medium, computer program product and heterogeneous computing system provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that based on the embodiments of the present invention, for ordinary technicians in this technical field, all other embodiments obtained without creative work are within the scope of protection of the present invention. Without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for selecting heterogeneous computing power equipment, characterized in that: include: Obtain heterogeneous computing resource status data of heterogeneous computing systems; Obtain computing power demand data described by the computing power demander in natural language, and convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system; Calling a pre-built computing power matching model, based on the computing power requirement standard data and the heterogeneous computing power resource status data, determining computing power matching data that matches the computing power requirement data; wherein the computing power matching model constructs a matching relationship between computing power requirements and computing power resources; Convert the computing power matching data into a computing power resource selection result described in natural language for output; The computing power demand data shall not be expressed in technical terms, including the expression of the computing power demander to clearly specify the computing power resources to be used, or the expression of describing the tasks to be performed to the computing power supplier so that the computing power supplier can make computing power recommendations; the computing power demand standard data shall use professional terms or technical terms to describe the computing power demand information of the computing power demander; Before calling the pre-built computing power matching model, the method further includes: Pre-constructing a model network structure of a computing power matching model; the model network structure includes a demand-side network model link, a supply-side network model link, and a feature splicing output layer; the demand-side network model link is used to extract demand feature data of the demand-side attribute sample data, the supply-side network model link is used to extract supply feature data of the supply-side attribute sample data, and the feature splicing output layer is used to output the splicing features of the demand feature data and the supply feature data; Determine matching capability loss information based on the splicing features output by the feature splicing output layer, and determine matching degree loss information based on the demand feature data and the supply feature data; Based on the matching capability loss information and the matching degree loss information, the model parameters of the computing power matching model are continuously iteratively updated until a preset model training stop condition is met; Among them, the demand-side network model link, according to the data flow processing direction of the demand-side attribute sample data, includes a first input layer, a first fully connected layer, a second fully connected layer and a third fully connected layer in sequence, the first input layer is used to input the demand-side attribute sample data, and the activation function of each neuron in the first fully connected layer, the second fully connected layer and the third fully connected layer is a linear rectification function; the supply-side network model link, according to the data flow processing direction of the supply-side attribute sample data, includes a second input layer, a fourth fully connected layer, a fifth fully connected layer and a sixth fully connected layer in sequence, the second input layer is used to input the supplier attribute sample data, and the activation function of each neuron in the fourth fully connected layer, the fifth fully connected layer and the sixth fully connected layer is a linear rectification function; the feature splicing output layer includes a splicing layer and a seventh fully connected layer, the seventh fully connected layer is connected to the output of the splicing layer, and the splicing layer is used to splice the demand feature data and the supply feature data; each neuron in each fully connected layer is fully connected with all neurons in the previous layer, so as to integrate the local information with category distinction in the convolution layer or the pooling layer through the fully connected layer; The determining of the matching capability loss information based on the splicing features output by the feature splicing output layer includes: The matching capability loss function relationship is called to calculate the matching capability loss information; the matching capability loss function relationship is: L1=softmax{h3(h1(x),h2(y)),g_1}; Where L1 represents the matching ability loss information, softmax represents the normalized exponential function, x represents the demand side attribute sample data, y represents the supply side attribute sample data, g_1 represents the matching ability label data, h1(x) represents the demand feature data, h2(y) represents the supply feature data, and h3 represents the output of the feature concatenation output layer; Wherein, determining the matching degree loss information based on the demand characteristic data and the supply characteristic data includes: The matching degree loss function relationship is called to calculate the matching degree loss information; the matching degree loss function relationship is: L2=[g_2-(1-sigmoid(||h1(x)-h2(y)|| 2 ))] 2 ; Where L2 represents the matching degree loss information, sigmoid represents the S-shaped curve function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_2 represents the matching degree label data, h1(x) represents the demand feature data, and h2(y) represents the supply feature data.

2. The method for selecting heterogeneous computing power equipment according to claim 1, characterized in that: The converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system includes: Acquire a computing power requirement question and answer sample data set in advance; the computing power requirement question and answer sample data set includes multiple groups of computing power requirement question and answer samples, each computing power requirement question and answer sample includes at least a computing power requirement question sample and a corresponding computing power requirement standard sample, the computing power requirement question sample is computing power requirement information described in natural language form, and the computing power requirement standard sample is computing power requirement information that meets the computing power requirement data format; A format conversion model is pre-trained based on the computing power requirement question and answer sample data set; the format conversion model is used to convert the computing power requirement data described in natural language form into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system; The computing power requirement data is input into a trained format conversion model, and the output of the format conversion model is used as the computing power requirement standard data.

3. The method for selecting heterogeneous computing power equipment according to claim 1, characterized in that: Before converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system, the method further includes: Obtain the pre-trained language model that has completed the pre-training phase; Obtain a computing power requirement question and answer sample data set; the computing power requirement question and answer sample data set is a fine-tuning data set of the pre-trained language model; The pre-trained language model is fine-tuned using the computing power requirement question and answer sample data set to obtain a format conversion model, so as to use the format conversion model to convert the computing power requirement data into computing power requirement standard data.

4. The method for selecting heterogeneous computing power equipment according to claim 3, characterized in that: The fine-tuning of the pre-trained language model using the computing power requirement question and answer sample data set includes: Pre-constructing a first training parameter and a second training parameter; the input dimension of the first training parameter is the same as the input dimension of the pre-trained language model, and the first difference between the output dimension and the output dimension of the pre-trained language model is greater than a first preset threshold; the output dimension of the second training parameter is the same as the output dimension of the pre-trained language model, and the second difference between the input dimension and the input dimension of the pre-trained language model is greater than a second preset threshold; Initialize the first training parameter to Gaussian distribution, and initialize the second training parameter to 0; In the process of fine-tuning the pre-trained language model using the computing power requirement question and answer sample data set, the pre-trained model parameters of the pre-trained language model are fixed unchanged, and the first training parameters and the second training parameters are updated; After the first training parameters and the second training parameters are trained, the first training parameters, the second training parameters and the model parameters are merged by using a re-parameterization method.

5. The method for selecting heterogeneous computing power equipment according to claim 3, characterized in that: The converting the computing power matching data into a computing power resource selection result described in a natural language form and outputting the result includes: Acquire a computing power matching question and answer sample data set in advance; the computing power matching question and answer sample data set includes multiple groups of computing power matching question and answer samples, each computing power matching question and answer sample includes at least a computing power matching question sample and a corresponding computing power matching answer sample, the computing power matching question sample is computing power matching information that satisfies the computing power output data format of the heterogeneous computing system, and the computing power matching answer sample is computing power matching information described in natural language form; A format conversion model is pre-trained based on the computing power matching question and answer sample data set; the format conversion model is also used to convert the computing power matching data that meets the computing power output data format into a computing power resource selection result described in natural language; Get conversion prompt information; Generate user reply prompt data according to the conversion prompt information and the computing power matching data; The user reply prompt data is input into the format conversion model, and the output of the format conversion model is used as the computing power resource selection result.

6. The method for selecting heterogeneous computing power equipment according to claim 1, characterized in that: Before converting the computing power requirement data into computing power requirement standard data that meets the computing power requirement data format of the heterogeneous computing system, the method further includes: Obtain the pre-trained language model that has completed the pre-training phase; Obtain a question and answer sample fine-tuning dataset; the question and answer sample fine-tuning dataset includes a computing power requirement question and answer sample dataset and a computing power matching question and answer sample dataset; The pre-trained language model is fine-tuned using the question and answer sample fine-tuning data set to obtain a format conversion model, so as to use the format conversion model to convert the computing power requirement data into computing power requirement standard data, and convert the computing power matching data into computing power resource selection results.

7. The method for selecting heterogeneous computing power equipment according to claim 1, characterized in that: The obtaining of heterogeneous computing resource status data of the heterogeneous computing system includes: Obtain the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the CPU utilization rate; Send a fee query request to the database to obtain the rate data of each computing resource; Based on the rate data of each computing resource, the unoccupied memory space of each computing node, the unoccupied memory space of the server where each computing node is located, and the central processing unit utilization rate, the heterogeneous computing resource status data is constructed.

8. The method for selecting heterogeneous computing power equipment according to any one of claims 1 to 7, characterized in that: The determining, based on the computing power requirement standard data and the heterogeneous computing power resource status data, computing power matching data that matches the computing power requirement data includes: Pre-acquire a computing power matching sample data set; the computing power matching sample data set includes a plurality of computing power matching samples, each computing power matching sample includes at least one set of corresponding demand-side attribute sample data and supply-side attribute sample data, and a label identifying matching information is set between the demand-side attribute sample data and the supply-side attribute sample data; Pre-training a computing power matching model based on the computing power matching sample data set; the computing power matching model is used to determine matching computing power matching data for the computing power demand data; The computing power requirement standard data and the heterogeneous computing power resource status data are input into a trained computing power matching model, and the output of the computing power matching model is used as computing power matching data.

9. The method for selecting heterogeneous computing power equipment according to claim 8, characterized in that: The obtaining of a computing power matching sample data set includes: Pre-configure matching capability label data and matching degree label data; the matching capability label data includes a matching identification value and a non-matching identification value, the matching identification value is used to identify that the matching requirement is met between the demand side attribute sample data and the supplier side attribute sample data, and the non-matching identification value is used to identify that the matching requirement is not met between the demand side attribute sample data and the supplier side attribute sample data; When receiving a matching capability labeling instruction, performing matching capability labeling on the computing power matching samples of the computing power matching sample data set based on the identification value carried by the matching capability labeling instruction; For each computing power matching sample, if the matching capability label data of the current computing power matching sample is a matching identification value, obtain the matching degree identification value corresponding to the current computing power matching sample, and generate the matching degree label data of the current computing power matching sample according to the matching degree identification value.

10. The method for selecting heterogeneous computing power equipment according to claim 9, characterized in that: The obtaining the matching degree identification value corresponding to the current computing power matching sample includes: The pre-built matching score calculation formula is called to calculate the matching score value between the demand-side attribute sample data and the supply-side attribute sample data, so as to serve as the matching degree identification value of each computing power matching sample; the matching score calculation formula is: Label 2-score = α Y+ β t; Get the matching score value of the current computing power matching sample; In the formula, Label 2-score is the matching score, Y is the computing resource rate, t is the task completion time, α represents the first weight factor of the computing resource rate, β A second weighting factor representing the task completion time.

11. A heterogeneous computing power device selection device, characterized in that: include: A resource data acquisition module is used to obtain the heterogeneous computing power resource status data of the heterogeneous computing system; The demand data acquisition module is used to obtain the computing power demand data described by the computing power demander in natural language; A demand data conversion module, used to convert the computing power demand data into computing power demand standard data that meets the computing power demand data format of the heterogeneous computing system; A supply and demand matching module, used to call a pre-built computing power matching model, and determine computing power matching data that matches the computing power demand data based on the computing power demand standard data and the heterogeneous computing power resource status data; wherein the computing power matching model constructs a matching relationship between computing power demand and computing power resources; A matching result output module, used to convert the computing power matching data into a computing power resource selection result described in a natural language form for output; The computing power demand data shall not be expressed in technical terms, including the expression of the computing power demander to clearly specify the computing power resources to be used, or the expression of describing the tasks to be performed to the computing power supplier so that the computing power supplier can make computing power recommendations; the computing power demand standard data shall use professional terms or technical terms to describe the computing power demand information of the computing power demander; Wherein, the supply and demand matching module is also used for: Pre-constructing a model network structure of a computing power matching model; the model network structure includes a demand-side network model link, a supply-side network model link, and a feature splicing output layer; the demand-side network model link is used to extract demand feature data of the demand-side attribute sample data, the supply-side network model link is used to extract supply feature data of the supply-side attribute sample data, and the feature splicing output layer is used to output the splicing features of the demand feature data and the supply feature data; Determine matching capability loss information based on the splicing features output by the feature splicing output layer, and determine matching degree loss information based on the demand feature data and the supply feature data; Based on the matching capability loss information and the matching degree loss information, the model parameters of the computing power matching model are continuously iteratively updated until a preset model training stop condition is met; Among them, the demand-side network model link, according to the data flow processing direction of the demand-side attribute sample data, includes a first input layer, a first fully connected layer, a second fully connected layer and a third fully connected layer in sequence, the first input layer is used to input the demand-side attribute sample data, and the activation function of each neuron in the first fully connected layer, the second fully connected layer and the third fully connected layer is a linear rectification function; the supply-side network model link, according to the data flow processing direction of the supply-side attribute sample data, includes a second input layer, a fourth fully connected layer, a fifth fully connected layer and a sixth fully connected layer in sequence, the second input layer is used to input the supplier attribute sample data, and the activation function of each neuron in the fourth fully connected layer, the fifth fully connected layer and the sixth fully connected layer is a linear rectification function; the feature splicing output layer includes a splicing layer and a seventh fully connected layer, the seventh fully connected layer is connected to the output of the splicing layer, and the splicing layer is used to splice the demand feature data and the supply feature data; each neuron in each fully connected layer is fully connected with all neurons in the previous layer, so as to integrate the local information with category distinction in the convolution layer or the pooling layer through the fully connected layer; Wherein, the supply and demand matching module is also used for: The matching capability loss function relationship is called to calculate the matching capability loss information; the matching capability loss function relationship is: L1=softmax{h3(h1(x),h2(y)),g_1}; Where L1 represents the matching ability loss information, softmax represents the normalized exponential function, x represents the demand side attribute sample data, y represents the supply side attribute sample data, g_1 represents the matching ability label data, h1(x) represents the demand feature data, h2(y) represents the supply feature data, and h3 represents the output of the feature concatenation output layer; Wherein, the supply and demand matching module is also used for: The matching degree loss function relationship is called to calculate the matching degree loss information; the matching degree loss function relationship is: L2=[g_2-(1-sigmoid(||h1(x)-h2(y)||2))]2; Where L2 represents the matching degree loss information, sigmoid represents the S-shaped curve function, x represents the demand-side attribute sample data, y represents the supply-side attribute sample data, g_2 represents the matching degree label data, h1(x) represents the demand feature data, and h2(y) represents the supply feature data.

12. An electronic device, characterized in that: It includes a processor and a memory, and the processor is used to implement the steps of the heterogeneous computing power device selection method as described in any one of claims 1 to 10 when executing the computer program stored in the memory.

13. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, which, when executed by a processor, implements the steps of the heterogeneous computing device selection method as described in any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the heterogeneous computing power device selection method described in any one of claims 1 to 10 are implemented.

15. A heterogeneous computing system, characterized in that: Includes multiple types of computing nodes, processors, monitors and memories; The processor is connected to each computing node and the monitor respectively, and the monitor is connected to each computing node; The monitor is used to collect hardware data of each computing power node, and the memory stores computing power resource rate data; The processor is used to obtain the hardware data collected by the monitor and the computing power resource rate data as heterogeneous computing power resource status data, and implement the steps of the heterogeneous computing power device selection method as described in any one of claims 1 to 10 when executing the computer program stored in the memory.

16. The heterogeneous computing system according to claim 15, characterized in that: Also included is a display screen for providing a human-computer interaction interface; The human-computer interaction interface includes a computing power requirement input area and a computing power resource selection result display area; The computing power requirement input area is used to receive computing power requirement data described in natural language output by the computing power demander, and the computing power resource selection result display area is used to display the computing power resource selection result matching the computing power requirement data to the computing power demander; The processor is also used to execute the steps of the heterogeneous computing power device selection method when it is detected that the computing power matching request is triggered.

17. The heterogeneous computing system according to claim 16, characterized in that: The computing power requirement input area includes a data input area and / or a computing power matching request trigger area; the data input area is a voice input area and / or a text input area; The voice input area is used to receive audio data of computing power demand described in natural language by the computing power demander; The text input area is used to receive text data of computing power demand described by the computing power demander in natural language; The computing power matching request triggering area is used to provide the computing power demander with a function of triggering a computing power matching request.