lbourdois commited on
Commit
5d8d97d
·
verified ·
1 Parent(s): 1c6effc

Improve language tag

Browse files

Hi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.

Files changed (1) hide show
  1. README.md +132 -118
README.md CHANGED
@@ -1,118 +1,132 @@
1
- ---
2
- base_model: Qwen/Qwen2.5-3B
3
- pipeline_tag: text-generation
4
- quantized_by: bartowski
5
- ---
6
-
7
- ## Llamacpp imatrix Quantizations of Qwen2.5-3B
8
-
9
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3751">b3751</a> for quantization.
10
-
11
- Original model: https://huggingface.co/Qwen/Qwen2.5-3B
12
-
13
- All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
14
-
15
- Run them in [LM Studio](https://lmstudio.ai/)
16
-
17
- ## Prompt format
18
-
19
- ```
20
- <|im_start|>system
21
- {system_prompt}<|im_end|>
22
- <|im_start|>user
23
- {prompt}<|im_end|>
24
- <|im_start|>assistant
25
- ```
26
-
27
- ## Download a file (not the whole branch) from below:
28
-
29
- | Filename | Quant type | File Size | Split | Description |
30
- | -------- | ---------- | --------- | ----- | ----------- |
31
- | [Qwen2.5-3B-f32.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-f32.gguf) | f32 | 12.35GB | false | Full F32 weights. |
32
- | [Qwen2.5-3B-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q8_0.gguf) | Q8_0 | 3.29GB | false | Extremely high quality, generally unneeded but max available quant. |
33
- | [Qwen2.5-3B-Q6_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q6_K_L.gguf) | Q6_K_L | 2.61GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
34
- | [Qwen2.5-3B-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q6_K.gguf) | Q6_K | 2.54GB | false | Very high quality, near perfect, *recommended*. |
35
- | [Qwen2.5-3B-Q5_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_L.gguf) | Q5_K_L | 2.30GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
36
- | [Qwen2.5-3B-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_M.gguf) | Q5_K_M | 2.22GB | false | High quality, *recommended*. |
37
- | [Qwen2.5-3B-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_S.gguf) | Q5_K_S | 2.17GB | false | High quality, *recommended*. |
38
- | [Qwen2.5-3B-Q4_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_L.gguf) | Q4_K_L | 2.01GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
39
- | [Qwen2.5-3B-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_M.gguf) | Q4_K_M | 1.93GB | false | Good quality, default size for must use cases, *recommended*. |
40
- | [Qwen2.5-3B-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_S.gguf) | Q4_K_S | 1.83GB | false | Slightly lower quality with more space savings, *recommended*. |
41
- | [Qwen2.5-3B-Q4_0.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0.gguf) | Q4_0 | 1.83GB | false | Legacy format, generally not worth using over similarly sized formats |
42
- | [Qwen2.5-3B-Q4_0_8_8.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_8_8.gguf) | Q4_0_8_8 | 1.82GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). |
43
- | [Qwen2.5-3B-Q4_0_4_8.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_4_8.gguf) | Q4_0_4_8 | 1.82GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). |
44
- | [Qwen2.5-3B-Q4_0_4_4.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_4_4.gguf) | Q4_0_4_4 | 1.82GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. |
45
- | [Qwen2.5-3B-Q3_K_XL.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q3_K_XL.gguf) | Q3_K_XL | 1.78GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
46
- | [Qwen2.5-3B-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-IQ4_XS.gguf) | IQ4_XS | 1.74GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
47
- | [Qwen2.5-3B-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q3_K_L.gguf) | Q3_K_L | 1.71GB | false | Lower quality but usable, good for low RAM availability. |
48
- | [Qwen2.5-3B-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-IQ3_M.gguf) | IQ3_M | 1.49GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
49
-
50
- ## Embed/output weights
51
-
52
- Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
53
-
54
- Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
55
-
56
- Thanks!
57
-
58
- ## Downloading using huggingface-cli
59
-
60
- First, make sure you have hugginface-cli installed:
61
-
62
- ```
63
- pip install -U "huggingface_hub[cli]"
64
- ```
65
-
66
- Then, you can target the specific file you want:
67
-
68
- ```
69
- huggingface-cli download bartowski/Qwen2.5-3B-GGUF --include "Qwen2.5-3B-Q4_K_M.gguf" --local-dir ./
70
- ```
71
-
72
- If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
73
-
74
- ```
75
- huggingface-cli download bartowski/Qwen2.5-3B-GGUF --include "Qwen2.5-3B-Q8_0/*" --local-dir ./
76
- ```
77
-
78
- You can either specify a new local-dir (Qwen2.5-3B-Q8_0) or download them all in place (./)
79
-
80
- ## Q4_0_X_X
81
-
82
- These are *NOT* for Metal (Apple) offloading, only ARM chips.
83
-
84
- If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
85
-
86
- To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
87
-
88
- ## Which file should I choose?
89
-
90
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
91
-
92
- The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
93
-
94
- If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
95
-
96
- If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
97
-
98
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
99
-
100
- If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
101
-
102
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
103
-
104
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
105
-
106
- But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
107
-
108
- These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
109
-
110
- The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
111
-
112
- ## Credits
113
-
114
- Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
115
-
116
- Thank you ZeroWw for the inspiration to experiment with embed/output
117
-
118
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-3B
3
+ pipeline_tag: text-generation
4
+ quantized_by: bartowski
5
+ language:
6
+ - zho
7
+ - eng
8
+ - fra
9
+ - spa
10
+ - por
11
+ - deu
12
+ - ita
13
+ - rus
14
+ - jpn
15
+ - kor
16
+ - vie
17
+ - tha
18
+ - ara
19
+ ---
20
+
21
+ ## Llamacpp imatrix Quantizations of Qwen2.5-3B
22
+
23
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3751">b3751</a> for quantization.
24
+
25
+ Original model: https://huggingface.co/Qwen/Qwen2.5-3B
26
+
27
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
28
+
29
+ Run them in [LM Studio](https://lmstudio.ai/)
30
+
31
+ ## Prompt format
32
+
33
+ ```
34
+ <|im_start|>system
35
+ {system_prompt}<|im_end|>
36
+ <|im_start|>user
37
+ {prompt}<|im_end|>
38
+ <|im_start|>assistant
39
+ ```
40
+
41
+ ## Download a file (not the whole branch) from below:
42
+
43
+ | Filename | Quant type | File Size | Split | Description |
44
+ | -------- | ---------- | --------- | ----- | ----------- |
45
+ | [Qwen2.5-3B-f32.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-f32.gguf) | f32 | 12.35GB | false | Full F32 weights. |
46
+ | [Qwen2.5-3B-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q8_0.gguf) | Q8_0 | 3.29GB | false | Extremely high quality, generally unneeded but max available quant. |
47
+ | [Qwen2.5-3B-Q6_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q6_K_L.gguf) | Q6_K_L | 2.61GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
48
+ | [Qwen2.5-3B-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q6_K.gguf) | Q6_K | 2.54GB | false | Very high quality, near perfect, *recommended*. |
49
+ | [Qwen2.5-3B-Q5_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_L.gguf) | Q5_K_L | 2.30GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
50
+ | [Qwen2.5-3B-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_M.gguf) | Q5_K_M | 2.22GB | false | High quality, *recommended*. |
51
+ | [Qwen2.5-3B-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q5_K_S.gguf) | Q5_K_S | 2.17GB | false | High quality, *recommended*. |
52
+ | [Qwen2.5-3B-Q4_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_L.gguf) | Q4_K_L | 2.01GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
53
+ | [Qwen2.5-3B-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_M.gguf) | Q4_K_M | 1.93GB | false | Good quality, default size for must use cases, *recommended*. |
54
+ | [Qwen2.5-3B-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_K_S.gguf) | Q4_K_S | 1.83GB | false | Slightly lower quality with more space savings, *recommended*. |
55
+ | [Qwen2.5-3B-Q4_0.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0.gguf) | Q4_0 | 1.83GB | false | Legacy format, generally not worth using over similarly sized formats |
56
+ | [Qwen2.5-3B-Q4_0_8_8.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_8_8.gguf) | Q4_0_8_8 | 1.82GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). |
57
+ | [Qwen2.5-3B-Q4_0_4_8.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_4_8.gguf) | Q4_0_4_8 | 1.82GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). |
58
+ | [Qwen2.5-3B-Q4_0_4_4.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q4_0_4_4.gguf) | Q4_0_4_4 | 1.82GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. |
59
+ | [Qwen2.5-3B-Q3_K_XL.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q3_K_XL.gguf) | Q3_K_XL | 1.78GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
60
+ | [Qwen2.5-3B-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-IQ4_XS.gguf) | IQ4_XS | 1.74GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
61
+ | [Qwen2.5-3B-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-Q3_K_L.gguf) | Q3_K_L | 1.71GB | false | Lower quality but usable, good for low RAM availability. |
62
+ | [Qwen2.5-3B-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2.5-3B-GGUF/blob/main/Qwen2.5-3B-IQ3_M.gguf) | IQ3_M | 1.49GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
63
+
64
+ ## Embed/output weights
65
+
66
+ Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
67
+
68
+ Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
69
+
70
+ Thanks!
71
+
72
+ ## Downloading using huggingface-cli
73
+
74
+ First, make sure you have hugginface-cli installed:
75
+
76
+ ```
77
+ pip install -U "huggingface_hub[cli]"
78
+ ```
79
+
80
+ Then, you can target the specific file you want:
81
+
82
+ ```
83
+ huggingface-cli download bartowski/Qwen2.5-3B-GGUF --include "Qwen2.5-3B-Q4_K_M.gguf" --local-dir ./
84
+ ```
85
+
86
+ If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
87
+
88
+ ```
89
+ huggingface-cli download bartowski/Qwen2.5-3B-GGUF --include "Qwen2.5-3B-Q8_0/*" --local-dir ./
90
+ ```
91
+
92
+ You can either specify a new local-dir (Qwen2.5-3B-Q8_0) or download them all in place (./)
93
+
94
+ ## Q4_0_X_X
95
+
96
+ These are *NOT* for Metal (Apple) offloading, only ARM chips.
97
+
98
+ If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
99
+
100
+ To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
101
+
102
+ ## Which file should I choose?
103
+
104
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
105
+
106
+ The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
107
+
108
+ If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
109
+
110
+ If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
111
+
112
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
113
+
114
+ If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
115
+
116
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
117
+
118
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
119
+
120
+ But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
121
+
122
+ These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
123
+
124
+ The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
125
+
126
+ ## Credits
127
+
128
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
129
+
130
+ Thank you ZeroWw for the inspiration to experiment with embed/output
131
+
132
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski