Xin Liu
commited on
Commit
•
3829866
1
Parent(s):
fc197de
Update
Browse filesSigned-off-by: Xin Liu <[email protected]>
README.md
CHANGED
@@ -1,10 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Baichuan2-7B-Chat-GGUF
|
2 |
|
3 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
以下内容为人类用户与与一位智能助手的对话。
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: baichuan-inc/Baichuan2-7B-Chat
|
3 |
+
inference: false
|
4 |
+
library_name: transformers
|
5 |
+
license_name: baichuan2-community-license
|
6 |
+
license_link: https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat/blob/main/Community%20License%20for%20Baichuan2%20Model.pdf
|
7 |
+
model_creator: Baichuan Intelligent Technology
|
8 |
+
model_name: Baichuan2 7B Chat
|
9 |
+
model_type: baichuan
|
10 |
+
pipeline_tag: text-generation
|
11 |
+
quantized_by: Second State Inc.
|
12 |
+
language:
|
13 |
+
- en
|
14 |
+
- zh
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- header start -->
|
18 |
+
<!-- 200823 -->
|
19 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
20 |
+
<img src="https://github.com/second-state/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
21 |
+
</div>
|
22 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
23 |
+
<!-- header end -->
|
24 |
+
|
25 |
# Baichuan2-7B-Chat-GGUF
|
26 |
|
27 |
+
## Original Model
|
28 |
+
|
29 |
+
[baichuan-inc/Baichuan2-7B-Chat](https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat)
|
30 |
+
|
31 |
+
## Run with LlamaEdge
|
32 |
+
|
33 |
+
- LlamaEdge version: [v0.2.4](https://github.com/second-state/LlamaEdge/releases/tag/0.2.4)
|
34 |
+
|
35 |
+
- Prompt template
|
36 |
+
|
37 |
+
- Prompt type: `baichuan-2`
|
38 |
+
|
39 |
+
- Prompt string
|
40 |
+
|
41 |
+
```text
|
42 |
+
以下内容为人类用户与与一位智能助手的对话。
|
43 |
+
|
44 |
+
用户:你好!
|
45 |
+
助手:
|
46 |
+
```
|
47 |
+
|
48 |
+
- Run as LlamaEdge service
|
49 |
+
|
50 |
+
```bash
|
51 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Baichuan2-7B-Chat-Q5_K_M.gguf llama-api-server.wasm -p baichuan-2 -r '用户:'
|
52 |
+
```
|
53 |
+
|
54 |
+
- Run as LlamaEdge command app
|
55 |
+
|
56 |
+
```bash
|
57 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Baichuan2-7B-Chat-Q5_K_M.gguf llama-chat.wasm -p baichuan-2 -r '用户:'
|
58 |
+
```
|
59 |
|
60 |
+
## Quantized GGUF Models
|
|
|
61 |
|
62 |
+
| Name | Quant method | Bits | Size | Use case |
|
63 |
+
| ---- | ---- | ---- | ---- | ----- |
|
64 |
+
| [Baichuan2-7B-Chat-Q2_K.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q2_K.gguf) | Q2_K | 2 | 3.27 GB| smallest, significant quality loss - not recommended for most purposes |
|
65 |
+
| [Baichuan2-7B-Chat-Q3_K_L.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q3_K_L.gguf) | Q3_K_L | 3 | 4.08 GB| small, substantial quality loss |
|
66 |
+
| [Baichuan2-7B-Chat-Q3_K_M.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q3_K_M.gguf) | Q3_K_M | 3 | 3.78 GB| very small, high quality loss |
|
67 |
+
| [Baichuan2-7B-Chat-Q3_K_S.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q3_K_S.gguf) | Q3_K_S | 3 | 3.43 GB| very small, high quality loss |
|
68 |
+
| [Baichuan2-7B-Chat-Q4_0.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q4_0.gguf) | Q4_0 | 4 | 4.36 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
69 |
+
| [Baichuan2-7B-Chat-Q4_K_M.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q4_K_M.gguf) | Q4_K_M | 4 | 4.61 GB| medium, balanced quality - recommended |
|
70 |
+
| [Baichuan2-7B-Chat-Q4_K_S.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q4_K_S.gguf) | Q4_K_S | 4 | 4.39 GB| small, greater quality loss |
|
71 |
+
| [Baichuan2-7B-Chat-Q5_0.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q5_0.gguf) | Q5_0 | 5 | 5.23 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
72 |
+
| [Baichuan2-7B-Chat-Q5_K_M.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q5_K_M.gguf) | Q5_K_M | 5 | 5.36 GB| large, very low quality loss - recommended |
|
73 |
+
| [Baichuan2-7B-Chat-Q5_K_S.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q5_K_S.gguf) | Q5_K_S | 5 | 5.23 GB| large, low quality loss - recommended |
|
74 |
+
| [Baichuan2-7B-Chat-Q6_K.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q6_K.gguf) | Q6_K | 6 | 6.16 GB| very large, extremely low quality loss |
|
75 |
+
| [Baichuan2-7B-Chat-Q8_0.gguf](https://huggingface.co/second-state/Baichuan2-7B-Chat-GGUF/blob/main/Baichuan2-7B-Chat-Q8_0.gguf) | Q8_0 | 8 | 7.98 GB| very large, extremely low quality loss - not recommended |
|