Task processing method and apparatus based on model quantization, and device and storage medium
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsChaoxiang LAN, Zheyang LI, Kai ZHANG
Life of this patent
Estimating the term…
Loading patent…
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsChaoxiang LAN, Zheyang LI, Kai ZHANG
Estimating the term…
A task processing method includes: updating, based on a first difference between a first quantized output and a first floating-point output of an optimization unit in a Transformer model, a weight quantization factor and an activation quantization factor of the optimization unit; updating, based on a second difference between a second quantized output and a second floating-point output of the optimization unit, a weight quantization increment of the optimization unit; determining a weight quantization rounding direction of the optimization unit based on the target weight quantization increment; and quantizing the weight parameter of the optimization unit based on the target weight quantization factor and the weight quantization rounding direction; performing forward inference computation on input data of the optimization unit based on a target quantization weight parameter for the optimization unit, and quantizing an input/output of the optimization unit based on a target activation quantization factor of the optimization unit.
A task processing method based on model quantization, comprising:
9-16. (canceled)
An electronic device, comprising a processor and a memory, wherein the memory stores machine-executable instructions executable by the processor, and the processor is configured to execute the machine-executable instructions to:
Dependencies are inferred from the claim text.