Model deployment method and device and storage medium

By determining and updating optimization strategies for models to be deployed in the semiconductor field, the problem of low accuracy of model deployment results is solved, and the accuracy and adaptability of model output results are improved.

CN118691876APending Publication Date: 2024-09-24SEMITRONIX
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410694063.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of model deployment results in the semiconductor field is low, and the output results of different models to be deployed cannot be effectively optimized, resulting in inaccurate online model output results.

Method used

By obtaining the target model to be deployed, determining its optimization strategy, configuring different optimization strategy parameters according to the model category, deploying the optimized model to the service, monitoring the running results and updating the optimization strategy to improve the accuracy of the model output results.

Benefits of technology

It improves the accuracy of online model output results, solves the problem of low accuracy caused by unified rule output for different models to be deployed, and realizes the optimization and update of model output results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691876A
    Figure CN118691876A
Patent Text Reader

Abstract

The invention relates to a model deployment method and device and a storage medium, and the method comprises the steps: obtaining a to-be-deployed target model; the target model to be deployed is a trained model; determining an optimization strategy of the target model to be deployed; the optimization strategy is used for limiting an output result of the to-be-deployed target model, and different optimization strategy parameters are configured for different to-be-deployed target models; and deploying the to-be-deployed target model to a service, and outputting a prediction result by the to-be-deployed target model based on an optimization strategy to complete deployment of the to-be-deployed target model. According to the method and the device, the accuracy of the output result of the online model is improved, and the problem that the accuracy of the output result of the online model is low due to the fact that the to-be-deployed model outputs corresponding prediction or reasoning results according to a unified rule for different to-be-deployed models in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of semiconductor technology, and in particular to a model deployment method, device and storage medium. Background Art

[0002] Wafers are basic silicon chips used to manufacture semiconductor components and are important basic components in integrated circuits (ICs). The increasingly complex chip design makes the semiconductor manufacturing process extremely complex and expensive, and wafer defects are inevitable, which will lead to reduced chip yields. Therefore, post-analysis of the acquired wafer defect images has become a necessary means to improve wafer yields.

[0003] With the application of image analysis technology in semiconductors, machine models can be used to classify and detect defects in images during wafer manufacturing. The conventional model training process is generally data labeling, model training, and model online or model deployment. Conventional model deployment is to deploy the trained model directly to the service. If the model's detection results for the online data on the service are not satisfactory, it is necessary to return to the model training stage for model optimization. In addition, because there are many types and styles of wafer defects in the semiconductor field, new analysis requirements may arise with the development of the process. The information that needs to be identified cannot be fully considered in the model training stage, and the optimization strategy will not be configured for the output results of the model to be deployed. For different models to be deployed, the models to be deployed output the corresponding prediction or inference results according to unified rules, which will result in low accuracy of the results output by the online model. Summary of the invention

[0004] The embodiments of the present application provide a model deployment method, device, and storage medium to solve the problem of low accuracy of online model output results in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a method for deploying a model, the method comprising:

[0006] Obtaining a target model to be deployed; the target model to be deployed is a trained model;

[0007] Determine an optimization strategy for the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different target models to be deployed are configured with different optimization strategy parameters;

[0008] The target model to be deployed is deployed on the service, and the target model to be deployed outputs prediction results based on the optimization strategy, thereby completing the deployment of the target model to be deployed.

[0009] In some of the embodiments, obtaining a target model to be deployed includes:

[0010] A target model to be deployed is selected from the model warehouse, wherein the model warehouse is provided with target models of different categories, and different target models support configuration of different optimization strategies.

[0011] In some embodiments, determining the optimization strategy of the target model to be deployed includes:

[0012] According to the category of the target model to be deployed, an optimization strategy for the target model to be deployed is determined.

[0013] In some of these embodiments, the categories of the target model include image classification and target detection for wafer defect detection;

[0014] When selecting a target model for image classification, the optimization strategy includes determining the target defect category corresponding to each wafer image to be tested according to the confidence value / position / size of the defect detection frame.

[0015] In some of the embodiments, the optimization strategy includes at least one of confidence threshold setting for defect category screening, defect category priority, association relationship between different defect categories, and defect size.

[0016] In some of the embodiments, the optimization strategy includes determining the target defect category corresponding to each wafer image to be tested according to the maximum confidence level / the distance from the center point / the maximum detection frame.

[0017] In some embodiments, the method further comprises:

[0018] When selecting a target model for target detection, the optimization strategy includes setting a confidence threshold for defect category screening; the confidence threshold for defect category screening includes a low confidence filtering threshold and an uncertain defect category threshold, and whether to update the target model is determined by counting the number of uncertain defect categories. In some embodiments, the method further includes:

[0019] Monitoring the operation result of the service, and obtaining a first classification result after classification by the target model to be deployed;

[0020] Updating the optimization strategy according to the first classification result;

[0021] According to the updated optimization strategy, the optimization strategy configuration is performed on the target model to be deployed;

[0022] Redeploy the target model to be deployed with the updated optimization strategy configured on the service.

[0023] In some embodiments, deploying the target model to be deployed to a service includes:

[0024] Select the target model to be deployed and the target data source for which the optimization strategy has been configured to create a monitoring service;

[0025] triggering a pre-release test of the target model to be deployed;

[0026] After the pre-release test is completed, the target model to be deployed is released, and the deployment of the target model to be deployed is completed.

[0027] In some embodiments, the method further comprises:

[0028] updating the optimization strategy according to the pre-release test results;

[0029] According to the updated optimization strategy, the optimization strategy configuration is performed on the target model to be deployed;

[0030] Redeploy the target model to be deployed with the updated optimization strategy configured on the service.

[0031] In some embodiments, the method further comprises:

[0032] A pre-release page is set up to evaluate the model before it goes online. By comparing and displaying the test results of different optimization strategies, the optimization strategy that meets expectations is determined and updated.

[0033] In a second aspect, an embodiment of the present application provides a model deployment device, the device comprising:

[0034] A model acquisition module is used to acquire a target model to be deployed; the target model to be deployed is a trained model;

[0035] An optimization strategy determination module, used to determine the optimization strategy of the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategy parameters are configured for different target models to be deployed;

[0036] The deployment module is used to deploy the target model to be deployed on the service, and the target model to be deployed outputs the prediction results based on the optimization strategy to complete the deployment of the target model to be deployed.

[0037] In a second aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the model deployment method described in the first aspect are implemented.

[0038] Compared with the prior art, a model deployment method, device and storage medium provided in the embodiments of the present application obtain a target model to be deployed; the target model to be deployed is a trained model; the optimization strategy of the target model to be deployed is determined; the optimization strategy is used to limit the output result of the target model to be deployed, and different target models to be deployed are configured with different optimization strategy parameters; the target model to be deployed is deployed to the service, and the target model to be deployed outputs prediction results based on the optimization strategy, thereby completing the deployment of the target model to be deployed. Different optimization strategies are configured for different target models to be deployed, the output results of the target model to be deployed are optimized, the target model to be deployed is deployed to the service, and the target model to be deployed outputs prediction results based on the configured optimization strategy, thereby improving the accuracy of the output results of the online model, and solving the problem in the prior art that for different models to be deployed, the models to be deployed output corresponding prediction or inference results according to unified rules, which will lead to low accuracy of the results output by the online model. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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:

[0040] Figure 1 It is a hardware structure block diagram of a terminal for executing a deployment method of a model according to an embodiment of the present application;

[0041] Figure 2 is a flow chart of a deployment method of a model in an embodiment of the present application;

[0042] Figure 3 It is a flow chart of another model optimization method of an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0044] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0045] The method embodiments provided in the embodiments of the present application can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 1 is a hardware structure diagram of a terminal for executing a deployment method of a model according to an embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a deployment method of a model in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0047] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0048] The present application provides a model deployment method. Figure 2 is a flow chart of a deployment method of a model in an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0049] Step S210, obtaining a target model to be deployed; the target model to be deployed is a trained model.

