bartowski commited on
Commit
5c65384
1 Parent(s): d2b7dec

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
+ Mistral-22B-v0.1-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Mistral-22B-v0.1-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Mistral-22B-v0.1-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Mistral-22B-v0.1-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Mistral-22B-v0.1-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Mistral-22B-v0.1-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Mistral-22B-v0.1-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Mistral-22B-v0.1-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Mistral-22B-v0.1-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Mistral-22B-v0.1-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Mistral-22B-v0.1-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Mistral-22B-v0.1-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Mistral-22B-v0.1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Mistral-22B-v0.1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Mistral-22B-v0.1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Mistral-22B-v0.1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Mistral-22B-v0.1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Mistral-22B-v0.1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Mistral-22B-v0.1-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Mistral-22B-v0.1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Mistral-22B-v0.1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Mistral-22B-v0.1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Mistral-22B-v0.1.imatrix filter=lfs diff=lfs merge=lfs -text
Mistral-22B-v0.1-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a9e1857bfb9857acfd194f5e46c3f645997a768ec3ebc1ed5a88362d623322a
3
+ size 5262322016
Mistral-22B-v0.1-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65dc9e9b9afbbd6aaa20005fa05e95e5baa6e46f859c11d1a343e34ddc078d3a
3
+ size 4824672608
Mistral-22B-v0.1-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2c8051f65d1258c3d431d9162102fda54c8c7776103a7d4e70145e133e36afd
3
+ size 7613667680
Mistral-22B-v0.1-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e0b27c6f457c872e01cd2e0a4bd9367d255169598faaf5b2bb3ab9312b6efe9
3
+ size 7030135136
Mistral-22B-v0.1-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:080b4c1f226b6212d2670d19bbff500fdcd72bd1e4b5549190ef6cced4d87870
3
+ size 6641330528
Mistral-22B-v0.1-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:294ccf95a3e1e6055aac8ecd2570c0a872d056120a4e9e7edbee9f02e75224be
3
+ size 5991737696
Mistral-22B-v0.1-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a179ecd9aff3b063174b6e2a959a61201a46aa6419a2984292fee60ad630f9d1
3
+ size 10056485216
Mistral-22B-v0.1-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13e193cd30f5002387d3217bcf2c717c0764150bf634f5e2f810d4a2b0ab25da
3
+ size 9682143584
Mistral-22B-v0.1-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48afc9be6b6fb1e919b6b1416a692babff1f538bf0c5040e51029f48b05097da
3
+ size 9170176352
Mistral-22B-v0.1-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a311f2570eaa63ba26979eaa1f15d6e6149c0588f3c5afd1dc2f4d47b62cda3
3
+ size 8593561952
Mistral-22B-v0.1-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a581bed76ed018ae66a8219a04a2ad6da32b36b3051d9115dd178c5f924df48e
3
+ size 12606650720
Mistral-22B-v0.1-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:651255b0f33c64f1688e6934225d72268a6a7aa0d52877e39c8497224ee7cdb9
3
+ size 11928893792
Mistral-22B-v0.1-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5e56796be2b63bcb18fd4c20658573a5854c001c345fc12caa88dfc02bcae88
3
+ size 8266652000
Mistral-22B-v0.1-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3213c4a518d7c67060c927a2d8880b62c7c53541f21c6906a9425656a046e7f7
3
+ size 11724507488
Mistral-22B-v0.1-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da373656f3d0bca3386968cdb6cec3d47120636d76f7935204f13ed480763946
3
+ size 10750904672
Mistral-22B-v0.1-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac79cc3d24079c9d628aa900e0b85007da05c4a72a2088de7f7c79d96a670dd
3
+ size 9635350880
Mistral-22B-v0.1-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e12c5fd5d2539b192a7b21c2cc7584173fde871af53e5878ee013137c8783909
3
+ size 13334690144
Mistral-22B-v0.1-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24f8d5c41ceb88e6b08b65aa5b58381a48c3e897d56fe3c8f038874aed2a11a8
3
+ size 12653836640
Mistral-22B-v0.1-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7adaa43beb0bd84623cc8616c7b9577b2f10d421af859d1b59142d6abaf45fab
3
+ size 15715416416
Mistral-22B-v0.1-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3850283be56b18a35a79205cf6aa6854fdc435fdef33d2466fedc3b8ac4d30ce
3
+ size 15317678432
Mistral-22B-v0.1-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f6394878e8b2b60ed0234946eda581b22a8007e00322f49f94828e55c65a36f
3
+ size 18244938080
Mistral-22B-v0.1-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1e176ac6630b1129a43f7cdfc9c357362f80896a3aaff74f947e8c648141be8
3
+ size 23630498144
Mistral-22B-v0.1.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8a161dff69ece129ac2b0fbec5d2f60b23b554a865b5436dd7bbd09446d494a
3
+ size 11940534
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ quantized_by: bartowski
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ ## Llamacpp Quantizations of Mistral-22B-v0.1
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/Vezora/Mistral-22B-v0.1
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
+ <s> [INST] <<SYS>>
21
+ {system_prompt}
22
+ <</SYS>>
23
+
24
+ {prompt} [/INST] </s>
25
+ ```
26
+
27
+ ## Download a file (not the whole branch) from below:
28
+
29
+ | Filename | Quant type | File Size | Description |
30
+ | -------- | ---------- | --------- | ----------- |
31
+ | [Mistral-22B-v0.1-Q8_0.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q8_0.gguf) | Q8_0 | 23.63GB | Extremely high quality, generally unneeded but max available quant. |
32
+ | [Mistral-22B-v0.1-Q6_K.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q6_K.gguf) | Q6_K | 18.24GB | Very high quality, near perfect, *recommended*. |
33
+ | [Mistral-22B-v0.1-Q5_K_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q5_K_M.gguf) | Q5_K_M | 15.71GB | High quality, *recommended*. |
34
+ | [Mistral-22B-v0.1-Q5_K_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q5_K_S.gguf) | Q5_K_S | 15.31GB | High quality, *recommended*. |
35
+ | [Mistral-22B-v0.1-Q4_K_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q4_K_M.gguf) | Q4_K_M | 13.33GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
36
+ | [Mistral-22B-v0.1-Q4_K_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q4_K_S.gguf) | Q4_K_S | 12.65GB | Slightly lower quality with more space savings, *recommended*. |
37
+ | [Mistral-22B-v0.1-IQ4_NL.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ4_NL.gguf) | IQ4_NL | 12.60GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
38
+ | [Mistral-22B-v0.1-IQ4_XS.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ4_XS.gguf) | IQ4_XS | 11.92GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
39
+ | [Mistral-22B-v0.1-Q3_K_L.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q3_K_L.gguf) | Q3_K_L | 11.72GB | Lower quality but usable, good for low RAM availability. |
40
+ | [Mistral-22B-v0.1-Q3_K_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q3_K_M.gguf) | Q3_K_M | 10.75GB | Even lower quality. |
41
+ | [Mistral-22B-v0.1-IQ3_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ3_M.gguf) | IQ3_M | 10.05GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
42
+ | [Mistral-22B-v0.1-IQ3_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ3_S.gguf) | IQ3_S | 9.68GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
43
+ | [Mistral-22B-v0.1-Q3_K_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q3_K_S.gguf) | Q3_K_S | 9.63GB | Low quality, not recommended. |
44
+ | [Mistral-22B-v0.1-IQ3_XS.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ3_XS.gguf) | IQ3_XS | 9.17GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
45
+ | [Mistral-22B-v0.1-IQ3_XXS.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ3_XXS.gguf) | IQ3_XXS | 8.59GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
46
+ | [Mistral-22B-v0.1-Q2_K.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-Q2_K.gguf) | Q2_K | 8.26GB | Very low quality but surprisingly usable. |
47
+ | [Mistral-22B-v0.1-IQ2_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ2_M.gguf) | IQ2_M | 7.61GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
48
+ | [Mistral-22B-v0.1-IQ2_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ2_S.gguf) | IQ2_S | 7.03GB | Very low quality, uses SOTA techniques to be usable. |
49
+ | [Mistral-22B-v0.1-IQ2_XS.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ2_XS.gguf) | IQ2_XS | 6.64GB | Very low quality, uses SOTA techniques to be usable. |
50
+ | [Mistral-22B-v0.1-IQ2_XXS.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ2_XXS.gguf) | IQ2_XXS | 5.99GB | Lower quality, uses SOTA techniques to be usable. |
51
+ | [Mistral-22B-v0.1-IQ1_M.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ1_M.gguf) | IQ1_M | 5.26GB | Extremely low quality, *not* recommended. |
52
+ | [Mistral-22B-v0.1-IQ1_S.gguf](https://huggingface.co/bartowski/Mistral-22B-v0.1-GGUF/blob/main/Mistral-22B-v0.1-IQ1_S.gguf) | IQ1_S | 4.82GB | Extremely low quality, *not* recommended. |
53
+
54
+ ## Which file should I choose?
55
+
56
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
57
+
58
+ 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.
59
+
60
+ 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.
61
+
62
+ 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.
63
+
64
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
65
+
66
+ 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.
67
+
68
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
69
+
70
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
71
+
72
+ 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.
73
+
74
+ 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.
75
+
76
+ 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.
77
+
78
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski