Model parameter conversion method and device

A technology of model parameters and parameter conversion, applied in the computer field, can solve problems such as reducing the efficiency of machine learning models, and achieve the effect of improving efficiency

Pending Publication Date: 2022-05-27
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Inside the machine learning model, developers can also write a custom computing layer that needs to be added to the machine learning model under the CUDA kernel framework to achieve special business requirements, because it needs to be in the model under the Torch framework and the TensorRT framework Pass model parameters (such as convolution kernel parameters, network weights, etc.) In the custom computing layer inside the framework, every time developers build a model, they often need to pass parameters into the custom computing layer in this way, which reduces the efficiency of deploying the machine learning model

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
  • Model parameter conversion method and device
  • Model parameter conversion method and device
  • Model parameter conversion method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the purpose, technical solutions and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present specification, but not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.

[0044] The technical solutions provided by the embodiments of the present specification will be described in detail below with reference to the accompanying drawings.

[0045] figure 1 This is a schematic flowchart of a method for model parameter conversion in this specification, which specifically includes the following steps:

[0046] S101: Obtain model ...

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 discloses a model parameter conversion method and device, and the method can obtain model parameters under a parameter type required by a to-be-constructed model, transmits the model parameters into the to-be-constructed model, carries out the format conversion through a pre-deployed parameter conversion relation in the to-be-constructed model based on the model parameters, and obtains the model parameters of the to-be-constructed model. The method comprises the following steps: acquiring a first parameter in a standard format according to a to-be-constructed model to obtain the first parameter in the standard format, further converting the first parameter in the standard format through a preset conversion function in the to-be-constructed model to obtain a first parameter in a parameter type required by a user-defined calculation layer, and transmitting the first parameter into the user-defined calculation layer of the to-be-constructed model; according to the method and the device, the to-be-constructed model containing the user-defined computing layer is constructed, the target service corresponding to the to-be-constructed model is executed through the constructed to-be-constructed model, and the user-defined computing layer is a network layer additionally configured for the target service, so that the model deployment efficiency is improved.

Description

technical field [0001] The present specification relates to the field of computer technology, and in particular, to a method and device for model parameter conversion. Background technique [0002] At present, with the continuous development of computer technology, machine learning models can gradually be widely used in all walks of life, and solve technical problems in many industries. [0003] In practical applications, developers can use the Torch framework when developing and training machine learning models, that is, Torch models are used in the development and training stages. Computationally efficient, Torch models can be converted to TensorRT models for deployment. [0004] Inside the machine learning model, developers can also write custom computing layers that need to be added to the machine learning model under the CUDA kernel framework to achieve special business needs. Because they need to be in the Torch framework and the model under the TensorRT framework res...

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): G06F16/178G06F16/172G06F9/445G06N20/00
CPCG06F16/1794G06F16/172G06F9/4451G06N20/00
Inventor 贺捷吴望龙
Owner BEIJING SANKUAI ONLINE TECH 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