bartowski commited on
Commit
1046e7c
1 Parent(s): 0bc71f5

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,24 @@ 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
+ Codestral-22B-v0.1-abliterated-v3-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Codestral-22B-v0.1-abliterated-v3-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Codestral-22B-v0.1-abliterated-v3-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Codestral-22B-v0.1-abliterated-v3-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Codestral-22B-v0.1-abliterated-v3-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Codestral-22B-v0.1-abliterated-v3-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Codestral-22B-v0.1-abliterated-v3-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Codestral-22B-v0.1-abliterated-v3-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Codestral-22B-v0.1-abliterated-v3-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Codestral-22B-v0.1-abliterated-v3-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Codestral-22B-v0.1-abliterated-v3-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Codestral-22B-v0.1-abliterated-v3-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Codestral-22B-v0.1-abliterated-v3-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Codestral-22B-v0.1-abliterated-v3-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Codestral-22B-v0.1-abliterated-v3-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Codestral-22B-v0.1-abliterated-v3-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Codestral-22B-v0.1-abliterated-v3-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Codestral-22B-v0.1-abliterated-v3.imatrix filter=lfs diff=lfs merge=lfs -text
Codestral-22B-v0.1-abliterated-v3-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2266ca2c281e4cb29f6f3cedeced8750a5f4aa103c0138fbcfc8038aba358e6
3
+ size 7618961888
Codestral-22B-v0.1-abliterated-v3-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d6d764b7e3888a863429d018ed71fb028daaabb59438d84f24945f9a3979839
3
+ size 7035429344
Codestral-22B-v0.1-abliterated-v3-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd8496b116bdd1b4e28ec38e447c5d2fa995031b644bb723faf625c6a0b033fd
3
+ size 6646145504
Codestral-22B-v0.1-abliterated-v3-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d885635762bbe80409373f712ff7b36a861a1524dd15d31c285762dc104e54e
3
+ size 10062406112
Codestral-22B-v0.1-abliterated-v3-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2c15903b8e7b98850aa37c0ccc57f1a2ee442847a8cb37bb75b25f3d64bfe71
3
+ size 9176097248
Codestral-22B-v0.1-abliterated-v3-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92c8898f13bec33a6c1cce29d2fa7be838b417f51ac53975ee69bfa8724b46b0
3
+ size 8598856160
Codestral-22B-v0.1-abliterated-v3-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d0c6792351ea43501d04ba6b8d8f1ceea137adc5ad6c188346d17eb328a0a8e
3
+ size 11935293920
Codestral-22B-v0.1-abliterated-v3-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40280d20d54e9b04fa6b543309b73e85ecbf5288d881f5b66af4bf57020d59b0
3
+ size 8272093664
Codestral-22B-v0.1-abliterated-v3-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d27278b61ff4fa6d3ecad2e3d47c5d1d4b1092d1038d535d59d745a922ba2d7
3
+ size 11730428384
Codestral-22B-v0.1-abliterated-v3-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc45a0db2eac6033da94511283e0591a5c553f700701292e7ff6ab0d19054277
3
+ size 10756825568
Codestral-22B-v0.1-abliterated-v3-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:399d02a1ce9039b8778dddbf9fb095c4978bd5644908728e08005b9a9a07f298
3
+ size 9641271776
Codestral-22B-v0.1-abliterated-v3-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7e707f57186868bb2c402bb2e57e2b27728798756fc3d978065e8ee75e27d0d
3
+ size 13341237728
Codestral-22B-v0.1-abliterated-v3-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec2feeba4233e9d9c9e2ee5a2929c5af5aad32ecf8256bd73508bc6b004268aa
3
+ size 12660384224
Codestral-22B-v0.1-abliterated-v3-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:236547bec835ada20235025c21b33c7308b5c6d9b6341454dd0de866798fbf97
3
+ size 15722553824
Codestral-22B-v0.1-abliterated-v3-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1aae6fac2cacb3bf5174020fa1fa8c0ab173ad29305412ad91c77d187cb85fa4
3
+ size 15324815840
Codestral-22B-v0.1-abliterated-v3-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48cbd26e594ceb6728da3bf6fafbc0a874c9df89d2344d645b968662fb3cf4a2
3
+ size 18252702176
Codestral-22B-v0.1-abliterated-v3-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09e435367454d6f457a1a1ebb35924491df1737e3a2aa2e9f3e65cfb0eae379a
3
+ size 23640547808
Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00001-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ee5c27bb2a939934fd26e1a42846dfa9f79aab9ce13671b8c71489d09157598
3
+ size 42935002080
Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00002-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72f36bb6a25b907c49ba86c7627757781d05e0041dfa74c643ed5d3962239fad
3
+ size 42934237536
Codestral-22B-v0.1-abliterated-v3-f32.gguf/Codestral-22B-v0.1-abliterated-v3-f32-00003-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fefb8503cd7583cc9ece405e241e148805dd6aceae82888d72636a2b95d1616
3
+ size 3120661664
Codestral-22B-v0.1-abliterated-v3.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4aee74b3a704ebc61a79f83123dbc110f29f0b06027e73958aaed6a4ddc422bf
3
+ size 11940579
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ license_name: mnpl
5
+ license_link: https://mistral.ai/licences/MNPL-0.1.md
6
+ tags:
7
+ - code
8
+ language:
9
+ - code
10
+ quantized_by: bartowski
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ ## Llamacpp imatrix Quantizations of Codestral-22B-v0.1-abliterated-v3
15
+
16
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3086">b3086</a> for quantization.
17
+
18
+ Original model: https://huggingface.co/failspy/Codestral-22B-v0.1-abliterated-v3
19
+
20
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
21
+
22
+ ## Prompt format
23
+
24
+ No chat template specified so default is used. This may be incorrect, check original model card for details.
25
+
26
+ ```
27
+ <s>[INST] <<SYS>>
28
+ {system_prompt}
29
+ <</SYS>>
30
+
31
+ {prompt}[/INST] </s>
32
+ ```
33
+
34
+ ## Download a file (not the whole branch) from below:
35
+
36
+ | Filename | Quant type | File Size | Description |
37
+ | -------- | ---------- | --------- | ----------- |
38
+ | [Codestral-22B-v0.1-abliterated-v3-Q8_0.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q8_0.gguf) | Q8_0 | 23.64GB | Extremely high quality, generally unneeded but max available quant. |
39
+ | [Codestral-22B-v0.1-abliterated-v3-Q6_K.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q6_K.gguf) | Q6_K | 18.25GB | Very high quality, near perfect, *recommended*. |
40
+ | [Codestral-22B-v0.1-abliterated-v3-Q5_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q5_K_M.gguf) | Q5_K_M | 15.72GB | High quality, *recommended*. |
41
+ | [Codestral-22B-v0.1-abliterated-v3-Q5_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q5_K_S.gguf) | Q5_K_S | 15.32GB | High quality, *recommended*. |
42
+ | [Codestral-22B-v0.1-abliterated-v3-Q4_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q4_K_M.gguf) | Q4_K_M | 13.34GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
43
+ | [Codestral-22B-v0.1-abliterated-v3-Q4_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q4_K_S.gguf) | Q4_K_S | 12.66GB | Slightly lower quality with more space savings, *recommended*. |
44
+ | [Codestral-22B-v0.1-abliterated-v3-IQ4_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ4_XS.gguf) | IQ4_XS | 11.93GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
45
+ | [Codestral-22B-v0.1-abliterated-v3-Q3_K_L.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q3_K_L.gguf) | Q3_K_L | 11.73GB | Lower quality but usable, good for low RAM availability. |
46
+ | [Codestral-22B-v0.1-abliterated-v3-Q3_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q3_K_M.gguf) | Q3_K_M | 10.75GB | Even lower quality. |
47
+ | [Codestral-22B-v0.1-abliterated-v3-IQ3_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ3_M.gguf) | IQ3_M | 10.06GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
48
+ | [Codestral-22B-v0.1-abliterated-v3-Q3_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q3_K_S.gguf) | Q3_K_S | 9.64GB | Low quality, not recommended. |
49
+ | [Codestral-22B-v0.1-abliterated-v3-IQ3_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ3_XS.gguf) | IQ3_XS | 9.17GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
50
+ | [Codestral-22B-v0.1-abliterated-v3-IQ3_XXS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ3_XXS.gguf) | IQ3_XXS | 8.59GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
51
+ | [Codestral-22B-v0.1-abliterated-v3-Q2_K.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-Q2_K.gguf) | Q2_K | 8.27GB | Very low quality but surprisingly usable. |
52
+ | [Codestral-22B-v0.1-abliterated-v3-IQ2_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ2_M.gguf) | IQ2_M | 7.61GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
53
+ | [Codestral-22B-v0.1-abliterated-v3-IQ2_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ2_S.gguf) | IQ2_S | 7.03GB | Very low quality, uses SOTA techniques to be usable. |
54
+ | [Codestral-22B-v0.1-abliterated-v3-IQ2_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF/blob/main/Codestral-22B-v0.1-abliterated-v3-IQ2_XS.gguf) | IQ2_XS | 6.64GB | Very low quality, uses SOTA techniques to be usable. |
55
+
56
+ ## Downloading using huggingface-cli
57
+
58
+ First, make sure you have hugginface-cli installed:
59
+
60
+ ```
61
+ pip install -U "huggingface_hub[cli]"
62
+ ```
63
+
64
+ Then, you can target the specific file you want:
65
+
66
+ ```
67
+ huggingface-cli download bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF --include "Codestral-22B-v0.1-abliterated-v3-Q4_K_M.gguf" --local-dir ./
68
+ ```
69
+
70
+ 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:
71
+
72
+ ```
73
+ huggingface-cli download bartowski/Codestral-22B-v0.1-abliterated-v3-GGUF --include "Codestral-22B-v0.1-abliterated-v3-Q8_0.gguf/*" --local-dir Codestral-22B-v0.1-abliterated-v3-Q8_0
74
+ ```
75
+
76
+ You can either specify a new local-dir (Codestral-22B-v0.1-abliterated-v3-Q8_0) or download them all in place (./)
77
+
78
+ ## Which file should I choose?
79
+
80
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
81
+
82
+ 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.
83
+
84
+ 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.
85
+
86
+ 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.
87
+
88
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
89
+
90
+ 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.
91
+
92
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
93
+
94
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
95
+
96
+ 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.
97
+
98
+ 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.
99
+
100
+ 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.
101
+
102
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski