Views
No views yet

| Model | AGIEval | GPT4All | TruthfulQA | Bigbench | Average |
|---|---|---|---|---|---|
| 🐡 pandafish-2-7b-32k 📄 | 40.8 | 73.35 | 57.46 | 42.69 | 53.57 |
| Mistral-7B-Instruct-v0.2 📄 | 38.5 | 71.64 | 66.82 | 42.29 | 54.81 |
| dolphin-2.8-mistral-7b-v02 📄 | 38.99 | 72.22 | 51.96 | 40.41 | 50.9 |
1models:
2 - model: alpindale/Mistral-7B-v0.2-hf
3 # No parameters necessary for base model
4 - model: mistralai/Mistral-7B-Instruct-v0.2
5 parameters:
6 density: 0.53
7 weight: 0.4
8 - model: cognitivecomputations/dolphin-2.8-mistral-7b-v02
9 parameters:
10 density: 0.53
11 weight: 0.4
12merge_method: dare_ties
13base_model: alpindale/Mistral-7B-v0.2-hf
14parameters:
15 int8_mask: true
16dtype: bfloat161!pip install -qU transformers accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "ichigoberry/pandafish-2-7b-32k"
8messages = [{"role": "user", "content": "What is a large language model?"}]
9
10tokenizer = AutoTokenizer.from_pretrained(model)
11prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12pipeline = transformers.pipeline(
13 "text-generation",
14 model=model,
15 torch_dtype=torch.float16,
16 device_map="auto",
17)
18
19outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
20print(outputs[0]["generated_text"])