Templated deployment method for machine learning model and custom operator

A machine learning model and a custom technology, applied in the field of deployment of machine learning models and custom operators, can solve the problems of incompatibility with all models, cumbersome, weak support, etc., to reduce personnel development costs and time costs, and shorten deployment the effect of time

Active Publication Date: 2020-07-10
SICHUAN XW BANK CO LTD
View PDF8 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of this method is: the definition of MLeap Bundle is not standard and not compatible with all models, and the original purpose of MLeap is to solve the problem of mutual conversion between spark MLlib and sciket-learn models, and the support for other frameworks is weak
[0007] The disadvantage of this method is: as a framework that fully supports the Tensorflow model, it contains too many redundant functions for model deployment, which are relatively "cumbersome", such as node resource management in the training step, etc.
The problem to be solved by workflow is mainly to integrate a large number of unrelated computer programs and make them related. This prior art and the deployment of machine learning models belong to two different application fields.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Templated deployment method for machine learning model and custom operator
  • Templated deployment method for machine learning model and custom operator
  • Templated deployment method for machine learning model and custom operator

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] like figure 1 The templated deployment method of the machine learning model and the self-defined operator of the present invention is shown, including:

[0036]A. According to the prediction process of the machine learning model, the processor of the server sets in the storage medium a general template with 5 steps for calling when different framework models are instantiated, wherein the 5 steps are: input detection, Model loading, data transformation, prediction results and unloading models. In the general template, there are common codes and non-common parts that implement the above five steps. The general codes include: data receiving, data parsing, field inspection, result packaging, etc., and the non-common parts include: environment dependency introduction, model ID, model Reading, data transformation, model prediction, etc. Replace the non-common parts described in the form of substitution symbols.

[0037] Since there may be non-standard code writing or custo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a templated deployment method for a machine learning model and a custom operator. The method comprises the following steps: A, setting a universal template according to the prediction process of the machine learning model; B, matching the framework name input by the user with the model name of the machine learning model in a configuration file, and replacing substituters in the universal template with corresponding fields in the configuration file; C, generating an executable file according to the universal template; D, running the universal template and the machine learning model uploaded by the user in the form of a container in a server, and adding the instantiated machine learning model into the service sequence; and E, when the user makes an HTTP request, searching a machine learning model instance in the service sequence according to the model ID or the custom operator ID input by the user, calling a prediction method in the model instance for calculation, and returning a result. According to the method, the deployment time of the machine learning model can be greatly shortened, and the personnel development cost and the time cost in the deployment link are remarkably reduced.

Description

technical field [0001] The invention relates to a method for deploying a machine learning model and a self-defined operator, in particular to a templated deployment method for a machine learning model and a self-defined operator. Background technique [0002] In recent years, machine learning technology has been widely used, and technologies in many industries have also undergone changes, such as financial risk control technology, image recognition technology, and autonomous driving technology. The application of machine learning technology is mainly divided into two steps: (1) training the model: fitting data through an algorithm, and persisting a reusable model; (2) deploying the model: deploying the model as an API (application programming interface) for other Apply system calls. The former is mainly studied in depth by academia, while the latter is an important and complex link in industrial production applications. Its main challenge is that there are many commonly us...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/60G06N20/00
CPCG06F8/60G06N20/00Y02D10/00
Inventor 何思佑
Owner SICHUAN XW BANK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products