Numerical task large language prediction model construction method, prediction method and related products
Патент · CN B
Полный текст
The invention provides a numerical task large language prediction model construction method, a numerical task large language prediction model construction method and related products, and relates to the technical field of numerical prediction. The large language prediction model construction method comprises the steps of obtaining a sample data set corresponding to a numerical task, wherein each sample in the sample data set comprises input information and target output, inputting the input information into a forward process of a large language prediction model to obtain an output text of the forward process, wherein the output text is formatted based on a prompt word template, the prompt word template is used for prescribing an index interval corresponding to the numerical text, extracting the numerical text output in the output text based on the index interval corresponding to the numerical text, performing numerical meaning alignment operation on the numerical text output, calculating loss between the output after the alignment operation and the target output, and training the large language prediction model based on the loss. The invention avoids the loss of the numerical value meaning and improves the prediction precision of the numerical value prediction task.