Supplier evaluation method and device based on language large model, equipment and medium

By evaluating suppliers based on a large language model, the problems of low evaluation automation and insufficient accuracy in the existing technology are solved, and a more flexible and accurate supplier evaluation is achieved.

CN118710345APending Publication Date: 2024-09-27CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410795607.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing supplier evaluation methods mainly rely on a single expert scoring method, resulting in a low degree of automation in evaluation, prone to subjective influence, and failure to effectively consider relevant risk items, resulting in low evaluation accuracy.

Method used

Using a method based on language large models, by obtaining the power material supplier evaluation text data set, constructing a fine-tuning instruction set and supervising fine-tuning of the general large language model, a large supplier evaluation language model is generated, and the model is used to evaluate the suppliers to be evaluated. Inference, generates evaluation results, and updates the model through iterative training.

Benefits of technology

It improves the flexibility and accuracy of supplier evaluation, realizes multi-criteria intelligent evaluation, reduces the impact of human judgment, and improves the scientificity and reliability of evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710345A
    Figure CN118710345A
Patent Text Reader

Abstract

The invention relates to a supplier evaluation method and device based on a language large model, and the method comprises the steps: constructing a fine adjustment instruction set based on a selected universal language large model based on a preset electric power material supplier evaluation dimension template and an electric power material supplier evaluation text data set; performing supervision and fine tuning on the general large language model by using a fine tuning instruction set to generate a supplier evaluation large language model; and inputting the evaluation text of the electric power material supplier into the supplier evaluation big language model for reasoning to obtain an evaluation result of the to-be-evaluated electric power material supplier. According to the invention, data information of each aspect of the supplier is fully mined, supplier multi-criterion intelligent evaluation is realized, and the electric power material supplier evaluation flexibility and accuracy are effectively improved. The invention also relates to a device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a supplier evaluation method, device, equipment and medium based on a language large model. Background Art

[0002] At present, the quality of raw materials or parts provided by suppliers directly affects the quality of products produced by enterprises, and the cost affects the cost of enterprise product production. In this case, the procurement department plays a key role in reducing costs and improving products. Therefore, the evaluation and selection of suppliers is an important function of procurement management. However, the factors involved in supplier selection are extremely complex, such as quality, price, service and other factors. Therefore, the evaluation of suppliers should be a combination of qualitative and quantitative analysis methods. The existing evaluation methods are mainly evaluated through a single expert scoring method, which has a low overall degree of automation and is easily affected by the degree of subjectivity. At the same time, it does not consider related risk items and has low evaluation accuracy.

[0003] In addition, the quality of raw materials or parts supplied by different suppliers varies, and their failure rates, defect rates and service quality are also different. The existing supplier evaluation method is a linear weighting technology, which assigns a weight to each evaluation criterion. The larger the weight, the more important it is, and the higher the supplier evaluation. In actual applications, there are too many human judgment factors, resulting in a lack of practical application value, and thus low accuracy in supplier evaluation. Summary of the invention

[0004] In order to solve the current technical problem of low accuracy in supplier evaluation, the present invention provides a supplier evaluation method, device, equipment and medium based on a language large model.

[0005] In a first aspect, the present invention provides a supplier evaluation method based on a language large model, the method comprising:

[0006] Obtain the evaluation text dataset of power material suppliers;

[0007] Based on the preset power material supplier evaluation dimension template and the power material supplier evaluation text data set, construct a fine-tuning instruction set based on the selected general language large model;

[0008] Performing supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model;

[0009] The evaluation text of the power material supplier to be evaluated is input into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

[0010] Based on the above technical solution, further, the fine-tuning instruction set based on the selected general language large model is constructed based on the preset power material supplier evaluation dimension template and the power material supplier evaluation text data set, specifically including:

[0011] For each electric power material supplier evaluation text data in the electric power material supplier evaluation text data set, assembling the electric power material supplier evaluation text data with the corresponding evaluation dimension based on the preset electric power material supplier evaluation dimension template to obtain a training set;

[0012] The fine-tuning instruction set is generated using the training set and the selected universal language large model.

[0013] Based on the above technical solution, further, the use of the training set and the selected universal language large model to generate the fine-tuning instruction set specifically includes:

[0014] Dividing each training text data in the training set into a plurality of text records in units of sentences;

[0015] For each text record in the training set, based on a pre-constructed input template, one or more fine-tuning instructions are generated using the selected universal language large model to obtain the fine-tuning instruction set, wherein each of the fine-tuning instructions is represented by an evaluation conclusion outputted in the form of input indicator data text.

[0016] Based on the above technical solution, further, dividing each training text data in the training set into a plurality of text records in units of sentences specifically includes:

[0017] According to each dimension in the preset electric power material supplier evaluation dimension template, the summary information in the training text data is extracted, and all the summary information is summarized into the text record in the form of commas.

[0018] Based on the above technical solution, further, the fine-tuning instruction set is used to supervise the general large language model to generate a supplier evaluation large language model, which specifically includes:

[0019] Obtaining weight parameters of the general large language model;

[0020] A low-rank adaptive method is adopted to perform supervised fine-tuning on the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model.

[0021] Based on the above technical solution, further, obtaining the weight parameters of the universal large language model specifically includes:

[0022] Setting bypass parameters of the general large language model, wherein the bypass parameters include a dimension reduction matrix and a dimension increase matrix;

[0023] When training the universal large language model, fixing the parameters of the universal large language model, and adjusting the dimension reduction matrix and the dimension increase matrix;

[0024] The weight parameters are obtained by superimposing the dimension reduction matrix, the dimension increase matrix and the parameters of the general large language model.

[0025] Based on the above technical solution, further, the low-rank adaptive method is used to supervise and fine-tune the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model, which specifically includes:

[0026] Initialize the dimension reduction matrix A through random Gaussian distribution, initialize the dimension increase matrix B as a zero matrix, and when training starts, the bypass matrix is ​​a zero matrix;

[0027] Fine-tune the general large language model using the fine-tuning instruction set to obtain a weight parameter W0+ΔW of the general large language model, wherein W0 is an initialized parameter of the general large language model, and ΔW is a weight parameter to be updated;

[0028] According to the fine-tuning instruction set, the general large language model is input to obtain the result, and the weight parameter W0+ΔW=W0+BA,B∈R of the general large language model is updated. d×r ,A∈R r×k , where the matrix of the initialized parameters is W0∈R d×k , where rank r< <min(d,k);

[0029] In the forward training process, W0 and ΔW are multiplied by the same input parameter value x and then added to update the weight parameter h=W0x+ΔWx=W0x+BAx of the general large language model;

[0030] When the output result of the general large language model meets the preset error value, the supplier evaluation large language model is obtained.

[0031] In a second aspect, the present invention further provides a supplier evaluation device based on a language large model, the device comprising:

[0032] The acquisition module is used to obtain the evaluation text dataset of power material suppliers;

[0033] A construction module, used to construct a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set;

[0034] A generation module, used to perform supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model;

[0035] The updating module is used to input the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

[0036] Based on the above technical solution, further, a construction module is specifically used to assemble the electric power material supplier evaluation text data with the corresponding evaluation dimension for each electric power material supplier evaluation text data in the electric power material supplier evaluation text data set based on the preset electric power material supplier evaluation dimension template to obtain a training set;

[0037] The fine-tuning instruction set is generated using the training set and the selected general language macro model.

[0038] Based on the above technical solution, further, a construction module is specifically used to divide each training text data in the training set into a plurality of text records in units of sentences;

[0039] For each text record in the training set, based on a pre-constructed input template, one or more fine-tuning instructions are generated using the selected universal language large model to obtain the fine-tuning instruction set, wherein each of the fine-tuning instructions is represented by an evaluation conclusion outputted in the form of input indicator data text.

[0040] Based on the above technical solution, further, a construction module is specifically used to extract summary information in the training text data according to each dimension in the preset power material supplier evaluation dimension template, and summarize all the summary information in the text record in the form of commas.

[0041] Based on the above technical solution, further, a generation module is specifically used to obtain the weight parameters of the general large language model;

[0042] A low-rank adaptive method is adopted to perform supervised fine-tuning on the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model.

