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transformers
|
4 |
+
tags:
|
5 |
+
- mergekit
|
6 |
+
- merge
|
7 |
+
- quantized
|
8 |
+
- 4-bit
|
9 |
+
- AWQ
|
10 |
+
- transformers
|
11 |
+
- pytorch
|
12 |
+
- mistral
|
13 |
+
- text-generation
|
14 |
+
- conversational
|
15 |
+
- autotrain_compatible
|
16 |
+
- endpoints_compatible
|
17 |
+
- text-generation-inference
|
18 |
+
- chatml
|
19 |
+
base_model:
|
20 |
+
- macadeliccc/WestLake-7b-v2-laser-truthy-dpo
|
21 |
+
- mlabonne/AlphaMonarch-7B
|
22 |
+
model-index:
|
23 |
+
- name: MonarchLake-7B
|
24 |
+
results:
|
25 |
+
- task:
|
26 |
+
type: text-generation
|
27 |
+
name: Text Generation
|
28 |
+
dataset:
|
29 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
30 |
+
type: ai2_arc
|
31 |
+
config: ARC-Challenge
|
32 |
+
split: test
|
33 |
+
args:
|
34 |
+
num_few_shot: 25
|
35 |
+
metrics:
|
36 |
+
- type: acc_norm
|
37 |
+
value: 74.15
|
38 |
+
name: normalized accuracy
|
39 |
+
source:
|
40 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
41 |
+
name: Open LLM Leaderboard
|
42 |
+
- task:
|
43 |
+
type: text-generation
|
44 |
+
name: Text Generation
|
45 |
+
dataset:
|
46 |
+
name: HellaSwag (10-Shot)
|
47 |
+
type: hellaswag
|
48 |
+
split: validation
|
49 |
+
args:
|
50 |
+
num_few_shot: 10
|
51 |
+
metrics:
|
52 |
+
- type: acc_norm
|
53 |
+
value: 89.29
|
54 |
+
name: normalized accuracy
|
55 |
+
source:
|
56 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
57 |
+
name: Open LLM Leaderboard
|
58 |
+
- task:
|
59 |
+
type: text-generation
|
60 |
+
name: Text Generation
|
61 |
+
dataset:
|
62 |
+
name: MMLU (5-Shot)
|
63 |
+
type: cais/mmlu
|
64 |
+
config: all
|
65 |
+
split: test
|
66 |
+
args:
|
67 |
+
num_few_shot: 5
|
68 |
+
metrics:
|
69 |
+
- type: acc
|
70 |
+
value: 64.44
|
71 |
+
name: accuracy
|
72 |
+
source:
|
73 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
74 |
+
name: Open LLM Leaderboard
|
75 |
+
- task:
|
76 |
+
type: text-generation
|
77 |
+
name: Text Generation
|
78 |
+
dataset:
|
79 |
+
name: TruthfulQA (0-shot)
|
80 |
+
type: truthful_qa
|
81 |
+
config: multiple_choice
|
82 |
+
split: validation
|
83 |
+
args:
|
84 |
+
num_few_shot: 0
|
85 |
+
metrics:
|
86 |
+
- type: mc2
|
87 |
+
value: 74.97
|
88 |
+
source:
|
89 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
90 |
+
name: Open LLM Leaderboard
|
91 |
+
- task:
|
92 |
+
type: text-generation
|
93 |
+
name: Text Generation
|
94 |
+
dataset:
|
95 |
+
name: Winogrande (5-shot)
|
96 |
+
type: winogrande
|
97 |
+
config: winogrande_xl
|
98 |
+
split: validation
|
99 |
+
args:
|
100 |
+
num_few_shot: 5
|
101 |
+
metrics:
|
102 |
+
- type: acc
|
103 |
+
value: 85.48
|
104 |
+
name: accuracy
|
105 |
+
source:
|
106 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
107 |
+
name: Open LLM Leaderboard
|
108 |
+
- task:
|
109 |
+
type: text-generation
|
110 |
+
name: Text Generation
|
111 |
+
dataset:
|
112 |
+
name: GSM8k (5-shot)
|
113 |
+
type: gsm8k
|
114 |
+
config: main
|
115 |
+
split: test
|
116 |
+
args:
|
117 |
+
num_few_shot: 5
|
118 |
+
metrics:
|
119 |
+
- type: acc
|
120 |
+
value: 68.31
|
121 |
+
name: accuracy
|
122 |
+
source:
|
123 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=macadeliccc/MonarchLake-7B
|
124 |
+
name: Open LLM Leaderboard
|
125 |
+
language:
|
126 |
+
- en
|
127 |
+
model_creator: macadeliccc
|
128 |
+
model_name: MonarchLake-7B
|
129 |
+
model_type: mistral
|
130 |
+
pipeline_tag: text-generation
|
131 |
+
inference: false
|
132 |
+
prompt_template: '<|im_start|>system
|
133 |
+
|
134 |
+
{system_message}<|im_end|>
|
135 |
+
|
136 |
+
<|im_start|>user
|
137 |
+
|
138 |
+
{prompt}<|im_end|>
|
139 |
+
|
140 |
+
<|im_start|>assistant
|
141 |
+
|
142 |
+
'
|
143 |
+
quantized_by: Suparious
|
144 |
---
|
145 |
+
# macadeliccc/MonarchLake-7B AWQ
|
146 |
+
|
147 |
+
- Model creator: [macadeliccc](https://huggingface.co/macadeliccc)
|
148 |
+
- Original model: [MonarchLake-7B](https://huggingface.co/macadeliccc/MonarchLake-7B)
|
149 |
+
|
150 |
+
![image/webp](https://cdn-uploads.huggingface.co/production/uploads/6455cc8d679315e4ef16fbec/YQRHQR58ZbEywnqcysHX2.webp)
|
151 |
+
|
152 |
+
## Model Summary
|
153 |
+
|
154 |
+
This model equips AlphaMonarch-7B with a strong base of emotional intelligence.
|
155 |
+
|
156 |
+
This model was merged using the SLERP merge method.
|
157 |
+
|
158 |
+
The following models were included in the merge:
|
159 |
+
* [macadeliccc/WestLake-7b-v2-laser-truthy-dpo](https://huggingface.co/macadeliccc/WestLake-7b-v2-laser-truthy-dpo)
|
160 |
+
* [mlabonne/AlphaMonarch-7B](https://huggingface.co/mlabonne/AlphaMonarch-7B)
|
161 |
+
|
162 |
+
## How to use
|
163 |
+
|
164 |
+
### Install the necessary packages
|
165 |
+
|
166 |
+
```bash
|
167 |
+
pip install --upgrade autoawq autoawq-kernels
|
168 |
+
```
|
169 |
+
|
170 |
+
### Example Python code
|
171 |
+
|
172 |
+
```python
|
173 |
+
from awq import AutoAWQForCausalLM
|
174 |
+
from transformers import AutoTokenizer, TextStreamer
|
175 |
+
|
176 |
+
model_path = "solidrust/MonarchLake-7B-AWQ"
|
177 |
+
system_message = "You are Hercules, incarnated as a powerful AI."
|
178 |
+
|
179 |
+
# Load model
|
180 |
+
model = AutoAWQForCausalLM.from_quantized(model_path,
|
181 |
+
fuse_layers=True)
|
182 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path,
|
183 |
+
trust_remote_code=True)
|
184 |
+
streamer = TextStreamer(tokenizer,
|
185 |
+
skip_prompt=True,
|
186 |
+
skip_special_tokens=True)
|
187 |
+
|
188 |
+
# Convert prompt to tokens
|
189 |
+
prompt_template = """\
|
190 |
+
<|im_start|>system
|
191 |
+
{system_message}<|im_end|>
|
192 |
+
<|im_start|>user
|
193 |
+
{prompt}<|im_end|>
|
194 |
+
<|im_start|>assistant"""
|
195 |
+
|
196 |
+
prompt = "You're standing on the surface of the Earth. "\
|
197 |
+
"You walk one mile south, one mile west and one mile north. "\
|
198 |
+
"You end up exactly where you started. Where are you?"
|
199 |
+
|
200 |
+
tokens = tokenizer(prompt_template.format(system_message=system_message,prompt=prompt),
|
201 |
+
return_tensors='pt').input_ids.cuda()
|
202 |
+
|
203 |
+
# Generate output
|
204 |
+
generation_output = model.generate(tokens,
|
205 |
+
streamer=streamer,
|
206 |
+
max_new_tokens=512)
|
207 |
+
|
208 |
+
```
|
209 |
+
|
210 |
+
### About AWQ
|
211 |
+
|
212 |
+
AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
|
213 |
+
|
214 |
+
AWQ models are currently supported on Linux and Windows, with NVidia GPUs only. macOS users: please use GGUF models instead.
|
215 |
+
|
216 |
+
It is supported by:
|
217 |
+
|
218 |
+
- [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
|
219 |
+
- [vLLM](https://github.com/vllm-project/vllm) - version 0.2.2 or later for support for all model types.
|
220 |
+
- [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
|
221 |
+
- [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
|
222 |
+
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
|
223 |
+
|
224 |
+
## Prompt template: ChatML
|
225 |
+
|
226 |
+
```plaintext
|
227 |
+
<|im_start|>system
|
228 |
+
{system_message}<|im_end|>
|
229 |
+
<|im_start|>user
|
230 |
+
{prompt}<|im_end|>
|
231 |
+
<|im_start|>assistant
|
232 |
+
```
|