# US 2023/0267344 A1 · Method and system for deploying inference model

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0267344 A1
- Document ID: US20230267344A1
- Status: Published application
- Kind: A1
- Application number: 18/073,372
- Filed: 2022-12-01
- Published: 2023-08-24
- Earliest claimed: 2022-02-24
- Assignees: Pegatron Corporation
- Applicants: Pegatron Corporation
- Inventors: Shen-Hau Chang; Chieh-Hsuan Cheng
- Web page: https://patentgrep.com/patent/US20230267344A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06F 8/60: Software deployment
- G06N 20/00: Machine learning
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The disclosure provides a method and a system for deploying an inference model. The method includes: obtaining an estimated resource usage of each of a plurality of model settings of the inference model; obtaining a production requirement; selecting one of the plurality of model settings as a specific model setting based on the production requirement, a device specification of an edge computing device, and the estimated resource usage of each of the model settings; and deploying the inference model configured with the specific model setting to the edge computing device.

## Claims

### Claim 1

A system for deploying an inference model, suitable for deploying an inference model, the system for deploying the inference model comprising:
an edge computing device; and
a model management server communicatively coupled to the edge computing device, wherein the model management server is configured to:
obtain an estimated resource usage of each of a plurality of model settings of the inference model;
obtain a production requirement;
select one of the model settings as a specific model setting based on the production requirement, a device specification of the edge computing device, and the estimated resource usage of each of the model settings; and
deploy the inference model configured with the specific model setting to the edge computing device.

### Claim 2 (depends on 1)

The system for deploying the inference model of claim 1, wherein the model management server is configured to:
generate a first reference value based on the estimated resource usage of each of the model settings, the device specification of the edge computing device, and a test specification;
generate a second reference value based on the production requirement;
compare the first reference value to the second reference value, in order to select at least one candidate model setting from the model settings; and
select the specific model setting from the at least one candidate model setting according to a default principle.

### Claim 3 (depends on 2)

The system for deploying the inference model of claim 2, wherein the default principle comprises a performance principle, and in the performance principle, the model management server is configured to obtain an estimated model performance of each of the at least one candidate model setting, and select the specific model setting from the at least one candidate model setting according to the estimated model performance of each of the at least one candidate model setting.

### Claim 4 (depends on 1)

The system for deploying the inference model of claim 1, wherein the model management server comprises:
a model training element for training the inference model; and
a model inference test element for applying the trained inference model to each of the model settings to perform a pre-inference operation corresponding to each of the model settings, so as to obtain the estimated resource usage and an estimated model performance of each of the model settings.

### Claim 5 (depends on 4)

The system for deploying the inference model of claim 4, wherein the model inference test element has a test specification, and the edge computing device runs a plurality of reference inference models, and the model management server further comprises:
a model inference deployment management element for:
evaluating whether the edge computing device can be deployed with the inference model configured with the specific model setting based on the test specification of the model inference test element, and the device specification and a resource usage of the edge computing device;
if yes, deploying the inference model configured with the specific model setting to the edge computing device; and
if not, controlling the edge computing device to unload at least one of the reference inference models, and re-evaluating whether the edge computing device can be deployed with the inference model configured with the specific model setting.

### Claim 6 (depends on 5)

The system for deploying the inference model of claim 5, wherein each of the reference inference models has an idle time, and the model inference deployment management element is configured to:
determine the at least one of the reference inference models to be unloaded based on the idle time of each of the reference inference models.

### Claim 7 (depends on 1)

The system for deploying the inference model of claim 1, wherein the edge computing device runs a plurality of reference inference models, and the edge computing device comprises:
an inference service interface element for receiving at least one request;
an inference service database for recording each of the reference inference models and a usage time of each of the reference inference models;
a model data management element communicatively coupled to the model management server and configured to store and update each of the reference inference models; and
an inference service core element for providing an inference service corresponding to the edge computing device and adaptively optimizing or unloading at least one of the reference inference models.

### Claim 8 (depends on 1)

The system for deploying the inference model of claim 1, wherein the edge computing device is deployed with a plurality of reference inference models, and the model management server is configured to:
obtain a production schedule of a plurality of products, and find a plurality of specific inference models for producing the products from the reference inference models; and
control the edge computing device to pre-load the specific inference models according to the production schedule.

### Claim 9

A method for deploying an inference model, suitable for deploying an inference model to an edge computing device, the method for deploying the inference model comprising:
obtaining an estimated resource usage of each of a plurality of model settings of the inference model;
obtaining a production requirement;
selecting one of the model settings as a specific model setting based on the production requirement, a device specification of the edge computing device, and the estimated resource usage of each of the model settings; and
deploying the inference model configured with the specific model setting to the edge computing device.

### Claim 10 (depends on 9)

The method of claim 9, wherein the step of selecting the specific model setting comprises:
generating a first reference value based on the estimated resource usage of each of the model settings, the device specification of the edge computing device, and a test specification;
generating a second reference value based on the production requirement;
comparing the first reference value to the second reference value, in order to select at least one candidate model setting from the model settings; and
selecting the specific model setting from the at least one candidate model setting according to a default principle.

### Claim 11 (depends on 10)

The method for deploying the inference model of claim 10, wherein the default principle comprises a performance principle, and in the performance principle, the method for deploying the inference model further comprises:
obtaining an estimated model performance of each of the at least one candidate model setting; and
selecting the specific model setting from the at least one candidate model setting according to the estimated model performance of each of the at least one candidate model setting.

### Claim 12 (depends on 9)

The method for deploying the inference model of claim 9, further comprising:
training the inference model;
applying the trained inference model to each of the model settings to perform a pre-inference operation corresponding to each of the model settings, so as to obtain the estimated resource usage and an estimated model performance of each of the model settings.

### Claim 13 (depends on 12)

The method for deploying the inference model of claim 12, wherein the edge computing device runs a plurality of reference inference models, and the method for deploying the inference model further comprises:
evaluating whether the edge computing device can be deployed with the inference model configured with the specific model setting based on a test specification, and the device specification and a resource usage of the edge computing device;
if yes, deploying the inference model configured with the specific model setting to the edge computing device; and
if not, controlling the edge computing device to unload at least one of the reference inference models, and re-evaluating whether the edge computing device can be deployed with the inference model configured with the specific model setting.

### Claim 14 (depends on 13)

The method for deploying the inference model of claim 13, wherein each of the reference inference models has an idle time, and the method comprises:
determining the at least one of the reference inference models to be unloaded based on the idle time of each of the reference inference models.

### Claim 15 (depends on 9)

The method for deploying the inference model of claim 9, wherein the edge computing device is deployed with a plurality of reference inference models, and the method further comprises:
obtaining a production schedule of a plurality of products, and finding a plurality of specific inference models for producing the products from the reference inference models; and
controlling the edge computing device to pre-load the specific inference models according to the production schedule.
