Views
No views yet

1models:
2 - model: mistralai/Mistral-7B-v0.1
3 - model: mistralai/Mistral-7B-Instruct-v0.2
4 - model: CultriX/NeuralTrix-bf16
5 - model: OpenPipe/mistral-ft-optimized-1227
6merge_method: model_stock
7base_model: mistralai/Mistral-7B-v0.1
8dtype: bfloat16| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|---|---|---|---|---|---|
| pandafish-7b 📄 | 51.99 | 40 | 74.23 | 53.22 | 40.51 |
| mistralai/Mistral-7B-Instruct-v0.2 📄 | 54.81 | 38.5 | 71.64 | 66.82 | 42.29 |
1!pip install -qU transformers accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "ichigoberry/pandafish-7b"
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"])