RichardErkhov commited on
Commit
c40afee
1 Parent(s): b3a9add

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +118 -0
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ FrankenMonarch-7B - GGUF
11
+ - Model creator: https://huggingface.co/mlabonne/
12
+ - Original model: https://huggingface.co/mlabonne/FrankenMonarch-7B/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [FrankenMonarch-7B.Q2_K.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q2_K.gguf) | Q2_K | 3.73GB |
18
+ | [FrankenMonarch-7B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.IQ3_XS.gguf) | IQ3_XS | 4.14GB |
19
+ | [FrankenMonarch-7B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.IQ3_S.gguf) | IQ3_S | 4.37GB |
20
+ | [FrankenMonarch-7B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q3_K_S.gguf) | Q3_K_S | 4.34GB |
21
+ | [FrankenMonarch-7B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.IQ3_M.gguf) | IQ3_M | 4.51GB |
22
+ | [FrankenMonarch-7B.Q3_K.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q3_K.gguf) | Q3_K | 4.84GB |
23
+ | [FrankenMonarch-7B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q3_K_M.gguf) | Q3_K_M | 4.84GB |
24
+ | [FrankenMonarch-7B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q3_K_L.gguf) | Q3_K_L | 5.26GB |
25
+ | [FrankenMonarch-7B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.IQ4_XS.gguf) | IQ4_XS | 5.43GB |
26
+ | [FrankenMonarch-7B.Q4_0.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q4_0.gguf) | Q4_0 | 5.66GB |
27
+ | [FrankenMonarch-7B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.IQ4_NL.gguf) | IQ4_NL | 5.72GB |
28
+ | [FrankenMonarch-7B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q4_K_S.gguf) | Q4_K_S | 5.7GB |
29
+ | [FrankenMonarch-7B.Q4_K.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q4_K.gguf) | Q4_K | 6.02GB |
30
+ | [FrankenMonarch-7B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q4_K_M.gguf) | Q4_K_M | 6.02GB |
31
+ | [FrankenMonarch-7B.Q4_1.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q4_1.gguf) | Q4_1 | 6.27GB |
32
+ | [FrankenMonarch-7B.Q5_0.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q5_0.gguf) | Q5_0 | 6.89GB |
33
+ | [FrankenMonarch-7B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q5_K_S.gguf) | Q5_K_S | 6.89GB |
34
+ | [FrankenMonarch-7B.Q5_K.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q5_K.gguf) | Q5_K | 7.08GB |
35
+ | [FrankenMonarch-7B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q5_K_M.gguf) | Q5_K_M | 7.08GB |
36
+ | [FrankenMonarch-7B.Q5_1.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q5_1.gguf) | Q5_1 | 7.51GB |
37
+ | [FrankenMonarch-7B.Q6_K.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q6_K.gguf) | Q6_K | 8.2GB |
38
+ | [FrankenMonarch-7B.Q8_0.gguf](https://huggingface.co/RichardErkhov/mlabonne_-_FrankenMonarch-7B-gguf/blob/main/FrankenMonarch-7B.Q8_0.gguf) | Q8_0 | 10.62GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: cc-by-nc-4.0
46
+ tags:
47
+ - merge
48
+ - mergekit
49
+ - lazymergekit
50
+ base_model:
51
+ - mlabonne/AlphaMonarch-7B
52
+ - mlabonne/AlphaMonarch-7B
53
+ - mlabonne/AlphaMonarch-7B
54
+ - mlabonne/AlphaMonarch-7B
55
+ - mlabonne/AlphaMonarch-7B
56
+ ---
57
+
58
+ # FrankenMonarch-7B
59
+
60
+ FrankenMonarch-7B is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
61
+ * [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
62
+ * [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
63
+ * [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
64
+ * [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
65
+ * [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
66
+
67
+ # Quantized versions :
68
+ - [**GGUF**](https://huggingface.co/seyf1elislam/FrankenMonarch-7B-GGUF)
69
+
70
+
71
+ ## 🧩 Configuration
72
+
73
+ ```yaml
74
+ dtype: float16
75
+ merge_method: passthrough
76
+ slices:
77
+ - sources:
78
+ - model: mlabonne/AlphaMonarch-7B
79
+ layer_range: [0,9]
80
+ - sources:
81
+ - model: mlabonne/AlphaMonarch-7B
82
+ layer_range: [5,14]
83
+ - sources:
84
+ - model: mlabonne/AlphaMonarch-7B
85
+ layer_range: [10,19]
86
+ - sources:
87
+ - model: mlabonne/AlphaMonarch-7B
88
+ layer_range: [15,24]
89
+ - sources:
90
+ - model: mlabonne/AlphaMonarch-7B
91
+ layer_range: [20,32]
92
+ ```
93
+
94
+ ## 💻 Usage
95
+
96
+ ```python
97
+ !pip install -qU transformers accelerate
98
+
99
+ from transformers import AutoTokenizer
100
+ import transformers
101
+ import torch
102
+
103
+ model = "mlabonne/FrankenMonarch-7B"
104
+ messages = [{"role": "user", "content": "What is a large language model?"}]
105
+
106
+ tokenizer = AutoTokenizer.from_pretrained(model)
107
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
108
+ pipeline = transformers.pipeline(
109
+ "text-generation",
110
+ model=model,
111
+ torch_dtype=torch.float16,
112
+ device_map="auto",
113
+ )
114
+
115
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
116
+ print(outputs[0]["generated_text"])
117
+ ```
118
+