bartowski commited on
Commit
28c5e76
1 Parent(s): 6398678

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,21 @@ 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
+ K2-Chat-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ K2-Chat-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
38
+ K2-Chat-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ K2-Chat-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ K2-Chat-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ K2-Chat-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ K2-Chat-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
43
+ K2-Chat-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ K2-Chat-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
45
+ K2-Chat-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ K2-Chat-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ K2-Chat-Q8_0.gguf/K2-Chat-Q8_0-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
48
+ K2-Chat-Q8_0.gguf/K2-Chat-Q8_0-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
49
+ K2-Chat-f16.gguf/K2-Chat-f16-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
50
+ K2-Chat-f16.gguf/K2-Chat-f16-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
51
+ K2-Chat-f16.gguf/K2-Chat-f16-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
52
+ K2-Chat-f16.gguf/K2-Chat-f16-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
53
+ K2-Chat.imatrix filter=lfs diff=lfs merge=lfs -text
K2-Chat-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c4e73409bb16cd0e0938d180ba21b69d14f118fa54c0d179595119057ab1c3a
3
+ size 15432993472
K2-Chat-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cbef89e5066dbc2855caa355520ac40a5175a3cbd4b6ce0606f915f3a446818
3
+ size 22414324416
K2-Chat-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f89dce6082b306b0eaf3c2e49e6230f4cd83c4ef8d95331dd17d78bfcc9f135
3
+ size 17472801472
K2-Chat-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5313d6fe81c77d0965d58f0fcfc6244470c9d3e24ebd3a60e2a90dc515dee726
3
+ size 29826235072
K2-Chat-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753b812c708bae0e890a9e61ce7278f063917b37887340bdfb512a3985b6aaa4
3
+ size 24670728896
K2-Chat-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0dc6c689b8c9ed6b5eb41718ad03f74cab2d3cd84f6d8a5b087c458b26204da
3
+ size 34764481216
K2-Chat-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d30dd5d72c313ff2c63d210fb9bf247bf53a34a062a98902ea2f260fed81b41f
3
+ size 24112698048
K2-Chat-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63a0e24d570c9f6c049a135e1f195e25a86199dd52b0e83d8ef46c579dbc9398
3
+ size 31632472768
K2-Chat-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff4161b1b4876f33ce8c3241e941213ab67ce6175529653eafd589ce542799c5
3
+ size 28160637632
K2-Chat-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98f4a6a656e5c6c0f34c378a6585dae9eb976175cfccceba45e7c7f07fe1285b
3
+ size 39348404928
K2-Chat-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cbcb1ff082beac449bdcdbfed8a293b3e6e2f860fdc58f7b7ccdfcef995337b
3
+ size 46238892736
K2-Chat-Q8_0.gguf/K2-Chat-Q8_0-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b6b1173af6fcdd0cfc9362b995c441ac9a1a243810f8f7eb3c73e3b3b25a6e9
3
+ size 42810686016
K2-Chat-Q8_0.gguf/K2-Chat-Q8_0-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8250a0b7c5561d470ad77b61d7a9241fe28be9f03267499890f4018c84786e5b
3
+ size 26560528736
K2-Chat-f16.gguf/K2-Chat-f16-00001-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b786269f521ca570e5430556b8ee07e1680b7ba96f80ff8734797d51bd7bf3dd
3
+ size 42621290560
K2-Chat-f16.gguf/K2-Chat-f16-00002-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae9e2fa17a83c625ec56787111b7937f1bd4783b7cc95d80f0f828153207c8c6
3
+ size 42817206240
K2-Chat-f16.gguf/K2-Chat-f16-00003-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:418733e643a2197714ef3991586fd76602839f97161392a863ad076f8370cec5
3
+ size 42620565344
K2-Chat-f16.gguf/K2-Chat-f16-00004-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14e973629ea1d4785f741d5968f158ac3e4d92f60314d9bea58d4cb1b7c0b6c0
3
+ size 2516714528
K2-Chat.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de78457ef98580b3d4c4f059b7d34f78b88db40ce730f2b560a5bea079a4d3da
3
+ size 22792379
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ quantized_by: bartowski
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ ## Llamacpp imatrix Quantizations of K2-Chat
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/b3024">b3024</a> for quantization.
10
+
11
+ Original model: https://huggingface.co/LLM360/K2-Chat
12
+
13
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
14
+
15
+ ## Prompt format
16
+
17
+ ```
18
+ {system_prompt}<|endofsystemprompt|><|beginofuser|> {prompt}<|beginofsystem|><|beginofsystem|>
19
+ ```
20
+
21
+ ## Download a file (not the whole branch) from below:
22
+
23
+ | Filename | Quant type | File Size | Description |
24
+ | -------- | ---------- | --------- | ----------- |
25
+ | [K2-Chat-Q8_0.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/tree/main/K2-Chat-Q8_0.gguf) | Q8_0 | 69.37GB | Extremely high quality, generally unneeded but max available quant. |
26
+ | [K2-Chat-Q5_K_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-Q5_K_M.gguf) | Q5_K_M | 46.23GB | High quality, *recommended*. |
27
+ | [K2-Chat-Q4_K_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-Q4_K_M.gguf) | Q4_K_M | 39.34GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
28
+ | [K2-Chat-IQ4_XS.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ4_XS.gguf) | IQ4_XS | 34.76GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
29
+ | [K2-Chat-Q3_K_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-Q3_K_M.gguf) | Q3_K_M | 31.63GB | Even lower quality. |
30
+ | [K2-Chat-IQ3_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ3_M.gguf) | IQ3_M | 29.82GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
31
+ | [K2-Chat-Q3_K_S.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-Q3_K_S.gguf) | Q3_K_S | 28.16GB | Low quality, not recommended. |
32
+ | [K2-Chat-IQ3_XXS.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ3_XXS.gguf) | IQ3_XXS | 24.67GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
33
+ | [K2-Chat-Q2_K.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-Q2_K.gguf) | Q2_K | 24.11GB | Very low quality but surprisingly usable. |
34
+ | [K2-Chat-IQ2_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ2_M.gguf) | IQ2_M | 22.41GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
35
+ | [K2-Chat-IQ2_XXS.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ2_XXS.gguf) | IQ2_XXS | 17.47GB | Lower quality, uses SOTA techniques to be usable. |
36
+ | [K2-Chat-IQ1_M.gguf](https://huggingface.co/bartowski/K2-Chat-GGUF/blob/main/K2-Chat-IQ1_M.gguf) | IQ1_M | 15.43GB | Extremely low quality, *not* recommended. |
37
+
38
+ ## Downloading using huggingface-cli
39
+
40
+ First, make sure you have hugginface-cli installed:
41
+
42
+ ```
43
+ pip install -U "huggingface_hub[cli]"
44
+ ```
45
+
46
+ Then, you can target the specific file you want:
47
+
48
+ ```
49
+ huggingface-cli download bartowski/K2-Chat-GGUF --include "K2-Chat-Q4_K_M.gguf" --local-dir ./
50
+ ```
51
+
52
+ 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:
53
+
54
+ ```
55
+ huggingface-cli download bartowski/K2-Chat-GGUF --include "K2-Chat-Q8_0.gguf/*" --local-dir K2-Chat-Q8_0
56
+ ```
57
+
58
+ You can either specify a new local-dir (K2-Chat-Q8_0) or download them all in place (./)
59
+
60
+ ## Which file should I choose?
61
+
62
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
63
+
64
+ 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.
65
+
66
+ 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.
67
+
68
+ 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.
69
+
70
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
71
+
72
+ 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.
73
+
74
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
75
+
76
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
77
+
78
+ 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.
79
+
80
+ 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.
81
+
82
+ 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.
83
+
84
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski