Update for Transformers GPTQ support
Browse files- README.md +70 -63
- config.json +32 -22
- baichuan-vicuna-7b-GPTQ-4bit-128g.no-act.order.safetensors → model.safetensors +2 -2
- quantize_config.json +7 -6
README.md
CHANGED
@@ -4,17 +4,20 @@ license: other
|
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
7 |
-
|
8 |
-
|
|
|
9 |
</div>
|
10 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
11 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
12 |
-
<p><a href="https://discord.gg/
|
13 |
</div>
|
14 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
15 |
-
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
16 |
</div>
|
17 |
</div>
|
|
|
|
|
18 |
<!-- header end -->
|
19 |
|
20 |
# Fire Balloon's Baichuan Vicuna 7B GPTQ
|
@@ -125,11 +128,12 @@ It was created with group_size 128 to increase inference accuracy, but without -
|
|
125 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
126 |
|
127 |
<!-- footer start -->
|
|
|
128 |
## Discord
|
129 |
|
130 |
For further support, and discussions on these models and AI in general, join us at:
|
131 |
|
132 |
-
[TheBloke AI's Discord server](https://discord.gg/
|
133 |
|
134 |
## Thanks, and how to contribute.
|
135 |
|
@@ -144,12 +148,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
144 |
* Patreon: https://patreon.com/TheBlokeAI
|
145 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
146 |
|
147 |
-
**Special thanks to**:
|
|
|
|
|
148 |
|
149 |
-
**Patreon special mentions**: Mano Prime, Fen Risland, Derek Yates, Preetika Verma, webtim, Sean Connelly, Alps Aficionado, Karl Bernard, Junyu Yang, Nathan LeClaire, Chris McCloskey, Lone Striker, Asp the Wyvern, Eugene Pentland, Imad Khwaja, trip7s trip, WelcomeToTheClub, John Detwiler, Artur Olbinski, Khalefa Al-Ahmad, Trenton Dambrowitz, Talal Aujan, Kevin Schuppel, Luke Pendergrass, Pyrater, Joseph William Delisle, terasurfer , vamX, Gabriel Puliatti, David Flickinger, Jonathan Leane, Iucharbius , Luke, Deep Realms, Cory Kujawski, ya boyyy, Illia Dulskyi, senxiiz, Johann-Peter Hartmann, John Villwock, K, Ghost , Spiking Neurons AB, Nikolai Manek, Rainer Wilmers, Pierre Kircher, biorpg, Space Cruiser, Ai Maven, subjectnull, Willem Michiel, Ajan Kanaga, Kalila, chris gileta, Oscar Rangel.
|
150 |
|
151 |
Thank you to all my generous patrons and donaters!
|
152 |
|
|
|
|
|
153 |
<!-- footer end -->
|
154 |
|
155 |
# Original model card: Fire Balloon's Baichuan Vicuna 7B
|
@@ -205,66 +212,66 @@ Please refer to [discussions 2](https://huggingface.co/fireballoon/baichuan-vicu
|
|
205 |
```
|
206 |
Q: How can I improve my time management skills?
|
207 |
|
208 |
-
A: There are many different ways to improve your time management skills. Here are a few strategies that you may find helpful:
|
209 |
-
1 Prioritize your tasks: Make a list of all the tasks you need to complete and prioritize them based on importance and urgency. This will help you focus on the most important tasks and avoid getting bogged down by less critical items.
|
210 |
-
2 Use a time management planner: A planner can help you organize your time by breaking down your tasks into smaller, more manageable chunks. This can help you stay focused and on track.
|
211 |
-
3 Set clear boundaries: Setting clear boundaries between work time and personal time can help you avoid distractions and stay focused on your tasks. This may involve designating certain times of day or days of the week for work and other times for rest and leisure.
|
212 |
-
4 Take care of your physical and mental health: Taking care of your physical and mental health can help you be more productive and focused. This may involve getting enough sleep, eating a healthy diet, and taking breaks to relax and recharge.
|
213 |
Remember that improving your time management skills takes practice and patience. Don't be discouraged if you make mistakes or experience setbacks. Keep trying and you will eventually develop better time management habits that will help you be more productive and successful.
|
214 |
```
|
215 |
```
|
216 |
Q: Can you help me write a formal email to a potential business partner proposing a joint venture?
|
217 |
|
218 |
-
A: Sure! Here is a sample formal email that you could use as a template to propose a joint venture with a
|
219 |
-
potential business partner:
|
220 |
|
221 |
-
Subject: Proposal for Joint Venture
|
222 |
|
223 |
-
Dear [Business Partner],
|
224 |
|
225 |
-
I hope this email finds you well. I am writing to propose a joint venture between our companies. We believe that a collaboration between our companies could bring significant benefits to both of us, and we would like to explore the possibility of forming a partnership.
|
226 |
|
227 |
-
Our companies have complementary strengths, and we believe that a joint venture could allow us to leverage those strengths to create new products, services, and opportunities. We believe that a joint venture could also provide increased revenue and growth for both of our companies.
|
228 |
|
229 |
-
In order to explore the possibility of a joint venture, we would like to schedule a call to discuss the details of our proposal. During the call, we would like to discuss the terms of the joint venture, including the specific roles and responsibilities of each partner, the financial terms of the agreement, and any other relevant details.
|
230 |
|
231 |
-
I would be happy to schedule a call with you at your convenience. In the meantime, please feel free to contact me with any questions or concerns you may have about our proposal.
|
232 |
|
233 |
-
Sincerely,
|
234 |
|
235 |
[Your Name]
|
236 |
```
|
237 |
```
|
238 |
Q: Implement a binary search algorithm to find a specific element in a sorted array.
|
239 |
|
240 |
-
A: Here is an implementation of the binary search algorithm to find a specific element in a sorted array:
|
241 |
-
public static int binarySearch(int[] arr, int target) {
|
242 |
-
int left = 0;
|
243 |
-
int right = arr.length - 1;
|
244 |
-
while (left <= right) {
|
245 |
-
int mid = left + (right - left) / 2;
|
246 |
-
if (arr[mid] < target) {
|
247 |
-
left = mid + 1;
|
248 |
-
} else if (arr[mid] > target) {
|
249 |
-
right = mid - 1;
|
250 |
-
} else {
|
251 |
-
return mid;
|
252 |
-
}
|
253 |
-
}
|
254 |
-
return -1; // target not found
|
255 |
-
}
|
256 |
-
|
257 |
-
Here is how the binary search algorithm works:
|
258 |
-
1 Initialize two pointers, left and right, to the beginning and end of the array, respectively.
|
259 |
-
2 While the left pointer is less than or equal to the right pointer, perform the following steps:
|
260 |
-
1 Calculate the middle index, mid, by dividing the left pointer and the right pointer.
|
261 |
-
2 Check if the middle element, arr[mid], is less than or equal to the target value.
|
262 |
-
3 If the middle element is less than the target value, update the left pointer to mid + 1.
|
263 |
-
4 If the middle element is greater than the target value, update the right pointer to mid - 1.
|
264 |
-
5 If the middle element is equal to the target value, the target element has been found, so return the middle index.
|
265 |
-
3 If the target element is not found, return -1.
|
266 |
-
|
267 |
-
This algorithm has a runtime complexity of O(log n) and a space complexity of O(1), making it an efficient way to find a specific element in a sorted array.
|
268 |
```
|
269 |
|
270 |
---
|
@@ -290,23 +297,23 @@ A: 目前,中国通用的是119火警电话。
|
|
290 |
```
|
291 |
Q: 晚上睡不着应该怎么办
|
292 |
|
293 |
-
A:失眠是一种症状,而不是一种疾病。治疗失眠的目标是解决其潜在原因。失眠的一些常见原因包括:
|
294 |
|
295 |
-
*睡眠不足
|
296 |
-
*压力
|
297 |
-
*心理健康问题 (焦虑,抑郁等)
|
298 |
-
*药物 (处方和非处方)
|
299 |
-
*环境因素 (噪音,光线,温度等)
|
300 |
|
301 |
-
以下是一些通常可以帮助您睡眠的方法:
|
302 |
|
303 |
-
*睡觉前4-6个小时避免刺激物 (咖啡因,尼古丁,酒精)
|
304 |
-
*睡前冥想以减少压力和焦虑
|
305 |
-
*睡觉前不要看亮屏幕 (电脑,手机,平板电脑等)
|
306 |
-
*睡觉前至少一个小时不要运动
|
307 |
-
*睡觉前不要吃食物
|
308 |
-
*在睡觉前放松并平静下来 (看看书,喝杯牛奶等)
|
309 |
|
310 |
-
如果这些技术不起作用,或者如果失眠是由药物或其他医学状况引起的,您应该联系您的医生。
|
311 |
|
312 |
```
|
|
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
7 |
+
<!-- 200823 -->
|
8 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
9 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
10 |
</div>
|
11 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
12 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
13 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
|
14 |
</div>
|
15 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
16 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
17 |
</div>
|
18 |
</div>
|
19 |
+
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
|
20 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
21 |
<!-- header end -->
|
22 |
|
23 |
# Fire Balloon's Baichuan Vicuna 7B GPTQ
|
|
|
128 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
129 |
|
130 |
<!-- footer start -->
|
131 |
+
<!-- 200823 -->
|
132 |
## Discord
|
133 |
|
134 |
For further support, and discussions on these models and AI in general, join us at:
|
135 |
|
136 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
137 |
|
138 |
## Thanks, and how to contribute.
|
139 |
|
|
|
148 |
* Patreon: https://patreon.com/TheBlokeAI
|
149 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
150 |
|
151 |
+
**Special thanks to**: Aemon Algiz.
|
152 |
+
|
153 |
+
**Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
|
154 |
|
|
|
155 |
|
156 |
Thank you to all my generous patrons and donaters!
|
157 |
|
158 |
+
And thank you again to a16z for their generous grant.
|
159 |
+
|
160 |
<!-- footer end -->
|
161 |
|
162 |
# Original model card: Fire Balloon's Baichuan Vicuna 7B
|
|
|
212 |
```
|
213 |
Q: How can I improve my time management skills?
|
214 |
|
215 |
+
A: There are many different ways to improve your time management skills. Here are a few strategies that you may find helpful:
|
216 |
+
1 Prioritize your tasks: Make a list of all the tasks you need to complete and prioritize them based on importance and urgency. This will help you focus on the most important tasks and avoid getting bogged down by less critical items.
|
217 |
+
2 Use a time management planner: A planner can help you organize your time by breaking down your tasks into smaller, more manageable chunks. This can help you stay focused and on track.
|
218 |
+
3 Set clear boundaries: Setting clear boundaries between work time and personal time can help you avoid distractions and stay focused on your tasks. This may involve designating certain times of day or days of the week for work and other times for rest and leisure.
|
219 |
+
4 Take care of your physical and mental health: Taking care of your physical and mental health can help you be more productive and focused. This may involve getting enough sleep, eating a healthy diet, and taking breaks to relax and recharge.
|
220 |
Remember that improving your time management skills takes practice and patience. Don't be discouraged if you make mistakes or experience setbacks. Keep trying and you will eventually develop better time management habits that will help you be more productive and successful.
|
221 |
```
|
222 |
```
|
223 |
Q: Can you help me write a formal email to a potential business partner proposing a joint venture?
|
224 |
|
225 |
+
A: Sure! Here is a sample formal email that you could use as a template to propose a joint venture with a
|
226 |
+
potential business partner:
|
227 |
|
228 |
+
Subject: Proposal for Joint Venture
|
229 |
|
230 |
+
Dear [Business Partner],
|
231 |
|
232 |
+
I hope this email finds you well. I am writing to propose a joint venture between our companies. We believe that a collaboration between our companies could bring significant benefits to both of us, and we would like to explore the possibility of forming a partnership.
|
233 |
|
234 |
+
Our companies have complementary strengths, and we believe that a joint venture could allow us to leverage those strengths to create new products, services, and opportunities. We believe that a joint venture could also provide increased revenue and growth for both of our companies.
|
235 |
|
236 |
+
In order to explore the possibility of a joint venture, we would like to schedule a call to discuss the details of our proposal. During the call, we would like to discuss the terms of the joint venture, including the specific roles and responsibilities of each partner, the financial terms of the agreement, and any other relevant details.
|
237 |
|
238 |
+
I would be happy to schedule a call with you at your convenience. In the meantime, please feel free to contact me with any questions or concerns you may have about our proposal.
|
239 |
|
240 |
+
Sincerely,
|
241 |
|
242 |
[Your Name]
|
243 |
```
|
244 |
```
|
245 |
Q: Implement a binary search algorithm to find a specific element in a sorted array.
|
246 |
|
247 |
+
A: Here is an implementation of the binary search algorithm to find a specific element in a sorted array:
|
248 |
+
public static int binarySearch(int[] arr, int target) {
|
249 |
+
int left = 0;
|
250 |
+
int right = arr.length - 1;
|
251 |
+
while (left <= right) {
|
252 |
+
int mid = left + (right - left) / 2;
|
253 |
+
if (arr[mid] < target) {
|
254 |
+
left = mid + 1;
|
255 |
+
} else if (arr[mid] > target) {
|
256 |
+
right = mid - 1;
|
257 |
+
} else {
|
258 |
+
return mid;
|
259 |
+
}
|
260 |
+
}
|
261 |
+
return -1; // target not found
|
262 |
+
}
|
263 |
+
|
264 |
+
Here is how the binary search algorithm works:
|
265 |
+
1 Initialize two pointers, left and right, to the beginning and end of the array, respectively.
|
266 |
+
2 While the left pointer is less than or equal to the right pointer, perform the following steps:
|
267 |
+
1 Calculate the middle index, mid, by dividing the left pointer and the right pointer.
|
268 |
+
2 Check if the middle element, arr[mid], is less than or equal to the target value.
|
269 |
+
3 If the middle element is less than the target value, update the left pointer to mid + 1.
|
270 |
+
4 If the middle element is greater than the target value, update the right pointer to mid - 1.
|
271 |
+
5 If the middle element is equal to the target value, the target element has been found, so return the middle index.
|
272 |
+
3 If the target element is not found, return -1.
|
273 |
+
|
274 |
+
This algorithm has a runtime complexity of O(log n) and a space complexity of O(1), making it an efficient way to find a specific element in a sorted array.
|
275 |
```
|
276 |
|
277 |
---
|
|
|
297 |
```
|
298 |
Q: 晚上睡不着应该怎么办
|
299 |
|
300 |
+
A:失眠是一种症状,而不是一种疾病。治疗失眠的目标是解决其潜在原因。失眠的一些常见原因包括:
|
301 |
|
302 |
+
*睡眠不足
|
303 |
+
*压力
|
304 |
+
*心理健康问题 (焦虑,抑郁等)
|
305 |
+
*药物 (处方和非处方)
|
306 |
+
*环境因素 (噪音,光线,温度等)
|
307 |
|
308 |
+
以下是一些通常可以帮助您睡眠的方法:
|
309 |
|
310 |
+
*睡觉前4-6个小时避免刺激物 (咖啡因,尼古丁,酒精)
|
311 |
+
*睡前冥想以减少压力和焦虑
|
312 |
+
*睡觉前不要看亮屏幕 (电脑,手机,平板电脑等)
|
313 |
+
*睡觉前至少一个小时不要运动
|
314 |
+
*睡觉前不要吃食物
|
315 |
+
*在睡觉前放松并平静下来 (看看书,喝杯牛奶等)
|
316 |
|
317 |
+
如果这些技术不起作用,或者如果失眠是由药物或其他医学状况引起的,您应该联系您的医生。
|
318 |
|
319 |
```
|
config.json
CHANGED
@@ -1,24 +1,34 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "models/baichuan-vicuna-7b",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"bos_token_id": 1,
|
7 |
+
"eos_token_id": 2,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 4096,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 11008,
|
12 |
+
"max_position_embeddings": 4096,
|
13 |
+
"max_sequence_length": 4096,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
17 |
+
"pad_token_id": 0,
|
18 |
+
"rms_norm_eps": 1e-06,
|
19 |
+
"tie_word_embeddings": false,
|
20 |
+
"torch_dtype": "float16",
|
21 |
+
"transformers_version": "4.29.2",
|
22 |
+
"use_cache": true,
|
23 |
+
"vocab_size": 64000,
|
24 |
+
"quantization_config": {
|
25 |
+
"bits": 4,
|
26 |
+
"group_size": 128,
|
27 |
+
"damp_percent": 0.01,
|
28 |
+
"desc_act": false,
|
29 |
+
"sym": true,
|
30 |
+
"true_sequential": true,
|
31 |
+
"model_file_base_name": "model",
|
32 |
+
"quant_method": "gptq"
|
33 |
+
}
|
34 |
}
|
baichuan-vicuna-7b-GPTQ-4bit-128g.no-act.order.safetensors → model.safetensors
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9da49a5138bdd36012f4a97caa29226b2f2486963fd95d0f0966d18308290d2
|
3 |
+
size 4520341408
|
quantize_config.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"bits": 4,
|
3 |
+
"group_size": 128,
|
4 |
+
"damp_percent": 0.01,
|
5 |
+
"desc_act": false,
|
6 |
+
"sym": true,
|
7 |
+
"true_sequential": true,
|
8 |
+
"model_file_base_name": "model"
|
9 |
}
|