Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Industrial-first evaluation benchmark for LLMs in the DevOps/AIOps domain.

License

NotificationsYou must be signed in to change notification settings

codefuse-ai/codefuse-devops-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤗Hugging Face • ⏬Data • 📖Tutorial
中文 | English

DevOps-Eval is a comprehensive evaluation suite specifically designed for foundation models in the DevOps field. We hope DevOps-Eval could help developers, especially in the DevOps field, track the progress and analyze the important strengths/shortcomings of their models.

📚 This repo contains questions and exercises related to DevOps, including the AIOps, ToolLearning;

💥️ There are currently7486 multiple-choice questions spanning 8 diverse general categories, as shownbelow.

🔥 There are a total of2840 samples in the AIOps subcategory, covering scenarios such aslog parsing,time series anomaly detection,time series classification,time series forecasting, androot cause analysis.

🔧 There are a total of1509 samples in the ToolLearning subcategory, covering 239 tool scenes across 59 fields.

🔔 News

  • [2023.12.27] Add 1509ToolLearning samples, covering 239 tool categories across 59 fields; Release the associated evaluation leaderboard;
  • [2023.11.27] Add 487 operation scene samples and 640 time series forecasting samples; Update the Leaderboard;
  • [2023.10.30] Add the AIOps Leaderboard.
  • [2023.10.25] Add the AIOps samples, including log parsing, time series anomaly detection, time series classification and root cause analysis.
  • [2023.10.18] Update the initial Leaderboard...

📜 Table of Contents

🏆 Leaderboard

Below are zero-shot and five-shot accuracies from the models that we evaluate in the initial release. We note that five-shot performance is better than zero-shot for many instruction-tuned models.

👀 DevOps

Zero Shot

ModelNameplancodebuildtestreleasedeployoperatemonitorAVG
DevOpsPal-14B-Chat60.6178.3584.8684.6587.2682.7569.8979.1778.23
DevOpsPal-14B-Base54.5577.8283.4985.9686.3281.9671.1882.4178.23
Qwen-14B-Chat60.6175.485.3284.2189.6282.7569.5780.5677.18
Qwen-14B-Base57.5873.8184.485.5386.3281.1870.0580.0976.19
Baichuan2-13B-Base60.6169.4279.8279.8282.5581.1870.3783.873.73
Baichuan2-13B-Chat60.6168.4377.9880.781.683.5367.6384.7272.9
DevOpsPal-7B-Chat54.5569.1183.9482.0276.898064.7377.7871.92
DevOpsPal-7B-Base54.5568.9682.1178.9580.6676.4765.5478.771.69
Qwen-7B-Base53.0368.1378.975.4480.198065.0680.0971.09
Qwen-7B-Chat57.5866.0180.2879.8276.8977.6562.6479.1769.75
Baichuan2-7B-Chat54.5563.6677.9876.3271.773.3359.4279.6366.97
Internlm-7B-Chat60.6162.1577.0676.3266.9874.5160.3978.2466.27
Baichuan2-7B-Base56.0662.4575.6970.6174.0669.861.6775.9366.21
Internlm-7B-Base54.5558.2979.3678.9577.8370.5965.8675.9365.99

Five Shot

ModelNameplancodebuildtestreleasedeployoperatemonitorAVG
DevOpsPal-14B-Chat63.6479.4981.6585.9686.7986.6772.9581.4879.69
DevOpsPal-14B-Base62.1280.5582.5785.5385.8584.7171.9880.0979.63
Qwen-14B-Chat65.157682.5785.5384.9184.3170.8581.4877.81
Qwen-14B-Base66.6776.1584.485.5386.3280.3972.4680.5677.56
Baichuan2-13B-Base63.6471.3980.7382.4681.1384.3173.7585.1975.8
Qwen-7B-Base75.7672.5278.981.1483.9681.1870.3781.9475.36
Baichuan2-13B-Chat62.1269.9576.6184.2183.4979.6171.9880.5674.12
DevOpsPal-7B-Chat66.6769.9583.9481.1480.1982.7568.676.8573.61
DevOpsPal-7B-Base69.769.4982.1181.1482.5582.3567.1579.1773.35
Qwen-7B-Chat65.1566.5482.5781.5881.681.1865.3881.0271.69
Baichuan2-7B-Base60.6167.2276.617577.8378.4367.3179.6370.8
Internlm-7B-Chat60.6163.0679.8280.2667.9275.6960.0677.3169.21
Baichuan2-7B-Chat60.6164.9581.1975.8871.2375.6964.979.1769.05
Internlm-7B-Base62.1265.2577.5280.774.0678.8263.4575.4667.17