[0050] In this step, the target model to be deployed is determined according to the user configuration or user needs. Among them, the target model to be deployed is a model that has been trained and verified. As a non-limiting example, according to the training data set, the initial target model is trained to obtain multiple second target models, and the multiple second target models are evaluated and tested to obtain multiple third target models. The multiple third target models are added to the model warehouse, and the target model to be deployed is obtained from the model warehouse according to the user configuration or user needs. The model, the first target model, the second target model, the third target model, and the target model to be deployed in the embodiment of the present application can be a machine learning model, an artificial intelligence model, etc., such as a neural network model, a decision tree model, a support vector machine model, a random forest model, a Bayesian network model, a linear regression model, a logistic regression model, etc., which are not specifically limited here.

[0051] Step S220, determining the optimization strategy of the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategy parameters are configured for different target models to be deployed.

[0052] In this step, the target model to be deployed is determined, and the optimization strategy corresponding to the target model to be deployed is determined. The optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategies or optimization strategy parameters are configured for different target models to be deployed, so as to achieve the effect of optimizing the output result of the target model to be deployed. The optimization strategy parameters here can be understood as the specific parameter values ​​of the optimization strategy configuration. As a non-limiting example, for the target model to be deployed for image classification, the purpose of the optimization strategy is to improve the accuracy of the image dimension classification results. The optimization strategy includes basic model information such as model name, category or type. The optimization strategy also includes model operation parameters such as global confidence threshold, image input size and detection box IOU (overlap) threshold. The optimization strategy also includes image group settings that can optionally configure the image group capacity and image group number for detection. The optimization strategy also includes advanced settings of the model. The advanced settings correspond to the model category. The advanced settings include detection mode, category confidence threshold, category uncertainty threshold, category priority, category detection quantity division and category measurement, etc. The optimization strategy also includes determining the target defect category corresponding to each wafer image to be tested according to the defect detection box confidence value / position / size. The optimization strategy also includes at least one of the confidence threshold setting for defect category screening, defect category priority setting, association relationship setting for different defect categories, and defect size setting.

[0053] Step S230, deploying the target model to be deployed to the service, outputting the prediction result of the target model to be deployed based on the optimization strategy, and completing the deployment of the target model to be deployed.

[0054] In this step, after selecting the corresponding optimization strategy of the target model to be deployed, configure the optimization strategy and the parameter values ​​corresponding to the optimization strategy, deploy the target model to be deployed to the service, and the target model to be deployed outputs the prediction results based on the configured optimization strategy, completing the deployment of the target model to be deployed. As a non-limiting example, for the target model to be deployed for image classification, the target model to be deployed can be divided into an image classification model and a target detection model according to the category, wherein the image classification model is a picture that may have multiple categories of defects, the image classification model identifies multiple categories of detection frames, the image classification model will select one of the categories as the category of the picture according to the setting, and the target detection model identifies the defect category and number of defects on all pictures, that is, the target detection model will detect the category and number of detection frames. Assume that the category of the target model to be deployed is an image classification model, and the determined optimization strategies are the category confidence threshold and the category uncertainty threshold. For the two optimization strategies, the corresponding parameter values ​​are set. For example, the parameters of the category confidence threshold are set to the confidence threshold of category A as 0.3 and the category uncertainty threshold as 0.5. After the prediction data set passes through the target model to be deployed, the detection box in the inference result is recognized as category A, and the inference confidence is 0.4. The inference confidence of 0.4 is greater than the confidence threshold of category A set in the optimization strategy of 0.3, but less than the category uncertainty threshold of 0.5 set in the optimization strategy. In this case, the detection box is classified as an uncertain category, thereby improving the accuracy of the classification results in the image dimension.

