CoolFace
Modelpublic

mlabonne/NeuralDaredevil-7B

sourceHugging Facecc-by-nc-4.0updated 2y agoView on Hugging Face
41likes82downloads
Model Card

NeuralDaredevil-7B

NeuralDaredevil-7B is a DPO fine-tune of mlabonne/Daredevil-7B using the argilla/distilabel-intel-orca-dpo-pairs preference dataset and my DPO notebook from this article.

Thanks Argilla for providing the dataset and the training recipe here. ๐Ÿ’ช

๐Ÿ† Evaluation

Nous

The evaluation was performed using LLM AutoEval on Nous suite.

ModelAverageAGIEvalGPT4AllTruthfulQABigbench
**mlabonne/NeuralDaredevil-7B** ๐Ÿ“„59.3945.2376.267.6148.52
mlabonne/Beagle14-7B ๐Ÿ“„59.444.3876.5369.4447.25
argilla/distilabeled-Marcoro14-7B-slerp ๐Ÿ“„58.9345.3876.4865.6848.18
mlabonne/NeuralMarcoro14-7B ๐Ÿ“„58.444.5976.1765.9446.9
openchat/openchat-3.5-0106 ๐Ÿ“„53.7144.1773.7252.5344.4
teknium/OpenHermes-2.5-Mistral-7B ๐Ÿ“„52.4242.7572.9952.9940.94

You can find the complete benchmark on YALL - Yet Another LLM Leaderboard.

Open LLM Leaderboard

Detailed results can be found here

MetricValue
Avg.74.12
AI2 Reasoning Challenge (25-Shot)69.88
HellaSwag (10-Shot)87.62
MMLU (5-Shot)65.12
TruthfulQA (0-shot)66.85
Winogrande (5-shot)82.08
GSM8k (5-shot)73.16

๐Ÿ’ป Usage

python
!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "mlabonne/NeuralDaredevil-7B"
messages = [{"role": "user", "content": "What is a large language model?"}]

tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])

Prompt Tempalte

This model uses the same prompt template as mistralai/Mistral-7B-Instruct-v0.2

See instruction-format for more details

<p align="center"> <a href="https://github.com/argilla-io/distilabel"> <img src="https://raw.githubusercontent.com/argilla-io/distilabel/main/docs/assets/distilabel-badge-light.png" alt="Built with Distilabel" width="200" height="32"/> </a> </p>