🔥 AIOps

Zero Shot

ModelNameLogParsingRootCauseAnalysisTimeSeriesAnomalyDetectionTimeSeriesClassificationTimeSeriesForecastingAVG
Qwen-14B-Base66.2958.825.3343.562.552.25
DevOpsPal-14B—Base63.1453.623.3343.564.0650.49
Qwen-14B-Chat64.5751.622.673662.548.94
DevOpsPal-14B—Chat6056244357.8148.8
Qwen-7B-Base5039.222.675443.7541.48
DevOpsPal-7B—Chat56.5730.425.334544.0640.92
Baichuan2-13B-Chat641821.3337.546.8839.3
Qwen-7B-Chat57.4338.822.3339.525.3136.97
Internlm-7B—Chat58.868.822.3328.551.2536.34
Baichuan2-7B-Chat60.86102834.539.0636.34
Baichuan2-7B-Base53.4312.827.6736.540.3135.49
Baichuan2-13B-Base5412.42334.542.8134.86
DevOpsPal-7B—Base46.5720.8253438.7533.94
Internlm-7B—Base48.5718.823.3337.533.7533.1

One Shot

ModelNameLogParsingRootCauseAnalysisTimeSeriesAnomalyDetectionTimeSeriesClassificationTimeSeriesForecastingAVG
DevOpsPal-14B—Chat66.2980.823.3344.556.2554.44
DevOpsPal-14B—Base607425.3343.552.551.13
Qwen-14B-Base64.2974.42848.540.3150.77
Qwen-7B-Base5660.827.674457.1949.44
Qwen-14B-Chat49.7165.628.674842.1946.13
Baichuan2-13B-Base5643.224.334146.8842.89
Baichuan2-7B-Chat58.5731.62731.551.8841.83
DevOpsPal-7B—Base52.8644.42844.536.2541.2
Baichuan2-7B-Base48.2940.4274240.9439.86
Qwen-7B-Chat54.575229.6726.527.1938.73
Baichuan2-13B-Chat57.4344.42525.530.6337.75
DevOpsPal-7B—Chat56.5727.225.3341.533.4437.46
Internlm-7B—Chat62.5712.822.332150.3136.69
Internlm-7B—Base4833.2293531.5635.85

🔧 ToolLearning

FuncCall-Fillerdataset_namefccr1-fcffr1-fcfnr1-fcfpr1-fcfniraar
Qwen-14b-chatluban6110097.6863.3210069.46
Qwen-7b-chatluban50.5810098.0752.5110063.59
Baichuan-7b-chatluban60.2310097.362.9399.6161.12
Internlm-chat-7bluban47.8810096.1451.7499.6161.85
Qwen-14b-chatfc_data98.3799.7399.8698.7810081.58
Qwen-7b-chatfc_data99.4699.8610099.5910079.25
Baichuan-7b-chatfc_data97.9699.3210098.6410089.53
Internlm-chat-7bfc_data94.2995.7810098.510088.19
CodeLLaMa-7bfc_data98.7899.7310099.0510094.7
CodeLLaMa-7b-16fc_data98.199.8799.7398.510093.14
CodeFuse-7b-4kfc_data98.9199.8799.8799.1810089.5

⏬ Data

