RichardErkhov commited on
Commit
a9b0bd0
1 Parent(s): 522c83b

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +236 -0
README.md ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ SOLAR-10.7B-Instruct-v1.0 - GGUF
11
+ - Model creator: https://huggingface.co/upstage/
12
+ - Original model: https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [SOLAR-10.7B-Instruct-v1.0.Q2_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q2_K.gguf) | Q2_K | 3.73GB |
18
+ | [SOLAR-10.7B-Instruct-v1.0.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.IQ3_XS.gguf) | IQ3_XS | 4.14GB |
19
+ | [SOLAR-10.7B-Instruct-v1.0.IQ3_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.IQ3_S.gguf) | IQ3_S | 4.37GB |
20
+ | [SOLAR-10.7B-Instruct-v1.0.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q3_K_S.gguf) | Q3_K_S | 4.34GB |
21
+ | [SOLAR-10.7B-Instruct-v1.0.IQ3_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.IQ3_M.gguf) | IQ3_M | 4.51GB |
22
+ | [SOLAR-10.7B-Instruct-v1.0.Q3_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q3_K.gguf) | Q3_K | 4.84GB |
23
+ | [SOLAR-10.7B-Instruct-v1.0.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q3_K_M.gguf) | Q3_K_M | 4.84GB |
24
+ | [SOLAR-10.7B-Instruct-v1.0.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q3_K_L.gguf) | Q3_K_L | 5.26GB |
25
+ | [SOLAR-10.7B-Instruct-v1.0.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.IQ4_XS.gguf) | IQ4_XS | 5.43GB |
26
+ | [SOLAR-10.7B-Instruct-v1.0.Q4_0.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q4_0.gguf) | Q4_0 | 5.66GB |
27
+ | [SOLAR-10.7B-Instruct-v1.0.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.IQ4_NL.gguf) | IQ4_NL | 5.72GB |
28
+ | [SOLAR-10.7B-Instruct-v1.0.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q4_K_S.gguf) | Q4_K_S | 5.7GB |
29
+ | [SOLAR-10.7B-Instruct-v1.0.Q4_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q4_K.gguf) | Q4_K | 6.02GB |
30
+ | [SOLAR-10.7B-Instruct-v1.0.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q4_K_M.gguf) | Q4_K_M | 6.02GB |
31
+ | [SOLAR-10.7B-Instruct-v1.0.Q4_1.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q4_1.gguf) | Q4_1 | 6.27GB |
32
+ | [SOLAR-10.7B-Instruct-v1.0.Q5_0.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q5_0.gguf) | Q5_0 | 6.89GB |
33
+ | [SOLAR-10.7B-Instruct-v1.0.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q5_K_S.gguf) | Q5_K_S | 6.89GB |
34
+ | [SOLAR-10.7B-Instruct-v1.0.Q5_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q5_K.gguf) | Q5_K | 7.08GB |
35
+ | [SOLAR-10.7B-Instruct-v1.0.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q5_K_M.gguf) | Q5_K_M | 7.08GB |
36
+ | [SOLAR-10.7B-Instruct-v1.0.Q5_1.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q5_1.gguf) | Q5_1 | 7.51GB |
37
+ | [SOLAR-10.7B-Instruct-v1.0.Q6_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_SOLAR-10.7B-Instruct-v1.0-gguf/blob/main/SOLAR-10.7B-Instruct-v1.0.Q6_K.gguf) | Q6_K | 8.2GB |
38
+
39
+
40
+
41
+
42
+ Original model description:
43
+ ---
44
+ datasets:
45
+ - c-s-ale/alpaca-gpt4-data
46
+ - Open-Orca/OpenOrca
47
+ - Intel/orca_dpo_pairs
48
+ - allenai/ultrafeedback_binarized_cleaned
49
+ language:
50
+ - en
51
+ license: cc-by-nc-4.0
52
+ base_model:
53
+ - upstage/SOLAR-10.7B-v1.0
54
+ ---
55
+
56
+ <p align="left">
57
+ <a href="https://go.upstage.ai/solar-obt-hf-modelcardv1-instruct">
58
+ <img src="https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0/resolve/main/solar-api-banner.png" width="100%"/>
59
+ </a>
60
+ <p>
61
+
62
+ # **Meet 10.7B Solar: Elevating Performance with Upstage Depth UP Scaling!**
63
+
64
+ **(This model is [upstage/SOLAR-10.7B-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-v1.0) fine-tuned version for single-turn conversation.)**
65
+
66
+
67
+ # **Introduction**
68
+ We introduce SOLAR-10.7B, an advanced large language model (LLM) with 10.7 billion parameters, demonstrating superior performance in various natural language processing (NLP) tasks. It's compact, yet remarkably powerful, and demonstrates unparalleled state-of-the-art performance in models with parameters under 30B.
69
+
70
+ We present a methodology for scaling LLMs called depth up-scaling (DUS) , which encompasses architectural modifications and continued pretraining. In other words, we integrated Mistral 7B weights into the upscaled layers, and finally, continued pre-training for the entire model.
71
+
72
+
73
+ SOLAR-10.7B has remarkable performance. It outperforms models with up to 30B parameters, even surpassing the recent Mixtral 8X7B model. For detailed information, please refer to the experimental table.
74
+ Solar 10.7B is an ideal choice for fine-tuning. SOLAR-10.7B offers robustness and adaptability for your fine-tuning needs. Our simple instruction fine-tuning using the SOLAR-10.7B pre-trained model yields significant performance improvements.
75
+
76
+ For full details of this model please read our [paper](https://arxiv.org/abs/2312.15166).
77
+
78
+
79
+ # **Instruction Fine-Tuning Strategy**
80
+
81
+ We utilize state-of-the-art instruction fine-tuning methods including supervised fine-tuning (SFT) and direct preference optimization (DPO) [1].
82
+
83
+ We used a mixture of the following datasets
84
+ - c-s-ale/alpaca-gpt4-data (SFT)
85
+ - Open-Orca/OpenOrca (SFT)
86
+ - in-house generated data utilizing Metamath [2] (SFT, DPO)
87
+ - Intel/orca_dpo_pairs (DPO)
88
+ - allenai/ultrafeedback_binarized_cleaned (DPO)
89
+
90
+ where we were careful of data contamination by not using GSM8K samples when generating data and filtering tasks when applicable via the following list.
91
+ ```python
92
+ filtering_task_list = [
93
+ 'task228_arc_answer_generation_easy',
94
+ 'ai2_arc/ARC-Challenge:1.0.0',
95
+ 'ai2_arc/ARC-Easy:1.0.0',
96
+ 'task229_arc_answer_generation_hard',
97
+ 'hellaswag:1.1.0',
98
+ 'task1389_hellaswag_completion',
99
+ 'cot_gsm8k',
100
+ 'cot_gsm8k_ii',
101
+ 'drop:2.0.0',
102
+ 'winogrande:1.1.0'
103
+ ]
104
+ ```
105
+
106
+ Using the datasets mentioned above, we applied SFT and iterative DPO training, a proprietary alignment strategy, to maximize the performance of our resulting model.
107
+
108
+ [1] Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C.D. and Finn, C., 2023. Direct preference optimization: Your language model is secretly a reward model. NeurIPS.
109
+
110
+ [2] Yu, L., Jiang, W., Shi, H., Yu, J., Liu, Z., Zhang, Y., Kwok, J.T., Li, Z., Weller, A. and Liu, W., 2023. Metamath: Bootstrap your own mathematical questions for large language models. arXiv preprint arXiv:2309.12284.
111
+
112
+ # **Data Contamination Test Results**
113
+
114
+ Recently, there have been contamination issues in some models on the LLM leaderboard.
115
+ We note that we made every effort to exclude any benchmark-related datasets from training.
116
+ We also ensured the integrity of our model by conducting a data contamination test [3] that is also used by the HuggingFace team [4, 5].
117
+
118
+ Our results, with `result < 0.1, %:` being well below 0.9, indicate that our model is free from contamination.
119
+
120
+ *The data contamination test results of HellaSwag and Winograde will be added once [3] supports them.*
121
+
122
+ | Model | ARC | MMLU | TruthfulQA | GSM8K |
123
+ |------------------------------|-------|-------|-------|-------|
124
+ | **SOLAR-10.7B-Instruct-v1.0**| result < 0.1, %: 0.06 |result < 0.1, %: 0.15 | result < 0.1, %: 0.28 | result < 0.1, %: 0.70 |
125
+
126
+ [3] https://github.com/swj0419/detect-pretrain-code-contamination
127
+
128
+ [4] https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474#657f2245365456e362412a06
129
+
130
+ [5] https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/265#657b6debf81f6b44b8966230
131
+
132
+ # **Evaluation Results**
133
+
134
+ | Model | H6 | Model Size |
135
+ |----------------------------------------|-------|------------|
136
+ | **SOLAR-10.7B-Instruct-v1.0** | **74.20** | **~ 11B** |
137
+ | mistralai/Mixtral-8x7B-Instruct-v0.1 | 72.62 | ~ 46.7B |
138
+ | 01-ai/Yi-34B-200K | 70.81 | ~ 34B |
139
+ | 01-ai/Yi-34B | 69.42 | ~ 34B |
140
+ | mistralai/Mixtral-8x7B-v0.1 | 68.42 | ~ 46.7B |
141
+ | meta-llama/Llama-2-70b-hf | 67.87 | ~ 70B |
142
+ | tiiuae/falcon-180B | 67.85 | ~ 180B |
143
+ | **SOLAR-10.7B-v1.0** | **66.04** | **~11B** |
144
+ | mistralai/Mistral-7B-Instruct-v0.2 | 65.71 | ~ 7B |
145
+ | Qwen/Qwen-14B | 65.86 | ~ 14B |
146
+ | 01-ai/Yi-34B-Chat | 65.32 | ~34B |
147
+ | meta-llama/Llama-2-70b-chat-hf | 62.4 | ~ 70B |
148
+ | mistralai/Mistral-7B-v0.1 | 60.97 | ~ 7B |
149
+ | mistralai/Mistral-7B-Instruct-v0.1 | 54.96 | ~ 7B |
150
+
151
+ # **Usage Instructions**
152
+
153
+ This model has been fine-tuned primarily for single-turn conversation, making it less suitable for multi-turn conversations such as chat.
154
+
155
+ ### **Version**
156
+
157
+ Make sure you have the correct version of the transformers library installed:
158
+
159
+ ```sh
160
+ pip install transformers==4.35.2
161
+ ```
162
+
163
+ ### **Loading the Model**
164
+
165
+ Use the following Python code to load the model:
166
+
167
+ ```python
168
+ import torch
169
+ from transformers import AutoModelForCausalLM, AutoTokenizer
170
+
171
+ tokenizer = AutoTokenizer.from_pretrained("Upstage/SOLAR-10.7B-Instruct-v1.0")
172
+ model = AutoModelForCausalLM.from_pretrained(
173
+ "Upstage/SOLAR-10.7B-Instruct-v1.0",
174
+ device_map="auto",
175
+ torch_dtype=torch.float16,
176
+ )
177
+ ```
178
+
179
+ ### **Conducting Single-Turn Conversation**
180
+
181
+ ```python
182
+ conversation = [ {'role': 'user', 'content': 'Hello?'} ]
183
+
184
+ prompt = tokenizer.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
185
+
186
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
187
+ outputs = model.generate(**inputs, use_cache=True, max_length=4096)
188
+ output_text = tokenizer.decode(outputs[0])
189
+ print(output_text)
190
+ ```
191
+
192
+ Below is an example of the output.
193
+ ```
194
+ <s> ### User:
195
+ Hello?
196
+
197
+ ### Assistant:
198
+ Hello, how can I assist you today? Please feel free to ask any questions or request help with a specific task.</s>
199
+ ```
200
+
201
+ ### **License**
202
+ - [upstage/SOLAR-10.7B-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-v1.0): apache-2.0
203
+ - [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0): cc-by-nc-4.0
204
+ - Since some non-commercial datasets such as Alpaca are used for fine-tuning, we release this model as cc-by-nc-4.0.
205
+
206
+ ### **How to Cite**
207
+
208
+ Please cite the following papers using the below format when using this model.
209
+
210
+ ```bibtex
211
+ @misc{kim2023solar,
212
+ title={SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scaling},
213
+ author={Dahyun Kim and Chanjun Park and Sanghoon Kim and Wonsung Lee and Wonho Song and Yunsu Kim and Hyeonwoo Kim and Yungi Kim and Hyeonju Lee and Jihoo Kim and Changbae Ahn and Seonghoon Yang and Sukyung Lee and Hyunbyung Park and Gyoungjin Gim and Mikyoung Cha and Hwalsuk Lee and Sunghun Kim},
214
+ year={2023},
215
+ eprint={2312.15166},
216
+ archivePrefix={arXiv},
217
+ primaryClass={cs.CL}
218
+ }
219
+ ```
220
+ ```bibtext
221
+ @misc{kim2024sdpo,
222
+ title={sDPO: Don't Use Your Data All at Once},
223
+ author={Dahyun Kim and Yungi Kim and Wonho Song and Hyeonwoo Kim and Yunsu Kim and Sanghoon Kim and Chanjun Park},
224
+ year={2024},
225
+ eprint={2403.19270},
226
+ archivePrefix={arXiv},
227
+ primaryClass={cs.CL}
228
+ }
229
+ ```
230
+
231
+ ### **The Upstage AI Team** ###
232
+ Upstage is creating the best LLM and DocAI. Please find more information at https://upstage.ai
233
+
234
+ ### **Contact Us** ###
235
+ Any questions and suggestions, please use the discussion tab. If you want to contact us directly, drop an email to [contact@upstage.ai](mailto:contact@upstage.ai)
236
+