CoolFace
Modelpublic

codefuse-ai/CodeFuse-DevOps-Model-7B-Chat

sourceHugging Faceotherupdated 1y agoView on Hugging Face
10likes14downloads
Model Card

<div align="center"> <h1> DevOps-Model-7B-Chat </h1> </div>

<p align="center"> ๐Ÿค— <a href="https://huggingface.co/codefuse-ai" target="blank">Hugging Face</a> โ€ข ๐Ÿค– <a href="https://modelscope.cn/organization/codefuse-ai" target="blank">ModelScope</a> </p>

DevOps-Model is a Chinese DevOps large model, mainly dedicated to exerting practical value in the field of DevOps. Currently, DevOps-Model can help engineers answer questions encountered in the all DevOps life cycle.

Based on the Qwen series of models, we output the Base model after additional training with high-quality Chinese DevOps corpus, and then output the Chat model after alignment with DevOps QA data. Our Base model and Chat model can achieve the best results among models of the same scale based on evaluation data related to the DevOps fields.

<br> At the same time, we are also building an evaluation benchmark DevOpsEval exclusive to the DevOps field to better evaluate the effect of the DevOps field model. <br> <br>

Evaluation

We first selected a total of six exams related to DevOps in the two evaluation data sets of CMMLU and CEval. There are a total of 574 multiple-choice questions. The specific information is as follows:

Evaluation datasetExam subjectsNumber of questions
CMMLUComputer science204
CMMLUComputer security171
CMMLUMachine learning122
CEvalCollege programming37
CEvalComputer architecture21
CEvalComputernetwork19

We tested the results of Zero-shot and Five-shot respectively. Our 7B and 14B series models can achieve the best results among the tested models. More tests will be released later.

ModelSizeZero-shot ScoreFive-shot Score
DevOps-Model-7B-Chat7B62.2064.11
Qwen-7B-Chat7B46.0052.44
Baichuan2-7B-Chat7B52.2654.46
Internlm-7B-Chat7B52.6155.75

<br>

Quickstart

We provide simple examples to illustrate how to quickly use Devops-Model-Chat models with ๐Ÿค— Transformers.

Requirement

bash
cd path_to_download_model
pip install -r requirements.txt

Model Example

python
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation import GenerationConfig

tokenizer = AutoTokenizer.from_pretrained("path_to_DevOps-Model", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("path_to_DevOps-Model", device_map="auto", trust_remote_code=True, bf16=True).eval()

model.generation_config = GenerationConfig.from_pretrained("path_to_DevOps-Model", trust_remote_code=True)

resp, hist = model.chat(query='What is the difference between HashMap and Hashtable in Java', tokenizer=tokenizer, history=None)

Disclaimer

Due to the characteristics of language models, the content generated by the model may contain hallucinations or discriminatory remarks. Please use the content generated by the DevOps-Model family of models with caution. If you want to use this model service publicly or commercially, please note that the service provider needs to bear the responsibility for the adverse effects or harmful remarks caused by it. The developer of this project does not assume any responsibility for any consequences caused by the use of this project (including but not limited to data, models, codes, etc.) ) resulting in harm or loss.

Acknowledgments

This project refers to the following open source projects, and I would like to express my gratitude to the relevant projects and research and development personnel.