[0043] Based on the above technical solution, further, a generation module is specifically used to set the bypass parameters of the general large language model, and the bypass parameters include a dimensionality reduction matrix and a dimensionality increase matrix;

[0044] When training the universal large language model, fixing the parameters of the universal large language model, and adjusting the dimension reduction matrix and the dimension increase matrix;

[0045] The weight parameters are obtained by superimposing the dimension reduction matrix, the dimension increase matrix and the parameters of the general large language model.

[0046] Based on the above technical solution, further, a generation module is specifically used to initialize the dimension reduction matrix A through random Gaussian distribution, initialize the dimension increase matrix B as a zero matrix, and when training starts, the bypass matrix is ​​a zero matrix;

[0047] Fine-tune the general large language model using the fine-tuning instruction set to obtain a weight parameter W0+ΔW of the general large language model, wherein W0 is an initialized parameter of the general large language model, and ΔW is a weight parameter to be updated;

[0048] According to the fine-tuning instruction set, the general large language model is input to obtain the result, and the weight parameter W0+ΔW=W0+BA,B∈R of the general large language model is updated. d×r ,A∈R r×k , where the matrix of the initialized parameters is W0∈R d×k , where rank r< <min(d,k);

[0049] In the forward training process, W0 and ΔW are multiplied by the same input parameter value x and then added to update the weight parameter h=W0x+ΔWx=W0x+BAx of the general large language model;

[0050] When the output result of the general large language model meets the preset error value, the supplier evaluation large language model is obtained.

[0051] In a third aspect, the present invention further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the supplier evaluation method based on a large language model described in any one of the above technical solutions when executing the computer program.

[0052] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the supplier evaluation method based on a language large model described in any one of the above technical solutions is implemented.

[0053] The present invention provides a supplier evaluation method based on a language large model, including constructing a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set; using the fine-tuning instruction set to supervise and fine-tune the general large language model to generate a supplier evaluation large language model; inputting the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated, and putting the evaluation text and evaluation result of the power material supplier to be evaluated into the power material supplier evaluation text data set to update the fine-tuning instruction value, and iteratively training to obtain the updated supplier evaluation large language model. The present invention effectively improves the flexibility and accuracy of power material supplier evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0055] Figure 1 It is a flow chart of a supplier evaluation method based on a language large model provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of a flow chart of a supplier evaluation method based on a language large model provided by an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of a process flow of a low-rank adaptive fine-tuning method provided by an embodiment of the present invention;

[0058] Figure 4 A module diagram of a supplier evaluation device based on a language large model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0060] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0061] The following will be combined with the attached Figure 1, a supplier evaluation method based on a language large model provided by an embodiment of the present invention is described, and the method comprises the following steps:

[0062] 110. Obtain the evaluation text dataset of power material suppliers;

[0063] 120. Based on the preset power material supplier evaluation dimension template and the power material supplier evaluation text data set, construct a fine-tuning instruction set based on the selected general language large model;

[0064] 130. Perform supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model;

[0065] 140. Input the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

[0066] Specifically, step 140 also includes, when the evaluation result of the power material supplier to be evaluated is obtained, the evaluation text and evaluation result of the power material supplier to be evaluated are placed into the power material supplier evaluation text data set to update the fine-tuning instruction value, and then iterative training is performed to obtain the updated supplier evaluation large language model.

[0067] Based on the above embodiment, further, step 120 specifically includes:

[0068] 121. For each electric power material supplier evaluation text data in the electric power material supplier evaluation text data set, assemble the electric power material supplier evaluation text data with the corresponding evaluation dimension based on the preset electric power material supplier evaluation dimension template to obtain a training set;

[0069] 122. Generate the fine-tuning instruction set using the training set and the selected general language large model.

[0070] Based on the above embodiment, further, step 122 specifically includes:

[0071] 1221. Divide each training text data in the training set into a plurality of text records in units of sentences;

[0072] 1222. For each text record in the training set, based on a pre-constructed input template, one or more fine-tuning instructions are generated using the selected universal language large model to obtain the fine-tuning instruction set, wherein each of the fine-tuning instructions is represented by an evaluation conclusion outputted in the form of input indicator data text.

[0073] Based on the above embodiment, further, step 1221 specifically includes:

[0074] According to each dimension in the preset electric power material supplier evaluation dimension template, the summary information in the training text data is extracted, and all the summary information is summarized into the text record in the form of commas.

[0075] Based on the above embodiment, further, step 130 specifically includes:

[0076] 131. Obtain weight parameters of the general large language model;

[0077] 132. Use a low-rank adaptive method to supervise and fine-tune the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model.

[0078] Based on the above embodiment, further, step 131 specifically includes:

[0079] Setting bypass parameters of the general large language model, wherein the bypass parameters include a dimension reduction matrix and a dimension increase matrix;

[0080] When training the universal large language model, fixing the parameters of the universal large language model, and adjusting the dimension reduction matrix and the dimension increase matrix;

[0081] The weight parameters are obtained by superimposing the dimension reduction matrix, the dimension increase matrix and the parameters of the general large language model.

[0082] Based on the above embodiment, further, step 132 specifically includes:

[0083] Initialize the dimension reduction matrix A through random Gaussian distribution, initialize the dimension increase matrix B as a zero matrix, and when training starts, the bypass matrix is ​​a zero matrix;

[0084] Fine-tune the general large language model using the fine-tuning instruction set to obtain a weight parameter W0+ΔW of the general large language model, wherein W0 is an initialized parameter of the general large language model, and ΔW is a weight parameter to be updated;

[0085] According to the fine-tuning instruction set, the general large language model is input to obtain the result, and the weight parameter W0+ΔW=W0+BA,B∈R of the general large language model is updated. d×r ,A∈R r×k , where the matrix of the initialized parameters is W0∈R d×k , where rank r< <min(d,k);

[0086] In the forward training process, W0 and ΔW are multiplied by the same input parameter value x and then added to update the weight parameter h=W0x+ΔWx=W0x+BAx of the general large language model;

[0087] When the output result of the general large language model meets the preset error value, the supplier evaluation large language model is obtained.

[0088] This embodiment relates to a supplier evaluation method based on a language large model, including constructing a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set; using the fine-tuning instruction set to supervise and fine-tune the general large language model to generate a supplier evaluation large language model; inputting the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated. The present invention fully mines all aspects of supplier data information, realizes multi-criteria intelligent evaluation of suppliers, and effectively improves the flexibility and accuracy of power material supplier evaluation.

[0089] It should be understood that the present invention discloses a method for evaluating power material suppliers based on a language big model, which relates to the field of artificial intelligence technology. The method uses the power material supplier data to fine-tune the general language big model, and utilizes the understanding ability, reasoning ability and generalization ability of the language big model to achieve multi-criteria intelligent evaluation of suppliers, effectively improving the flexibility and accuracy of power material supplier evaluation.

[0090] Large Language Models (LLM) refers to a deep learning model trained with a large amount of text data, which can generate natural language text or understand the meaning of language text. Large language models can handle a variety of natural language tasks, such as text classification, question-answering, and dialogue, and are an important path to artificial intelligence. Large language models use deep learning technology and multi-layer neural networks to model the statistical laws and potential semantic information of language. By fine-tuning the general language large model using the data of power material suppliers, the understanding, reasoning, and generalization capabilities of the language large model are used to fully mine all aspects of supplier data information, realize multi-criteria intelligent evaluation of suppliers, and effectively improve the flexibility and accuracy of power material supplier evaluation.

[0091] Therefore, the technical problem to be solved by the present invention is how to provide a method for evaluating power material suppliers based on a large language model, by using the power material supplier data to perform supervised fine-tuning on the general language large model, fully mining all aspects of supplier data information, realizing multi-criteria intelligent evaluation of suppliers, and effectively improving the flexibility and accuracy of power material supplier evaluation.

[0092] like Figure 2 As shown, a supplier evaluation method based on a language large model provided by another embodiment of the present invention is described, and the method includes the following steps:

[0093] Step 1: Select the open source Chinese language model as the model base.

[0094] You can choose the open source Chinese language large model Baichuan-13b as the model base.

[0095] Step 2: Establish a multi-dimensional power material supplier evaluation system and construct a large model fine-tuning instruction set.

[0096] The step 2 specifically includes:

[0097] Step 2-1: Sort out the multi-dimensional influencing factors of material suppliers and establish a multi-dimensional evaluation system for power material suppliers.

[0098]

[0099]

[0100] Table 1 Multidimensional power material supplier evaluation system Step 2-2: Construct a language large model and fine-tune the instruction set based on the multidimensional power material supplier evaluation system.

[0101]

[0102] Table 2. Examples of fine-tuning instruction sets

[0103] Step 3: Use the data of power material suppliers to fine-tune the general language large model in a supervised manner. This patent uses a low-rank adaptive method to fine-tune the large model. The basic principle is to freeze the pre-trained model weight parameters. When the original model parameters are frozen, additional network layers are added to the model and only the newly added network layer parameters are trained. Since the number of these newly added parameters is small, not only the cost of fine-tuning is significantly reduced, but also the effect similar to fine-tuning with all model parameters can be obtained.

[0104] like Figure 3 As shown, the step 3 specifically includes:

[0105] Step 3-1: Add a bypass next to the original PLM (Pre-trained Language Model) to perform a dimensionality reduction and then dimensionality increase operation. During training, the parameters of PLM are fixed, and only the dimensionality reduction matrix A and the dimensionality increase matrix B are trained. The input and output dimensions of the model remain unchanged, and the parameters of BA and PLM are superimposed during output.

[0106] Step 3-2: Initialize A with a random Gaussian distribution and B with a zero matrix, ensuring that this bypass matrix remains a zero matrix at the start of training.

[0107] Suppose we want to fine-tune a pre-trained language model for a downstream task, then we need to update the pre-trained model parameters, which can be expressed by the formula: W0 + ΔW;

[0108] W0 are the parameters initialized for the pre-trained model, and ΔW is the parameter that needs to be updated. If it is full-parameter fine-tuning, then its number of parameters = W0. From this, it can be seen that the cost of full-parameter fine-tuning of a large language model is very high. For LoRA, only ΔW needs to be fine-tuned.

[0109] Specifically, assume the pre-trained matrix is W0 ∈ R d×k , and its update can be expressed as: W0 + ΔW = W0 + BA, B ∈ R d×r , A ∈ R r×k ; where the rank r << min(d, k). During the training process of LoRA, W0 remains fixed, and only A and B are the training parameters.

[0110] In the forward process, both W0 and ΔW are multiplied by the same input x, and finally added together: h = W0x + ΔWx = W0x + BAx. Step 3-3: Evaluate the model performance and save the model.

[0111] Step 4: Use the fine-tuned large language model for inference to achieve intelligent multi-criteria evaluation of suppliers.

[0112] The specific steps of Step 4 include:

[0113] Step 4-1: Refer to the multi-dimensional power material supplier evaluation system, input the natural language description containing supplier information into the large model, and the large model can make inferences to achieve supplier evaluation.

[0114] Step 4-2:

[0115] During use, collect and record user feedback, perform Step 2-2 on the feedback data to construct an instruction set, and conduct iterative training of the model.

[0116] The key points of the present invention include the construction of the fine-tuning instruction set and the fine-tuning of the large model, as well as the iterative optimization of the large model based on the evaluation results. The large model has excellent understanding and reasoning capabilities, and it can fully explore the relationships between complex data, which makes it very suitable for supplier evaluation in complex scenarios.

[0117] In addition, another important feature of this invention is its generalization ability. In traditional methods, the input to the model is strictly studied, while the generalization ability of the large model supports relatively flexible inputs, making it more convenient and flexible for users to use.

[0118] The method for evaluating power material suppliers based on a language large model described in the present invention has the following technical effects:

[0119] High prediction accuracy: By using a large language model, large amounts of text data can be better understood and processed, leading to more accurate predictions of supplier evaluation results.

[0120] Strong generalization ability: The language large model has strong generalization ability and can maintain high accuracy when processing irregular data, making it more flexible for users to use.

[0121] The evaluation method of power material suppliers based on language big model has important practical application value. Through theoretical analysis and experimental verification, the present invention explores the technical principles of language big model instruction set construction and supervised fine-tuning, and has been applied in the evaluation of power material suppliers. It has been verified that the method is effective and practical.

[0122] like Figure 4 As shown, a supplier evaluation device based on a language large model provided by an embodiment of the present invention is described, and the device includes:

[0123] The acquisition module is used to obtain the evaluation text dataset of power material suppliers;

[0124] A construction module, used to construct a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set;

[0125] A generation module, used to perform supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model;

[0126] The updating module is used to input the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

[0127] Specifically, the updating module also includes, when obtaining the evaluation result of the power material supplier to be evaluated, putting the evaluation text and evaluation result of the power material supplier to be evaluated into the power material supplier evaluation text data set to update the fine-tuning instruction value, and iteratively training to obtain the updated supplier evaluation large language model.

[0128] Based on the above embodiment, further, a construction module is specifically used to assemble the electric power material supplier evaluation text data with the corresponding evaluation dimension for each electric power material supplier evaluation text data in the electric power material supplier evaluation text data set based on the preset electric power material supplier evaluation dimension template to obtain a training set;

[0129] The fine-tuning instruction set is generated using the training set and the selected general language macro model.

[0130] Based on the above embodiment, further, a construction module is specifically used to divide each training text data in the training set into a plurality of text records in units of sentences;

[0131] For each text record in the training set, based on a pre-constructed input template, one or more fine-tuning instructions are generated using the selected universal language large model to obtain the fine-tuning instruction set, wherein each of the fine-tuning instructions is represented by an evaluation conclusion outputted in the form of input indicator data text.

[0132] Based on the above embodiment, further, a construction module is specifically used to extract summary information in the training text data according to each dimension in the preset power material supplier evaluation dimension template, and summarize all the summary information in the text record in the form of commas.

[0133] Based on the above embodiment, further, a generation module is specifically used to obtain weight parameters of the general large language model;

[0134] A low-rank adaptive method is adopted to perform supervised fine-tuning on the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model.

[0135] Based on the above embodiment, further, a generation module is specifically used to set the bypass parameters of the general large language model, and the bypass parameters include a dimension reduction matrix and a dimension increase matrix;

[0136] When training the universal large language model, fixing the parameters of the universal large language model, and adjusting the dimension reduction matrix and the dimension increase matrix;

[0137] The weight parameters are obtained by superimposing the dimension reduction matrix, the dimension increase matrix and the parameters of the general large language model.

[0138] Based on the above embodiment, further, the generating module is specifically used to initialize the dimension reduction matrix A through random Gaussian distribution, initialize the dimension increase matrix B as a zero matrix, and when the training starts, the bypass matrix is ​​a zero matrix;

[0139] Fine-tune the general large language model using the fine-tuning instruction set to obtain a weight parameter W0+ΔW of the general large language model, wherein W0 is an initialized parameter of the general large language model, and ΔW is a weight parameter to be updated;

[0140] According to the fine-tuning instruction set, the general large language model is input to obtain the result, and the weight parameter W0+ΔW=W0+BA,B∈R of the general large language model is updated. d×r ,A∈R r×k , where the matrix of the initialized parameters is W0∈R d×k , where rank r< <min(d,k);

[0141] In the forward training process, W0 and ΔW are multiplied by the same input parameter value x and then added to update the weight parameter h=W0x+ΔWx=W0x+BAx of the general large language model.

[0142] When the output result of the general large language model meets the preset error value, the supplier evaluation large language model is obtained.

[0143] This embodiment relates to a supplier evaluation device based on a language large model, including constructing a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set; using the fine-tuning instruction set to supervise and fine-tune the general large language model to generate a supplier evaluation large language model; inputting the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated. The present invention effectively improves the flexibility and accuracy of the power material supplier evaluation.

[0144] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the supplier evaluation method based on the language large model described in any one of the above technical solutions is implemented.

[0145] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the supplier evaluation method based on a language large model described in any one of the above technical solutions is implemented.

[0146] Therefore, the present invention can be specifically implemented in the following forms, that is, it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code. Any combination of one or more computer-readable media can be used. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device. Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and cannot be construed as limiting the present invention, and those skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