[0055] In this embodiment, the target model to be deployed is obtained; the target model to be deployed is a trained model; the optimization strategy of the target model to be deployed is determined; the optimization strategy is used to limit the output result of the target model to be deployed, and different target models to be deployed are configured with different optimization strategy parameters; the target model to be deployed is deployed to the service, and the target model to be deployed outputs the prediction result based on the optimization strategy, thereby completing the deployment of the target model to be deployed. Different optimization strategies are configured for different target models to be deployed, the output result of the target model to be deployed is optimized, the target model to be deployed is deployed to the service, and the target model to be deployed outputs the prediction result based on the configured optimization strategy, thereby improving the accuracy of the output result of the online model, and solving the problem in the prior art that for different models to be deployed, the models to be deployed output corresponding prediction or inference results according to unified rules, which will lead to low accuracy of the results output by the online model.

[0056] In some embodiments, obtaining the target model to be deployed includes: selecting the target model to be deployed from a model warehouse, where the model warehouse is provided with target models of different categories, and different target models support the configuration of different optimization strategies. In this implementation, the model in the model warehouse can be a target model obtained by training, verifying, and evaluating the initial target model. Selecting the target model to be deployed from the model warehouse improves the prediction accuracy of the model deployed online.

[0057] In some of the embodiments, determining the optimization strategy of the target model to be deployed includes: determining the optimization strategy of the target model to be deployed according to the category of the target model to be deployed.

[0058] In some of the embodiments, the category of the target model includes image classification and target detection for wafer defect detection, that is, the target model includes an image classification model and a target detection model. When the target model for image classification is selected, the optimization strategy includes determining the target defect category corresponding to each wafer image to be tested according to the confidence value / position / size of the defect detection frame. In this embodiment, when the target model for image classification is selected, that is, the category of the target model to be deployed is an image classification model, the image classification model identifies multiple categories of defect detection frames, and the image classification model selects one of the categories as the defect category of the wafer image to be tested according to the setting. At this time, the optimization strategy of the target model to be deployed can be to determine the target defect category corresponding to each wafer image to be tested according to the confidence value of the defect detection frame, or to determine the target defect category corresponding to each wafer image to be tested according to the position of the defect detection frame, or to determine the target defect category corresponding to each wafer image to be tested according to the size of the defect detection frame.

[0059] In some of the embodiments, when selecting a target model for image classification, the optimization strategy includes at least one of the confidence threshold setting for defect category screening, defect category priority, association between different defect categories, and defect size. Further, the optimization strategy includes at least one of the confidence threshold setting for defect category screening, defect category priority setting, association between different defect categories, and defect size setting. As a non-limiting example, for example, the optimization strategy is set to the confidence threshold for defect category screening as follows: the confidence of defect category A is 0.8, then only when the defect detection frame of the wafer image to be tested is identified as defect category A and its predicted or inferred confidence is greater than 0.8, the final prediction result of the wafer image to be tested is defect category A, otherwise it will be identified as other defect categories. As another non-limiting example, for example, when the optimization strategy is set to the defect category priority for defect category screening so that the priority of defect category A is higher than the priority of defect category B, if the wafer image to be tested identifies defect category A and defect category B, the final prediction result of the wafer image to be tested is defect category A. As another non-limiting example, the optimization strategy includes setting the association relationship between different defect categories for defect category screening so that when the number of defect detection frames of defect category A is greater than N, the defect category of the wafer image to be tested is predicted to be defect category B. As another non-limiting example, the optimization strategy includes a defect size measurement setting, and the defect size measurement includes measuring the diagonal of the defect detection frame and measuring the area of ​​the defect detection frame, etc. It should be noted that the multiple types of optimization strategies in this embodiment can be configured individually or in multiple ways. For example, the configured optimization strategies are the confidence threshold setting for defect category screening and the priority setting for defect category screening, so as to select the appropriate results from the prediction results of the target model. This embodiment provides multiple optimization strategies to further improve the accuracy of the output results of the online model.

