Target model reasoning acceleration method and equipment based on artificial intelligence platform

By obtaining and expanding step instances of artificial intelligence models that occupy excessive resources on the artificial intelligence platform, the problem of slow inference speed of artificial intelligence models when access requests are large is solved, and resource occupation and speed optimization are achieved.

CN118779102APending Publication Date: 2024-10-15DATACANVAS LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410834288.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When the access request for the artificial intelligence model is large, the inference speed is slow, resulting in excessive resource usage and the inability to effectively process the data.

Method used

By obtaining the hardware resource occupancy data of each step during the inference process of the target model and setting the load threshold, the step instances with excessive resource occupancy are expanded to ensure that the hardware resource occupancy is less than the set threshold, thereby improving data processing speed and inference speed. .

Benefits of technology

It effectively improves the inference speed of the target model, avoids the inference speed bottleneck caused by excessive resource occupation, and ensures the efficiency of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779102A_ABST
    Figure CN118779102A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence and deep learning, and is used for monitoring the resource occupation condition during reasoning of a deep learning model, a machine learning model or a large language model through an artificial intelligence platform, and carrying out resource adjustment so as to reduce the resource load of a server. The invention provides a target model reasoning acceleration method and device based on an artificial intelligence platform, and the method comprises the steps: obtaining hardware resource occupation data corresponding to each step in a plurality of steps, and a set load threshold value corresponding to each step in a reasoning process of a target model; under the condition that at least one target step exists in the multiple steps, an instance corresponding to the target step is expanded, and the target step is the step that the corresponding hardware resource occupation data is larger than the corresponding set load threshold value.
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 and deep learning technology, and in particular to a method and device for accelerating the reasoning of a target model based on an artificial intelligence platform. Background Art

[0002] Artificial intelligence models such as deep learning models, machine learning models and large language models are important technologies for data analysis or processing. In related technologies, artificial intelligence models are usually deployed on artificial intelligence platforms, and terminals use artificial intelligence platforms to implement training and reasoning applications of artificial intelligence models. However, in related technologies, if multiple users access the artificial intelligence model at the same time or the artificial intelligence model needs to process a lot of data, the artificial intelligence model will occupy more resources. When the occupied resources are greater than the allocated resources, the reasoning speed of the artificial intelligence model will be slower.

[0003] It can be seen that in the related technology, there is a problem that the artificial intelligence model has a slow reasoning speed when the access request is large. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for accelerating the reasoning of a target model based on an artificial intelligence platform, so as to solve the problem of low reasoning speed of the learning model in the related art.

[0005] To solve the above problems, the present invention is achieved as follows:

[0006] In a first aspect, an embodiment of the present invention provides a method for accelerating reasoning of a target model based on an artificial intelligence platform, wherein the target model includes multiple steps, each step is deployed in a different instance, each step corresponds to at least one instance, and the target model is deployed as a model service. The method includes:

[0007] During the reasoning process of the target model, obtaining hardware resource occupancy data corresponding to each of the multiple steps and a set load threshold corresponding to each step;

[0008] In the case that there is at least one target step among the multiple steps, the instance corresponding to the target step is expanded, and the target step is a step in which the corresponding hardware resource occupancy data is greater than the corresponding set load threshold.

[0009] In a second aspect, an embodiment of the present invention further provides a structural diagram of a reasoning acceleration device of a target model based on an artificial intelligence platform, wherein the target model includes multiple steps, each step is deployed in a different instance, each step corresponds to at least one instance, and the target model is deployed as a model service. The reasoning acceleration device 400 of the target model based on the artificial intelligence platform includes:

[0010] An acquisition module, used for acquiring hardware resource occupancy data corresponding to each of the multiple steps and a set load threshold corresponding to each step during the reasoning process of the target model;

[0011] The first expansion module is used to expand the instance corresponding to the target step when there is at least one target step in the multiple steps, and the target step is a step in which the corresponding hardware resource occupancy data is greater than the corresponding set load threshold.

[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps in the method for accelerating reasoning of a target model based on an artificial intelligence platform as described in the first aspect above are implemented.

[0013] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, which, when executed by a processor, implements the steps in the method for accelerating reasoning of a target model based on an artificial intelligence platform as described in the first aspect above.

[0014] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the method for accelerating reasoning of a target model based on an artificial intelligence platform as described in the first aspect above.

[0015] In an embodiment of the present invention, in the reasoning process of the target model, the hardware resource occupancy data corresponding to each step in the multiple steps and the set load threshold corresponding to each step are obtained; when there is at least one target step in the multiple steps, the instance corresponding to the target step is expanded, and the target step is a step whose corresponding hardware resource occupancy data is greater than the corresponding set load threshold. In this way, when the target step is a step whose corresponding hardware resource occupancy data is greater than the corresponding set load threshold, the instance corresponding to the target step is expanded so that the hardware resource occupancy data corresponding to the expanded target step is less than the set load threshold, thereby improving the data processing speed of the target step, and then improving the reasoning speed of the target model. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0017] Figure 1is a flow chart of a target model deployment method provided by an embodiment of the present invention;

[0018] Figure 2 This is one of the schematic diagrams after the container copy is expanded according to the embodiment of the present invention;

[0019] Figure 3 This is the second schematic diagram after the container copy is expanded according to the embodiment of the present invention;

[0020] Figure 4 is a structural diagram of a target model deployment device provided by an embodiment of the present invention;

[0021] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] The AI ​​platform is a system used to provide users with tasks such as data set processing, AI modeling, large language model training and reasoning. Developers and data scientists can use the AI ​​platform to quickly and efficiently build, train and deploy AI models of any scale, such as deep learning models, machine learning models and large language models. Specifically, the AI ​​platform provides a set of tools for data scientists, application developers and business experts, allowing people in different roles to collaborate, easily process data and use the data to build, train, deploy and apply the above AI models on a large scale.

[0024] Furthermore, for the tasks of each large model, the artificial intelligence platform can monitor and manage the various indicators of the deep learning model, machine learning model, and large language model. Among them, the large language model is a large language model (LLM), which can also be referred to as a large model. It is a language model with a large parameter scale, designed to understand and generate human language. It is trained with a large amount of text data and can perform a wide range of tasks including text summarization, translation, sentiment analysis, etc. It should be understood that the large language model can also be used to understand and generate images, understand and generate codes, etc., depending on the specific application scenario.

[0025] In this application, the artificial intelligence platform is used to run the model service (Pipeline) instance. The artificial intelligence platform allocates hardware resources to the Pipeline instance to realize the operation of the target model. Among them, the artificial intelligence platform deploys the target model on the server device, and the terminal device can access the server device to process the data to be processed through the target model. Among them, the data to be processed can be text data, image data, voice data and / or chart data, etc.

[0026] Among them, the Pipeline instance is used to deploy the target model and infer the target model based on the hardware resources allocated to the Pipeline instance by the artificial intelligence platform.

[0027] The target model is a model deployed on the artificial intelligence platform, and the target model can be a deep learning model or a machine learning model. The target model is a model including multiple steps, and at least one container instance is set in the Pipeline. Each step is deployed in a different container instance, and each step corresponds to at least one container instance of the artificial intelligence platform.

[0028] Wherein, when the target model is a machine learning or deep learning model deployed in a Pipeline instance, the target model includes the steps of loading the data to be processed, preprocessing the data to be processed, and reasoning / predicting the processed data to be processed by the target model. When the target model is a large language model deployed in a Pipeline instance, the target model includes: the steps of loading the data to be processed and the steps of model reasoning.

[0029] Each of the multiple steps of the target model is an independent step, the input of the step is the output of the previous step, and the output of the step is the input of the next step.

[0030] See also Figure 1 , Figure 1 The invention provides an inference acceleration method for a target model based on an artificial intelligence platform. The target model includes multiple steps, each of which is deployed in a different instance. Each step corresponds to at least one instance. The target model is deployed as a model service, such as Figure 1 As shown, the method comprises the following steps:

[0031] Step 101: During the reasoning process of the target model, obtain the hardware resource occupancy data corresponding to each of the multiple steps and the set load threshold corresponding to each step.

[0032] Step 102: When there is at least one target step in the multiple steps, expand the instance corresponding to the target step, where the target step is a step in which the corresponding hardware resource occupancy data is greater than the corresponding set load threshold.

[0033] The above-mentioned hardware resource occupancy data includes memory occupancy data, central processing unit (CPU) occupancy data, graphics processing unit (GPU) occupancy data, the number of terminal access requests and at least one of the request processing time. The set load threshold includes at least one of the memory occupancy threshold, CPU occupancy threshold, GPU occupancy threshold, terminal access request number threshold and request processing time threshold. The type of the hardware resource occupancy data corresponds to the type of the set load threshold.

[0034] The above-mentioned obtaining of the hardware resource occupancy data corresponding to each step specifically obtains the hardware resource occupancy data of the instance (container instance) corresponding to each step. The hardware resource occupancy data of the container instance is the hardware resource occupancy data of the step deployed in the container instance.

[0035] It should be noted that since each step is different, when the target model is accessed, different steps of the target model have different occupancy of the server's hardware resources. Containers that occupy less server hardware resources do not need to be replicated, while containers that occupy more server hardware resources need to be replicated to avoid a large container load that reduces the inference speed of the target model.

[0036] Specifically, when the hardware resource usage data includes memory usage data, the load threshold is set to include a memory usage threshold, and when the memory usage data of the container is greater than the memory usage threshold, the container instance corresponding to the target step is expanded.

[0037] In some instances, when the hardware resource occupancy data includes CPU occupancy data, the load threshold is set to include a CPU occupancy threshold, and when the CPU occupancy data of the container is greater than the CPU occupancy threshold, the container instance corresponding to the target step is expanded.

[0038] In some instances, when the hardware resource occupancy data includes GPU occupancy data, the load threshold is set to include a GPU occupancy threshold, and when the GPU occupancy data of the container is greater than the GPU occupancy threshold, the container instance corresponding to the target step is expanded.

[0039] In some instances, when the hardware resource occupancy data includes the number of terminal access requests, the load threshold is set to include a terminal access request number threshold, and when the number of terminal access requests of the container is greater than the terminal access request number threshold, the container instance corresponding to the target step is expanded.

[0040] In some instances, when the hardware resource usage data includes request processing time, the load threshold is set to include a request processing time threshold, and when the request processing time of the container is greater than the request processing time threshold, the container instance corresponding to the target step is expanded.

[0041] Optionally, when the hardware resource occupancy data includes at least two of the CPU occupancy data, GPU occupancy data, the number of terminal access requests and the request processing time, and one of the at least two occupancy data exceeds the corresponding threshold, it is considered that the load is high at this time and the container instance corresponding to the target step should be expanded.

[0042] The container instance corresponding to the above-mentioned extended target step can be the number of container instances corresponding to the extended target step, or the hardware resources allocated to the container instance corresponding to the extended target step, so as to change the set load threshold corresponding to the target step, so that the hardware resource occupancy data corresponding to the extended target step is less than the set load threshold, thereby improving the data processing speed of the target step, and then improving the inference speed of the target model.

[0043] In an embodiment of the present invention, in the reasoning process of the target model, the hardware resource occupancy data corresponding to each step in the multiple steps and the set load threshold corresponding to each step are obtained; when there is at least one target step in the multiple steps, the instance corresponding to the target step is expanded, and the target step is a step whose corresponding hardware resource occupancy data is greater than the corresponding set load threshold. In this way, when the target step is a step whose corresponding hardware resource occupancy data is greater than the corresponding set load threshold, the instance corresponding to the target step is expanded so that the hardware resource occupancy data corresponding to the expanded target step is less than the set load threshold, thereby improving the data processing speed of the target step, and then improving the reasoning speed of the target model.

[0044] In one embodiment, the obtaining of the hardware resource occupancy data corresponding to each step in the multiple steps, and the setting of the load threshold corresponding to each step, includes:

[0045] Acquire hardware resource occupancy data of at least one instance corresponding to each step, and a set load threshold of at least one instance corresponding to each step;

[0046] The hardware resource occupancy data corresponding to each of the multiple steps is the sum of the hardware resource occupancy data of at least one instance corresponding to each step, and the set load threshold corresponding to each step is the sum of the set load threshold of at least one instance corresponding to each step.

[0047] In the embodiment of the present invention, since each step corresponds to at least one container instance, obtaining the hardware resource occupancy data corresponding to the step specifically involves obtaining the hardware resource data of at least one container instance corresponding to the step. The hardware resource occupancy data corresponding to a step is the sum of the hardware resource occupancy data of at least one container instance corresponding to the step, and the set load threshold corresponding to a step is the sum of the set load thresholds of at least one container instance corresponding to the step. In this way, by obtaining the hardware resource occupancy data and the set load threshold of each container instance corresponding to the step and summing them, the hardware resource occupancy data corresponding to each step and the set load threshold corresponding to each step are obtained.

[0048] In one embodiment, each instance in the at least one instance corresponds to a container, and when there is at least one target step in the multiple steps, expanding the instance corresponding to the target step includes:

[0049] If there is at least one target step in the multiple steps, the number of containers of the instance corresponding to the target step is expanded, or,

[0050] When there is at least one target step in the multiple steps, hardware resources allocated to a container of an instance corresponding to the target step are expanded.

[0051] It should be noted that the target step is a step whose corresponding hardware resource occupancy data is greater than the corresponding set load threshold. In this case, the target step processes data at a low speed, and cannot process data in time, resulting in a low inference speed of the target model. In view of this situation, in an embodiment of the present invention, the instance corresponding to the target step is expanded so that the set load threshold of the expanded instance can be greater than the hardware resource occupancy data.

[0052] Specifically, one of the expansion methods is to expand the number of containers of the instance corresponding to the target step. Since the set load threshold corresponding to the target step is the sum of the set load thresholds of at least one corresponding instance, by expanding the number of containers of the instance corresponding to the target step, the set load threshold corresponding to the target step is increased.

[0053] For example, the load of a container is n, and the number of containers of the instance corresponding to the target step before expansion is 2, that is, the set load threshold corresponding to the target step before expansion is 2n. When the hardware resource occupancy data of the target step is 2.1n, the hardware resource occupancy data of the target step is greater than the set load threshold before expansion; at this time, the number of containers of the instance corresponding to the extended target step is 3, and the set load threshold corresponding to the target step after expansion is 3n. The hardware resource occupancy data of the target step is less than the set load threshold after expansion, thereby improving the speed of data processing in the target step, thereby solving the bottleneck of the inference speed of the entire target model and accelerating the model inference speed.

[0054] It should be noted that this embodiment can be applied to large language models, deep learning models, machine learning models, etc. Among them, the bottleneck of processing data of large language models is concentrated on the step of model reasoning. The resources occupied by the process of converting the input of the large language model into a token and inputting it are generally less. Therefore, by expanding some containers corresponding to the large language model (usually the containers corresponding to the model reasoning / prediction steps in the target model), and not expanding other containers (such as the containers corresponding to the step of converting the input into a token in the target model), the loss of server resources is reduced.

[0055] In addition, the second expansion method is to expand the hardware resources allocated to the container of the instance corresponding to the target step. Since the set load threshold corresponding to the target step is the sum of the set load thresholds of at least one corresponding instance, by expanding the hardware resources allocated to the container of the instance corresponding to the target step, the set load threshold corresponding to the target step is increased.

[0056] For example, the load of a container is n, and the number of containers of the instance corresponding to the target step before expansion is 2, that is, the set load threshold corresponding to the target step before expansion is 2n. When the hardware resource occupancy data of the target step is 2.1n, the hardware resource occupancy data of the target step is greater than the set load threshold before expansion; at this time, the hardware resources of the container shard of the instance corresponding to the extended target step are 1.1n, and the set load threshold corresponding to the target step after expansion is 2.2n. The hardware resource occupancy data of the target step is less than the set load threshold after expansion, thereby improving the speed at which the target step processes data.

[0057] In one embodiment, after the instance corresponding to the expanding target step, the method further includes:

[0058] Obtaining hardware resource occupancy data of the instance corresponding to the expanded target step;

[0059] When the hardware resource occupancy data of the instance corresponding to the target step after expansion is less than or equal to the set occupancy threshold before expansion, the instance corresponding to the target step is reduced.

[0060] In an embodiment of the present invention, when the hardware resource occupancy data of the instance corresponding to the target step after expansion is less than or equal to the set occupancy threshold before expansion, it is considered that the access pressure of the target step is relatively small at this time, and the occupancy of server resources can be reduced by reducing the instances corresponding to the target step.

[0061] Among them, reducing the instance corresponding to the target step can be restoring to the instance state before expansion, including reducing the number of containers corresponding to the instance to the number of containers before expansion, or restoring the hardware resources allocated to the instance to the hardware resources before expansion.

[0062] In one embodiment, during the reasoning process of the target model, after obtaining the hardware resource occupancy data corresponding to each of the multiple steps and the set load threshold corresponding to each step, the method further includes:

[0063] When the hardware resource occupancy data corresponding to each of the multiple steps is greater than the corresponding set load threshold, the instance corresponding to the model service is expanded, and the instance corresponding to the model service includes all instances corresponding to each step.