[0147] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the specific implementation modes of the present invention can still be modified or replaced by equivalents, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A supplier evaluation method based on a large language model, characterized in that: include: Obtain the evaluation text dataset of power material suppliers; Based on the preset power material supplier evaluation dimension template and the power material supplier evaluation text data set, construct a fine-tuning instruction set based on the selected general language large model; Performing supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model; The evaluation text of the power material supplier to be evaluated is input into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

2. The method according to claim 1, characterized in that The method of constructing a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and a power material supplier evaluation text data set specifically includes: For each electric power material supplier evaluation text data in the electric power material supplier evaluation text data set, assembling the electric power material supplier evaluation text data with the corresponding evaluation dimension based on the preset electric power material supplier evaluation dimension template to obtain a training set; The fine-tuning instruction set is generated using the training set and the selected general language macro model.

3. The method according to claim 2, characterized in that The step of generating the fine-tuning instruction set by using the training set and the selected universal language large model specifically includes: Dividing each training text data in the training set into a plurality of text records in units of sentences; For each text record in the training set, one or more fine-tuning instructions are generated based on a pre-constructed input template using a selected general language macro model to obtain the fine-tuning instruction set, wherein each of the fine-tuning instructions is represented by an evaluation conclusion outputted in the form of input indicator data text.

4. The method according to claim 3, characterized in that The step of dividing each training text data in the training set into a plurality of text records in units of sentences specifically includes: According to each dimension in the preset electric power material supplier evaluation dimension template, the summary information in the training text data is extracted, and all the summary information is summarized into the text record in the form of commas.

5. The method according to claim 1, characterized in that The method of using the fine-tuning instruction set to supervise and fine-tune the general large language model to generate a supplier evaluation large language model specifically includes: Obtaining weight parameters of the general large language model; A low-rank adaptive method is adopted to perform supervised fine-tuning on the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model.

6. The method according to claim 5, characterized in that The obtaining of the weight parameters of the general large language model specifically includes: Setting bypass parameters of the general large language model, wherein the bypass parameters include a dimension reduction matrix and a dimension increase matrix; When training the universal large language model, fixing the parameters of the universal large language model, and adjusting the dimension reduction matrix and the dimension increase matrix; The weight parameters are obtained by superimposing the dimension reduction matrix, the dimension increase matrix and the parameters of the general large language model.

7. The method according to claim 6, characterized in that The adopting of the low-rank adaptive method to supervise and fine-tune the weight parameters of the general large language model based on the fine-tuning instruction set to generate the supplier evaluation large language model specifically includes: Initialize the dimension reduction matrix A through random Gaussian distribution, initialize the dimension increase matrix B as a zero matrix, and when training starts, the bypass matrix is ​​a zero matrix; Fine-tune the general large language model using the fine-tuning instruction set to obtain a weight parameter W0+ΔW of the general large language model, wherein W0 is an initialized parameter of the general large language model, and ΔW is a weight parameter to be updated; According to the fine-tuning instruction set, the general large language model is input to obtain the result, and the weight parameter W0+ΔW=W0+BA,B∈R of the general large language model is updated. d×r ,A∈R r×k , where the matrix of the initialized parameters is W0∈R d×k , where rank r< <min(d,k); In the forward training process, W0 and ΔW are multiplied by the same input parameter value x and then added to update the weight parameter h=W0x+ΔWx=W0x+BAx of the general large language model; When the output result of the general large language model meets the preset error value, the supplier evaluation large language model is obtained.

8. A supplier evaluation device based on a language large model, characterized in that: The device comprises: The acquisition module is used to obtain the evaluation text dataset of power material suppliers; A construction module, used to construct a fine-tuning instruction set based on a selected general language large model based on a preset power material supplier evaluation dimension template and the power material supplier evaluation text data set; A generation module, used to perform supervised fine-tuning on the general large language model using the fine-tuning instruction set to generate a supplier evaluation large language model; The updating module is used to input the evaluation text of the power material supplier to be evaluated into the supplier evaluation large language model for reasoning to obtain the evaluation result of the power material supplier to be evaluated.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the supplier evaluation method based on the language large model according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the supplier evaluation method based on a language large model according to any one of claims 1 to 7 is implemented.