[0060] In some of the embodiments, the optimization strategy includes determining the target defect category corresponding to each wafer image to be tested based on the maximum confidence level / distance from the center point / maximum detection frame. In this embodiment, when selecting a target model for image classification, the optimization strategy can be to determine the target defect category corresponding to each wafer image to be tested based on the maximum confidence level of the defect detection frame. The optimization strategy can also be to determine the target defect category corresponding to each wafer image to be tested based on the distance of the defect detection frame from the center point of the wafer image to be tested, such as determining the defect detection frame closest to the center point of the wafer image to be tested as the target defect category of the wafer image to be tested. The optimization strategy can also be to determine the target defect category corresponding to each wafer image to be tested based on the maximum detection frame.

[0061] In some of the embodiments, the deployment method of the model also includes: when selecting the target model for target detection, the optimization strategy includes the confidence threshold setting for defect category screening; the confidence threshold setting for defect category screening includes a low confidence filtering threshold and an uncertain defect category threshold, and whether to update the target model is determined by counting the number of uncertain defect categories. As a non-limiting example, the category of the target model to be deployed is the target detection model, the optimization strategy is the confidence threshold setting for defect category screening, and the low confidence filtering threshold and the uncertain defect category threshold are set with corresponding parameter values, such as setting the low confidence filtering threshold of defect category A to 0.3, the uncertain defect category threshold to 0.5, the defect detection frame identified by the image of the wafer to be tested is defect category A, the reasoning confidence is 0.4, and the reasoning confidence 0.4 is greater than the low confidence filtering threshold 0.3 of defect category A, but less than the uncertain defect category threshold 0.5, then the detection frame is classified as an uncertain category. Count the number of defect detection frames of uncertain defect categories, that is, uncertain defect categories, and when the number is greater than the threshold, update the target model deployed online. When the target uncertain defect category exceeds the threshold, it indicates that a new batch of defect categories has appeared. If the current target model is used to predict poor results, the wafer image corresponding to the uncertain defect category is returned to the initial data set for marking, and then the model is retrained, added to the model warehouse, and the online target model is updated. In this embodiment, the target model is updated according to the setting of the optimization strategy, and the accuracy of the output results of the online model is further improved.

[0062] In some of the embodiments, the deployment method of the model also includes: monitoring the running results of the service, obtaining the first classification result after classification by the target model to be deployed; updating the optimization strategy according to the first classification result; configuring the optimization strategy for the target model to be deployed according to the updated optimization strategy; and redeploying the target model to be deployed configured with the updated optimization strategy to the service. In this example, after the target model to be deployed is deployed, the first classification result of the prediction data set after classification by the target model to be deployed is obtained, and the statistical results of the current target model to be deployed are generated according to the results of manual re-judgment and the first classification results, including the accuracy rate, the number of each category, the precision rate and recall rate of each category, and the confusion matrix. The optimization strategy is updated according to the statistical results, including the update of the parameter values ​​of the optimization strategy. According to the updated optimization strategy, the optimization strategy is reconfigured for the target model to be deployed, and the target model to be deployed configured with the updated optimization strategy is redeployed to the service, thereby further improving the accuracy of the output results of the online model.

[0063] In some of the embodiments, deploying the target model to be deployed to the service includes: selecting the target model to be deployed and the target data source with configured optimization strategy to create a monitoring service; triggering a pre-release test of the target model to be deployed; after the pre-release test is completed, releasing the target model to be deployed to complete the deployment of the target model to be deployed.

[0064] In this embodiment, in order to reduce the inadaptability of the data of the target data source to the target model, the technical solution introduces a pre-release test link. The pre-release test is performed by selecting the data to be processed by the target data source. The optimization strategy can be adjusted in the pre-release, and the prediction results of different optimization strategies can be compared and displayed to obtain an optimization strategy that meets expectations, and the latest optimization strategy can replace the configured optimization strategy.