[0064] It should be noted that when the target model is a machine learning model or a deep learning model, during model inference, there is a situation where the hardware resources occupied by each step corresponding to the target model are large (that is, the hardware resource occupancy data of each step corresponding to the target model is greater than the set load threshold). In this case, it is no longer necessary to expand only a certain container, but to expand the model service that deploys the target model to expand the instance of each step of the target model, so that the target model can ensure the inference speed and better handle the access requests of the terminal.

[0065] In an embodiment of the present invention, when the hardware resource occupancy data corresponding to each step is greater than the corresponding set load threshold, each step needs to be expanded. In this case, the instance corresponding to the model negative of the target model is expanded so that the instance of each step of the target model is expanded.

[0066] Among them, the instance corresponding to the model service is the Pipeline instance, and the instance corresponding to each step is the container instance. A Pipeline instance includes the instance corresponding to each step. The Pipeline instance is extended, and each extended Pipeline includes the instance corresponding to each step, so that the instance of each step of the target model is extended.

[0067] Among them, expanding the instance corresponding to the model service includes expanding the number of Pipeline instances corresponding to the model service.

[0068] In one embodiment, after extending the instance corresponding to the model service, the method further includes:

[0069] Obtaining hardware resource occupancy data of the instance corresponding to each step of all the expanded model services;

[0070] When the sum of the hardware resource occupancy data of the instances corresponding to each step of all the model services after expansion is less than the set load threshold corresponding to the instances before expansion, the instances corresponding to the model services are reduced.

[0071] It should be noted that, when the sum of the hardware resource occupancy data of the instances corresponding to each step of all the model services after expansion is less than the corresponding set load threshold before expansion, it is considered that the access pressure of each step of all the model services after expansion is relatively small at this time, and the model services before expansion can be used for fast inference. In this way, by reducing the instances of model services, the occupancy of server resources can be reduced.

[0072] Among them, reducing the instances corresponding to the model service may be restoring to the instance state before expansion, including reducing the number of instances corresponding to the model service to the number of instances corresponding to the model service before expansion.

[0073] In one embodiment, when there are multiple instances corresponding to the target step after expansion, the inputs of the multiple instances share the output of the instance corresponding to the previous step of the target step.

[0074] In an embodiment of the present invention, when there are multiple instances corresponding to the target step after expansion, the inputs of the multiple instances share the output of the instance corresponding to the previous step of the target step, so that the multiple instances after expansion share the hardware occupied resources of the step, and the hardware occupied resources of each instance are less than the set load threshold of the instance, thereby avoiding the situation where the hardware occupied resources are greater than the set load threshold of the instance, improving the speed of data processing by the multiple instances after expansion, and thereby improving the reasoning speed of the target model.

[0075] For example, there are three steps (step 1, step 2, and step 3) after the target model is deployed in the Pipeline instance. The number of containers of each step corresponding to the instance is 1. Figure 2 As shown, when the number of containers of the instance corresponding to step 2 is expanded to two container copies, the inputs of the two containers corresponding to step 2 share the output of one container of step 1, and the input of one container corresponding to step 3 is the output of the two containers corresponding to step 2.

[0076] Furthermore, when the output of the instance corresponding to the previous step of the target step is the output of multiple containers, the input of the instance after the target step is expanded may correspond to the output of the instance corresponding to the previous step as the output of some containers among the multiple containers.

[0077] For example, Figure 3 As shown, when the containers corresponding to step 2 and step 3 are both expanded to two containers, the inputs of the two containers corresponding to step 2 share the output of one container of step 1, and each container input corresponding to step 3 corresponds to the output of one container of step 2.

[0078] In one embodiment, the obtaining of hardware resource occupancy data corresponding to each step in the multiple steps includes:

[0079] Acquire the hardware resource occupancy data corresponding to the model service based on the artificial intelligence platform;

[0080] The hardware resource occupancy data corresponding to each step is obtained based on the model service.

[0081] It should be noted that the target model is deployed on the artificial intelligence platform, specifically deployed as a model service (i.e., Pipeline instance). In the embodiment of the present invention, the target model hardware resource occupancy information can be obtained through the Pipeline instance. At the same time, since the Pipeline instance includes a container instance corresponding to each step, the hardware occupancy data of each container instance included can be obtained through the Pipeline instance, and then the hardware resource occupancy data corresponding to each step is calculated through the hardware resource occupancy data of each container instance.

[0082] In one embodiment, the method further comprises:

[0083] Analyze the initial model to be deployed to determine model information of the initial model, where the model information includes at least one of: model structure, model occupied memory, and model weight accuracy;

[0084] Determining an optimization method corresponding to the initial model according to the model information of the initial model, wherein the optimization method includes model quantization and model pruning;

[0085] The initial model is processed according to the optimization method to obtain the target model.

[0086] It should be noted that the initial model to be deployed is usually a more complex model. The target model has differences in model application scenarios, model types, model deployment environment resource conditions, model parameter size, memory occupied after model loading, model weights and activation accuracy, etc. Directly deploying the initial model to be deployed will occupy more resources of the artificial intelligence platform and will not be able to achieve fast reasoning of the model. Different steps need to be optimized separately. See the subsequent embodiments for details.

[0087] The above-mentioned initial model to be deployed is a model that needs to be deployed in the model service of the artificial intelligence platform. The above-mentioned model structure is used to characterize the complexity of the initial model, which can usually be the number of layers of the initial model. The model results of the initial model are used to determine whether optimization is needed and the optimization method. For example, when the model structure characterizes that the initial model is relatively simple, the resource occupation is small and the initial model may not be optimized; when the model structure characterizes that the initial model is relatively complex, the initial model occupies a large amount of resources. At this time, the initial model needs to be optimized to reduce the resource occupation of the model.

[0088] The memory occupied by the above model is the memory occupied when the initial model is deployed. It should be understood that the memory occupied by the model is the memory occupied by the initial model after the initial model is preloaded and the corresponding initial model is loaded. By obtaining the initial model memory occupancy data, it is possible to confirm whether the initial model needs to be optimized and the optimization method. For example, if the initial model occupies a small amount of memory, the initial model may not be optimized; if the initial model occupies a large amount of memory, the initial model needs to be optimized to reduce the model's memory occupancy.

[0089] The above model weight accuracy is the accuracy of the initial model. The model weight accuracy can be used to convert the initial model from high-precision floating-point weights to a low-bit fixed-point target model. For example, the 32-bit floating-point (float32) weight accuracy can be converted to 16-bit floating-point (float16) weight accuracy, thereby reducing the model's resource usage.

[0090] In an embodiment of the present invention, an optimization method corresponding to the initial model is determined through the model information of the initial model, and then the initial model is processed according to the optimization method to obtain a target model, so as to reduce the occupancy of the target model on the artificial intelligence platform and improve the speed of model reasoning.

[0091] In one embodiment, the model information includes model structure, model memory usage, and model weight accuracy, and determining the optimization method corresponding to the initial model according to the model information of the initial model includes:

[0092] When the model memory occupied by the initial model is greater than a first set occupancy threshold and the model weight accuracy is a first accuracy, determining that the optimization method corresponding to the initial model is model quantization; or,

[0093] When the model occupied memory of the initial model is greater than a second set occupancy threshold, the model weight accuracy is the second accuracy, and the number of structural layers in the model structure exceeds a set number threshold, it is determined that the optimization method corresponding to the initial model is model pruning.

[0094] The first set occupancy threshold and the second set occupancy threshold are used to confirm whether the initial model needs to be optimized. When the occupancy threshold is greater than the first set occupancy threshold and the model weight accuracy is the first accuracy, the optimization needs to be performed; or when the occupancy threshold is greater than the second set occupancy threshold, the model weight accuracy is the second accuracy, and the number of structural layers in the model structure exceeds the set number threshold, the optimization needs to be performed. The first set occupancy threshold and the second set occupancy threshold may be the same or different.

[0095] The first precision is the high-precision floating-point weight precision, and the second precision is the low-digit fixed-point weight precision. It should be noted that when the model weight is the first precision, the initial model is a model with high-precision floating-point weights, and the initial model can be converted to a low-digit fixed-point model (i.e., model quantization) to reduce the model's resource occupation. When the model weight is the second precision, the initial model is already a low-digit fixed-point model, and the model can no longer be quantized. It is only necessary to determine whether the initial model needs to be pruned based on the model structure.

[0096] The above-mentioned set quantity threshold is used to measure whether the structure of the initial model is complex. When the number of structural layers in the model structure exceeds the set quantity threshold, the structure of the initial model is relatively complex, and the initial model can be optimized by model pruning. When the number of structural layers in the model structure does not exceed the set quantity threshold, the structure of the initial model is relatively simple, and the initial model does not need to be pruned.

[0097] In an embodiment of the present invention, when the model occupied memory of the initial model is greater than a first set occupancy threshold and the model weight accuracy is a first accuracy, the optimization method corresponding to the initial model is determined to be model quantization; or, when the model occupied memory of the initial model is greater than a second set occupancy threshold, the model weight accuracy is a second accuracy, and the number of structural layers in the model structure exceeds a set number threshold, the optimization method corresponding to the initial model is determined to be model pruning, so as to achieve different optimizations for different initial models, so that the inference speed of the target model is faster than the initial model while retaining the inference accuracy.

[0098] In one embodiment, the processing of the initial model according to the optimization method to obtain the target model includes the following:

[0099] Performing model quantization processing on all structural layers of the target model to obtain a target model;

[0100] Performing model quantization processing on at least one target structural layer among all structural layers of the target model to obtain a target model;

[0101] Wherein, the at least one target structural layer is obtained by:

[0102] Performing sensitivity analysis on each structural layer of the target model to obtain analysis results corresponding to each structural layer, wherein the analysis results are used to characterize the sensitivity of the corresponding structural layer to the data;

[0103] The at least one target structural layer is determined based on the analysis results corresponding to each structural layer, and the sensitivity of the analysis results of the at least one target structural layer is lower than the sensitivity of the analysis results of other structural layers of the target model.

[0104] It should be noted that the model quantization processing for the initial model can be to quantize the entire initial model, that is, to quantize all structural layers of the initial model. The target model obtained by quantizing all structural layers of the initial model occupies less memory and has a smaller load after being deployed on the artificial intelligence platform.

[0105] In addition, the initial model can be quantized by layering the initial model, that is, part of the structural layers of the initial model can be quantized. The model accuracy of the target model obtained by quantizing part of the structural layers of the initial model is higher than that of the target model obtained by quantizing all the structural layers of the initial model. After being deployed on the server, the target model inference has a higher accuracy.

[0106] It should be understood that the target model can be obtained by performing model quantization processing on all structural layers of the initial model or performing model quantization processing on at least one target structural layer among all structural layers of the initial model according to the needs.

[0107] Furthermore, when model quantization processing is performed on some structural layers in the initial model, some of the structural layers are at least one target structural layer, and at least one target structural layer is a structural layer with lower sensitivity in the initial model. After model quantization processing is performed on the structural layer with lower sensitivity, the target model has higher accuracy.

[0108] Specifically, at least one target structure layer is obtained by:

[0109] Performing sensitivity analysis on each structural layer of the target model to obtain analysis results corresponding to each structural layer, wherein the analysis results are used to characterize the sensitivity of the corresponding structural layer to the data;

[0110] The at least one target structural layer is determined based on the analysis results corresponding to each structural layer, and the sensitivity of the analysis results of the at least one target structural layer is lower than the sensitivity of the analysis results of other structural layers of the target model. For example, the initial model includes 15 structural layers, and the sensitivity analysis is performed on the 15 structural layers to obtain the analysis results of each structural layer in the 15 structural layers, and then 10 structural layers with lower sensitivity are selected from the 15 structural layers as target structural layers, and then the target structural layers are subjected to model quantization processing to obtain the target model.

