bartowski commited on
Commit
9d72b0a
1 Parent(s): 61646f7

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -35,3 +35,21 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  Qwen2-7B-Instruct-f32.gguf filter=lfs diff=lfs merge=lfs -text
37
  Qwen2-7B-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  Qwen2-7B-Instruct-f32.gguf filter=lfs diff=lfs merge=lfs -text
37
  Qwen2-7B-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text
38
+ Qwen2-7B-Instruct-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwen2-7B-Instruct-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Qwen2-7B-Instruct-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Qwen2-7B-Instruct-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Qwen2-7B-Instruct-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Qwen2-7B-Instruct-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Qwen2-7B-Instruct-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Qwen2-7B-Instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Qwen2-7B-Instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Qwen2-7B-Instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Qwen2-7B-Instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Qwen2-7B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Qwen2-7B-Instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Qwen2-7B-Instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Qwen2-7B-Instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Qwen2-7B-Instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Qwen2-7B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Qwen2-7B-Instruct-bf16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen2-7B-Instruct-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6b65122950bc41f4e4893b689fb0faff01b47a368157398c77b8697c07e55d6
3
+ size 2780340000
Qwen2-7B-Instruct-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a2177e22202f0cca7ef0e948ed68705c5ec94ef4743ed8db707b8056a086879
3
+ size 2595634976
Qwen2-7B-Instruct-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:247883eca048b402e4829ae8d72359cb968581e71cbcefe49fb08b6d66673737
3
+ size 2469019424
Qwen2-7B-Instruct-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dc59415c3941cf07c2a3fe5e5581dc45c8951f82bab7f5614d0bba2e1a34a82
3
+ size 3574009632
Qwen2-7B-Instruct-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcd392f72431881477b20b772bcbc7b97c651ee8af6a8e95bbfa5a0c8d8dba39
3
+ size 3346253600
Qwen2-7B-Instruct-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ab957f52e5dd77e991c02156f80c3f94e9f4ded2c93e38a8fb99e9407a3e6c
3
+ size 3114512160
Qwen2-7B-Instruct-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d51e881f308be12283e63eefae625840e1d44af4a11ccbd80f8f177d5f7b01f2
3
+ size 4218470176
Qwen2-7B-Instruct-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71d6be6a0faa192a938b1bd86bbc8d527d0f56b6672164180bf1a0464a80af0c
3
+ size 3015937824
Qwen2-7B-Instruct-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0577a71834e73ae59015880d34dcd5ef549176c50b02dcef3b0acdc975f7479a
3
+ size 4088456992
Qwen2-7B-Instruct-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f06e0b1910771eb7bf04fa4a88832d04c009d7b8506ffaa045b9a503b31d16
3
+ size 3808388896
Qwen2-7B-Instruct-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34aa03f291b5d7b71c6d71062eeed1d2fa4d313b5048cebcb1923656d9806b8c
3
+ size 3492366112
Qwen2-7B-Instruct-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d0d33f0d9110a04aad1711b1ca02dafc0fa658cd83028bdfa5eff89c294fe76
3
+ size 4683071264
Qwen2-7B-Instruct-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db87d60e881c760995cac29a8c0ed5d08c8b65cce8b052aaca9d2e3d6f833246
3
+ size 4457766688
Qwen2-7B-Instruct-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f17976829b0e6d91852da2f3cd3f78d0f110778c858a29494a53d4acee8e69a
3
+ size 5444828960
Qwen2-7B-Instruct-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8696ac6e6c180f3f9528630b9b3cab0d779a4e4dfb12dc9f30c9030075708db4
3
+ size 5315174176
Qwen2-7B-Instruct-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a5c1a2f31ba0ddb10a40720a6c592a0f7898c7c7b1c752679b0d18bad6b12df
3
+ size 6254196512
Qwen2-7B-Instruct-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e3382bda013daf109f2d6fb7a990ca149fcaf4c221ec38597d0204c46d15d28
3
+ size 8098522912
Qwen2-7B-Instruct-bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcfd06d4f9911b033ef0574937de75878e4d7719bd89966203162a31b1a39f6f
3
+ size 15237850656
Qwen2-7B-Instruct.imatrix CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d14711a4dde7f0c1afcb8719dd474b0ad2c05aa990da7d04bbb399d298e21c03
3
  size 4536679
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23573f736284e14dd701cb2af68ca900ff640c6564ff0e7ce7e79d346db9dade
3
  size 4536679
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - chat
8
+ quantized_by: bartowski
9
+ ---
10
+
11
+ ## Llamacpp imatrix Quantizations of Qwen2-7B-Instruct
12
+
13
+ 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.
14
+
15
+ Original model: https://huggingface.co/Qwen/Qwen2-7B-Instruct
16
+
17
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
18
+
19
+ ## Prompt format
20
+
21
+ ```
22
+ <|im_start|>system
23
+ {system_prompt}<|im_end|>
24
+ <|im_start|>user
25
+ {prompt}<|im_end|>
26
+ <|im_start|>assistant
27
+
28
+ ```
29
+
30
+ ## Download a file (not the whole branch) from below:
31
+
32
+ | Filename | Quant type | File Size | Description |
33
+ | -------- | ---------- | --------- | ----------- |
34
+ | [Qwen2-7B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q8_0.gguf) | Q8_0 | 8.09GB | Extremely high quality, generally unneeded but max available quant. |
35
+ | [Qwen2-7B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q6_K.gguf) | Q6_K | 6.25GB | Very high quality, near perfect, *recommended*. |
36
+ | [Qwen2-7B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q5_K_M.gguf) | Q5_K_M | 5.44GB | High quality, *recommended*. |
37
+ | [Qwen2-7B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q5_K_S.gguf) | Q5_K_S | 5.31GB | High quality, *recommended*. |
38
+ | [Qwen2-7B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q4_K_M.gguf) | Q4_K_M | 4.68GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
39
+ | [Qwen2-7B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q4_K_S.gguf) | Q4_K_S | 4.45GB | Slightly lower quality with more space savings, *recommended*. |
40
+ | [Qwen2-7B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ4_XS.gguf) | IQ4_XS | 4.21GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
41
+ | [Qwen2-7B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q3_K_L.gguf) | Q3_K_L | 4.08GB | Lower quality but usable, good for low RAM availability. |
42
+ | [Qwen2-7B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q3_K_M.gguf) | Q3_K_M | 3.80GB | Even lower quality. |
43
+ | [Qwen2-7B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ3_M.gguf) | IQ3_M | 3.57GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
44
+ | [Qwen2-7B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q3_K_S.gguf) | Q3_K_S | 3.49GB | Low quality, not recommended. |
45
+ | [Qwen2-7B-Instruct-IQ3_XS.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ3_XS.gguf) | IQ3_XS | 3.34GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
46
+ | [Qwen2-7B-Instruct-IQ3_XXS.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ3_XXS.gguf) | IQ3_XXS | 3.11GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
47
+ | [Qwen2-7B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-Q2_K.gguf) | Q2_K | 3.01GB | Very low quality but surprisingly usable. |
48
+ | [Qwen2-7B-Instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ2_M.gguf) | IQ2_M | 2.78GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
49
+ | [Qwen2-7B-Instruct-IQ2_S.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ2_S.gguf) | IQ2_S | 2.59GB | Very low quality, uses SOTA techniques to be usable. |
50
+ | [Qwen2-7B-Instruct-IQ2_XS.gguf](https://huggingface.co/bartowski/Qwen2-7B-Instruct-GGUF/blob/main/Qwen2-7B-Instruct-IQ2_XS.gguf) | IQ2_XS | 2.46GB | Very low quality, uses SOTA techniques to be usable. |
51
+
52
+ ## Downloading using huggingface-cli
53
+
54
+ First, make sure you have hugginface-cli installed:
55
+
56
+ ```
57
+ pip install -U "huggingface_hub[cli]"
58
+ ```
59
+
60
+ Then, you can target the specific file you want:
61
+
62
+ ```
63
+ huggingface-cli download bartowski/Qwen2-7B-Instruct-GGUF --include "Qwen2-7B-Instruct-Q4_K_M.gguf" --local-dir ./
64
+ ```
65
+
66
+ 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:
67
+
68
+ ```
69
+ huggingface-cli download bartowski/Qwen2-7B-Instruct-GGUF --include "Qwen2-7B-Instruct-Q8_0.gguf/*" --local-dir Qwen2-7B-Instruct-Q8_0
70
+ ```
71
+
72
+ You can either specify a new local-dir (Qwen2-7B-Instruct-Q8_0) or download them all in place (./)
73
+
74
+ ## Which file should I choose?
75
+
76
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
77
+
78
+ 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.
79
+
80
+ 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.
81
+
82
+ 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.
83
+
84
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
85
+
86
+ 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.
87
+
88
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
89
+
90
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ 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.
97
+
98
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski