Deep Learning Computing Power Virtualization Method

The deep learning virtualization platform collects statistics on business request patterns, intelligently controls server status and parameters, and dynamically allocates resources within multiple devices. It solves the problem of insufficient flexibility and efficiency of existing GPU virtualization solutions and achieves control over multiple servers. Unified management and construction of efficient computing power pool.

CN113656151BActive Publication Date: 2024-10-25SHANGHAI THINK FORCE ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110962785.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-20
Publication Date
2024-10-25
Estimated Expiration
2041-08-20

AI Technical Summary

Technical Problem

Existing GPU virtualization solutions lack flexibility and efficiency in deep learning computing power virtualization and cannot fully meet the needs.

Method used

Through the deep learning virtualization platform, we can collect statistics on the shape and regularity of business requests, intelligently pre-control server cluster status and parameters, clarify processing delay and throughput requirements, and dynamically allocate computing resources within multiple physical devices to realize the control of multiple servers. Unified management and scheduling.

Benefits of technology

It improves the flexibility and efficiency of the deep learning virtualization system, can aggregate computing power pools within multiple physical devices, and dynamically allocate computing tasks to meet the needs of different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113656151B_ABST
    Figure CN113656151B_ABST
Patent Text Reader

Abstract

The present invention provides a method for virtualizing deep learning computing power, including: a deep learning virtualization platform counts the forms and rules of arriving business requests, intelligently pre-controls the state of the entire deep learning server cluster according to the forms and rules of arriving business requests, and pre-sets parameters of the entire deep learning server cluster to cope with the prediction of the forms and rules of the business requests; and when the deep learning virtualization platform sends the business request to the deep learning server, further clarifies the requirements for processing delay and throughput rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtualization technology, and in particular to a deep learning computing power virtualization method. Background Art

[0002] Traditional CPU-based servers can already achieve virtualization of computing resources, storage resources, and network connections through virtualization technology, so that the above three resources can be divided within a single physical server and called by multiple applications, or can be pooled and aggregated among multiple physical servers.

[0003] Currently, deep learning generally adopts GPU solutions and GPU virtualization. The main technology providers are NVIDIA's vGPU and AMD's MxGPU.

[0004] NVIDIA's deep learning inference server solution based on the aggregation of multi-GPU computing power is as follows Figure 1 As shown in the figure, the model pool (model repository) stores various deep neural network models, and the model manager (model management) is responsible for loading different network model instances (model instance, usually including deep neural network model structure and weight parameters) that can meet the inference business requests on the physical hardware of a single or multiple GPUs at the bottom. The scheduler is responsible for allocating the inference business request to different network model instances on the GPU to calculate and obtain the results according to the type of inference business request (stateless model without result state transfer, stateful model with result state transfer, ensemble model with nested collaborative model groups). During the allocation process, different batch processing strategies will be further configured according to the differences in model types, thereby improving the utilization of the GPU. However, the flexibility and efficiency of existing GPU virtualization solutions need to be improved, and they cannot fully meet the virtualization needs of deep learning computing power. Summary of the invention

[0005] The purpose of the present invention is to provide a deep learning computing power virtualization method to solve the problem that the flexibility and efficiency of existing GPU virtualization solutions cannot fully meet the needs of deep learning computing power virtualization.

[0006] In order to solve the above technical problems, the present invention provides a deep learning computing power virtualization method, comprising:

[0007] The deep learning virtualization platform counts the forms and patterns of business request arrivals, and intelligently pre-controls the state of the entire deep learning server cluster and pre-sets the parameters of the entire deep learning server cluster based on the forms and patterns of business request arrivals to cope with the prediction of the forms and patterns of the business requests; and

[0008] When the deep learning virtualization platform sends the service request to the deep learning server, it further clarifies the processing delay requirements and throughput requirements.

[0009] Optionally, in the deep learning computing power virtualization method, the form and regularity of the arrival of the service request include:

[0010] Single-stream business requests are generated in a sequential manner, with a regularity of 90% latency and a sample number of 1, which are used for typing auto-completion and real-time AR;

[0011] Multi-stream service requests are generated by querying the arrival interval and the decline. The rule is the number of delay-constrained streams. The number of samples is N. It is used for multi-camera driver assistance and large-scale automation.

[0012] Server business requests, which are generated by Poisson distribution, with a latency-constrained number of queries per second and a sample size of 1, for translation websites; and

[0013] Offline business requests are generated in batches, with a throughput rule and a sample number of at least 24,576, for photo classification.

[0014] Optionally, the deep learning computing power virtualization method further includes:

[0015] In the application scenarios of single-stream and multi-stream service requests, the deep learning virtualization platform makes static allocation of the scheduling of each deep learning server according to the established strategy based on the pre-set service settings, and regularly tracks changes in service settings;

[0016] The pre-set business settings include: the interval between the arrival of each business request, the expected time limit for completing the business request, the number of samples arriving at a time, and the type of model instance to be loaded;

[0017] The established strategy includes: according to the business settings, statically allocating the required computing resources to each business request at one time, and regularly tracking the consumption of computing resources and the time limit for completion of operations. If the business does not arrive according to the rules or the computing resource consumption is abnormal, it will be reported as a fault.

[0018] Optionally, in the deep learning computing power virtualization method, it also includes: in the application scenario of server-type business requests, real-time statistics of specific business arrival conditions and queue lengths of pending tasks are obtained to obtain statistical results of business arrival rules;

[0019] Based on the statistical results of the business arrival rules, the model instances are dynamically loaded on the underlying computing hardware to enhance the parallel processing capability, reduce the queue waiting time, allocate computing resources in the most economical way, and maximize the utilization of the allocated computing resources;

[0020] When the number of tasks in the computing request waiting queue for a model instance is greater than the first threshold and the duration exceeds the second threshold, one more model instance is loaded from the underlying computing hardware. If the number of tasks continues to be greater than the first threshold, the model instance continues to be loaded until the normal business throughput level is restored;

[0021] When the number of tasks in the computing request waiting queue for a model instance is less than the third threshold and the duration exceeds the fourth threshold, one model instance is released from the underlying computing hardware. If the number of tasks continues to be less than the third threshold, the model instances are gradually reduced until the computing resource utilization reaches the preset level under normal business throughput levels.

[0022] Optionally, the deep learning computing power virtualization method further includes:

[0023] In the application scenario of offline business requests, if the expected processing time is manually booked, a specified number of model instances are loaded in parallel at one time based on the expected processing time and the availability of computing resources at the moment, and "batches" are used to speed up the processing.

[0024] Optionally, the deep learning computing power virtualization method further includes:

[0025] The deep learning virtualization platform aggregates all virtualized resources and distributes business requests to deep learning servers based on the aggregated resources; and

[0026] The deep learning server distributes tasks to each deep learning unit within it through the local computing power aggregation and task distribution system, so that each deep learning unit can process the tasks;

[0027] The computing power of each deep learning unit is aggregated in the local computing power aggregation and task allocation system.

[0028] Optionally, in the deep learning computing power virtualization method, the local computing power aggregation and task allocation system includes:

[0029] The local model pool is configured to connect to the total model pool of the deep learning virtualization platform;

[0030] A computing task request interface is configured to connect tasks and process results with the deep learning virtualization platform;

[0031] A model manager, configured to load model instances on the underlying computing hardware;

[0032] A task scheduler configured to send computing tasks to model instances on underlying computing hardware for computing, and to group computing tasks into “batches” to improve efficiency; and

[0033] The status collector is configured to collect the total computing resources, current computing power usage ratio, task processing speed, queue type and queue waiting length of the deep learning server, and report to the deep learning virtualization platform.

[0034] Optionally, in the deep learning computing power virtualization method, the models in the local model pool are uniformly allocated and managed by the deep learning virtualization platform;

[0035] After receiving the deep neural network model transmitted by the deep learning virtualization platform, the local model pool converts the deep learning framework of the deep neural network model into a format recognizable by the underlying hardware so that it can be run on the local deep learning unit;

[0036] The underlying hardware-recognizable format includes .json files describing the network structure and .bin files for network weight parameters.

[0037] Optionally, in the deep learning computing power virtualization method, the computing task request interface and the task allocation of the deep learning virtualization platform are interconnected;

[0038] The deep learning virtualization platform forwards the computing service request to the computing task request interface of a specific deep learning server based on the computing resource status and model loading status of each deep learning server;

[0039] The computing task request interface accepts computing tasks by parsing the frame format of the computing task request from the deep learning virtualization platform to perform queue caching and frame output of processing results.

[0040] Optionally, in the deep learning computing power virtualization method, the model manager is responsible for preloading a single model instance or multiple model instances on the underlying computing hardware according to the computing task request and the queue cache status, so as to process the computing task request with a higher bandwidth;

[0041] During the loading and changing process of the model instance, a software protection lock is set between the model instance and the computing task. When the model instance starts to carry computing tasks, a flag is set to indicate that the currently loaded model instance cannot be uninstalled or changed. When the model instance does not carry computing tasks, the corresponding flag is available. After a long period of no computing tasks, the model instance is in an uninstallable state.

[0042] Optionally, in the deep learning computing power virtualization method, the deep learning virtualization platform is further configured as:

[0043] Accept business requests from external users via HTTP, and provide processing results generated by the deep learning server to external users via HTTP.

[0044] Optionally, in the deep learning computing power virtualization method, the deep learning virtualization platform is further configured as:

[0045] The resource status of available computing power within each deep learning server is summarized in real time to schedule resources and allocate tasks from the perspective of the deep learning server cluster.

[0046] Optionally, in the deep learning computing power virtualization method, the deep learning virtualization platform has a total model pool, wherein:

[0047] The total model pool is configured to uniformly manage various deep neural network models;

[0048] The deep neural network model includes a network structure description and network weight parameters, and the deep neural network model is stored in a deep learning framework;

[0049] The deep learning frameworks include: Tensor Flow deep learning framework, Caffe deep learning framework, PyTorch deep learning framework and ONNX deep learning framework.

[0050] In the deep learning computing power virtualization method of the present invention, the deep learning virtualization platform is used to count the forms and rules of the arrival of business requests. According to the forms and rules of the arrival of business requests, the state of the entire deep learning server cluster is intelligently pre-controlled, and the parameters of the entire deep learning server cluster are pre-set to cope with the prediction of the form and rules of the business request. When the business request is sent to the deep learning server, the requirements for processing delay and throughput are further clarified, thereby realizing the effect of counting the business arrival rules, being able to intelligently allocate computing power in advance, and further improving the flexibility and efficiency of the deep learning virtualization system.

[0051] In addition, the inventor of the present invention has found through research and investigation that according to NVIDIA's implementation scheme, because the underlying implementation uses C API, it can only support task scheduling between multiple GPU boards in a single physical server, and does not support cross-physical server mode. In actual use scenarios, it is necessary to aggregate the AI ​​computing modules in multiple physical devices into a large computing power pool, and dynamically allocate computing tasks across devices, so as to manage a larger computing cluster.

[0052] In addition, the inventors also found that the model manager in the existing solution only provides a method for loading models according to a predetermined list, but does not provide a method for dynamically allocating and releasing model instances (modelinstance) according to the business requests received, thereby adjusting the processing bandwidth of a specific model.

[0053] Based on the above insights, the present invention provides a method for virtualizing deep learning computing power. By setting up a deep learning virtualization platform that aggregates all virtualized resources, and the deep learning virtualization platform can allocate business requests to deep learning servers based on the aggregated resources, it can achieve unified management and scheduling of computing resources of multiple deep learning servers, overcome the problem that the existing solution only supports task scheduling between multiple GPU boards in a single physical server, and in actual use scenarios, it can aggregate AI computing modules in multiple physical devices into a large computing power pool, and dynamically allocate computing tasks across devices, thereby achieving management of a larger computing cluster and further improving the flexibility and efficiency of the deep learning virtualization system. In addition, the local computing power aggregation and task allocation system in the deep learning server allocates tasks to each deep learning unit, and the computing power of each deep learning unit is aggregated in the local computing power aggregation and task allocation system, which provides the prerequisite for dynamically configuring the types and quantities of model instances loaded on the underlying hardware in a single deep learning server, and intelligently allocating computing power. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is a schematic diagram of the existing deep learning computing power virtualization method;

[0055] Figure 2 It is a schematic diagram of a deep learning computing power virtualization method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with specific embodiments with reference to the accompanying drawings.

[0057] It should be noted that the components in the figures may be shown exaggeratedly for the sake of illustration and are not necessarily true to scale. In the figures, identical or functionally identical components are provided with the same reference numerals.

[0058] In the present invention, unless otherwise specified, "arranged on...", "arranged above..." and "arranged above..." do not exclude the existence of an intermediate between the two. In addition, "arranged on or above..." merely indicates the relative positional relationship between two components, and in certain cases, such as after reversing the product direction, it can also be converted into "arranged below or below...", and vice versa.

[0059] In the present invention, each embodiment is only intended to illustrate the aspects of the present invention and should not be construed as limiting.

[0060] In the present invention, unless otherwise specified, the quantifiers "a", "an" and "an" do not exclude the presence of a plurality of elements.

[0061] It should also be noted that in the embodiments of the present invention, for the sake of clarity and simplicity, only a portion of the parts or components may be shown, but those of ordinary skill in the art will understand that under the teachings of the present invention, the required parts or components may be added according to the needs of the specific scenario. In addition, unless otherwise specified, the features in different embodiments of the present invention may be combined with each other. For example, a feature in the second embodiment may be used to replace a corresponding or functionally identical or similar feature in the first embodiment, and the resulting embodiment also falls within the disclosure scope or recorded scope of the present application.

[0062] It should also be noted that within the scope of the present invention, the terms "same", "equal", "equal to" and the like do not mean that the values ​​of the two are absolutely equal, but allow a certain reasonable error, that is, the terms also cover "substantially the same", "substantially equal", "substantially equal to". By analogy, in the present invention, the terms "perpendicular to", "parallel to" and the like indicating directions also cover the meanings of "substantially perpendicular to" and "substantially parallel to".

[0063] In addition, the numbering of the steps of the methods of the present invention does not limit the execution order of the method steps. Unless otherwise specified, the method steps can be executed in different orders.

[0064] The following is a further detailed description of the deep learning computing power virtualization method proposed in the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description and claims. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0065] The purpose of the present invention is to provide a deep learning computing power virtualization method to solve the problem that the flexibility and efficiency of existing GPU virtualization solutions cannot fully meet the needs of deep learning computing power virtualization.

[0066] To achieve the above-mentioned objectives, the present invention provides a method for virtualizing deep learning computing power, comprising: a deep learning virtualization platform counts the forms and patterns of arriving business requests, and intelligently pre-controls the state of the entire deep learning server cluster and pre-sets the parameters of the entire deep learning server cluster according to the forms and patterns of arriving business requests to cope with the prediction of the forms and patterns of the business requests; and when the deep learning virtualization platform sends the business request to the deep learning server, further clarifies the requirements for processing delay and throughput.

[0067] The embodiment of the present invention provides a method for virtualizing deep learning computing power. Figure 2 As shown, it includes: a deep learning virtualization platform, which is configured to aggregate all virtualized resources and allocate business requests to deep learning servers according to the aggregated resources; and multiple deep learning servers. Each deep learning server includes a local computing power aggregation and task allocation system, a CPU unit, and one or more deep learning units. The deep learning server is configured to allocate tasks to each deep learning unit within it through the local computing power aggregation and task allocation system so that each deep learning unit can process tasks; wherein the computing power of each deep learning unit is aggregated in the local computing power aggregation and task allocation system.

[0068] In one embodiment of the present invention, in the deep learning computing power virtualization method, the local computing power aggregation and task allocation system includes: a local model pool, configured to connect to the total model pool of the deep learning virtualization platform; a computing task request interface, configured to connect tasks and process results with the deep learning virtualization platform; a model manager, configured to load model instances on the underlying computing hardware; a task scheduler, configured to send computing tasks to the model instances on the underlying computing hardware for calculation, and to group computing tasks into "batches" to improve efficiency; and a status collector, configured to collect the total computing power resources, current computing power occupancy ratio, task processing speed, queue type and queue waiting length of the deep learning server, and report to the deep learning virtualization platform.

[0069] In one embodiment of the present invention, in the deep learning computing power virtualization method, the models in the local model pool are uniformly allocated and managed by the deep learning virtualization platform; after receiving the deep neural network model transmitted by the deep learning virtualization platform, the local model pool converts the deep learning framework of the deep neural network model (often in different deep learning framework formats) into a format recognizable by the underlying hardware, so that it can run on the local deep learning unit and be loaded onto the underlying hardware at any time for operation; the underlying hardware recognizable format includes .json files describing the network structure and .bin files of the network weight parameters.