[0111] The sensitivity analysis mentioned above is specifically as follows: 1) determine the key structural layer, that is, identify the structural layer that may have a significant impact on the model output results; 2) calculate each structural sensitivity coefficient, which is usually achieved by solving the derivative or partial derivative of the objective function or constraint relative to the structural layer; 3) analyze the results, and based on the calculated sensitivity coefficient, the degree of influence of the structural layer change on the model output can be judged. Among them, a high sensitivity coefficient indicates that the change of the structural layer will cause a significant output change, while a low sensitivity coefficient indicates that the change of the structural layer has little effect on the output change. In this way, the target structural layer is determined by calculating the analysis results corresponding to the structural layer, and the target structural layer is the structural layer corresponding to the high sensitivity coefficient.

[0112] In an embodiment of the present invention, the target model is obtained by performing model quantization processing on all structural layers of the target model; or, the target model is obtained by performing model quantization processing on at least one target structural layer among all structural layers of the target model. In this way, the target model is obtained by performing model quantization processing on all structural layers or at least one target structural layer of the initial model.

[0113] In one embodiment, the processing of the initial model according to the optimization method to obtain the target model includes the following:

[0114] Obtaining weight coefficients in all structural layers of the target model, and performing model pruning processing on weight coefficients less than a first set weight threshold to obtain a target model;

[0115] The sum of the weight values ​​of each structural layer in all the structural layers of the target model is obtained, and the structural layers corresponding to the sum of the weight values ​​less than the second set weight threshold are pruned to obtain the target model.

[0116] It should be noted that the model pruning processing of the initial model can be a structured pruning processing of the initial model, that is, the weight coefficients in all structural layers of the initial model that are less than the first set weight threshold are pruned (the weight coefficients are set to 0) to obtain the target model. The model accuracy of the target model is relatively high, and the reasoning accuracy is higher after being deployed on the artificial intelligence platform.

[0117] In addition, the initial model can be pruned or unstructured, that is, the structural layer corresponding to the sum of the weight values ​​less than the second set weight threshold is pruned (all the weight data of the structural layer is set to 0, that is, the corresponding structural layer is deleted) to obtain the target model, which occupies relatively less memory and has a smaller load when deployed on the artificial intelligence platform.

[0118] It should be understood that the initial model can be pruned by performing structured pruning or unstructured pruning according to the needs to obtain the target model.

[0119] In an embodiment of the present invention, the weight coefficients in all structural layers of the target model are obtained, and the weight coefficients less than the first set weight threshold are subjected to model pruning to obtain the target model; or, the sum of the weight values ​​of each structural layer in all structural layers of the target model is obtained, and the structural layers corresponding to the sum of the weight values ​​less than the second set weight threshold are subjected to pruning to obtain the target model. In this way, the target model is obtained by performing structured pruning on the initial model or performing unstructured pruning on the initial model.

[0120] In one embodiment, after the initial model is processed according to the optimization method to obtain the target model, the method further includes:

[0121] Calculating a first model accuracy of the target model and a second model accuracy of the initial model, and calculating a first inference duration of the target model and a second inference duration of the initial model;

[0122] When the difference between the second model accuracy and the first model accuracy is less than a set accuracy threshold, and the difference between the second inference duration and the first inference duration is greater than a set duration difference, the target model is deployed.

[0123] It should be noted that after optimizing the initial model and obtaining the target model, it is necessary to confirm the model accuracy and inference time of the target model to determine whether to deploy the target model in the container corresponding to the initial model. Among them, when the model accuracy of the target model is poor or the inference time is long, it is considered that the optimization effect of the initial model is poor. At this time, the target model can be further optimized or the initial model can be directly deployed; when the model accuracy of the target model is good and the inference time is short, it is considered that the optimization effect of the initial model is good. At this time, the target model can be directly deployed in the model service corresponding to the initial model.

[0124] Specifically, after obtaining the target model, the first model accuracy and the first inference time of the target model are calculated, and the second model accuracy and the second inference time of the initial model are calculated, and the first model accuracy and the second model accuracy are compared, and the first inference time and the second inference time are compared. Among them, when the difference between the second model accuracy and the first model accuracy is less than the set accuracy threshold, and the difference between the second inference time and the first inference time is greater than the set time difference, it is considered that the optimization processing effect of the target model is good. At this time, the target model is directly deployed to the model service corresponding to the initial model to complete the optimization and deployment of the transmission model.

[0125] In an embodiment of the present invention, the first model accuracy of the target model and the second model accuracy of the initial model are calculated, as well as the first inference duration of the target model and the second inference duration of the initial model are calculated; when the difference between the second model accuracy and the first model accuracy is less than a set accuracy threshold, and the difference between the second inference duration and the first inference duration is greater than a set duration difference, the target model is deployed. In this way, the optimization effect of the target model is determined by the first model accuracy of the target model and the second model accuracy of the initial model, the first inference duration of the target model and the second inference duration of the initial model, so that the model deployed in the model service is a target model with better performance.

[0126] In one embodiment, the method further comprises:

[0127] When the difference between the second model accuracy and the first model accuracy is greater than or equal to a set accuracy threshold, or when the difference between the second inference duration and the first inference duration is less than or equal to a set duration difference, deploying the initial model;

[0128] When the memory occupancy data of the initial model is less than or equal to the set occupancy threshold, the initial model is deployed.

[0129] It should be noted that when the difference between the second model accuracy and the first model accuracy is greater than or equal to the set accuracy threshold, or when the difference between the second reasoning duration and the first reasoning duration is less than or equal to the set duration difference, it is considered that the optimization effect is poor. At this time, the target model cannot be directly deployed directly, but the initial model is deployed. In some embodiments, the target model can be optimized again to obtain a secondary optimization model, and the second optimization model is deployed. In some embodiments, when the difference between the second model accuracy and the first model accuracy is greater than or equal to the set accuracy threshold, or when the difference between the second reasoning duration and the first reasoning duration is less than or equal to the set duration difference, the initial model is deployed.

