RichardErkhov commited on
Commit
6f72c87
·
verified ·
1 Parent(s): 49b2acd

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +173 -0
README.md ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-pro-preview-instruct - GGUF
11
+ - Model creator: https://huggingface.co/upstage/
12
+ - Original model: https://huggingface.co/upstage/solar-pro-preview-instruct/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [solar-pro-preview-instruct.Q2_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q2_K.gguf) | Q2_K | 7.65GB |
18
+ | [solar-pro-preview-instruct.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.IQ3_XS.gguf) | IQ3_XS | 8.5GB |
19
+ | [solar-pro-preview-instruct.IQ3_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.IQ3_S.gguf) | IQ3_S | 8.97GB |
20
+ | [solar-pro-preview-instruct.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q3_K_S.gguf) | Q3_K_S | 8.92GB |
21
+ | [solar-pro-preview-instruct.IQ3_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.IQ3_M.gguf) | IQ3_M | 9.27GB |
22
+ | [solar-pro-preview-instruct.Q3_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q3_K.gguf) | Q3_K | 9.95GB |
23
+ | [solar-pro-preview-instruct.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q3_K_M.gguf) | Q3_K_M | 9.95GB |
24
+ | [solar-pro-preview-instruct.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q3_K_L.gguf) | Q3_K_L | 10.84GB |
25
+ | [solar-pro-preview-instruct.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.IQ4_XS.gguf) | IQ4_XS | 11.17GB |
26
+ | [solar-pro-preview-instruct.Q4_0.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q4_0.gguf) | Q4_0 | 11.64GB |
27
+ | [solar-pro-preview-instruct.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.IQ4_NL.gguf) | IQ4_NL | 11.78GB |
28
+ | [solar-pro-preview-instruct.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q4_K_S.gguf) | Q4_K_S | 11.73GB |
29
+ | [solar-pro-preview-instruct.Q4_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q4_K.gguf) | Q4_K | 12.4GB |
30
+ | [solar-pro-preview-instruct.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q4_K_M.gguf) | Q4_K_M | 12.4GB |
31
+ | [solar-pro-preview-instruct.Q4_1.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q4_1.gguf) | Q4_1 | 12.92GB |
32
+ | [solar-pro-preview-instruct.Q5_0.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q5_0.gguf) | Q5_0 | 14.2GB |
33
+ | [solar-pro-preview-instruct.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q5_K_S.gguf) | Q5_K_S | 14.2GB |
34
+ | [solar-pro-preview-instruct.Q5_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q5_K.gguf) | Q5_K | 14.59GB |
35
+ | [solar-pro-preview-instruct.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q5_K_M.gguf) | Q5_K_M | 11.79GB |
36
+ | [solar-pro-preview-instruct.Q5_1.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q5_1.gguf) | Q5_1 | 15.48GB |
37
+ | [solar-pro-preview-instruct.Q6_K.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q6_K.gguf) | Q6_K | 16.92GB |
38
+ | [solar-pro-preview-instruct.Q8_0.gguf](https://huggingface.co/RichardErkhov/upstage_-_solar-pro-preview-instruct-gguf/blob/main/solar-pro-preview-instruct.Q8_0.gguf) | Q8_0 | 21.91GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: mit
46
+ license_link: https://huggingface.co/upstage/solar-pro-preview-instruct/blob/main/LICENSE
47
+ language:
48
+ - en
49
+ pipeline_tag: text-generation
50
+ tags:
51
+ - nlp
52
+ library_name: transformers
53
+ ---
54
+
55
+ <p align="left">
56
+ <a href="https://go.upstage.ai/3Xk9J6X">
57
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/5fd90c758fe27b1a6b077abb/jwMkqV88Hj8sJu7NjTedm.png" width="100%"/>
58
+ </a>
59
+ <p>
60
+
61
+ # **Solar Pro Preview: The most intelligent LLM on a single GPU**
62
+
63
+ # **Summary**
64
+
65
+ We introduce **Solar Pro Preview**, an advanced large language model (LLM) with 22 billion parameters designed to [fit into a single GPU](https://www.upstage.ai/products/solar-pro-preview?utm_source=%08platform&utm_medium=huggingface&utm_campaign=solarpro-preview-launch). Solar Pro Preview shows superior performance compared to LLMs with less than 30 billion parameters and delivers performance comparable to models over three times its size, such as Llama 3.1 with 70 billion parameters.
66
+
67
+ Solar Pro Preview is developed using an enhanced version of our previous depth up-scaling method, which scales a Phi-3-medium model with 14 billion parameters to 22 billion parameters, intended to run on a GPU with 80GB of VRAM. Our carefully curated training strategy and dataset have significantly enhanced performance from Phi-3-medium, particularly on the MMLU-Pro and IFEval benchmarks, both respected for evaluating a model’s knowledge and instruction-following abilities.
68
+
69
+ Solar Pro Preview is a pre-release version of the official Solar Pro, with limitations on language coverage and a maximum context length of 4K. However, we believe Solar Pro Preview not only stands out as a highly efficient and capable model, but has the potential to be further extended to cover more languages and capabilities. The official version of Solar Pro will be released this November 2024 with expanded language support beyond English and longer context windows. To stay informed about the latest updates, please sign up for [our mailing list](https://www.upstage.ai/get-upstage-updates). If you have any feedback or questions about the model, please visit our [model discussion board](https://huggingface.co/upstage/solar-pro-preview-instruct/discussions) and connect with us directly.
70
+
71
+ # **Usage**
72
+
73
+ Solar Pro Preview is an instruction-tuned language model. This model is specifically designed to follow instructions and engage in conversational tasks.
74
+
75
+ ### Chat Template
76
+
77
+ As an instruction-tuned model, Solar Pro Preview uses the ChatML template for optimal performance in conversational and instruction-following tasks. This approach aligns with the model's training data and is likely to yield more accurate and relevant responses. For instance, a question formatted in the ChatML template looks like the following, where the model generates the answer after <|im_start|>assistant. Note that system prompts are not currently supported in Solar Pro Preview. This feature will be available in the official release.
78
+
79
+ ```
80
+ <|im_start|>user
81
+ Please, introduce yourself.<|im_end|>
82
+ <|im_start|>assistant
83
+ ```
84
+
85
+ ### Text Generation
86
+
87
+ Below is an example inference code that details loading the model, applying the chat template, and generating the model answer.
88
+
89
+ ```python
90
+ # Install requirements
91
+ # !pip install transformers==4.44.2 torch==2.3.1 flash_attn==2.5.8 accelerate==0.31.0
92
+
93
+ # Load model
94
+ import torch
95
+ from transformers import AutoModelForCausalLM, AutoTokenizer
96
+ tokenizer = AutoTokenizer.from_pretrained("upstage/solar-pro-preview-instruct")
97
+ model = AutoModelForCausalLM.from_pretrained(
98
+ "upstage/solar-pro-preview-instruct",
99
+ device_map="cuda",
100
+ torch_dtype="auto",
101
+ trust_remote_code=True,
102
+ )
103
+ # Apply chat template
104
+ messages = [
105
+ {"role": "user", "content": "Please, introduce yourself."},
106
+ ]
107
+ prompt = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
108
+ # Generate text
109
+ outputs = model.generate(prompt, max_new_tokens=512)
110
+ print(tokenizer.decode(outputs[0]))
111
+ ```
112
+
113
+ Solar Pro Preview is also available as an API in [Upstage Console](https://go.upstage.ai/3Xl0Hqv) and we provide other easy-to-use methods as well. If you'd like to explore these options, please visit our [blog page](https://www.upstage.ai/products/solar-pro-preview?utm_source=%08platform&utm_medium=huggingface&utm_campaign=solarpro-preview-launch).
114
+
115
+
116
+ # **Evaluation**
117
+
118
+ Solar Pro Preview is evaluated over a variety of benchmarks.
119
+
120
+ | | Solar-pro-preview | Phi-3-medium-4K-instruct | Phi-3.5-MoE-instruct | Gemma 2 27B IT | Llama-3.1-8B-instruct | Llama-3.1-70B-instruct |
121
+ | ------------- | :---------------: | :----------------------: | :------------------: | :----------------------------------------: | :-------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------: |
122
+ | *Release Date* | 2024.09.08 | 2024.05.02 | 2024.08.20 | 2024.06.25 | 2024.06.18 | 2024.06.16 |
123
+ | *Model size* | 22B | 14B | 41.9B (6.6B) | 27B | 8B | 70B |
124
+ | *License* | MIT | MIT | MIT | [gemma](https://ai.google.dev/gemma/terms) | [llama3.1](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B/blob/main/LICENSE) | [llama3.1](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B/blob/main/LICENSE) |
125
+ | **MMLU** | 79.14 | 78.02 | 78.66 | 76.13 | 68.25 | 82.09 |
126
+ | **MMLU Pro** | 52.11 | 47.51 | 46.99 | 45.68 | 37.88 | 53.01 |
127
+ | **IFEval** | 84.37 | 64.37 | 69.15 | 75.36 | 77.40 | 84.13 |
128
+ | **ARC-C** | 68.86 | 66.55 | 68.34 | 74.06 | 60.24 | 70.39 |
129
+ | **GPQA** | 36.38 | 35.78 | 34.38 | 36.38 | 35.26 | 41.06 |
130
+ | **HellaSwag** | 86.36 | 85.68 | 85.97 | 86.02 | 80.08 | 86.42 |
131
+ | **EQBench** | 77.91 | 76.78 | 77.22 | 80.32 | 65.80 | 82.52 |
132
+ | **BigBench Hard** | 67.31 | 63.09 | 62.58 | 64.88 | 51.06 | 69.54 |
133
+ | **MUSR** | 45.85 | 42.28 | 46.79 | 45.67 | 29.68 | 47.22 |
134
+ | **GSM8K** | 89.69 | 84.76 | 82.26 | 62.85 | 75.97 | 92.12 |
135
+ | **MBPP** | 61.59 | 60.27 | N/A (\*) | 63.08 | 52.20 | 65.51 |
136
+
137
+ (*) Since the model tends to generate a chat template, the score can't be accurately determined.
138
+
139
+ ### Evaluation Protocol
140
+
141
+ For easy reproduction of our evaluation results, we list the evaluation tools and settings used below. All evaluations are conducted with NVIDIA DGX H100.
142
+
143
+ | | Evaluation setting | Metric | Evaluation tool |
144
+ | ------------- | :-------------------- | :------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------- |
145
+ | MMLU | 5-shot | macro_avg / acc | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
146
+ | MMLU Pro | 5-shot | macro_avg / acc | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
147
+ | IFEval | 0-shot, chat_template | mean of prompt_level_strict_acc and instruction_level_strict_acc | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
148
+ | ARC-C | 25-shot | acc_norm | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
149
+ | GPQA | 0-shot | acc_norm | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
150
+ | HellaSwag | 10-shot | acc_norm | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
151
+ | EQBench | 0-shot, chat_template | eqbench score | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
152
+ | BigBench Hard | 3-shot | macro_avg / acc_norm | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
153
+ | MUSR | 0-shot | macro_avg / acc_norm | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
154
+ | GSM8K | 8-shot, CoT | acc, exact_match & strict_extract | [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/928e8bb6f50d1e93ef5d0bcaa81f8c5fd9a6f4d8) #928e8bb |
155
+ | MBPP | 0-shot | pass@1 | [bigcode-evaluation-harness](https://github.com/bigcode-project/bigcode-evaluation-harness/tree/0f3e95f0806e78a4f432056cdb1be93604a51d69) #0f3e95f |
156
+
157
+ The results may vary slightly for different batch sizes and experimental environment such as GPU type.
158
+
159
+ # **Contact us**
160
+
161
+ For any questions and suggestions regarding the model, please visit the [discussion board](https://huggingface.co/upstage/solar-pro-preview-instruct/discussions).
162
+
163
+ Learn more:
164
+
165
+ - [Chat with Solar Pro Preview](https://chat.upstage.ai)
166
+ - [Solar Pro Preview blog](https://www.upstage.ai/products/solar-pro-preview)
167
+ - [Solar Pro Preview developer documents](https://developers.upstage.ai/docs/apis/chat?utm_campaign=solarpro-preview-launch)
168
+
169
+ Also try out:
170
+
171
+ - [Document Parse](http://developers.upstage.ai/docs/apis/document-parse?utm_campaign=solarpro-preview-launch): An industry-leading model for converting complex document files to LLM-compatible HTML formats.
172
+ - [Solar DocVision Preview](http://developers.upstage.ai/docs/apis/document-qa?utm_campaign=solarpro-preview-launch): A vision LLM specialized on documents.
173
+