[0070] In one embodiment of the present invention, in the deep learning computing power virtualization method, the computing task request interface is interconnected with the task allocation of the deep learning virtualization platform; the deep learning virtualization platform forwards the computing service request to the computing task request interface of a specific deep learning server according to the computing power resource status and model loading status of each deep learning server; the computing task request interface accepts the computing task by parsing the frame format of the computing task request from the deep learning virtualization platform to perform queue caching and frame output of processing results.

[0071] In one embodiment of the present invention, in the deep learning computing power virtualization method, the model manager is responsible for preloading a single model instance or multiple model instances on the underlying computing hardware according to the computing task request and queue cache status, and processing the computing task request with a higher bandwidth; a software protection lock is set between the model instance and the computing task during the loading and changing process. When the model instance starts to carry the computing task, a flag is set to indicate that the currently loaded model instance cannot be uninstalled or changed. When the model instance does not carry the computing task, the corresponding flag is the available state. After not carrying the computing task for a long time, the model instance is in an unloadable state.

[0072] In one embodiment of the present invention, in the deep learning computing power virtualization method, the deep learning virtualization platform is also configured to: accept business requests from external users via HTTP, and provide processing results generated by the deep learning server to external users via HTTP.

[0073] In one embodiment of the present invention, in the deep learning computing power virtualization method, the deep learning virtualization platform is also configured to: summarize the resource status of the available computing power within each deep learning server in real time, so as to schedule resources and allocate tasks from the perspective of the deep learning server cluster.

[0074] In one embodiment of the present invention, in the deep learning computing power virtualization method, the deep learning virtualization platform has a total model pool, wherein: the total model pool is configured to uniformly manage each deep neural network model; wherein the deep neural network model includes a network structure description and network weight parameters, and the deep neural network model is stored using a deep learning framework; wherein the deep learning framework includes: Tensor Flow deep learning framework, Caffe deep learning framework, PyTorch deep learning framework and ONNX deep learning framework.

[0075] In one embodiment of the present invention, in the deep learning computing power virtualization method, the deep learning virtualization platform is further configured to: count the forms and patterns of arrival of business requests, and intelligently pre-control the state of the entire deep learning server cluster and pre-set the parameters of the entire deep learning server cluster according to the forms and patterns of arrival of business requests to cope with the prediction of the forms and patterns of the business requests; when sending the business requests to the deep learning servers, further clarify the requirements for processing delay and throughput.

[0076] In one embodiment of the present invention, in the deep learning computing power virtualization method, the forms and rules of the arrival of the business requests include: single-stream business requests, whose business requests arrive in the form of a stream, and the number of samples arriving at a single time is 1, and typical applications include voice recording; multi-stream business requests, whose business requests arrive in the form of a stream, and multiple samples arrive at a single time, and typical applications include autonomous driving vehicles performing intelligent image analysis on multiple on-board cameras at the same time; server-type business requests, business requests arrive randomly, and their arrival pattern can be simulated by Poisson distribution, and typical applications include translation websites such as Baidu and Google; and offline business requests, all of whose business requests and sample data arrive in batches, and typical applications include large-scale photo classification or retrieval.

[0077] Among them, single-stream business requests are very sensitive to the time limit for completing operations, and the 90% percentile of the operation delay is usually used as a measure of processing speed; multi-stream business requests are usually measured by the number of streams that can be processed simultaneously in parallel within the time limit requirements; server-type business requests are usually measured by the number of requests that can be processed per second within the time limit requirements; and offline business requests are usually measured by data operation throughput rate.

[0078] In one embodiment of the present invention, in the deep learning computing power virtualization method, in the application scenarios of single-stream business requests and multi-stream business requests, the deep learning virtualization platform makes the scheduling of each deep learning server statically allocated according to the established strategy based on the pre-set business settings, and regularly tracks the changes in the business settings; the pre-set conditions include: the number of fixed input channels of network cameras, the algorithms required by each network camera, the interval time of arrival of each business request, the expected time limit for completing the business request, the number of samples arriving at a time, and the type of model instance to be loaded; the established strategy includes: according to the business settings, the required computing resources are statically allocated to each business request at one time, and the consumption of computing resources and the time limit for completion of the operation are regularly tracked. If the business does not arrive according to the rules or the computing resources are consumed abnormally, it is reported as a fault.

[0079] In one embodiment of the present invention, in the deep learning computing power virtualization method, in the application scenario of server-type business requests, the specific situation of business arrival and the queue length of tasks to be processed are counted in real time to obtain statistical results of business arrival rules; according to the statistical results of business arrival rules, model instances are loaded dynamically on the underlying computing hardware to enhance parallel processing capabilities, reduce queue waiting time, allocate computing resources in the most economical way, and maximize the utilization of allocated computing resources; when the number of tasks in the waiting queue for computing requests for a certain model instance is greater than a first threshold and the duration exceeds a second threshold, one more model instance is loaded from the underlying computing hardware, and if the number of tasks continues to be greater than the first threshold, the model instance continues to be loaded until it returns to a normal business throughput level; when the number of tasks in the waiting queue for computing requests for a certain model instance is less than a third threshold and the duration exceeds a fourth threshold, one model instance is released from the underlying computing hardware, and if the number of tasks continues to be less than the third threshold, the model instance is gradually reduced until the computing resource utilization reaches a preset level at a normal business throughput level.

[0080] In one embodiment of the present invention, in the deep learning computing power virtualization method, in the application scenario of offline business requests, if the expected processing time is manually booked, a specified number of model instances are loaded in parallel at one time based on the expected processing time and the availability of computing resources at the moment, and "batches" are combined to speed up the calculation processing.

[0081] The present invention provides a method for virtualizing deep learning computing power. By setting a deep learning virtualization platform that aggregates all virtualized resources, and the deep learning virtualization platform can allocate business requests to deep learning servers according to the aggregated resources, unified management and scheduling of computing resources of multiple deep learning servers are achieved, overcoming the problem that the existing solution only supports task scheduling between multiple GPU boards in a single physical server. In actual use scenarios, AI computing modules in multiple physical devices can be aggregated into a large computing power pool, and computing tasks can be dynamically allocated across devices, thus managing a larger computing cluster and further improving the flexibility and efficiency of the deep learning virtualization system. In addition, the local computing power aggregation and task allocation system in the deep learning server allocates tasks to each deep learning unit, and the computing power of each deep learning unit is aggregated in the local computing power aggregation and task allocation system, which provides a prerequisite for dynamically configuring the types and quantities of model instances loaded on the underlying hardware in a single deep learning server and intelligently allocating computing power.

[0082] In addition, the deep learning virtualization platform counts the forms and patterns of business request arrivals, and intelligently pre-controls the state of the entire deep learning server cluster and pre-sets the parameters of the entire deep learning server cluster based on the forms and patterns of business request arrivals to cope with the prediction of the forms and patterns of the business requests. When sending the business requests to the deep learning servers, the requirements for processing delay and throughput are further clarified, achieving the effect of counting the patterns of business arrivals and intelligently allocating computing power in advance, which further improves the flexibility and efficiency of the deep learning virtualization system.

[0083] In summary, the above embodiments describe in detail different configurations of the deep learning computing power virtualization system. Of course, the present invention includes but is not limited to the configurations listed in the above embodiments. Any content that is transformed based on the configurations provided in the above embodiments belongs to the scope of protection of the present invention. Those skilled in the art can draw inferences based on the contents of the above embodiments.

[0084] 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 system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0085] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A method for virtualizing deep learning computing power. It is characterized in that include: The deep learning virtualization platform counts the forms and patterns of business requests arriving, and intelligently pre-controls the state of the entire deep learning server cluster and pre-sets the parameters of the entire deep learning server cluster based on the forms and patterns of business requests arriving, so as to cope with the prediction of the forms and patterns of the business requests; as well as When the deep learning virtualization platform sends the service request to the deep learning server, it further clarifies the requirements for processing delay and throughput. The forms and rules of the business requests arriving include: Single-stream service requests: service requests arrive in the form of a stream, and the number of samples arriving at a time is 1; Multi-stream service requests: service requests arrive in the form of streams and multiple samples arrive at a time. Server-type service requests, which arrive randomly; and Offline business requests, all business requests and sample data arrive in batches; The sensitivity of various service requests to the operation completion time limit is ranked as follows: single-stream service requests and multi-stream service requests are greater than server service requests, and server service requests are greater than offline service requests. In the application scenarios of single-stream and multi-stream service requests, the deep learning virtualization platform makes static allocation of the scheduling of each deep learning server according to the established strategy based on the pre-set service settings, and regularly tracks changes in service settings; The pre-set business settings include: the interval between the arrival of each business request, the expected time limit for completing the business request, the number of samples arriving at a time, and the type of model instance to be loaded; The established strategy includes: according to the business settings, the required computing resources are statically allocated to each business request at one time, and the consumption of computing resources and the time limit for completion of calculations are tracked regularly. If the business does not arrive according to the rules or the computing resources are consumed abnormally, it will be reported as a fault. In the application scenario of server-type business requests, real-time statistics are collected on the specific situation of business arrival and the queue length of pending tasks to obtain the statistical results of business arrival rules; Based on the statistical results of the business arrival rules, the model instances are dynamically loaded on the underlying computing hardware to enhance the parallel processing capability, reduce the queue waiting time, allocate computing resources in the most economical way, and maximize the utilization of the allocated computing resources; When the number of tasks in the computing request waiting queue for a model instance is greater than the first threshold and the duration exceeds the second threshold, one more model instance is loaded from the underlying computing hardware. If the number of tasks continues to be greater than the first threshold, the model instance continues to be loaded until the normal business throughput level is restored; When the number of tasks in the computing request waiting queue for a model instance is less than the third threshold and the duration exceeds the fourth threshold, one model instance is released from the underlying computing hardware. If the number of tasks continues to be less than the third threshold, the model instances are gradually reduced until the computing resource utilization reaches the preset level under the normal business throughput level. In the application scenario of offline business requests, if the expected processing time is manually booked, a specified number of model instances are loaded in parallel at one time based on the expected processing time and the availability of computing resources at the moment, and batch processing is combined to speed up the operation. The deep learning virtualization platform aggregates all virtualized resources and allocates business requests to the deep learning server based on the aggregated resources; and The deep learning server distributes tasks to each deep learning unit within it through the local computing power aggregation and task distribution system, so that each deep learning unit can process the tasks; The computing power of each deep learning unit is aggregated in the local computing power aggregation and task allocation system. The local computing power aggregation and task allocation system includes: The local model pool is configured to connect to the total model pool of the deep learning virtualization platform; A computing task request interface is configured to connect tasks and process results with the deep learning virtualization platform; A model manager, configured to load model instances on the underlying computing hardware; A task scheduler configured to send computing tasks to model instances on underlying computing hardware for computing, and to batch computing tasks to improve efficiency; and The status collector is configured to collect the total computing resources, current computing power usage ratio, task processing speed, queue type and queue waiting length of the deep learning server, and report to the deep learning virtualization platform.

2. The deep learning computing power virtualization method according to claim 1, It is characterized in that The models in the local model pool are uniformly allocated and managed by the deep learning virtualization platform; After receiving the deep neural network model transmitted by the deep learning virtualization platform, the local model pool converts the deep learning framework of the deep neural network model into a format recognizable by the underlying hardware so that it can run on the local deep learning unit.

3. The deep learning computing power virtualization method according to claim 1, It is characterized in that The computing task request interface is interconnected with the task allocation of the deep learning virtualization platform; The deep learning virtualization platform forwards the computing service request to the computing task request interface of a specific deep learning server based on the computing resource status and model loading status of each deep learning server; The computing task request interface accepts computing tasks by parsing the frame format of the computing task request from the deep learning virtualization platform to perform queue caching and frame output of processing results.

4. The deep learning computing power virtualization method according to claim 1, It is characterized in that The model manager is responsible for preloading a single model instance or multiple model instances on the underlying computing hardware according to the computing task request and the queue cache status, so as to process the computing task request with a higher bandwidth; During the loading and changing process of the model instance, a software protection lock is set between the model instance and the computing task.

5. The deep learning computing power virtualization method according to claim 1, It is characterized in that The deep learning virtualization platform is also configured to: Accept business requests from external users via HTTP, and provide processing results generated by the deep learning server to external users via HTTP.

6. The deep learning computing power virtualization method according to claim 1, It is characterized in that The deep learning virtualization platform is also configured to: The resource status of available computing power within each deep learning server is summarized in real time to schedule resources and allocate tasks from the perspective of the deep learning server cluster.

7. The deep learning computing power virtualization method according to claim 1, It is characterized in that The deep learning virtualization platform has a total model pool, where: The total model pool is configured to uniformly manage various deep neural network models; The deep neural network model includes a network structure description and network weight parameters, and The deep neural network model is stored using a deep learning framework.