[0130] When the memory usage data of the initial model is less than or equal to the set usage threshold, the initial model occupies less memory and can be directly deployed. The load on the artificial intelligence platform is small and there is no need to optimize the initial model, thereby improving the deployment efficiency of the target model.

[0131] See also Figure 4 , Figure 4 is a structural diagram of an inference acceleration device of a target model based on an artificial intelligence platform provided by an embodiment of the present invention. The target model includes multiple steps, each step is deployed in a different instance, each step corresponds to at least one instance, and the target model is deployed as a model service, such as Figure 4 As shown, the inference acceleration device 400 based on the target model of the artificial intelligence platform includes:

[0132] An acquisition module 401 is used to acquire hardware resource occupancy data corresponding to each of the multiple steps and a set load threshold corresponding to each step during the reasoning process of the target model;

[0133] The first expansion module 402 is used to expand the instance corresponding to the target step when there is at least one target step in the multiple steps, and the target step is a step in which the corresponding hardware resource occupancy data is greater than the corresponding set load threshold.

[0134] In one embodiment, the acquisition module 401 includes:

[0135] A first acquisition unit, configured to acquire hardware resource occupancy data of at least one instance corresponding to each step, and a set load threshold of at least one instance corresponding to each step;

[0136] The hardware resource occupancy data corresponding to each of the multiple steps is the sum of the hardware resource occupancy data of at least one instance corresponding to each step, and the set load threshold corresponding to each step is the sum of the set load threshold of at least one instance corresponding to each step.

[0137] In one embodiment, each instance in the at least one instance corresponds to a container, and the first expansion module 402 includes:

[0138] A first expansion unit is configured to expand the number of containers of the instance corresponding to the target step when there is at least one target step in the multiple steps, or

[0139] The second expansion unit is used to expand the hardware resources allocated to the container of the instance corresponding to the target step when there is at least one target step in the multiple steps.

[0140] In one embodiment, after the acquisition module 401, the reasoning acceleration device 400 based on the target model of the artificial intelligence platform further includes:

[0141] The second expansion module is used to expand the instance corresponding to the model service when the hardware resource occupancy data corresponding to each step in the multiple steps is greater than the corresponding set load threshold, and the instance corresponding to the model service includes all instances corresponding to each step.

[0142] In one embodiment, when there are multiple instances corresponding to the target step after expansion, the inputs of the multiple instances share the output of the instance corresponding to the previous step of the target step.

[0143] In one embodiment, the acquisition module 401 includes:

[0144] A second acquisition unit, configured to acquire hardware resource occupancy data corresponding to the model service based on an artificial intelligence platform;

[0145] The third acquisition unit is used to acquire the hardware resource occupancy data corresponding to each step based on the model service.

[0146] In one embodiment, the inference acceleration device 400 based on the target model of the artificial intelligence platform further includes:

[0147] An analysis module, used to analyze the initial model to be deployed and determine model information of the initial model, wherein the model information includes at least one of a model structure, a memory occupied by the model, and a model weight accuracy;

[0148] A determination module, used to determine an optimization method corresponding to the initial model according to the model information of the initial model, wherein the optimization method includes model quantization and model pruning;

[0149] A processing module is used to process the initial model according to the optimization method to obtain the target model.

[0150] In one embodiment, the model information includes model structure, model memory usage, and model weight accuracy, and the determination module includes:

[0151] A first determining unit is configured to determine that the optimization method corresponding to the initial model is model quantization when the model occupied memory of the initial model is greater than a first set occupied threshold and the model weight accuracy is a first accuracy; or

[0152] The second determination unit is used to determine that the optimization method corresponding to the initial model is model pruning when the model occupied memory of the initial model is greater than a second set occupancy threshold, the model weight accuracy is the second accuracy, and the number of structural layers in the model structure exceeds a set number threshold.

[0153] In one embodiment, the processing module includes the following:

[0154] A first processing unit is used to perform model quantization processing on all structural layers of the target model to obtain a target model;

[0155] A second processing unit is used to perform model quantization processing on at least one target structural layer among all structural layers of the target model to obtain a target model;

[0156] Wherein, the at least one target structural layer is obtained by:

[0157] Performing sensitivity analysis on each structural layer of the target model to obtain analysis results corresponding to each structural layer, wherein the analysis results are used to characterize the sensitivity of the corresponding structural layer to the data;

[0158] The at least one target structural layer is determined based on the analysis results corresponding to each structural layer, and the sensitivity of the analysis results of the at least one target structural layer is lower than the sensitivity of the analysis results of other structural layers of the target model.

[0159] In one embodiment, the processing module includes the following:

[0160] A third processing unit is used to obtain weight coefficients in all structural layers of the target model, and perform model pruning processing on weight coefficients less than a first set weight threshold to obtain a target model;

[0161] The fourth processing unit is used to obtain the sum of the weight values ​​of each structural layer in all the structural layers of the target model, and prune the structural layers corresponding to the sum of the weight values ​​less than the second set weight threshold to obtain the target model.

[0162] In one embodiment, after the processing module, the reasoning acceleration device 400 based on the target model of the artificial intelligence platform further includes:

[0163] A calculation module, used to calculate a first model accuracy of a target model and a second model accuracy of an initial model, and to calculate a first inference duration of the target model and a second inference duration of the initial model;

[0164] The first deployment module is used to deploy the target model when the difference between the second model accuracy and the first model accuracy is less than a set accuracy threshold and the difference between the second inference time and the first inference time is greater than a set time difference.

[0165] In one embodiment, the inference acceleration device 400 based on the target model of the artificial intelligence platform further includes:

