A method and system for efficient fine-tuning and evaluation of large language models
By building an automated evaluation system, we solve the problems of low efficiency and high repeatability in fine-tuning evaluation of large language models, achieve efficient and professional evaluation of multiple types of models and test scenarios, save resources and improve the efficiency of evaluation construction.
Patent Information
- Application Number
- CN202411008196.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing fine-tuning evaluation methods for large language models are inefficient, repetitive, and lack professionalism, and cannot meet the needs for efficient and comprehensive evaluation of multiple types of models and test scenarios.
Build an overall systematic, standardized content, and automated execution evaluation system, including a file storage module, a structured storage module, and an evaluation program module. It supports multiple types of fine-tuning models and test scenarios. The file storage module stores models and data in a structured way. The storage module stores structured data, and the assessment program module configures and executes the assessment process.
It improves the efficiency of evaluation, saves download time and network resources, achieves effective management of multiple versions of fine-tuned models and unification of evaluation results, and provides a more comprehensive and professional evaluation process.
Smart Images

Figure CN118535887B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of model evaluation, and in particular relates to a method and system for efficient fine-tuning and evaluation of a large language model. Background Art
[0002] In recent years, the field of artificial intelligence has developed rapidly. With the advent of ChatGPT, large language models (LLMs) have shown excellent capabilities in mathematical reasoning, natural language understanding, common sense reasoning, etc., and have received increasing attention. In order to apply general LLMs to specific fields, the model needs to be fine-tuned. The current mainstream and efficient fine-tuning method is to freeze the original model parameters, add an adapter to the model, and fine-tune the adapter part.
[0003] The fine-tuned model needs to be further evaluated to confirm its actual performance. The evaluation work starts with the selection of the benchmark by the technicians, and then the test program and execution script are specially constructed for a certain model, and the execution results are analyzed and integrated until the evaluation process is completed. The Chinese patent application with the publication number CN117668506A provides an evaluation method, model and computer storage medium for a large language model. According to the pre-stored data metadata and the items to be tested of the large language model, multiple text data sets collected are screened to form an evaluation set, and each evaluation data is input into the tested large language model multiple times to obtain multiple output results, and then the scores are scored, and the evaluation results of the large language model are summarized. The Chinese patent application with the publication number CN118093824A provides an evaluation method, device, electronic device and storage medium for a large language model. The answering large language model to be evaluated is called to answer the scene questions to obtain a test dialogue. After the target evaluation task and the test dialogue are input into the target Agent module, the test dialogue is evaluated based on the target evaluation task by the target Agent module, thereby obtaining the evaluation results of the answering large language model.
[0004] However, with the increase in fine-tuning models, the existing evaluation method requires setting up a unique evaluation process for each model. Problems such as inefficiency, repetitiveness and lack of professionalism are becoming increasingly apparent, and there is an urgent need to build an automated and intelligent evaluation system. Summary of the invention
[0005] In view of the above, the purpose of the present invention is to provide a large language model efficient fine-tuning evaluation method and system, by building a set of overall systematization, content standardization, execution automation evaluation system, to meet the more efficient, professional and comprehensive model evaluation needs, support a variety of types of fine-tuning models and test scenarios.
[0006] In order to achieve the above-mentioned invention object, the technical solution provided by the present invention is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a large language model efficient fine-tuning evaluation system, comprising: a file storage module, a structured storage module and an evaluation program module;
[0008] The file storage module is used to store files and supports adding, deleting, querying and modifying the stored file content through the file path. The file storage module includes a basic model area, a fine-tuning model area, a baseline data area, a process storage area and a result storage area;
[0009] The structured storage module uses a relational database to store structured data related to the evaluation, and the structured data includes model information, baseline data information, template information, pipeline information and task information;
[0010] The evaluation program module is used to call the file storage module and the structured storage module to execute the evaluation system. The evaluation program module includes a system information configuration function, an execution and scheduling function, and an evaluation information management function.
[0011] Specifically, in the file storage module, the basic model area is used to store the basic model, and the storage form is a single large language model as a storage unit. Each large language model has its own storage path, and supports access to the large language model through its own storage path;
[0012] The fine-tuning model area is used to store the fine-tuning model. The fine-tuning model is an adapter model trained using low-rank adaptive fine-tuning technology based on the large language model. It is stored in the form of incremental files.
[0013] The baseline data area is used to store baseline data sets. The baseline data set uses one data set as a storage unit. Each data set is divided into subsets by type. Each subset supports access and acquisition in the form of a path.
[0014] The process storage area is used to store the evaluation task data. The storage form is to use the evaluation task data as the storage unit. It supports the operation of the data of a specific evaluation task according to the path. The specific execution method is set by the scheduler.
[0015] The result storage area is used to store execution result files in the form of evaluation reports. The report content records the details of the evaluation, including the basic model, fine-tuning model, selected data set, and relevant data of evaluation task indicators.
[0016] Specifically, in the structured storage module, the model information includes basic model information and fine-tuning model information;
[0017] The baseline information includes attribute information of the baseline data set;
[0018] Template information includes fine-tuning feature template, baseline feature template and evaluation report template;
[0019] The pipeline information includes the configuration of the evaluation process. Based on the configuration, the task execution process is defined. A pipeline configuration can uniquely determine the evaluation process of the corresponding large language model.
[0020] Task information includes basic task information, task log and task output, among which task output includes evaluation report.
[0021] Specifically, in the evaluation program module, the system information configuration function is used to configure the basic information and preparation content for executing the evaluation. The system information configuration function includes basic model configuration, fine-tuning model configuration, data baseline configuration, template information configuration and pipeline configuration;
[0022] The execution and scheduling function is used to set and run the evaluation execution process. The execution and scheduling function includes evaluation task setting, task execution and scheduling, and task result generation.
[0023] The assessment information management function is used to manage and maintain the information generated during the assessment process.
[0024] Specifically, when the evaluation program module is used to execute the evaluation system, it includes:
[0025] Basic data loading: The content that needs to be loaded includes basic model, baseline data and template information;
[0026] Pipeline construction: Complete the construction by fine-tuning the model configuration function and pipeline configuration function;
[0027] Assessment execution: Execute sub-processes in sequence, including task creation and initialization, automated execution, and assessment report generation.
[0028] Specifically, in the basic data loading step, the loaded basic model includes obtaining a basic large language model from an open source channel and importing it through a basic model configuration function in a system information configuration function;
[0029] The loaded baseline data includes the baseline data set used for evaluation obtained through open source channels and imported through the data baseline configuration function in the system information configuration function;
[0030] The loaded template information includes loading fine-tuning feature templates, baseline test templates and test report templates, all of which are imported through the template information configuration function in the system information configuration function.
[0031] Specifically, the pipeline construction step includes two sub-processes: importing the fine-tuning model and configuring the pipeline;
[0032] Importing a fine-tuned model is to import the fine-tuned large language model through the fine-tuning model configuration function in the system information configuration function;
[0033] Configuring the pipeline involves performing configuration operations including basic model setting, fine-tuning model selection, baseline data set and indicator setting, and evaluation report format setting through the pipeline configuration function in the system information configuration function.
[0034] Specifically, in the evaluation execution step, task creation and initialization includes creating tasks using the evaluation task setting function in the execution and scheduling function, and the setting content includes configuration information for model assembly and baseline data loading;
[0035] The automated execution includes starting the automated script using the task execution and scheduling function in the execution and scheduling function, and the information generated in the process is stored in the file storage module;
[0036] Evaluation report generation includes using the task result generation function to further calculate the results of the original file input to the program, and generating an evaluation report according to the template format, which is stored and recorded in the file storage module.
[0037] In a second aspect, to achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides a large language model efficient fine-tuning evaluation method, comprising the following steps:
[0038] The file storage module is used to store files and supports adding, deleting, querying and modifying the stored file content through the file path. The file storage module includes a basic model area, a fine-tuning model area, a baseline data area, a process storage area and a result storage area;
[0039] Use the structured storage module to store evaluation-related structured data based on a relational database. The structured data includes model information, baseline data information, template information, pipeline information, and task information.
[0040] The evaluation program module is used to call the file storage module and the structured storage module to execute the evaluation system. The evaluation program module includes system information configuration function, execution and scheduling function and evaluation information management function.
[0041] In the third aspect, in order to achieve the above-mentioned purpose of the invention, an embodiment of the present invention also provides a large language model efficient fine-tuning and evaluation device, including a memory and one or more processors, the memory is used to store computer programs, and the processor is used to implement the above-mentioned large language model efficient fine-tuning and evaluation method when executing the computer program.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The present invention overcomes the drawbacks of repeated search and download of models and data sets by constructing an evaluation system including a file storage module, a structured storage module and an evaluation program module, saves download time and network resources, and effectively manages multiple versions of fine-tuning models and corresponding evaluation results. It streamlines the model evaluation workflow, improves the evaluation construction efficiency, provides a unified evaluation benchmark, and makes the evaluation process more comprehensive and professional. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 Schematic diagram of the structure of a large language model efficient fine-tuning and evaluation system provided by an embodiment of the present invention;
[0046] Figure 2 It is a data flow diagram of the evaluation program module provided by an embodiment of the present invention;
[0047] Figure 3 It is a schematic diagram of the evaluation sequence flow provided by an embodiment of the present invention;
[0048] Figure 4 is a schematic diagram of the evaluation execution process provided by an embodiment of the present invention;
[0049] Figure 5 It is a flowchart of the efficient fine-tuning and evaluation method for a large language model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention. It should be noted that, in the absence of conflict, the features in the following embodiments and implementation methods can be combined with each other.
[0051] The inventive concept of the present invention is: in view of the problems of low construction efficiency, high code duplication, lack of comprehensive and professional model evaluation system and systematic evaluation means in the fine-tuning large language model evaluation work in the prior art, the embodiment of the present invention provides a large language model efficient fine-tuning evaluation method and system, which can effectively save download time and network resources by storing data through file storage module and structured storage module. By setting a special system information configuration function in the evaluation program module, it is possible to standardize the management of basic models, baseline data and other contents, effectively solving the problems of redundant downloads by multiple users, confusion of model and data versions, and waste of network resources in traditional evaluation methods; by introducing execution and scheduling functions, the model evaluation process is templated and streamlined, which can effectively reduce the amount of code and improve evaluation efficiency; by setting the evaluation information management function, it is possible to automatically sort out the evaluation process data and results, avoiding the situation where manual management in traditional methods causes data loss and confusion of results.
[0052] Figure 1 Schematic diagram of the structure of the large language model efficient fine-tuning evaluation system provided by the embodiment of the present invention. Figure 1 As shown, the embodiment provides a large language model efficient fine-tuning and evaluation system, including: a file storage module, a structured storage module and an evaluation program module.
[0053] 1. File storage module.
[0054] The file storage module stores large files in the form of a hard disk, including five partitioned areas: basic model area, fine-tuning model area, baseline data area, process storage area, and result storage area. The file storage module is designed based on a general file system and supports adding, deleting, querying, and modifying the stored file content through the file path.
[0055] 1.1. Basic model area.
[0056] The basic model area is used to store basic models. Basic models are all open source large language models. This type of model consists of an artificial neural network with many parameters. It uses self-supervised learning or semi-supervised learning to train a large amount of unlabeled text. It is usually a deep learning model with billions of parameters or more. Due to the use of many training parameters, its size is more than tens of GB. It is stored in a single large language model as a storage unit. Each large language model has its own storage path, and supports access to the large language model through its own storage path.
[0057] 1.2. Fine-tune the model area.
[0058] The fine-tuning model area is used to store fine-tuning models. The fine-tuning model is an adapter model trained using low-rank adaptive fine-tuning technology based on the large language model, and is stored in the form of incremental files. The storage of fine-tuning models is based on a single model adapter as the basic unit, and each fine-tuning model has a separate path.
[0059] 1.3. Baseline data area.
[0060] The baseline data area is used to store a variety of baseline data sets. Baseline data is an open source data set commonly used in the industry. Each data set usually includes several subsets such as a development set and a test set. A baseline data set often focuses on the performance of a model in one or several related fields. The fine-tuned model needs to be tested on a specific data set to verify its capabilities. The baseline data set uses a data set as a storage unit, which is divided into subsets by type. Each subset supports access and acquisition in the form of a path.
[0061] 1.4. Process storage area.
[0062] The process storage area is used to store evaluation task data. The data to be collected and temporary results generated by the model when executing the evaluation task will be stored in this area. The data life cycle in this area is short and dynamic, and the data content is cleaned up regularly. The storage unit of the process storage area is based on the evaluation task data, and supports operations on specific data of specific tasks according to the path. The specific execution method is set by the scheduler.
[0063] 1.5. Result storage area.
[0064] The result storage area is used to store execution result files. Result files are usually presented in the form of reports. The report content records the details of the evaluation, including the basic model, fine-tuning model, selected data sets, and evaluation indicators. Result files support path access based on evaluation tasks.
[0065] 2. Structured storage module.
[0066] The structured storage module uses a relational database to store structured data related to the assessment. The structured data includes model information, baseline data information, template information, pipeline information and task information.
[0067] 2.1. Model information
[0068] Model information includes basic model information and fine-tuning model information. Basic model information mainly includes the ID, name, description, version and storage path of various basic models, while fine-tuning model information includes the fine-tuning model ID, the ID, name and storage path of the corresponding basic model.
[0069] 2.2. Baseline information.
[0070] The baseline information includes the attribute information of the baseline dataset, and the attribute information includes the ID, name, field, source and path of the baseline dataset.
[0071] 2.3. Template information.
[0072] Template information includes fine-tuning feature templates, baseline feature templates, and evaluation report templates. Fine-tuning feature templates are mainly used to set the differences in code when calling or superimposing fine-tuning models for different basic models. They provide specific templates for special models and support upgrading the fine-tuning method. Baseline feature templates are mainly set to evaluate the code differences of different data baselines, and record the corresponding code execution methods and supported indicators for different baselines. The evaluation report template is the setting information of the evaluation report style.
[0073] 2.4. Pipeline information.
[0074] The pipeline information includes the configuration of the evaluation process, including the pipeline ID, the selection of the basic model, the fine-tuning model, the baseline data set of the application, the evaluation indicators and the automated test scripts, etc. The pipeline configuration is the definition of the task execution, and a pipeline configuration can uniquely determine the evaluation process of a certain model.
[0075] 2.5. Task information.
[0076] Task information includes basic task information, task logs, and task output. Basic task information is the basic attribute of a task, mainly including the task ID, the pipeline corresponding to the name, and the execution status. The task log records the process information of the task during execution, which can more clearly reflect the details of the task execution. The task output is mainly the evaluation report generated after the execution is completed, including the report identification code and storage path and other information.
[0077] 3. Evaluation program module.
[0078] The evaluation program module is the carrier for the evaluation system to execute the main functions. It is used to call the file storage module and the structured storage module to execute the evaluation system. Figure 2 The figure shows the data flow diagram of the evaluation program. The evaluation program module includes system information configuration function, execution and scheduling function and evaluation information management function.
[0079] 3.1. System information configuration.
[0080] The system information configuration function is used to configure the basic information and preparation content for executing the evaluation, including basic model configuration, fine-tuning model configuration, data baseline configuration, template information configuration and pipeline configuration. The basic model configuration function is to maintain the basic model, including local import, online acquisition and update of the basic model. The fine-tuning model configuration function is to import and manage the fine-tuning model. The data baseline configuration function supports importing open source data baselines from the local system for maintenance and management. The template information configuration function includes fine-tuning feature template configuration, baseline feature template configuration and evaluation report template configuration, which respectively set fine-tuning and calling code templates for the model, set evaluation code templates for baseline data, and manage and maintain the format templates for the evaluation report. The pipeline configuration function supports adding and deleting operations on the evaluation pipeline. After the configuration is completed, the pipeline will automatically generate an execution script.
[0081] 3.2. Execution and Scheduling.
[0082] The execution and scheduling function is used to set and run the evaluation execution process, including evaluation task setting, task execution and scheduling, and task result generation. The evaluation task setting function creates a task as an instance of the actual operation of the pipeline by selecting the corresponding configured pipeline and execution plan. The task is the smallest unit of evaluation execution. The task execution and scheduling function is the implementation function of the evaluation task execution. It supports running tasks in the form of immediate execution and scheduled start. During the execution process, the task date is output and the task status is updated according to the settings of the pipeline script. The task result generation function generates and stores the corresponding evaluation report in the format of the report template when the task execution is completed.
[0083] 3.3. Assessment information management.
[0084] The assessment information management function is used to manage and maintain the information generated during the assessment process, including basic task information, task log information, and assessment report information.
[0085] In the embodiment, Figure 3 and Figure 4 As shown in the figure, when executing the evaluation system, the evaluation program module is used as the carrier for the evaluation system to execute the main functions, which mainly includes three processes: basic data loading, evaluation task construction and evaluation task execution:
[0086] (1) Basic data loading.
[0087] Basic data is a necessary condition for system application and must be completed first. The content that needs to be loaded includes basic model, baseline data and template information.
[0088] (1.1) Load the base model.
[0089] The loaded basic model includes obtaining the basic large language model from the open source channel and importing the model body through the basic model configuration function in the system information configuration function, and entering its basic information into the system.
[0090] (1.2) Load baseline data.
[0091] Obtain the baseline data set used for evaluation through open source channels, and import the data set into file storage and enter and maintain baseline information through the data baseline configuration function in the system information configuration function.
[0092] (1.3) Load template information.
[0093] The loaded template information includes loading fine-tuning feature templates, baseline test templates, and test report templates, all of which are imported through the template information configuration function in the system information configuration function. First, load the fine-tuning feature template, create a fine-tuning feature template based on the differences in the model and the system's built-in variable constraints, and import it using the fine-tuning feature template configuration function. Each template needs to set the type of supported model. Then load the baseline test template, and write an evaluation program template for each baseline data set in combination with its supported indicators. The template content is similar to the actual execution code, but the model and data names use system built-in variables. Finally, load the test report template, which is written in a universal markup language and is constructed and imported according to the report requirement format.
[0094] (2) Pipeline construction.
[0095] The pipeline construction process is the preparatory work before the evaluation is executed, and it is mainly completed by fine-tuning the model configuration function and the pipeline configuration function.
[0096] (2.1) Import the fine-tuned model.
[0097] First, use the fine-tuning model configuration function in the system information configuration function to import the model that has been fine-tuned using the low-rank adaptive fine-tuning technology into the system, and set key information such as the basic model.
[0098] (2.2) Configure the pipeline.
[0099] Then, the pipeline configuration function in the system information configuration function is used to perform configuration operations including basic model setting, fine-tuning model selection, baseline data set and indicator setting, and evaluation report format setting. Among them, the fine-tuning model is associated with the basic model, and the fine-tuning model can only be selected within the scope of the basic model adaptation. The indicator setting is associated with the baseline data set, and the indicator needs to be within the range supported by the baseline data set. The evaluation report setting will determine the template applied when generating the report. After the pipeline configuration is completed, the automated script is also generated according to this configuration.
[0100] (3) Assessment execution.
[0101] Evaluation execution is the implementation process of core functions, starting from task creation and finally producing evaluation reports. This process is executed in sequence and includes three sub-processes: task creation and initialization, automated execution, and evaluation report generation.
[0102] (3.1) Task creation and initialization.
[0103] Use the evaluation task setting function in the execution and scheduling function to create a task. After starting the task, perform initialization work such as model assembly and baseline data loading. First, load the corresponding model from the basic model area and fine-tuning model area of the file storage module according to the pipeline configuration for assembly, and then load the baseline evaluation data from the baseline data area according to the data baseline configuration.
[0104] (3.2) Automated execution.
[0105] After the initialization work is completed, the task execution and scheduling function is used to perform the evaluation. This process will start the automated script generated by the pipeline. The information generated during the operation is recorded in the structured storage module task information, and the generated temporary files and original result files are recorded in the process storage area.
[0106] (3.3) Generation of evaluation report.
[0107] Use the task result generation function to create an evaluation report. This process is also part of the automated execution. The program inputs the original file results for further calculation and generates an evaluation report in a template format for storage and recording. After the evaluation report is generated, use the evaluation information management function to manage and maintain the key information in the entire evaluation process.
[0108] In summary, an efficient fine-tuning and evaluation system for large language models constructs an evaluation system including a file storage module, a structured storage module and an evaluation program module. The storage module overcomes the drawbacks of repeated searching and downloading of models and data sets, and can solve the problem of large basic model volume and time-consuming and network resource-consuming repeated downloading by multiple users, thereby saving download time and network resources, and effectively managing multiple versions of fine-tuning models and corresponding evaluation results. The evaluation program module streamlines the model evaluation workflow, thereby improving the evaluation construction efficiency, and can solve the drawbacks of repeated searching and downloading of data sets. By providing a unified evaluation benchmark, the evaluation process is made more comprehensive and professional.
[0109] Based on the same inventive concept, Figure 5 As shown, the embodiment of the present invention also provides a large language model efficient fine-tuning evaluation method, comprising the following steps:
[0110] S1, uses the file storage module to store files and supports adding, deleting, querying and modifying the stored file content through the file path. The file storage module includes a basic model area, a fine-tuning model area, a baseline data area, a process storage area and a result storage area.
[0111] S2, using the structured storage module to store evaluation-related structured data based on a relational database. The structured data includes model information, baseline data information, template information, pipeline information, and task information.
[0112] S3, using the evaluation program module to call the file storage module and the structured storage module to execute the evaluation system, the evaluation program module includes system information configuration function, execution and scheduling function and evaluation information management function.
[0113] Based on the same inventive concept, an embodiment of the present invention also provides a large language model efficient fine-tuning and evaluation device, including a memory and one or more processors, the memory is used to store computer programs, and the processor is used to implement the above-mentioned large language model efficient fine-tuning and evaluation method when executing the computer program.
[0114] It should be noted that the large language model efficient fine-tuning and evaluation method and large language model efficient fine-tuning and evaluation device provided in the above embodiments belong to the same inventive concept as the large language model efficient fine-tuning and evaluation system. The specific implementation process is detailed in the large language model efficient fine-tuning and evaluation system embodiment, which will not be repeated here.
[0115] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A large language model efficient fine-tuning and evaluation system, characterized by: include: File storage module, structured storage module and evaluation program module; The file storage module is used to store files and supports adding, deleting, querying and modifying the stored file content through the file path. The file storage module includes a basic model area, a fine-tuning model area, a baseline data area, a process storage area and a result storage area; wherein the basic model area is used to store the basic model, and the storage form is a single large language model as a storage unit, each large language model has its own storage path, and supports access to the large language model through its own storage path; the fine-tuning model area is used to store the fine-tuning model, and the fine-tuning model is an adapter model trained using a low-rank adaptive fine-tuning technology based on the large language model, and the storage form is The above is an incremental file; the baseline data area is used to store the baseline data set. The baseline data set uses a data set as a storage unit. Each data set is divided into subsets by type. Each subset supports access and acquisition in the form of a path; the process storage area is used to store evaluation task data. The storage form is to use the evaluation task data as a storage unit. It supports operations on the data of specific evaluation tasks according to the path. The specific execution method is set by the scheduler; the result storage area is used to store the execution result file. The storage form is presented in the form of an evaluation report. The report content records the details of the evaluation, including the basic model, fine-tuning model, selected data set and evaluation task indicator related data; The structured storage module uses a relational database to store structured data related to the evaluation, and the structured data includes model information, baseline data information, template information, pipeline information and task information; wherein the model information includes basic model information and fine-tuning model information; the baseline information includes attribute information of the baseline data set; the template information includes a fine-tuning feature template, a baseline feature template and an evaluation report template; the pipeline information includes the configuration of the evaluation process, and the task execution process is defined based on the configuration. A pipeline configuration can uniquely determine the evaluation process of the corresponding large language model; the task information includes basic task information, task log and task output, wherein the task output includes the evaluation report; The evaluation program module is used to call the file storage module and the structured storage module to execute the evaluation system, and the evaluation program module includes system information configuration function, execution and scheduling function and evaluation information management function; When using the evaluation program module to execute the evaluation system, it includes: Basic data loading: The content that needs to be loaded includes basic models, baseline data and template information; in the basic data loading step, the loaded basic model includes obtaining the basic large language model from the open source channel and importing it through the basic model configuration function in the system information configuration function; the loaded baseline data includes obtaining the baseline data set used for evaluation through the open source channel and importing it through the data baseline configuration function in the system information configuration function; the loaded template information includes loading the fine-tuning feature template, baseline test template and test report template, all of which are imported through the template information configuration function in the system information configuration function; Pipeline construction: The construction is completed through the fine-tuning model configuration function and the pipeline configuration function; the pipeline construction step includes two sub-processes: importing the fine-tuning model and configuring the pipeline; importing the fine-tuning model is to import the fine-tuned large language model through the fine-tuning model configuration function in the system information configuration function; configuring the pipeline is to perform configuration operations including basic model setting, fine-tuning model selection, baseline data set and indicator setting, and evaluation report format setting through the pipeline configuration function in the system information configuration function; Evaluation execution: Execute sub-processes in sequence, which include task creation and initialization, automated execution and evaluation report generation; in the evaluation execution step, task creation and initialization include creating tasks using the evaluation task setting function in the execution and scheduling function, and the settings include configuration information for model assembly and baseline data loading; automated execution includes starting the automation script using the task execution and scheduling function in the execution and scheduling function, and the information generated during the process is stored in the file storage module; evaluation report generation includes further calculating the results of the original file input to the program using the task result generation function, and generating an evaluation report in a template format, which is stored and recorded in the file storage module.
2. The large language model efficient fine-tuning and evaluation system according to claim 1, characterized in that: In the evaluation program module, the system information configuration function is used to configure the basic information and preparation content for the evaluation. The system information configuration function includes basic model configuration, fine-tuning model configuration, data baseline configuration, template information configuration and pipeline configuration; The execution and scheduling function is used to set and run the evaluation execution process. The execution and scheduling function includes evaluation task setting, task execution and scheduling, and task result generation. The assessment information management function is used to manage and maintain the information generated during the assessment process.
3. A large language model efficient fine-tuning and evaluation method, implemented using the large language model efficient fine-tuning and evaluation system according to any one of claims 1 or 2, characterized in that: The following steps are involved: The file storage module is used to store files and supports adding, deleting, querying and modifying the stored file content through the file path. The file storage module includes a basic model area, a fine-tuning model area, a baseline data area, a process storage area and a result storage area; Use the structured storage module to store evaluation-related structured data based on a relational database. The structured data includes model information, baseline data information, template information, pipeline information, and task information. The evaluation program module is used to call the file storage module and the structured storage module to execute the evaluation system. The evaluation program module includes system information configuration function, execution and scheduling function and evaluation information management function.
4. A large language model efficient fine-tuning and evaluation device, comprising a memory and one or more processors, wherein the memory is used to store a computer program, characterized in that: The processor is used to implement the large language model efficient fine-tuning and evaluation method described in claim 3 when executing the computer program.