[0065] In some of the embodiments, the deployment method of the model also includes: updating the optimization strategy according to the pre-release test results; configuring the optimization strategy for the target model to be deployed according to the updated optimization strategy; and redeploying the target model to be deployed configured with the updated optimization strategy to the service. In this example, the optimization strategy is updated according to the test results of the pre-release test, where the test results of the pre-release test include the classification results of the target model to be deployed, and the statistical results of the current target model to be deployed are generated according to the results of manual re-judgment and the classification results of the target model to be deployed, including the accuracy rate, the number of each category, the precision rate and recall rate of each category, and the confusion matrix. The optimization strategy is updated according to the statistical results, including the update of the parameter values ​​of the optimization strategy, and the optimization strategy is reconfigured for the target model to be deployed according to the updated optimization strategy, and the target model to be deployed configured with the updated optimization strategy is redeployed to the service, thereby further improving the accuracy of the output results of the online model.

[0066] In some of the embodiments, the target model to be deployed is deployed to the service, including: selecting the target model to be deployed and the target data source with configured optimization strategy to create a monitoring service; triggering a pre-release test of the target model to be deployed; after the pre-release test is completed, releasing the target model to be deployed, and completing the deployment of the target model to be deployed.

[0067] In some of the embodiments, the deployment method of the model further includes: setting up a pre-release page for model online evaluation, comparing and displaying the test results of different optimization strategies, determining the optimization strategy that meets expectations and updating it. In this embodiment, by setting up a pre-release page for model online evaluation and updating the optimization strategy, a suitable optimization strategy is selected, thereby further improving the accuracy of the output results of the online model.

[0068] Among them, the pre-release page allows you to test the model and quickly adjust the optimization strategy. On the pre-release page, you can test the model effect. According to the binding relationship of the service, extract historical data that meets the requirements from the online gallery and send it to the model for inference. The inference results and the corresponding indicator accuracy and missed detection rate are displayed on the page. If it is a classification model, the classification results are displayed. If it is a detection model, the detection results with boxes are displayed. You can confirm the model effect by viewing the inference results. If the effect meets expectations, you can publish it online. For example: the optimization strategy settings of the model are displayed on the right side of the pre-release page, and the optimization strategy is visualized on the left side of the page, including the initial strategy and the updated strategy. If the model test effect does not meet expectations, you can continue to adjust the optimization strategy here. After the adjustment is completed, you can apply it to the current model. Refresh the picture on this page and initiate another test to obtain new inference or prediction results. By comparing the model results and indicators (accuracy and missed detection rate) before and after, you can continuously adjust to the appropriate optimization strategy. When the model effect meets expectations, you can click Apply and Save at the optimization strategy. At this time, the optimization strategy parameters of the online model will be officially updated.

[0069] It should be noted that the model, the first target model, the second target model, the third target model, and the fourth target model in the embodiments of the present application can be a machine learning model, an artificial intelligence model, etc., such as a neural network model, a decision tree model, a support vector machine model, a random forest model, a Bayesian network model, a linear regression model, a logistic regression model, etc., which are not specifically limited here.

[0070] The model optimization method provided in this embodiment covers the entire process of machine learning model generation and tuning, enabling developers to efficiently generate high-precision models for specific tasks, and after the model is put into online use, easily obtain difficult data, add it to the original training data set, tune the model, and put it online again; the model is reused, the model in the model warehouse can be used for intelligent labeling, and can also be used as the basic model for the next training to improve the training speed; rich optimization strategies, and can use a batch of online data to see the effect of modifying the optimization strategy in real time and visually, so as to obtain the optimal parameters more conveniently; data reflux, add online erroneous data and uncertain data to the training data set to optimize the model; data supports intelligent deduplication and intelligent labeling; visual and operational confusion matrix, convenient for adjusting or updating data and models; early warning mechanism, when the model is not applicable to the current data and needs to be updated, it automatically notifies the user to improve the optimization efficiency of the model.

[0071] In some of the embodiments, data and models are version controlled. Version control includes data version and model version. For data version, a new data version will be created for new data. If you need to modify the data annotation, you can copy a version and then adjust or update the annotation. If you need to add data, you can copy a version and add new data. If you need to clean the data, you can copy a version and delete the data or modify the label. For model version, a training in the training camp generates a model, and the model can be added to the model warehouse. There is model version management in the model warehouse; a model can be added to the model warehouse repeatedly to form different versions, and different versions can have different optimization strategy configurations. For example, product A hopes that the missed detection rate is lower, and product B hopes that the accuracy rate of defect x is higher, and their model categories are the same, then they can share different versions of a model and configure different optimization strategies at the same time; different versions of models can be put online in the same service in a replacement manner. The historical model information will be recorded in the service, and a model in the historical record can be quickly selected to replace the current model. Version control is performed on data and models so that different versions can be used to train different models. Model performance can be improved by modifying data (data volume, data category, data ratio, data annotation method, etc.). If an initial data set A is annotated multiple times to generate different versions of training data sets such as training data set B, training data set C, and training data set D, and after model training and optimization, the training data set D has a better effect, then data annotation can be performed on the basis of training data set D to continue to generate different versions of training data sets such as training data set E, training data set F, training data set G, and so on. Version control is set in the model warehouse: 1. A model can be added to the model warehouse repeatedly to form different versions, and different versions can have different optimization strategy configurations. For example, if product A wants a lower missed detection rate and product B wants a higher accuracy rate for defect x, and their model categories are the same, then they can share different versions of a model and configure different optimization strategies at the same time. 2. Models of different versions can be launched online in the same service in a replacement manner. The historical model information will be recorded in the service, and a model in the historical record can also be quickly selected to replace the current model.

[0072] The optimization method of the model in the embodiment of the present application supports the image group mode. The image group is because in the context of semiconductor ADC (automatic defect classification), the pictures generated by the manual re-judgment machine are usually taken under the same physical coordinates (such as the same defectid). The separate training and merge reasoning of these pictures ensure the improvement of the accuracy of model classification. Separate training, in a data set or training data set, the pictures of a group may have different labels, which can be separately marked, and some pictures may be fuzzy / unimportant. Not every picture can reflect the defect characteristics. Pictures that do not reflect the defect characteristics are not used as training samples. These pictures can be deleted. When making a training set, only the current picture is considered, and the information of other pictures in the group where the current picture is located is not considered. Merge reasoning, different pictures of the same coordinate are defects of the same category, and different pictures of the same coordinate can be set in a group. During reasoning, the results of several pictures are considered as a whole, and a unique category is given. In the online service, when the model is online, the pictures enter the model reasoning in the form of group packaging. Although a group has multiple pictures, only one classification result will be obtained. The specific classification result is determined by the model and the optimization strategy.

[0073] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0074] The present application also provides a model deployment device in the embodiments, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0075] Figure 3 is a structural block diagram of a deployment device of a model in an embodiment of the present application, such as Figure 3 As shown, the device comprises:

[0076] The model acquisition module 810 is used to acquire the target model to be deployed; the target model to be deployed is a trained model;

[0077] The optimization strategy determination module 820 is used to determine the optimization strategy of the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategy parameters are configured for different target models to be deployed;

[0078] The deployment module 830 is used to deploy the target model to be deployed to the service. The target model to be deployed outputs the prediction result based on the optimization strategy to complete the deployment of the target model to be deployed.

[0079] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0080] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0081] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0082] Optionally, in the embodiment of the present application, the processor may be configured to perform the following steps through a computer program:

[0083] S1, obtaining the target model to be deployed; the target model to be deployed is a trained model;

[0084] S2, determining the optimization strategy of the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategy parameters are configured for different target models to be deployed;

[0085] S3: deploy the target model to be deployed on the service. The target model to be deployed outputs the prediction results based on the optimization strategy, and the deployment of the target model to be deployed is completed.

[0086] It should be noted that the specific examples in the embodiments of the present application can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in the embodiments of the present application.

[0087] In addition, in combination with a model deployment method provided in the above embodiment, a storage medium can also be provided in the embodiment of the present application to implement. The storage medium stores a computer program; when the computer program is executed by a processor, any model deployment method in the above embodiment is implemented.

[0088] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0089] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0090] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0091] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A model deployment method, characterized in that: The method comprises: Obtaining a target model to be deployed; the target model to be deployed is a trained model; Determine an optimization strategy for the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different target models to be deployed are configured with different optimization strategy parameters; The target model to be deployed is deployed on the service, and the target model to be deployed outputs prediction results based on the optimization strategy, thereby completing the deployment of the target model to be deployed.

2. The deployment method of the model according to claim 1, characterized in that: Get the target model to be deployed, including: A target model to be deployed is selected from the model warehouse, wherein the model warehouse is provided with target models of different categories, and different target models support configuration of different optimization strategies.

3. The deployment method of the model according to claim 1, characterized in that: The step of determining the optimization strategy of the target model to be deployed includes: According to the category of the target model to be deployed, an optimization strategy for the target model to be deployed is determined.

4. The deployment method of the model according to claim 2 or 3, characterized in that: The categories of the target models include image classification and target detection for wafer defect detection; When selecting a target model for image classification, the optimization strategy includes determining the target defect category corresponding to each wafer image to be tested according to the confidence value / position / size of the defect detection frame.

5. The deployment method of the model according to claim 4, characterized in that: The optimization strategy includes at least one of confidence threshold setting for defect category screening, defect category priority, association relationship between different defect categories, and defect size.

6. The deployment method of the model according to claim 4, characterized in that: The optimization strategy includes determining the target defect category corresponding to each wafer image to be tested according to the maximum confidence level / the distance from the center point / the maximum detection frame.

7. The deployment method of the model according to claim 5, characterized in that: The method further comprises: When selecting a target model for target detection, the optimization strategy includes setting a confidence threshold for defect category screening; the confidence threshold setting for defect category screening includes a low confidence filtering threshold and an uncertain defect category threshold, and whether to update the target model is determined by counting the number of uncertain defect categories.

8. The deployment method of the model according to claim 1, characterized in that: The method further comprises: Monitoring the operation result of the service, and obtaining a first classification result after classification by the target model to be deployed; updating the optimization strategy according to the first classification result; According to the updated optimization strategy, the optimization strategy configuration is performed on the target model to be deployed; Redeploy the target model to be deployed with the updated optimization strategy configured to the service.

9. The deployment method of the model according to claim 1, characterized in that: The step of deploying the target model to be deployed on the service includes: Select the target model to be deployed and the target data source for which the optimization strategy has been configured to create a monitoring service; triggering a pre-release test of the target model to be deployed; After the pre-release test is completed, the target model to be deployed is released, and the deployment of the target model to be deployed is completed.

10. The model deployment method according to claim 9, characterized in that: The method further comprises: updating the optimization strategy according to the pre-release test results; According to the updated optimization strategy, the optimization strategy configuration is performed on the target model to be deployed; Redeploy the target model to be deployed with the updated optimization strategy configured to the service.

11. The deployment method of the model according to claim 10, characterized in that: The method further comprises: A pre-release page is set up to evaluate the model before it goes online. By comparing and displaying the test results of different optimization strategies, the optimization strategy that meets expectations is determined and updated.

12. A model deployment device, characterized in that: The device comprises: A model acquisition module is used to acquire a target model to be deployed; the target model to be deployed is a trained model; An optimization strategy determination module, used to determine the optimization strategy of the target model to be deployed; the optimization strategy is used to limit the output result of the target model to be deployed, and different optimization strategy parameters are configured for different target models to be deployed; The deployment module is used to deploy the target model to be deployed on the service, and the target model to be deployed outputs the prediction results based on the optimization strategy to complete the deployment of the target model to be deployed.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the deployment method of the model described in any one of claims 1 to 11 are implemented.