[0166] A second deployment module, configured to deploy the initial model when the difference between the second model accuracy and the first model accuracy is greater than or equal to a set accuracy threshold, or when the difference between the second inference duration and the first inference duration is less than or equal to a set duration difference;

[0167] The third deployment module is used to deploy the initial model when the memory occupancy data of the initial model is less than or equal to the set occupancy threshold.

[0168] The target model deployment device provided in the embodiment of the present invention is capable of implementing each process of each embodiment of the above-mentioned target model deployment method. The technical features correspond one to one and can achieve the same technical effect. To avoid repetition, they will not be described here.

[0169] It should be noted that the target model deployment device in the embodiment of the present invention may be a device, or a component, an integrated circuit, or a chip in an electronic device.

[0170] The embodiment of the present invention further provides an electronic device, see Figure 5 , Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention, and the electronic device includes a memory 501, a processor 502, and a program or instruction stored and running on the memory 501. When the program or instruction is executed by the processor 502, any step in the embodiment of the reasoning acceleration method for a target model based on an artificial intelligence platform can be implemented and the same beneficial effects can be achieved, which will not be repeated here.

[0171] The processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0172] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware associated with program instructions, and the program can be stored in a readable medium.

[0173] The embodiment of the present invention also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any step in the above-mentioned method embodiment for accelerating the reasoning of a target model based on an artificial intelligence platform can be implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0174] An embodiment of the present invention also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, any step in the above-mentioned method embodiment for accelerating reasoning of a target model based on an artificial intelligence platform can be implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.

[0175] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, indicating that A alone, B alone, C alone, and A and B all exist, B and C all exist, A and C all exist, and 7 situations in which A, B and C all exist.

[0176] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a second terminal device, etc.) to execute the methods of each embodiment of the present application.

[0178] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for accelerating the reasoning of a target model based on an artificial intelligence platform, characterized in that: The target model includes multiple steps, each step is deployed in a different instance, each step corresponds to at least one instance, and the target model is deployed as a model service. The method includes: During the reasoning process of the target model, obtaining hardware resource occupancy data corresponding to each of the multiple steps and a set load threshold corresponding to each step; In the case that there is at least one target step among the multiple steps, the instance corresponding to the target step is expanded, and the target step is a step in which the corresponding hardware resource occupancy data is greater than the corresponding set load threshold.

2. The method according to claim 1, characterized in that The obtaining of the hardware resource occupancy data corresponding to each of the multiple steps and the setting of the load threshold corresponding to each step includes: Acquire hardware resource occupancy data of at least one instance corresponding to each step, and a set load threshold of at least one instance corresponding to each step; The hardware resource occupancy data corresponding to each of the multiple steps is the sum of the hardware resource occupancy data of at least one instance corresponding to each step, and the set load threshold corresponding to each step is the sum of the set load threshold of at least one instance corresponding to each step.

3. The method according to claim 1, characterized in that Each instance in the at least one instance corresponds to a container, and when there is at least one target step in the multiple steps, extending the instance corresponding to the target step includes: If there is at least one target step in the multiple steps, the number of containers of the instance corresponding to the target step is expanded, or, When there is at least one target step in the multiple steps, hardware resources allocated to a container of an instance corresponding to the target step are expanded.

4. The method according to any one of claims 1 to 3, characterized in that In the inference process of the target model, after obtaining the hardware resource occupancy data corresponding to each of the multiple steps and the set load threshold corresponding to each step, the method further includes: When the hardware resource occupancy data corresponding to each step in the multiple steps is greater than the corresponding set load threshold, the instance corresponding to the model service is expanded, and the instance corresponding to the model service includes all instances corresponding to each step.

5. The method according to any one of claims 1 to 3, characterized in that In the case that the corresponding instance after the target step is expanded is multiple instances, the inputs of the multiple instances share the output of the instance corresponding to the previous step of the target step.

6. The method according to any one of claims 1 to 3, characterized in that The obtaining of the hardware resource occupancy data corresponding to each step in the multiple steps includes: Acquire the hardware resource occupancy data corresponding to the model service based on the artificial intelligence platform; The hardware resource occupancy data corresponding to each step is obtained based on the model service.

7. The method according to any one of claims 1 to 6, characterized in that Also includes: Analyze the initial model to be deployed to determine model information of the initial model, where the model information includes at least one of a model structure, a memory occupied by the model, and a model weight accuracy; Determining an optimization method corresponding to the initial model according to the model information of the initial model, wherein the optimization method includes model quantization and model pruning; The initial model is processed according to the optimization method to obtain the target model.

8. The method according to claim 7, characterized in that The model information includes a model structure, a model occupied memory, and a model weight accuracy. The optimization method corresponding to the initial model is determined according to the model information of the initial model, including: When the model memory occupied by the initial model is greater than a first set occupancy threshold and the model weight accuracy is a first accuracy, determining that the optimization method corresponding to the initial model is model quantization; or, When the model occupied memory of the initial model is greater than a second set occupancy threshold, the model weight accuracy is the second accuracy, and the number of structural layers of the initial model exceeds a set number threshold, it is determined that the optimization method corresponding to the initial model is model pruning.

9. The method according to claim 7, characterized in that After the initial model is processed according to the optimization method to obtain the target model, the method further includes: Calculating a first model accuracy of the target model and a second model accuracy of the initial model, and calculating a first reasoning duration of the target model and a second reasoning duration of the initial model; When the difference between the second model accuracy and the first model accuracy is less than a set accuracy threshold, and the difference between the second inference duration and the first inference duration is greater than a set duration difference, the target model is deployed.

10. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps in the method for accelerating reasoning of a target model based on an artificial intelligence platform as described in any one of claims 1 to 9.

Citation Information

Cited By

  • AI reasoning acceleration architecture and security isolation method

    CN121682837A