Model evaluation method and device for edge intelligent equipment, equipment and storage medium

By automating the configuration and quantitative processing of the model evaluation process of edge smart device AI chips, the problem of low efficiency in the existing technology is solved, the entire process is automated and efficient model evaluation is realized, and the operational difficulty and management complexity are simplified.

CN118567957APending Publication Date: 2024-08-30CHINA TOWER CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410564624.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the AI ​​chip model evaluation method for edge smart devices is inefficient and involves complex operating steps and high professional skill requirements, making it difficult to efficiently manage chip evaluations of different manufacturers and models.

Method used

Configure task parameters by obtaining AI chip parameter information, perform quantitative processing and inference evaluation, automate the entire process, including task configuration, quantification, inference and performance evaluation, and use the model evaluation management system to achieve data synchronization and report generation.

Benefits of technology

It realizes the automation of the entire process of edge intelligent device model evaluation, reduces operational difficulty and management complexity, and improves evaluation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567957A
    Figure CN118567957A
Patent Text Reader

Abstract

The invention discloses a model evaluation method for edge intelligent equipment. The model evaluation method is used for solving the problem that an existing model evaluation method for an AI chip is low in evaluation efficiency. The method comprises the steps of configuring task parameters according to obtained parameter information of an AI chip of a to-be-evaluated edge intelligent device, and creating an evaluation task according to the task parameters; quantizing the source network model of the AI chip to obtain a quantized network model; distributing the quantitative network model to the AI chip for reasoning evaluation to obtain evaluation data; and determining original evaluation data corresponding to the source network model, and performing performance evaluation on the to-be-evaluated edge intelligent device according to the evaluation data and the original evaluation data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a model evaluation method, apparatus, device, storage medium, and computer program product for edge intelligent devices. Background Art

[0002] Compared with cloud computing, edge computing realizes the sinking of computing resources and services, which can effectively reduce interaction delays and alleviate the pressure on data transmission bandwidth.

[0003] With the explosive growth of edge devices such as the Internet of Things and the amount of data they generate, the advantages of edge intelligent devices in quickly processing and storing data have become increasingly prominent. Their computing location generally shows a trend of extending from the cloud to the edge. Edge intelligent devices are computing devices located at the edge of the network and equipped with artificial intelligence (AI) capabilities. By running AI algorithm models locally on the device, they collaboratively implement industry intelligent applications of edge computing based on the "end-edge-cloud" architecture.

[0004] Due to different business needs, edge smart devices have different requirements for AI computing power and the accuracy of AI models. Therefore, different edge smart devices often choose AI chips from different manufacturers and models, and the cloud often connects to multiple edge smart devices. In order to ensure the accuracy of cloud algorithm models, before edge devices equipped with different AI chips run inference, these AI chips need to be quantized at different levels, and the accuracy and performance indicators of the quantized models need to be evaluated. The evaluation data will serve as the basis for model quantization tuning and AI chip selection.

[0005] The existing evaluation method usually quantifies and converts the algorithm model for the AI ​​chip, copies it to the corresponding edge device to run reasoning and provide evaluation data. The existing model evaluation scheme has the following main problems:

[0006] 1. Model evaluation includes processes such as configuration, quantification, conversion, packaging, deployment, and reasoning, as well as complex operations such as dataset loading and data synchronization. It involves many steps and requires high professional skills, resulting in low model evaluation efficiency.

[0007] 2. Various algorithm models require comprehensive evaluation and comparison of AI chips from different manufacturers and models and at different quantitative levels. The large variety of data makes management and reporting difficult.

[0008] It can be seen that how to efficiently evaluate models of AI chips from different manufacturers and models has become a problem that needs to be solved urgently. Summary of the invention

[0009] An embodiment of the present application provides a model evaluation method for an edge intelligent device, which is used to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips.

[0010] An embodiment of the present application also provides a model evaluation device for an edge intelligent device to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips.

[0011] An embodiment of the present application also provides a model evaluation device for an edge intelligent device to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips.

[0012] An embodiment of the present application also provides a computer-readable storage medium to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips.

[0013] An embodiment of the present application also provides a computer program product to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips.

[0014] The present application embodiment adopts the following technical solutions:

[0015] A model evaluation method for edge intelligent devices, comprising: configuring task parameters according to acquired parameter information of an AI chip of an edge intelligent device to be evaluated, and creating an evaluation task according to the task parameters; quantizing a source network model of the AI ​​chip to obtain a quantized network model; assigning the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; determining original evaluation data corresponding to the source network model, and performing performance evaluation on the edge intelligent device to be evaluated according to the evaluation data and the original evaluation data.

[0016] A model evaluation device for an edge intelligent device, comprising: a task configuration unit, configured to configure task parameters according to acquired parameter information of an AI chip of an edge intelligent device to be evaluated, and to create an evaluation task according to the task parameters; a quantization unit, used to quantize a source network model of the AI ​​chip to obtain a quantized network model; an inference unit, used to assign the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; an evaluation unit, used to determine original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated according to the evaluation data and the original evaluation data.

[0017] A model evaluation device for an edge intelligent device, comprising:

[0018] A processor; and a memory arranged to store computer-executable instructions, wherein when the executable instructions are executed, the processor performs the following operations: configure task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and create an evaluation task according to the task parameters; quantize the source network model of the AI ​​chip to obtain a quantized network model; assign the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; determine the original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

[0019] A computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the following operations: configure task parameters according to acquired parameter information of an AI chip of an edge intelligent device to be evaluated, and create an evaluation task according to the task parameters; quantize a source network model of the AI ​​chip to obtain a quantized network model; assign the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; determine the original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

[0020] A computer program product includes a computer program, which, when executed by a processor, implements: configuring task parameters according to acquired parameter information of an AI chip of an edge intelligent device to be evaluated, and creating an evaluation task according to the task parameters; quantizing a source network model of the AI ​​chip to obtain a quantized network model; assigning the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; determining original evaluation data corresponding to the source network model, and performing performance evaluation on the edge intelligent device to be evaluated according to the evaluation data and the original evaluation data.

[0021] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0022] The model evaluation method for edge intelligent devices provided in the embodiment of the present application is adopted. For the edge intelligent device to be evaluated, task parameters are configured according to the parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and an evaluation task is created according to the task parameters; the source network model of the AI ​​chip is quantized to obtain a quantized network model; the quantized network model is assigned to the AI ​​chip for inference evaluation to obtain evaluation data; the original evaluation data corresponding to the source network model is determined, and the performance of the edge intelligent device to be evaluated is evaluated according to the evaluation data and the original evaluation data, thereby realizing the full process automation of edge intelligent device evaluation and greatly reducing the operational difficulty of edge intelligent device AI chip model evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0024] Figure 1 A schematic diagram of the specific structure of a model evaluation management system provided in an embodiment of the present application;

[0025] Figure 2 A flow chart of a model-based evaluation management system pipeline provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of a specific process of a model evaluation method for an edge intelligent device provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of the specific structure of a model evaluation device for an edge intelligent device provided in an embodiment of the present application;

[0028] Figure 5 A schematic diagram of the specific structure of a model evaluation device for an edge intelligent device constructed for an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0030] The executor of the edge intelligent device evaluation method provided in the embodiment of the present application may be, but is not limited to, at least one of a public cloud server, a private cloud server, an edge intelligent device management server, or a quantitative evaluation server; in addition, the executor of the method may also be an application (Application, APP) running on these servers or the system itself.

[0031] For ease of description, the following takes the execution subject of the method as a model evaluation management system deployed on a cloud server and an edge smart device as an example to introduce the implementation method of the method. It can be understood that the execution subject of the method as a model evaluation management system is only an exemplary description and should not be understood as a limitation of the method.

[0032] In one embodiment, the structure of the model evaluation management system is as follows: Figure 1 As shown, it mainly includes the following modules:

[0033] 1. Pipeline management module, which is used to divide the model evaluation process into multiple independent steps. Each step includes three parts: preprocessing, execution and post-processing, and is registered with the pipeline management module in turn. The entire pipeline shares intermediate data through cache and distributed file system. Each model evaluation task will create an automated pipeline, and generate evaluation data after completing each step in turn.

[0034] 2. The evaluation data management module uses a hierarchical and classified data structure to perform version management on the evaluation data of the algorithm model in the specified AI chip and generate an evaluation report.

[0035] 3. The cloud-edge collaboration module realizes the data synchronization of evaluation parameter configuration and evaluation results between the model evaluation management system and edge intelligent devices based on the Message Queuing Telemetry Transport (MQTT) protocol.

[0036] 4. Model evaluation module. After receiving the evaluation configuration, the edge intelligent device downloads the corresponding evaluation data set from the cloud distributed file storage through the HTTP (Hypertext Transfer Protocol) protocol, pulls the quantized algorithm model image file through Docker pull, starts the algorithm Docker container, and then drives the quantized model to complete reasoning, evaluation and data reporting.

[0037] The model evaluation pipeline process based on the model evaluation management system is as follows Figure 2 shown.

[0038] Based on the above-mentioned model evaluation management system, the specific implementation flow diagram of the model evaluation method for edge intelligent devices provided in this application is as follows: Figure 3As shown, it mainly includes the following steps:

[0039] Step 11: configure task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and create an evaluation task according to the task parameters;

[0040] In an embodiment of the present application, the parameter information of the AI ​​chip of the edge intelligent device to be evaluated may include: the manufacturer, chip model, computing power and other parameters of the AI ​​chip to be evaluated, such as Rockchip's RK series (RK3588), NVIDIA's NX series (NX XAVIER) and Cambrian Siyuan series (Siyuan 220).

[0041] Furthermore, the model evaluation management system can determine the source network model corresponding to the AI ​​chip based on the manufacturer information and model of the AI ​​chip to be evaluated, including the model ID, AI chip ID, model version number, quantization parameters, model accuracy mean mAP and size and other attribute information of the source network model; and then determine the model category (such as target detection model or image classification model, etc.) and model type (such as Pytorch model, Tensorflow model and ONNX model, etc.) of the source network model, and then the model evaluation management system can configure the model quantization parameters and select the evaluation data set according to the model category and model type.

[0042] In one implementation, the model quantization parameters configured in the embodiment of the present application may include but are not limited to the following: half-precision floating point precision FP16, single-precision floating point precision FP32, 8-bit integer precision int8, and 4-bit integer precision int8, etc.

[0043] The model evaluation management system creates a model evaluation task for the AI ​​chip based on the above task parameters and generates a task label taskID for the task.

[0044] Step 12, quantizing the source network model of the AI ​​chip obtained by executing step 11 to obtain a quantized network model;

[0045] In an embodiment of the present application, the model evaluation management system can quantize the network model of the AI ​​chip, and quantize the original high-bit network model of single-precision floating point precision FP32 based on TensorFlow, PyTorch, ONNX, Caffe, etc. to a low-bit type of half-precision floating point precision FP16, 8-bit integer precision int8 or even 4-bit integer precision int4.

[0046] In one embodiment, the model evaluation management system uses the software tool of the AI ​​chip to be evaluated to perform quantization processing according to the model quantization parameters in the pre-configured evaluation task parameters, thereby obtaining a quantized network model. In the embodiments of the present application, there is no limitation on the specific method used for model quantization.

[0047] Step 13, assigning the quantized network model obtained by executing step 12 to the AI ​​chip for inference evaluation to obtain evaluation data;

[0048] In one embodiment, the model evaluation management system can specifically perform reasoning evaluation on the AI ​​chip according to the following method, and the specific method may include: packaging the quantization network model algorithm image so that the AI ​​chip to be evaluated obtains the algorithm image and starts the algorithm container; sending the evaluation data set corresponding to the evaluation task to the AI ​​chip, so that the AI ​​chip to be evaluated performs reasoning evaluation operations based on the algorithm image and the evaluation data set.

[0049] Specifically, after completing the quantization processing through step 12, the model evaluation management system can package the quantized model into an algorithm image, and notify the edge intelligent device to pull the packaged algorithm image and start the algorithm Docker container through the cloud-edge collaboration module, and send the evaluation data set corresponding to the taskId of the current evaluation task to the edge intelligent device and trigger the device-side evaluation process. The edge intelligent device pulls and loads the evaluation data set from the distributed file system of the cloud server through the HTTP protocol, and uses the software compilation tool chain to deploy the algorithm image of the quantized network model to the AI ​​chip. According to the evaluation data set, an inference test is performed on the AI ​​chip to obtain the accuracy, precision, recall rate, mean precision and refresh rate (Frame Per Second, FPS) of the quantized network model on the AI ​​chip. These indicator results are uploaded to the model evaluation management system through the cloud-edge collaboration module.

[0050] Step 14: determine the original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

[0051] In an embodiment of the present application, the model evaluation management system can determine the loss parameters of the quantitative network model based on the evaluation index results obtained by executing step 13 and the original evaluation data, and then perform performance evaluation on the edge intelligent device to be evaluated based on the loss parameters.

[0052] In one implementation, the model evaluation management system may compare the indicator results obtained from the most recent inference evaluation with the mean accuracy mAP and model size corresponding to the source network model, and calculate the accuracy loss according to the following formula [1]:

[0053] mAP loss =mAP original -mAP quantizea [1]

[0054] Among them, mAP original Represents the mean accuracy corresponding to the source network model, mAP quantizea Represents the mean accuracy of the quantized network model.

[0055] The model evaluation management system can then display reports on the accuracy, precision, recall rate, mean precision, FPS and other indicator data of the quantized model, as well as comparative data such as precision loss and model size.

[0056] The model evaluation method for edge intelligent devices provided in the embodiment of the present application is adopted. For the edge intelligent device to be evaluated, task parameters are configured according to the parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and an evaluation task is created according to the task parameters; the source network model of the AI ​​chip is quantized to obtain a quantized network model; the quantized network model is assigned to the AI ​​chip for inference evaluation to obtain evaluation data; the original evaluation data corresponding to the source network model is determined, and the performance of the edge intelligent device to be evaluated is evaluated according to the evaluation data and the original evaluation data, thereby realizing the full process automation of edge intelligent device evaluation and greatly reducing the operational difficulty of edge intelligent device AI chip model evaluation.

[0057] In one embodiment, the present application also provides a model evaluation device for edge intelligent devices to solve the problem of low evaluation efficiency in existing model evaluation methods for AI chips. Figure 4 As shown, it includes: a task configuration unit 41, a quantization unit 42, a reasoning unit 43 and an evaluation unit 44.

[0058] Among them, the task configuration unit 41 is used to configure task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and create an evaluation task according to the task parameters;

[0059] A quantization unit 42, configured to quantize the source network model of the AI ​​chip to obtain a quantized network model;

[0060] An inference unit 43 is used to assign the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data;

[0061] The evaluation unit 44 is used to determine the original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

[0062] In one embodiment, the task configuration unit 41 is specifically used to: obtain the manufacturer information and model of the AI ​​chip of the edge intelligent device to be evaluated; determine the source network model corresponding to the AI ​​chip based on the manufacturer information and model; determine the model category and model type of the source network model, and configure the model quantization parameters and evaluation data set based on the model category and model type.

[0063] In one embodiment, the quantization unit 42 is specifically used to: use the software tool provided by the AI ​​chip, and perform quantization processing according to the model quantization parameters to obtain a quantized network model; wherein the model quantization parameters include at least one of the following: half-precision floating point precision FP16, 8-bit integer precision int8, and 4-bit integer precision int4.

[0064] In one embodiment, the reasoning unit 43 is specifically used to: package the quantized network model algorithm image so that the AI ​​chip obtains the algorithm image and starts the algorithm container; send the evaluation data set corresponding to the evaluation task to the AI ​​chip, so that the AI ​​chip performs reasoning and evaluation operations based on the algorithm image and the evaluation data set.

[0065] In one implementation, the evaluation unit 44 is specifically used to: determine the loss parameter of the quantized network model according to the evaluation data and the original evaluation data; and perform performance evaluation on the edge intelligent device to be evaluated according to the loss parameter.

[0066] By adopting the model evaluation device of the edge intelligent device provided in the embodiment of the present application, for the edge intelligent device to be evaluated, according to the parameter information of the AI ​​chip of the edge intelligent device to be evaluated, the task parameters are configured, and the evaluation task is created according to the task parameters; the source network model of the AI ​​chip is quantized to obtain a quantized network model; the quantized network model is assigned to the AI ​​chip for inference evaluation to obtain evaluation data; the original evaluation data corresponding to the source network model is determined, and the performance of the edge intelligent device to be evaluated is evaluated according to the evaluation data and the original evaluation data, thereby realizing the full process automation of the edge intelligent device evaluation and greatly reducing the operational difficulty of the edge intelligent device AI chip model evaluation.

[0067] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 5At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0068] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0069] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0070] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an edge intelligent device evaluation device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations: configure task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and create an evaluation task according to the task parameters; quantize the source network model of the AI ​​chip to obtain a quantized network model; assign the quantized network model to the AI ​​chip for reasoning evaluation to obtain evaluation data; determine the original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

[0071] The above application Figure 5The method performed by the model evaluation electronic device of the edge intelligent device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0072] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0073] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:

[0074] According to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, the task parameters are configured, and an evaluation task is created according to the task parameters; the source network model of the AI ​​chip is quantized to obtain a quantized network model; the quantized network model is assigned to the AI ​​chip for inference evaluation to obtain evaluation data; the original evaluation data corresponding to the source network model is determined, and the performance of the edge intelligent device to be evaluated is evaluated according to the evaluation data and the original evaluation data.

[0075] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0080] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0081] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0084] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for evaluating an edge intelligent device, characterized in that: include: According to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, configure the task parameters, and create an evaluation task according to the task parameters; Quantizing the source network model of the AI ​​chip to obtain a quantized network model; Assigning the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; Determine original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

2. The method according to claim 1, characterized in that The configuration of task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated specifically includes: Obtain the manufacturer information and model of the AI ​​chip of the edge intelligent device to be evaluated; Determine the source network model corresponding to the AI ​​chip according to the manufacturer information and model; Determine the model category and model type of the source network model, and configure model quantization parameters and an evaluation data set according to the model category and model type.

3. The method according to claim 2, characterized in that The quantizing the source network model of the AI ​​chip to obtain a quantized network model specifically includes: Using the software tool provided by the AI ​​chip, and performing quantization processing according to the model quantization parameters, a quantized network model is obtained; The model quantization parameter includes at least one of the following: half-precision floating point precision FP16, 8-bit integer precision int8, and 4-bit integer precision int4.

4. The method according to claim 1, characterized in that The allocating the quantized network model to the AI ​​chip for reasoning evaluation specifically includes: Packaging the quantized network model algorithm image so that the AI ​​chip obtains the algorithm image and starts the algorithm container; The evaluation data set corresponding to the evaluation task is sent to the AI ​​chip, so that the AI ​​chip performs reasoning and evaluation operations according to the algorithm image and the evaluation data set.

5. The method according to claim 1, characterized in that The performing performance evaluation on the edge intelligent device to be evaluated according to the evaluation data and the original evaluation data specifically includes: Determining a loss parameter of the quantized network model according to the evaluation data and the original evaluation data; A performance evaluation is performed on the edge intelligent device to be evaluated according to the loss parameter.

6. An edge intelligent device evaluation device, characterized in that: include: A task configuration unit, configured to configure task parameters according to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, and to create an evaluation task according to the task parameters; A quantization unit, used to quantize the source network model of the AI ​​chip to obtain a quantized network model; An inference unit, used to assign the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; An evaluation unit is used to determine original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

7. The device according to claim 6, characterized in that Task configuration unit, specifically used for: Obtain the manufacturer information and model of the AI ​​chip of the edge intelligent device to be evaluated; Determine the source network model corresponding to the AI ​​chip according to the manufacturer information and model; Determine the model category and model type of the source network model, and configure model quantization parameters and an evaluation data set according to the model category and model type.

8. The device according to claim 6, characterized in that Quantization unit, specifically used for: Using the software tool provided by the AI ​​chip, and performing quantization processing according to the model quantization parameters, a quantized network model is obtained; The model quantization parameter includes at least one of the following: half-precision floating point precision FP16, single-precision floating point precision FP32, 8-bit integer precision int8, and 4-bit integer precision int8.

9. An edge intelligent device evaluation device, comprising: processor; a memory arranged to store computer executable instructions which, when executed, cause the processor to: According to the acquired parameter information of the AI ​​chip of the edge intelligent device to be evaluated, configure the task parameters, and create an evaluation task according to the task parameters; Quantizing the source network model of the AI ​​chip to obtain a quantized network model; Assigning the quantized network model to the AI ​​chip for inference evaluation to obtain evaluation data; Determine original evaluation data corresponding to the source network model, and perform performance evaluation on the edge intelligent device to be evaluated based on the evaluation data and the original evaluation data.

10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including multiple applications, enables the electronic device to execute the edge intelligent device evaluation method as described in any one of claims 1-5.

11. A computer program product, characterized in that It includes a computer program which, when executed by a processor, implements the edge intelligent device evaluation method as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Task execution method and device, storage medium and electronic equipment

    CN119377076A