Unlock instant, AI-driven research and patent intelligence for your innovation.

Hybrid precision training method and device, electronic equipment and storage medium

A training method and precision technology, applied in the field of machine learning, can solve problems such as training precision loss, and achieve the effect of solving training precision loss

Pending Publication Date: 2021-04-02
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present disclosure provides a mixed-precision training method, device, electronic equipment, and storage medium to at least solve the problem of loss of training accuracy caused by gradient overflow in the training process in the related art

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
  • Hybrid precision training method and device, electronic equipment and storage medium
  • Hybrid precision training method and device, electronic equipment and storage medium
  • Hybrid precision training method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0081] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0082] It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consi...

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 hybrid precision training method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining a representation factor corresponding toeach training sample identification in a training data set obtained through the previous round of hybrid precision training, the representation factor being used for representing the difficulty degreeof model fitting, the training data set being composed of a plurality of training samples generated based on multimedia data; dividing the training samples in the training data set into a plurality of batches according to the representation factors corresponding to the training sample identifiers; and according to the training samples of the multiple batches and the scaling factor corresponding to each batch, performing mixing precision training on a model in batches so as to perform attribute prediction on the multimedia data in the training samples of each batch through the model. Accordingto the invention, gradient overflow can be avoided, the problem of training precision loss caused by gradient overflow in a training process in related technologies is solved, and the accuracy of a model prediction result is improved.

Description

technical field [0001] The present disclosure relates to machine learning technology, and in particular to a mixed precision training method, device, electronic equipment and storage medium. Background technique [0002] The mixed-precision training method has been widely used in the training acceleration of deep learning networks. By using IEEE16-bit half-precision values ​​to calculate and store weights and gradients, it can make full use of the tensor core hardware unit in the GPU to accelerate mathematical operations. In the near future In a GPU, half-precision computing throughput can be 2-8 times that of single-precision. At the same time, it can also greatly reduce the memory usage of the model during training, thus making the training of larger models possible. [0003] Half-precision floating-point uses only two bytes, compared to four bytes for single-precision floating-point, making its natural storage space half that of single-precision floating-point. This als...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06K9/62G06N3/04G06N3/08
CPCG06N3/084G06N3/04G06F18/214
Inventor 廖一桥骆明楠
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD