RichardErkhov commited on
Commit
d821f8b
1 Parent(s): 998d6a8

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +104 -0
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ pandafish-7b - GGUF
11
+ - Model creator: https://huggingface.co/ichigoberry/
12
+ - Original model: https://huggingface.co/ichigoberry/pandafish-7b/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [pandafish-7b.Q2_K.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q2_K.gguf) | Q2_K | 2.53GB |
18
+ | [pandafish-7b.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.IQ3_XS.gguf) | IQ3_XS | 2.81GB |
19
+ | [pandafish-7b.IQ3_S.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.IQ3_S.gguf) | IQ3_S | 2.96GB |
20
+ | [pandafish-7b.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q3_K_S.gguf) | Q3_K_S | 2.95GB |
21
+ | [pandafish-7b.IQ3_M.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.IQ3_M.gguf) | IQ3_M | 3.06GB |
22
+ | [pandafish-7b.Q3_K.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q3_K.gguf) | Q3_K | 3.28GB |
23
+ | [pandafish-7b.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q3_K_M.gguf) | Q3_K_M | 3.28GB |
24
+ | [pandafish-7b.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q3_K_L.gguf) | Q3_K_L | 3.56GB |
25
+ | [pandafish-7b.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.IQ4_XS.gguf) | IQ4_XS | 3.67GB |
26
+ | [pandafish-7b.Q4_0.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q4_0.gguf) | Q4_0 | 3.83GB |
27
+ | [pandafish-7b.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.IQ4_NL.gguf) | IQ4_NL | 3.87GB |
28
+ | [pandafish-7b.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q4_K_S.gguf) | Q4_K_S | 3.86GB |
29
+ | [pandafish-7b.Q4_K.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q4_K.gguf) | Q4_K | 4.07GB |
30
+ | [pandafish-7b.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q4_K_M.gguf) | Q4_K_M | 4.07GB |
31
+ | [pandafish-7b.Q4_1.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q4_1.gguf) | Q4_1 | 4.24GB |
32
+ | [pandafish-7b.Q5_0.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q5_0.gguf) | Q5_0 | 4.65GB |
33
+ | [pandafish-7b.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q5_K_S.gguf) | Q5_K_S | 4.65GB |
34
+ | [pandafish-7b.Q5_K.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q5_K.gguf) | Q5_K | 4.78GB |
35
+ | [pandafish-7b.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q5_K_M.gguf) | Q5_K_M | 4.78GB |
36
+ | [pandafish-7b.Q5_1.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q5_1.gguf) | Q5_1 | 5.07GB |
37
+ | [pandafish-7b.Q6_K.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q6_K.gguf) | Q6_K | 5.53GB |
38
+ | [pandafish-7b.Q8_0.gguf](https://huggingface.co/RichardErkhov/ichigoberry_-_pandafish-7b-gguf/blob/main/pandafish-7b.Q8_0.gguf) | Q8_0 | 7.17GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ tags:
46
+ - merge
47
+ - mergekit
48
+ - lazymergekit
49
+ license: apache-2.0
50
+ ---
51
+
52
+
53
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6389d3c61e8755d777902366/-_AiKUEsY3x-N7oY52fdE.jpeg" style="border-radius:2%; width: 66%">
54
+
55
+ # pandafish-7b
56
+
57
+ pandafish-7b is an instruct model based on a [Model Stock](https://arxiv.org/abs/2403.19522) merge of the following models (via [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing)):
58
+
59
+ ## 🧩 Configuration
60
+
61
+ ```yaml
62
+ models:
63
+ - model: mistralai/Mistral-7B-v0.1
64
+ - model: mistralai/Mistral-7B-Instruct-v0.2
65
+ - model: CultriX/NeuralTrix-bf16
66
+ - model: OpenPipe/mistral-ft-optimized-1227
67
+ merge_method: model_stock
68
+ base_model: mistralai/Mistral-7B-v0.1
69
+ dtype: bfloat16
70
+ ```
71
+
72
+ ## 🏆 Evals
73
+
74
+ | Model |Average|AGIEval|GPT4All|TruthfulQA|Bigbench|
75
+ |---------------------------------------------------------------|------:|------:|---------:|-------:|------:|
76
+ |[pandafish-7b](https://huggingface.co/ichigoberry/pandafish-7b) [📄](https://gist.github.com/tosh/dda6a21e568d17a410ca618265f64a28)| 51.99 | **40** | **74.23** | 53.22 | 40.51 |
77
+ |[mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) [���](https://gist.github.com/mlabonne/05d358e17dffdf9eee7c2322380c9da6) | 54.81 | 38.5 | 71.64 | **66.82** | **42.29** |
78
+
79
+
80
+ ## 💻 Usage
81
+
82
+ ```python
83
+ !pip install -qU transformers accelerate
84
+
85
+ from transformers import AutoTokenizer
86
+ import transformers
87
+ import torch
88
+
89
+ model = "ichigoberry/pandafish-7b"
90
+ messages = [{"role": "user", "content": "What is a large language model?"}]
91
+
92
+ tokenizer = AutoTokenizer.from_pretrained(model)
93
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
94
+ pipeline = transformers.pipeline(
95
+ "text-generation",
96
+ model=model,
97
+ torch_dtype=torch.float16,
98
+ device_map="auto",
99
+ )
100
+
101
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
102
+ print(outputs[0]["generated_text"])
103
+ ```
104
+