Data center intelligent operation and maintenance method based on large language model and feature detection
The intelligent operation and maintenance method that combines large language models and feature detection solves the problem of insufficient flexibility and predictive capabilities of traditional data center operation and maintenance methods, achieves efficient operation and maintenance suggestions and improves user experience, and reduces false positives and false negatives. .
Patent Information
- Application Number
- CN202410882377.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional data center operation and maintenance methods lack flexibility and predictive capabilities when dealing with large-scale and complex environments, are prone to false positives and negatives, have poor user experience, and have poor model interpretability.
Adopting an intelligent operation and maintenance method based on large language models and feature detection, by collecting and processing operation and maintenance related text data, using the ChatGLM 6B model for fine-tuning, and combining the knowledge base and feature detection to provide more comprehensive and easy-to-understand operation and maintenance suggestions.
It significantly improves operation and maintenance efficiency and user experience, reduces operation and maintenance complexity, can automatically obtain the current status and give corresponding suggestions, reduces false positives and omissions, and improves the system's interactivity and information integration capabilities.
Smart Images

Figure CN118780776A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent operation and maintenance of data centers, and in particular to an intelligent operation and maintenance method of data centers based on a large language model and feature detection. Background Art
[0002] Large models are a type of model in the field of artificial intelligence that is built on neural networks and has more than 1 billion parameters. They are trained using the back-propagation algorithm to minimize prediction errors by adjusting the weights in the network. Large models have strong general-purpose capabilities and perform well in text generation, text classification, text recognition, etc., but they require a large amount of labeled data and computing resources, and the model is less interpretable.
[0003] In traditional data center operations, conventional detection methods mainly rely on manually set thresholds and rules. These methods include simple threshold alarms, trend analysis, and statistical analysis. They are usually used to monitor the key performance indicators (KPIs) of the system, such as temperature, humidity, network latency, etc. When the detected indicators exceed the preset range, the system will trigger an alarm to notify the operation and maintenance personnel to take action. However, these methods often lack flexibility and predictive power when dealing with large-scale and complex data center environments, and are prone to false positives and false negatives.
[0004] Traditional integrated operation and maintenance platforms mainly include monitoring systems, alarm systems, recording and reporting systems, maintenance management systems, etc., which can centrally monitor, automate management, and visualize data. However, due to their complex user interfaces and operating procedures, user experience is poor. Solutions to operation and maintenance scenarios still require operation and maintenance personnel to make judgments based on the displayed data, which lacks flexibility and convenience. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a data center intelligent operation and maintenance method based on a large language model and feature detection, which provides more comprehensive and easy-to-understand operation and maintenance suggestions by processing user questions, current detection information and knowledge base information through a large model. As the core of the operation and maintenance system, the large model will greatly improve the interactivity with users and the ability to integrate information.
[0006] The technical solution of the present invention is:
[0007] A data center intelligent operation and maintenance method based on a large language model and feature detection includes the following steps:
[0008] S1. Text data collection: collect text data related to data center operation and maintenance, and relevant computer room information of the data center;
[0009] S2. Data collection of computer room: collect historical operation and maintenance data of the computer room, such as temperature, humidity, energy consumption, etc.
[0010] S3. Data feature detection in the computer room: Perform feature detection on different operation and maintenance data to obtain data features, such as temperature and humidity peaks, energy consumption fluctuations, etc.
[0011] S4. Construct corpus generation template: Set the data feature corpus template to generate dialogue corpus with corresponding features.
[0012] S5. Text data processing: preprocess the text data collected in 1 to generate dialogue data;
[0013] S6. Model selection: Select the ChatGLM 6B open source pre-trained model as the base model;
[0014] S7. Model fine-tuning: Based on the base large model, the corpus generated in 4 and 5 is used as the fine-tuning dataset for fine-tuning training, and the fine-tuning method is LoRA;
[0015] S8. Model evaluation: Evaluate the trained model;
[0016] S9. Model optimization and iteration: Based on the evaluation results, the model is adjusted and optimized to obtain a large model for data center operation and maintenance;
[0017] S10. Model deployment and application: Deploy the final trained operation and maintenance model to the server and open the interface for system development;
[0018] S11. Knowledge base mounting: To ensure the update of the knowledge of the large operation and maintenance model and reduce the training cost, a vector database is mounted for the large model;
[0019] S12. Prompt word design: To improve the quality of the model's responses, the model is given roles and scenarios in the prompt words. The model is also asked to classify user questions before giving accurate responses.
[0020] S13. Application development: Combine model interface, knowledge base, function call and prompt word design to develop applications, deploy applications through FastApi, and release interfaces for use by the operation and maintenance system.
[0021] Preferably, the data collected in S1 includes internal enterprise data and online public data. The internal enterprise data is mainly obtained by users through documents or enterprise business systems, and the online public data is mainly obtained through online download, purchase and crawling.
[0022] Utilizing text data in the field of operation and maintenance can give the big model the ability to answer professional knowledge and related scenarios in the field; using the feature corpus formed by past indicator data can give the big model the ability to judge the status of the computer room, so that the big model has the ability to independently complete the entire process of "obtaining data-judging status-providing solutions".
[0023] Preferably, the feature detection method in S3 mainly includes rule definition, data statistics, machine learning, image processing and other methods. The specific detection method needs to be determined according to the collected data. The main methods used in the current system are rule definition and data statistics.
[0024] Preferably, the text preprocessing method in S5 mainly includes data cleaning, data standardization, data set division and dialogue corpus generation.
[0025] Data cleaning includes removing noise (removing irrelevant characters, special symbols, misspellings, etc. in the text), deleting common stop words, removing sensitive information, removing URLs and emails, etc.;
[0026] Data standardization mainly includes unifying punctuation, converting numbers to text, and converting uppercase text to lowercase;
[0027] Dataset partitioning involves dividing the data into training, validation, and test sets.
[0028] Dialogue corpus generation mainly includes two directions: manual processing and large model generation. Manual processing generates dialogue corpus through manual annotation, and large model generation automatically generates dialogue corpus by processing text through models with larger parameter scales (GLM4, GPT4).
[0029] As a preferred embodiment, the corpus template construction in S4 can quickly construct operation and maintenance corpus data with similar formats, and obtain different feature corpora by interpolating within the template.
[0030] Preferably, in S7, the process of model fine-tuning is:
[0031] 1. Parameter setting: determine training parameters such as learning rate, batch size, and number of training rounds
[0032] 2. Optimizer selection: Choose a suitable optimizer, such as SGD, Adam, etc.
[0033] 3. Data word embedding processing: ChatGLM 6B has pre-trained word embedding layers. In the fine-tuning phase, the model uses new data to adjust weights to better suit specific tasks or fields.
[0034] 4. Model training: Use fine-tuning data to iteratively train the model, update the weights, and repeat multiple rounds to obtain a fine-tuned model that meets the requirements.
[0035] 5. Model verification: Use the verification set to verify the fine-tuned model and check whether it meets the relevant indicators.
[0036] 6. Model saving: Save the trained model structure and weights.
[0037] Preferably, the knowledge base in S11 is a vector knowledge base.
[0038] Preferably, the prompt words in S12 are added with role settings, and the system is used to assign initial tasks to the model, and the structure is as follows:
[0039] {
[0040] "messages":[
[0041] {"role":"system","content":"You are a computer room maintenance assistant, focusing on analyzing computer room problems and proposing solutions. You can first classify user problems, then obtain relevant information through channels such as knowledge bases, and give reasonable suggestions"},
[0042] {"role":"user","content":"Why is the temperature in the computer room too high? How can I solve it?"},
[0043] {"role":"assistant","content":"Air circulation problem: Check the equipment layout in the room to ensure that there is no obstruction to air circulation. Clean or replace air filters to ensure smooth air circulation."} ]
[0045] }
[0046] The beneficial effects of the present invention are
[0047] The present invention is an intelligent operation and maintenance method based on a large language model and feature detection, which can be deployed independently or embedded in a comprehensive operation and maintenance system, and can produce beneficial effects on both operation and maintenance efficiency and user experience.
[0048] The large language model trained with a large amount of corpus and external knowledge base has a rich reserve of operation and maintenance knowledge. By associating data features with operation and maintenance scenarios, this method can automatically obtain the possible corresponding operation and maintenance scenarios in the current state and give relative suggestions, which will significantly reduce the complexity of operation and maintenance work.
[0049] Operation and maintenance personnel can obtain the current status of the computer room and possible problems by directly asking. If there are other problems in the computer room, the operation and maintenance personnel can also ask for solutions by describing the problems, and the big model will give reasonable suggestions for reference. Compared with the data display of traditional operation and maintenance systems, this method can greatly improve the user experience through natural language communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is the knowledge base schematic;
[0051] Figure 2 It is a schematic diagram of the workflow of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] The present invention provides a data center intelligent operation and maintenance method based on a large language model and feature detection, which is centered on the large model and feature detection and is committed to improving the operation and maintenance efficiency of a data center (multi-computer room). The present invention first associates data features with operation and maintenance scenarios, and generates scene corpora for training through corpus templates. Using ChatGLM 6B as the base large model, a vertical large model dedicated to the field of computer room operation and maintenance is trained. The model is trained with a large amount of scene corpora and knowledge corpora related to operation and maintenance, so that it can understand and process specific operation and maintenance scenarios and specific concepts and languages in the field of operation and maintenance. In practical applications, questions raised by users, current detection information, and information in the knowledge base will be integrated and processed by the large model. In this way, the large model can provide more comprehensive and easy-to-understand operation and maintenance suggestions, thereby optimizing the user's interactive experience. The large model plays a central role in the operation and maintenance system. It can not only integrate and analyze data from different sources, but also improve the interactive ability of the system, so that users can communicate with the system more effectively and obtain the required information and suggestions. Through the implementation of the present invention, operation and maintenance personnel can process and respond to operation and maintenance tasks more efficiently.
[0054] As shown in the figure, the present invention includes the following technical processes:
[0055] Data collection: Collect data related to computer room operation and maintenance, mainly text data, but also other data forms containing text, such as tables, ppt, etc. The data content mainly includes computer room operation and maintenance professional knowledge, data center computer room information, computer room operation and maintenance specifications, etc.
[0056] Clarify the data content that needs to be obtained for model training: the knowledge texts used for model training mainly include operation and maintenance professional knowledge, fault and event logs, operation and maintenance operation records, computer room equipment information, etc.
[0057] Data source: The sources of collected data mainly include online public data and internal enterprise data. For example, operation and maintenance expertise can be obtained through online download, purchase and crawling. Operation and maintenance operation records, computer room equipment information, etc. need to be provided by users in the form of documents or obtained from the enterprise business system.
[0058] Data integration: For the data obtained in different formats, data integration must be performed first to convert the data into text format.
[0059] Data preservation and updating: When preserving data, it is necessary to classify it. Fixed and normalized information can be used for model fine-tuning, and frequently updated information can be used for building a knowledge base.
[0060] Data collection in the computer room: Obtain historical operation and maintenance data and operation and maintenance logs of the computer room, such as temperature, humidity, energy consumption, etc.
[0061] Data feature detection in the computer room: Perform feature detection on different operation and maintenance data to obtain data features, such as temperature and humidity peaks, energy consumption fluctuations, etc.
[0062] Obtain the time of various computer room conditions (partial high temperature in the computer room, abnormal air inlet and outlet of the air conditioner) based on the operation and maintenance log.
[0063] Get the indicator data at the corresponding time.
[0064] Use rule definition, data statistics, machine learning and other feature detection methods to obtain current data features.
[0065] Save the current data characteristics and the corresponding computer room status.
[0066] Construct corpus generation template: Design scenario corpus template based on data feature information and status information, and generate scenario corpus by combining features and corresponding scenarios.
[0067] in,
[0068] Preprocess the collected text data to generate dialogue corpus; including
[0069] 1. Data cleaning includes removing noise (removing irrelevant characters, special symbols, misspellings, etc. in the text), deleting common stop words, removing sensitive information, removing URLs and emails, etc.;
[0070] 2. Data standardization mainly includes unifying punctuation marks, converting numbers into text, and converting uppercase text into lowercase text;
[0071] 3. Data set partitioning includes dividing the data into training set, validation set and test set.
[0072] Dialogue corpus generation mainly includes two directions: manual processing and large model generation. Manual processing is achieved through manual labeling.
[0073] 4. Generate dialogue corpus. Large model generation automatically generates dialogue corpus by processing text through models with larger parameter scales (GLM4, GPT4).
[0074] Model selection: By comparing multiple 6B-10B base models, ChatGLM 6B has excellent text processing capabilities and built-in role definition, function call and other capabilities. Therefore, the present invention selects ChatGLM 6B open source pre-trained model as the base model;
[0075] Model fine-tuning: Based on the base model, the corpus generated by 4 and 5 is used as the fine-tuning dataset for fine-tuning training, and the fine-tuning method is LoRA;
[0076] The process of model fine-tuning is:
[0077] 1. Parameter setting: determine training parameters such as learning rate, batch size, and number of training rounds
[0078] 2. Optimizer selection: Choose a suitable optimizer, such as SGD, Adam, etc.
[0079] 3. Data word embedding processing: ChatGLM 6B has pre-trained word embedding layers. In the fine-tuning phase, the model uses new data to adjust weights to better suit specific tasks or fields.
[0080] 4. Model training: Use fine-tuning data to iteratively train the model, update the weights, repeat multiple rounds, and obtain a fine-tuned model that meets the requirements.
[0081] 5. Model verification: Use the verification set to verify the fine-tuned model and check whether it meets the relevant indicators.
[0082] 6. Model saving: Save the trained model structure and weights.
[0083] Model evaluation: Evaluate the trained model;
[0084] 1. Accuracy evaluation: Evaluate the accuracy of the model on the test set.
[0085] 2. Generalization ability evaluation: Use new text data to test whether the generalization ability of the fine-tuned model has weakened.
[0086] 3. Resource efficiency evaluation: Because large models require a lot of resources to reason, it is necessary to evaluate the performance of the model under different hardware configurations.
[0087] 4. Security assessment: Evaluate whether the model has security issues such as prompt word injection.
[0088] Model optimization and iteration: Based on the evaluation results, the model is adjusted and optimized to obtain a large model for data center operation and maintenance;
[0089] Model deployment and application: Deploy the final trained operation and maintenance model to the server and open the interface for system development;
[0090] Knowledge base mounting: To ensure the update of the knowledge of the large model and reduce the training cost, a vector database is mounted for the large model;
[0091] Prompt word design: To improve the quality of model responses, the model is given roles and scenarios in the prompt words. The model is also asked to classify user questions before giving accurate responses.
[0092] The prompt word adds role settings and uses system to assign initial tasks to the model. The structure is as follows:
[0093] "messages":[
[0094] {"role":"system","content":"You are a computer room maintenance assistant, focusing on analyzing computer room problems and proposing solutions. You can first classify user problems, then obtain relevant information through channels such as knowledge bases, and give reasonable suggestions"},
[0095] {"role":"user","content":"Why is the temperature in the computer room too high? How can I solve it?"},
[0096] {"role":"assistant","content":"It may be caused by air circulation problems. Check the equipment layout in the room to ensure that there is no obstruction to air circulation. Clean or replace the air filter to ensure smooth air circulation."} ]
[0098] }
[0099] Application development: Combine model interfaces, knowledge bases, function calls, and prompts to develop applications, deploy applications through FastApi, and release interfaces for use by the operation and maintenance system.
[0100] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A data center intelligent operation and maintenance method based on a large language model and feature detection, characterized in that: The following steps are involved: S1. Text data collection: collect text data related to data center operation and maintenance, and relevant computer room information of the data center; S2. Data collection of computer room: collect historical operation and maintenance data of computer room; S3. Data feature detection in the computer room: perform feature detection on different operation and maintenance data to obtain data features; S4. Construct corpus generation template: set the data feature corpus template to generate dialogue corpus with corresponding features; S5, text data processing: pre-process the text data collected in S1 to generate dialogue data; S6. Model selection: Select the ChatGLM 6B open source pre-trained model as the base model; S7, model fine-tuning: Based on the base large model, the corpus generated in 4 and 5 is used as the fine-tuning dataset for fine-tuning training, and the fine-tuning method is LoRA; S8, model evaluation: evaluate the trained model; S9, Model optimization and iteration: According to the evaluation results, the model is adjusted and optimized to obtain a large model for data center operation and maintenance; S10, Model deployment and application: Deploy the final trained operation and maintenance model to the server and open the interface for system development; S11, knowledge base mounting: To ensure the update of the operation and maintenance large model knowledge and reduce the training cost, a vector database is mounted for the large model; S12. Prompt word design: To improve the quality of the model's responses, the model is given roles and scenarios in the prompt words. The model is also asked to classify user questions before giving accurate responses. S13. Application development: Combine model interface, knowledge base, function call and prompt word design to develop applications, deploy applications through FastApi, and release interfaces for use by the operation and maintenance system.
2. The method according to claim 1, characterized in that The data collected in S1 include internal enterprise data and online public data. Internal enterprise data is mainly obtained by users through documents or enterprise business systems, and online public data is mainly obtained through online downloads, purchases and crawlers.
3. The method according to claim 1, characterized in that The historical operation and maintenance data of the computer room includes temperature, humidity, and energy consumption.
4. The method according to claim 1, characterized in that: Feature detection in S3 includes rule definition, data statistics, machine learning, and image processing methods. The specific detection method needs to be determined based on the collected data.
5. The method according to claim 1, characterized in that Text preprocessing in S5 includes data cleaning, data standardization, data set partitioning, and dialogue data generation; in Data cleaning includes removing noise, deleting common stop words, removing sensitive information, and removing URLs and emails; Data standardization includes standardizing punctuation, converting numbers to text, and converting uppercase text to lowercase; Dataset partitioning includes dividing the data into training set, validation set, and test set; Dialogue corpus generation includes two directions: manual processing and large-model generation. Manual processing generates dialogue corpus through manual annotation, while large-model generation automatically generates dialogue corpus by processing text with a model of larger parameter scale.
6. The method according to claim 1, characterized in that In S7, the process of model fine-tuning is as follows: 1) Parameter setting: determine the training parameters of learning rate, batch size, and number of training rounds; 2) Optimizer selection: select a suitable optimizer; 3) Data word embedding processing: ChatGLM 6B pre-trained word embedding layer; 4) Model training: Use fine-tuning data to iteratively train the model, update the weights, repeat multiple rounds, and obtain a fine-tuning model that meets the requirements; 5) Model verification: Use the verification set to verify the fine-tuned model and check whether it meets the relevant indicators; 6) Model saving: Save the trained model structure and weights.
7. The method according to claim 6, characterized in that During the fine-tuning phase, the model uses new data to adjust its weights.
8. The method according to claim 1, characterized in that The knowledge base in S11 is a vector knowledge base.
9. The method according to claim 1, characterized in that: The prompt words in S12 add role settings and use system to assign initial tasks to the model.
