bartowski commited on
Commit
a6c7f79
0 Parent(s):

Duplicate from bartowski/Qwen2-Math-1.5B-Instruct-GGUF

Browse files
.gitattributes ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Qwen2-Math-1.5B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen2-Math-1.5B-Instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Qwen2-Math-1.5B-Instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Qwen2-Math-1.5B-Instruct-f32.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Qwen2-Math-1.5B-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text
Qwen2-Math-1.5B-Instruct-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58660f30822dd236531d9fac7a3c0404acbdaccb71f3401fa8ee8faf78d69678
3
+ size 776661728
Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21a814f00e125c46720ddb7d91c1c8a7ccbd9177d32101283d51032d1a43a862
3
+ size 895729376
Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a9d37ad7b5b0fb194f80a089ca15487ff016fd7542070142cd324296ab9d8c6
3
+ size 880160480
Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ac1efda9f2d4d5fd3a2754ce416a2f7c9edaf41e8b522a1829fc18211040e2c
3
+ size 936680672
Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a705696f11edaab83d2d8ca65f3735bb9690abeb5770a89e07ad7c0d725d9b91
3
+ size 1042566368
Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db7c7d2017181d0225c644303fcfdc7cc4a6ac7c50ff42bb086c50335efb9570
3
+ size 986046176
Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f36ed9363667c3013439181deef910a8b7f9242329c1d6c692caf587c5c6efc6
3
+ size 940310240
Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1e1780d1135ba1cbc5ffdc7ebff45c13466738f4f8b05d662ca93d63550ce90
3
+ size 1181568224
Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bf7b04dca606d24aef4ed9bb63fc49e990de25d41fd2afc4b4bbc0b4934ab83
3
+ size 1125048032
Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1cc0c3d6c915cce6870056c1a2057ce327b5682de2cb4b04719ec243f7265e1
3
+ size 1098727136
Qwen2-Math-1.5B-Instruct-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585f49f9e182fd083009eba0ec42a7e1130802500c5581b0c2ada3b3a5704552
3
+ size 1272737504
Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38ea2528dd4311b29bd0f0e4fc3319e34d7b7f79c897607905f0467d3ff658c9
3
+ size 1329257696
Qwen2-Math-1.5B-Instruct-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c75f1118c084b38625bfa91148bc577d2f7961c4bab7bb79e10f2d434c59bd89
3
+ size 1646570720
Qwen2-Math-1.5B-Instruct-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1138802cfb2df35f0881ce99f97d82d5da4473fb6914ded9786eaa3d616c3002
3
+ size 6180805568
Qwen2-Math-1.5B-Instruct.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ddf3747de6c1f3abfa4624c66a7c6b70db271347c87d8edd934894feb63446f
3
+ size 2042214
README.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2-Math-1.5B-Instruct
3
+ language:
4
+ - en
5
+ license: apache-2.0
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - chat
9
+ quantized_by: bartowski
10
+ ---
11
+
12
+ ## Llamacpp imatrix Quantizations of Qwen2-Math-1.5B-Instruct
13
+
14
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3509">b3509</a> for quantization.
15
+
16
+ Original model: https://huggingface.co/Qwen/Qwen2-Math-1.5B-Instruct
17
+
18
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
19
+
20
+ Run them in [LM Studio](https://lmstudio.ai/)
21
+
22
+ ## Prompt format
23
+
24
+ ```
25
+ <|im_start|>system
26
+ {system_prompt}<|im_end|>
27
+ <|im_start|>user
28
+ {prompt}<|im_end|>
29
+ <|im_start|>assistant
30
+
31
+ ```
32
+
33
+ ## Download a file (not the whole branch) from below:
34
+
35
+ | Filename | Quant type | File Size | Split | Description |
36
+ | -------- | ---------- | --------- | ----- | ----------- |
37
+ | [Qwen2-Math-1.5B-Instruct-f32.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-f32.gguf) | f32 | 6.18GB | false | Full F32 weights. |
38
+ | [Qwen2-Math-1.5B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q8_0.gguf) | Q8_0 | 1.65GB | false | Extremely high quality, generally unneeded but max available quant. |
39
+ | [Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf) | Q6_K_L | 1.33GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
40
+ | [Qwen2-Math-1.5B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q6_K.gguf) | Q6_K | 1.27GB | false | Very high quality, near perfect, *recommended*. |
41
+ | [Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf) | Q5_K_L | 1.18GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
42
+ | [Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf) | Q5_K_M | 1.13GB | false | High quality, *recommended*. |
43
+ | [Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf) | Q5_K_S | 1.10GB | false | High quality, *recommended*. |
44
+ | [Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf) | Q4_K_L | 1.04GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
45
+ | [Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf) | Q4_K_M | 0.99GB | false | Good quality, default size for must use cases, *recommended*. |
46
+ | [Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf) | Q4_K_S | 0.94GB | false | Slightly lower quality with more space savings, *recommended*. |
47
+ | [Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf) | Q3_K_XL | 0.94GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
48
+ | [Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf) | IQ4_XS | 0.90GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
49
+ | [Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf) | Q3_K_L | 0.88GB | false | Lower quality but usable, good for low RAM availability. |
50
+ | [Qwen2-Math-1.5B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-IQ3_M.gguf) | IQ3_M | 0.78GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
51
+
52
+ ## Embed/output weights
53
+
54
+ 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.
55
+
56
+ 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.
57
+
58
+ Thanks!
59
+
60
+ ## Credits
61
+
62
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
63
+
64
+ Thank you ZeroWw for the inspiration to experiment with embed/output
65
+
66
+ ## Downloading using huggingface-cli
67
+
68
+ First, make sure you have hugginface-cli installed:
69
+
70
+ ```
71
+ pip install -U "huggingface_hub[cli]"
72
+ ```
73
+
74
+ Then, you can target the specific file you want:
75
+
76
+ ```
77
+ huggingface-cli download bartowski/Qwen2-Math-1.5B-Instruct-GGUF --include "Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf" --local-dir ./
78
+ ```
79
+
80
+ 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:
81
+
82
+ ```
83
+ huggingface-cli download bartowski/Qwen2-Math-1.5B-Instruct-GGUF --include "Qwen2-Math-1.5B-Instruct-Q8_0/*" --local-dir ./
84
+ ```
85
+
86
+ You can either specify a new local-dir (Qwen2-Math-1.5B-Instruct-Q8_0) or download them all in place (./)
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
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
113
+