bartowski commited on
Commit
4e83ff2
1 Parent(s): 743a6ca

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,22 @@ saved_model/**/* 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-72B-Instruct-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwen2-72B-Instruct-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen2-72B-Instruct-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwen2-72B-Instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Qwen2-72B-Instruct-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Qwen2-72B-Instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Qwen2-72B-Instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Qwen2-72B-Instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Qwen2-72B-Instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Qwen2-72B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Qwen2-72B-Instruct-Q5_K_M.gguf/Qwen2-72B-Instruct-Q5_K_M-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Qwen2-72B-Instruct-Q5_K_M.gguf/Qwen2-72B-Instruct-Q5_K_M-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Qwen2-72B-Instruct-Q8_0.gguf/Qwen2-72B-Instruct-Q8_0-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Qwen2-72B-Instruct-Q8_0.gguf/Qwen2-72B-Instruct-Q8_0-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Qwen2-72B-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text
Qwen2-72B-Instruct-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afc5dd85195009ba6c62c8f0b52c514f7a497cd61d5af3b8792d3d99a49dbb1a
3
+ size 23740209888
Qwen2-72B-Instruct-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94cc4d33a57cfe8f01b753cdb1b8df5cc8f9fd409aca32cc545d64f8b44d16dd
3
+ size 29338983136
Qwen2-72B-Instruct-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e839ee684bda593a5f6bcb558fc12be1dc8f1f910a3f74ac5294c8b1a2974dac
3
+ size 25490021088
Qwen2-72B-Instruct-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edac549e098185811faa100eb5d4e96196d15711caae3ab51aa4985dcce3eec4
3
+ size 35503594208
Qwen2-72B-Instruct-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f58f8300c6001ba65bc9c3b76056d758215252ba23986675a11bdee14c8473d7
3
+ size 31845079776
Qwen2-72B-Instruct-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0772e931061afe03c7be01abf8101e84a1218762951c852b072f4e67b0945af
3
+ size 39709072096
Qwen2-72B-Instruct-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a5ba20442a2ffc7d25dd51dd36d1d4f1ea14aeafd4c310402944de54893b770
3
+ size 29811759840
Qwen2-72B-Instruct-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5df17e903f1edf743927779cac7d6eab00146998e722b772d823b6f0c7bf049
3
+ size 37698722528
Qwen2-72B-Instruct-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56073808219a2cc008af44ee24d6162fa9c96c3da74e9ba9021b4cf1afd2f348
3
+ size 34487786208
Qwen2-72B-Instruct-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd4980dedbd4e31d5e7e8aad8cf843bba5ac37fd776713dead7e40e52153f532
3
+ size 47415712480
Qwen2-72B-Instruct-Q5_K_M.gguf/Qwen2-72B-Instruct-Q5_K_M-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a743757a516ab18e16f66a342d394599b6f91effa914627ffa7f64965c86736
3
+ size 42953912448
Qwen2-72B-Instruct-Q5_K_M.gguf/Qwen2-72B-Instruct-Q5_K_M-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2da9f27406f52e2c6f0bd4f2baf6759beea20024069f106aa16d70a4fba9007a
3
+ size 11493550880
Qwen2-72B-Instruct-Q8_0.gguf/Qwen2-72B-Instruct-Q8_0-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1455d123d5f15f0e62c4e980e538b42badc358f0c22b62e17708be37bf4b0a61
3
+ size 42879482560
Qwen2-72B-Instruct-Q8_0.gguf/Qwen2-72B-Instruct-Q8_0-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b72bf212ee15b433741eae252ce916449a6513d209a82a14949ad0dbd21fd2ea
3
+ size 34383126752
Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00001-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c08a260d7b63dd2d2f74548fa1ce035341451719e2877d7844c1f23487224260
3
+ size 42888868096
Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00002-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a355cfed8a9d75ccd6c9a7dd0a05d930a7b241787009eaabdfd8cae8ccd6723
3
+ size 42597855488
Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00003-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aafc40786e8e872f7b42511443666d7f41b2abda6ca1782986d16b432d0b4e3
3
+ size 42614604096
Qwen2-72B-Instruct-f16.gguf/Qwen2-72B-Instruct-f16-00004-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00618e8e1cf8417eeea88331511ddd6fb818e7ddabff228860ce87b3d41173e6
3
+ size 17321343072
Qwen2-72B-Instruct.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a24b1bc036975853992b22700fbccdf5d3543e7a92608ce6510be17e1492fbcc
3
+ size 25209019
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: tongyi-qianwen
4
+ license_link: https://huggingface.co/Qwen/Qwen2-72B-Instruct/blob/main/LICENSE
5
+ language:
6
+ - en
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - chat
10
+ quantized_by: bartowski
11
+ ---
12
+
13
+ ## Llamacpp imatrix Quantizations of Qwen2-72B-Instruct
14
+
15
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/master">master</a> for quantization.
16
+
17
+ Original model: https://huggingface.co/Qwen/Qwen2-72B-Instruct
18
+
19
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
20
+
21
+ ## Prompt format
22
+
23
+ ```
24
+ <|im_start|>system
25
+ {system_prompt}<|im_end|>
26
+ <|im_start|>user
27
+ {prompt}<|im_end|>
28
+ <|im_start|>assistant
29
+
30
+ ```
31
+
32
+ ## Download a file (not the whole branch) from below:
33
+
34
+ | Filename | Quant type | File Size | Description |
35
+ | -------- | ---------- | --------- | ----------- |
36
+ | [Qwen2-72B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/tree/main/Qwen2-72B-Instruct-Q8_0.gguf) | Q8_0 | 77.26GB | Extremely high quality, generally unneeded but max available quant. |
37
+ | [Qwen2-72B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/tree/main/Qwen2-72B-Instruct-Q5_K_M.gguf) | Q5_K_M | 54.44GB | High quality, *recommended*. |
38
+ | [Qwen2-72B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-Q4_K_M.gguf) | Q4_K_M | 47.41GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
39
+ | [Qwen2-72B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ4_XS.gguf) | IQ4_XS | 39.70GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
40
+ | [Qwen2-72B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-Q3_K_M.gguf) | Q3_K_M | 37.69GB | Even lower quality. |
41
+ | [Qwen2-72B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ3_M.gguf) | IQ3_M | 35.50GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
42
+ | [Qwen2-72B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-Q3_K_S.gguf) | Q3_K_S | 34.48GB | Low quality, not recommended. |
43
+ | [Qwen2-72B-Instruct-IQ3_XXS.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ3_XXS.gguf) | IQ3_XXS | 31.84GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
44
+ | [Qwen2-72B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-Q2_K.gguf) | Q2_K | 29.81GB | Very low quality but surprisingly usable. |
45
+ | [Qwen2-72B-Instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ2_M.gguf) | IQ2_M | 29.33GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
46
+ | [Qwen2-72B-Instruct-IQ2_XXS.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ2_XXS.gguf) | IQ2_XXS | 25.49GB | Lower quality, uses SOTA techniques to be usable. |
47
+ | [Qwen2-72B-Instruct-IQ1_M.gguf](https://huggingface.co/bartowski/Qwen2-72B-Instruct-GGUF/blob/main/Qwen2-72B-Instruct-IQ1_M.gguf) | IQ1_M | 23.74GB | Extremely low quality, *not* recommended. |
48
+
49
+ ## Downloading using huggingface-cli
50
+
51
+ First, make sure you have hugginface-cli installed:
52
+
53
+ ```
54
+ pip install -U "huggingface_hub[cli]"
55
+ ```
56
+
57
+ Then, you can target the specific file you want:
58
+
59
+ ```
60
+ huggingface-cli download bartowski/Qwen2-72B-Instruct-GGUF --include "Qwen2-72B-Instruct-Q4_K_M.gguf" --local-dir ./
61
+ ```
62
+
63
+ 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:
64
+
65
+ ```
66
+ huggingface-cli download bartowski/Qwen2-72B-Instruct-GGUF --include "Qwen2-72B-Instruct-Q8_0.gguf/*" --local-dir Qwen2-72B-Instruct-Q8_0
67
+ ```
68
+
69
+ You can either specify a new local-dir (Qwen2-72B-Instruct-Q8_0) or download them all in place (./)
70
+
71
+ ## Which file should I choose?
72
+
73
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
74
+
75
+ 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.
76
+
77
+ 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.
78
+
79
+ 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.
80
+
81
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
82
+
83
+ 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.
84
+
85
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
86
+
87
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
88
+
89
+ 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.
90
+
91
+ 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.
92
+
93
+ 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.
94
+
95
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski