bartowski commited on
Commit
dd45528
1 Parent(s): f966874

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,26 @@ 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
+ aixcoder-7b-base-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ aixcoder-7b-base-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ aixcoder-7b-base-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ aixcoder-7b-base-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ aixcoder-7b-base-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ aixcoder-7b-base-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ aixcoder-7b-base-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ aixcoder-7b-base-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ aixcoder-7b-base-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ aixcoder-7b-base-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ aixcoder-7b-base-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ aixcoder-7b-base-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ aixcoder-7b-base-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ aixcoder-7b-base-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ aixcoder-7b-base-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ aixcoder-7b-base-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ aixcoder-7b-base-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ aixcoder-7b-base-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ aixcoder-7b-base-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ aixcoder-7b-base-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ aixcoder-7b-base-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ aixcoder-7b-base-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ aixcoder-7b-base.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+
3
+ quantized_by: bartowski
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ ## Llamacpp Quantizations of aixcoder-7b-base
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/b2636">b2636</a> for quantization.
10
+
11
+ Original model: https://huggingface.co/aiXcoder/aixcoder-7b-base
12
+
13
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
14
+
15
+ ## Prompt format
16
+
17
+ No chat template specified so default is used. This may be incorrect, check original model card for details.
18
+
19
+ ```
20
+ <|im_start|>system
21
+ {system_prompt}<|im_end|>
22
+ <|im_start|>user
23
+ {prompt}<|im_end|>
24
+ <|im_start|>assistant
25
+ <|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
+ | [aixcoder-7b-base-Q8_0.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q8_0.gguf) | Q8_0 | 7.89GB | Extremely high quality, generally unneeded but max available quant. |
35
+ | [aixcoder-7b-base-Q6_K.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q6_K.gguf) | Q6_K | 6.55GB | Very high quality, near perfect, *recommended*. |
36
+ | [aixcoder-7b-base-Q5_K_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q5_K_M.gguf) | Q5_K_M | 5.56GB | High quality, *recommended*. |
37
+ | [aixcoder-7b-base-Q5_K_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q5_K_S.gguf) | Q5_K_S | 5.25GB | High quality, *recommended*. |
38
+ | [aixcoder-7b-base-Q4_K_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q4_K_M.gguf) | Q4_K_M | 4.84GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
39
+ | [aixcoder-7b-base-Q4_K_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q4_K_S.gguf) | Q4_K_S | 4.48GB | Slightly lower quality with more space savings, *recommended*. |
40
+ | [aixcoder-7b-base-IQ4_NL.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ4_NL.gguf) | IQ4_NL | 4.25GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
41
+ | [aixcoder-7b-base-IQ4_XS.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ4_XS.gguf) | IQ4_XS | 4.08GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
42
+ | [aixcoder-7b-base-Q3_K_L.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q3_K_L.gguf) | Q3_K_L | 4.05GB | Lower quality but usable, good for low RAM availability. |
43
+ | [aixcoder-7b-base-Q3_K_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q3_K_M.gguf) | Q3_K_M | 3.86GB | Even lower quality. |
44
+ | [aixcoder-7b-base-IQ3_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ3_M.gguf) | IQ3_M | 3.64GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
45
+ | [aixcoder-7b-base-IQ3_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ3_S.gguf) | IQ3_S | 3.54GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
46
+ | [aixcoder-7b-base-Q3_K_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q3_K_S.gguf) | Q3_K_S | 3.52GB | Low quality, not recommended. |
47
+ | [aixcoder-7b-base-IQ3_XS.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ3_XS.gguf) | IQ3_XS | 3.37GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
48
+ | [aixcoder-7b-base-IQ3_XXS.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ3_XXS.gguf) | IQ3_XXS | 3.26GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
49
+ | [aixcoder-7b-base-Q2_K.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-Q2_K.gguf) | Q2_K | 3.07GB | Very low quality but surprisingly usable. |
50
+ | [aixcoder-7b-base-IQ2_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ2_M.gguf) | IQ2_M | 3.02GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
51
+ | [aixcoder-7b-base-IQ2_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ2_S.gguf) | IQ2_S | 2.88GB | Very low quality, uses SOTA techniques to be usable. |
52
+ | [aixcoder-7b-base-IQ2_XS.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ2_XS.gguf) | IQ2_XS | 2.79GB | Very low quality, uses SOTA techniques to be usable. |
53
+ | [aixcoder-7b-base-IQ2_XXS.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ2_XXS.gguf) | IQ2_XXS | 2.63GB | Lower quality, uses SOTA techniques to be usable. |
54
+ | [aixcoder-7b-base-IQ1_M.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ1_M.gguf) | IQ1_M | 2.46GB | Extremely low quality, *not* recommended. |
55
+ | [aixcoder-7b-base-IQ1_S.gguf](https://huggingface.co/bartowski/aixcoder-7b-base-GGUF/blob/main/aixcoder-7b-base-IQ1_S.gguf) | IQ1_S | 2.35GB | Extremely low quality, *not* recommended. |
56
+
57
+ ## Which file should I choose?
58
+
59
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
60
+
61
+ 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.
62
+
63
+ 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.
64
+
65
+ 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.
66
+
67
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
68
+
69
+ 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.
70
+
71
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
72
+
73
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
74
+
75
+ 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.
76
+
77
+ 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.
78
+
79
+ 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.
80
+
81
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
aixcoder-7b-base-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21b66db1427c2da8c314d0599ee10a2186795688acf876854bc65ea975a9b6ea
3
+ size 2463305248
aixcoder-7b-base-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84682a5d37681ca8271d0563781a4a4c42603bc834379b39348387b80b1f5353
3
+ size 2358709792
aixcoder-7b-base-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72afbe30a14c778ff5343e6219a2cb9e38cd12f83ed3cbfd05b33dff650e7464
3
+ size 3029274144
aixcoder-7b-base-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:408dd7b7aabf7454350812e3f8fb460cd843f6bd5e1de7af09d91be07d73672b
3
+ size 2889813536
aixcoder-7b-base-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3236ae2bf85d9d8dbd70fe67c4bb088ef9f7f9e8eb26dc70455bc8b9a4cd5a2
3
+ size 2793868832
aixcoder-7b-base-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65059e5e087fd8c94fc5b4d9f5437eb538bb9396992042dca1613ddd7cfb1492
3
+ size 2637631008
aixcoder-7b-base-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76f9d4815fa697f514c8ebb1e00419d251ad1865e8806dd476b6a84f36ac9b8c
3
+ size 3645050400
aixcoder-7b-base-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2eaa6a22f9da84627f81253237330614101abee2ea5bd7a830f5cd47e1195cee
3
+ size 3544124960
aixcoder-7b-base-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75b49f5a1a396302b61acd050ae38e1d5f3a4a35ea1103f7412a844fd86e2eb6
3
+ size 3379367456
aixcoder-7b-base-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:827fd4f4f1ed4f6522f3ca04821b8d18f563676dbd71098a68badbb3ee8cd529
3
+ size 3266252320
aixcoder-7b-base-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61f209b78ac33c5583837cd53220d840282446d1c18732a90ddadbe508516a08
3
+ size 4251651616
aixcoder-7b-base-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69450eb7fd5141827d3dc0b1d4dd224bfe87792bcf3dd203bb11a2da1b25f8fc
3
+ size 4089122336
aixcoder-7b-base-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f53f524cd5c325913b81667f85075565c94d35953d2847d07718b31539a9ed6b
3
+ size 3070430752
aixcoder-7b-base-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0aec8f84cdf08fdf4c7f2aa777be8e1cac68e3a5680ddd1ef6f49b77913951f
3
+ size 4054781472
aixcoder-7b-base-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2620678e04351ae6ad2a4995a773be8d7aed8f52f3e3ea44f1b85f5084a8b754
3
+ size 3860860448
aixcoder-7b-base-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bb0b88b18d06e086960dd0012622357daf4030fdec89fe4cbb71675cd617384
3
+ size 3526299168
aixcoder-7b-base-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:575cacc8188789b53a87ed00df9906eae99590db168e35b13fda116420467b6b
3
+ size 4844621344
aixcoder-7b-base-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c5c3f10b9a45ee360dc4e73622d925a0334085eecd39be873cfcdf09b22adbc
3
+ size 4488760864
aixcoder-7b-base-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dca88b63970be90ef4f0990328a4da2a1306add7707d58ff56803aa5dbe3a28
3
+ size 5562371616
aixcoder-7b-base-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7436a6e01f9504ce60c7a7691c26b05e097fc9bac2b59400d9af7c65459bde81
3
+ size 5257236000
aixcoder-7b-base-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6c0a69b3b0d982a20fa8f8aeecbba854174f8449f661453cb7c8120523148c9
3
+ size 6558256672
aixcoder-7b-base-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21f3135088894ea4edf11e6853eee5bddb0f6130818dc2cbf69311da1eeb2299
3
+ size 7899123232
aixcoder-7b-base.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23191871bd6236128ac3486acb9c3f0dc3122ea0eaa1456317bbcd05419816a0
3
+ size 5004510