Download

  • Method 1: Download the zip file (you can also simply open the following link with the browser):
    wget https://huggingface.co/datasets/codefuse-admin/devopseval-exam/resolve/main/devopseval-exam.zip
    then unzip it and you may load the data with pandas:
    import osimport pandas as pdFile_Dir="devopseval-exam"test_df=pd.read_csv(os.path.join(File_Dir,"test","UnitTesting.csv"))
  • Method 2: Directly load the dataset usingHugging Face datasets:
    fromdatasetsimportload_datasetdataset=load_dataset(r"DevOps-Eval/devopseval-exam",name="UnitTesting")print(dataset['val'][0])# {"id": 1, "question": "单元测试应该覆盖以下哪些方面?", "A": "正常路径", "B": "异常路径", "C": "边界值条件","D": 所有以上,"answer": "D", "explanation": ""}  ```
  • Method 3: Directly load the datase t usingModelScope datasets:
    frommodelscope.msdatasetsimportMsDatasetMsDataset.clone_meta(dataset_work_dir='./xxx',dataset_id='codefuse-ai/devopseval-exam')

👀 Notes

To facilitate usage, we have organized the category name handlers and English/Chinese names corresponding to 55 subcategories. Please refer tocategory_mapping.json for details. The format is:

{  "UnitTesting.csv": [    "unit testing",    "单元测试",    {"dev": 5, "test": 32}    "TEST"  ],  ...  "file_name":[  "English Name",  "Chinese Name",  "Sample Number",  "Supercatagory Label(PLAN,CODE,BUILD,TEST,RELEASE,DEPOLY,OPERATE,MONITOR choose 1 out of 8)"  ]}

Each subcategory consists of two splits: dev and test. The dev set per subcategory consists of five exemplars with explanations for few-shot evaluation. And the test set is for model evaluation. Labels on the test split are also released.

Below is a dev example from 'version control':

id: 4question: 如何找到Git特定提交中已更改的文件列表?A: 使用命令 `git diff --name-only SHA`B: 使用命令 `git log --name-only SHA`C: 使用命令 `git commit --name-only SHA`D: 使用命令 `git clone --name-only SHA`answer: Aexplanation: 分析原因:git diff --name-only SHA命令会显示与SHA参数对应的提交中已修改的文件列表。参数--name-only让命令只输出文件名,而忽略其他信息。其它选项中的命令并不能实现此功能。

🔥 AIOps Sample Example

👀 👀 Takinglog parsing andtime series anomaly detection as examples, here is a brief showcase of the AIOps samples:

LogParsing

id: 0question:Here are some running logs 0 04:21:15,429 WARN Cannot open channel to 2 at election address /10.10.34.12:3888 1 19:18:56,377 WARN ******* GOODBYE /10.10.34.11:52703 ******** 2 19:13:46,128 WARN ******* GOODBYE /10.10.34.11:52308 ******** 3 19:16:26,268 WARN ******* GOODBYE /10.10.34.11:52502 ******** 4 09:11:16,012 WARN Cannot open channel to 3 at election address /10.10.34.13:3888 5 16:37:13,837 WARN Cannot open channel to 2 at election address /10.10.34.12:3888 6 09:09:16,008 WARN Cannot open channel to 3 at election address /10.10.34.13:3888 7 15:27:03,681 WARN Cannot open channel to 3 at election address /10.10.34.13:3888The first three parts of the log are index, timestamp, and log level. Without considering these three parts, Here we assume that the variables in the logs are represented as '<*>', separated by spaces between tokens. What is the specific log template for the above logs? A: Notification time out: <*> 和 Connection broken for id <*>, my id = <*>, error =B: Send worker leaving thread 和 Connection broken for id <*>, my id = <*>, error =C: Received connection request /<*>:<*> 和 Interrupting SendWorkerD: Cannot open channel to <*> at election address /<*>:<*> 和 ******* GOODBYE /<*>:<*> ********answer: Dexplanation: The log includes the fixed template fragments "Cannot open channel to <> at election address /<>:<>" and "****** GOODBYE /<>:<> ********," both of which appear in option D. Meanwhile, the template fragments in the other options do not match the content in the log. Therefore, option D is the most consistent with the log template.

TimeSeriesAnomalyDetection

id: 0question:Analyze the following time series[50,62,74,84,92,97,99,98,94,87,77,65,265,40,28,17,8,3,0,0,4,10,20,31,43,56,68,79,89,95,99,99,96,91,82,71,59,46,34,22,12,5,1,0,2,7,15,25,37,49]Please identify the indices of obvious outlier points. Outlier points generally refer to points that significantly deviate from the overall trend of the data.A: 46B: 0C: 37D: 12answer: Dexplanation: According to the analysis, the value 265 in the given time series at 12 o'clock is significantly larger than the surrounding data, indicating a sudden increase phenomenon. Therefore, selecting option D is correct.

🔧 ToolLearning Sample Example

👀 👀The data format of ToolLearning samples is compatible with OpenAI's Function Calling.

Please refer totool_learning_info.md for details.

🚀 How to Evaluate

If you need to test your own huggingface-formatted model, the overall steps are as follows:

  1. Write the loader function for the model.
  2. Write the context_builder function for the model.
  3. Register the model in the configuration file.
  4. Run the testing script.If the model does not require any special processing after loading, and the input does not need to be converted to a specific format (e.g. chatml format or other human-bot formats), you can directly proceed to step 4 to initiate the testing.

1. Write the loader function

If the model requires additional processing after loading (e.g. adjusting the tokenizer), you need to inherit theModelAndTokenizerLoader class insrc.context_builder.context_builder_family.py and override the correspondingload_model andload_tokenizer functions. You can refer to the following example:

classQwenModelAndTokenizerLoader(ModelAndTokenizerLoader):def__init__(self):super().__init__()pass@overridedefload_model(self,model_path:str):# Implementation of the methodpass@overridedefload_tokenizer(self,model_path:str):# Implementation of the methodpass

2. Write the context_builder function for the Model

If the input needs to be converted to a specific format (e.g. chatml format or other human-bot formats), you need to inherit the ContextBuilder class insrc.context_builder.context_builder_family and override the make_context function. This function is used to convert the input to the corresponding required format. An example is shown below:

classQwenChatContextBuilder(ContextBuilder):def__init__(self):super().__init__()@overridedefmake_context(self,model,tokenizer,query:str,system:str="hello!"):# Implementation of the methodpass

3. Register the model in the configuration file

Go to themodel_conf.json file in the conf directory and register the corresponding model name and the loader and context_builder that will be used for this model. Simply write the class names defined in the first and second steps for the loader and context_builder. Here is an example:

{"Qwen-Chat": {"loader":"QwenModelAndTokenizerLoader","context_builder":"QwenChatContextBuilder"  }}

4. Execute the testing script

Run the following code to initiate the test:

python src/run_eval.py \--model_path path_to_model \--model_name model_name_in_conf \--model_conf_path path_to_model_conf \--eval_dataset_list all \--eval_dataset_fp_conf_path path_to_dataset_conf \--eval_dataset_typetest \--data_path path_to_downloaded_devops_eval_data \--k_shot 0

👀 👀 The specific evaluation process is as follows 📖Evaluate Tutorial


🧭 TODO

  • add AIOps samples.
  • add AIOps scenariotime series forecasting.
  • addToolLearning samples.
  • increase in sample size.
  • add samples with the difficulty level set to hard.
  • add the English version of the samples.


🏁 Licenses

This project is licensed under theApache License (Version 2.0).

😃 Citation

Please cite our paper if you use our dataset.

Coming Soon...

🗂 Miscellaneous

📱 Contact Us

图片

✨ Star History

Star History Chart

🤝 Friendship Links

  • Codefuse-ChatBot
    • Codefuse-ChatBot is an open-source AI smart assistant designed to support the software development lifecycle with conversational access to tools, knowledge, and platform integration.
  • Awesome AIGC Tutorials
    • Awesome AIGC Tutorials houses a curated collection of tutorials and resources spanning across Large Language Models, AI Painting, and related fields.

About

Industrial-first evaluation benchmark for LLMs in the DevOps/AIOps domain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp