The invention relates to the technical field of
artificial intelligence, and discloses a model
fine tuning method and device,
electronic equipment and a storage medium, and the method comprises the steps: obtaining a knowledge document of a target domain; extracting question and answer pairs in the knowledge document to obtain a question and answer pair set in the knowledge document; determining a
quality score of each question and answer pair according to the text information of each question and answer pair in the question and answer pair set; according to the
quality score of each question and answer pair, screening a target question and answer pair from the question and answer pair set, and taking the target question and answer pair as a
fine tuning training sample of the to-be-fine-tuned model; and based on the
fine tuning training sample, performing fine tuning optimization on the to-be-fine-tuned model to obtain a target model. According to the method provided by the scheme, the domain classification is performed on the knowledge document, and the target question and answer pair which can be used as the fine tuning training sample is screened according to the
quality score of the question and answer pair, so that the quality of the fine tuning training sample is improved, deviation of the model in the fine tuning process is avoided, and the fine tuning precision of the model is improved.