The application discloses a kind of fusion sequence knowledge enhanced
large model fine-tuning method.The application includes the following steps: first, by carrying out sequence question and answer test to
large model, the deficiency of model is identified and iterative sequence knowledge is induced, to prepare
knowledge base for
data set construction;Second, based on sequence knowledge, problem generation rule is designed, and sequence
knowledge question and answer SeqKQA
data set is obtained by man-
machine cooperation marking division;Then, on the basis of conventional evaluation index, for the characteristics of sequence relative positioning question and answer task, new untried rate and attempt correct rate are added, combined with
harmonic mean F1 value, a multi-dimensional evaluation
index system is constructed, the quantitative representation of the deviation of model sequence relative position understanding is realized;Finally, based on SeqKQA
training set, semantic
pairing strategy is designed to construct training data, and integrated fine-tuning
input format is formed by matching customized CoT instruction, semantic
pairing instruction fine-tuning is carried out on
open source LLM, and the effect is verified through distribution in and distribution out
double test sets, to improve the question and answer accuracy of model on the task.