QUANTIZATION METHOD AND APPARATUS FOR TEXT FEATURE EXTRACTION MODEL, AND DEVICE AND STORAGE MEDIUM

    公开(公告)号:US20240296283A1

    公开(公告)日:2024-09-05

    申请号:US18259210

    申请日:2021-12-10

    CPC classification number: G06F40/279 G06F18/213

    Abstract: A quantization method and apparatus for a text feature extraction model, and a device and a storage medium. The method includes: in a training process of a text feature extraction model, determining, according to a target quantization parameter, a quantization interval corresponding to the target quantization parameter, where the quantization interval includes a part of floating-point values of the target quantization parameter; constructing a mapping relationship between floating-point values and fixed-point values of the target quantization parameter based on the quantization interval, where a floating-point value smaller than a left end point of the quantization interval—is mapped to a quantized minimum fixed-point value, and a floating-point values larger than a right end point of the quantization interval is mapped to a quantized maximum fixed-point value; and performing a quantization operation on the target quantization parameter based on the mapping relationship.

Patent Agency Ranking