Suparious commited on
Commit
6ab06e4
·
verified ·
1 Parent(s): dbf903b

add model card

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