Data processing method and apparatus, electronic device, and computer-readable storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJing GONG
Life of this patent
Estimating the term…
Abstract
A data processing method includes: obtaining an initial generative model, and determining a target operator to be quantized from the initial generative model; determining, based on a category and a quantity of the target operator, a preset quantization policy for performing quantization processing on the target operator; performing the quantization processing on the target operator by using the preset quantization policy to obtain a generative model to be trained; and training the generative model by using a training input object to obtain a trained generative model.
Claims20
A data processing method, applied to an electronic device, the method comprising:
- obtaining an initial generative model, and determining a target operator to be quantized from the initial generative model;
- determining, based on a category and a quantity of the target operator, a preset quantization policy for performing quantization processing on the target operator;
- performing the quantization processing on the target operator by using the preset quantization policy to obtain a generative model to be trained;
- and
- training the generative model by using a training input object to obtain a trained generative model.
A data processing apparatus, comprising:
- a processor and a memory, the memory storing a plurality of instructions, and the processor loading the instructions from the memory, to execute operations comprising:
- obtaining an initial generative model, and determining a target operator to be quantized from the initial generative model;
- determining, based on a category and a quantity of the target operator, a preset quantization policy for performing quantization processing on the target operator;
- performing the quantization processing on the target operator by using the preset quantization policy to obtain a generative model to be trained;
- and
- training the generative model by using a training input object to obtain a trained generative model.
A non-transitory computer-readable storage medium, having a plurality of instructions stored therein, the instructions being loaded by a processor to execute operations comprising:
- obtaining an initial generative model, and determining a target operator to be quantized from the initial generative model;
- determining, based on a category and a quantity of the target operator, a preset quantization policy for performing quantization processing on the target operator;
- performing the quantization processing on the target operator by using the preset quantization policy to obtain a generative model to be trained;
- and
- training the generative model by using a training input object to obtain a trained generative model.
Dependencies are inferred from the claim text.