bartowski commited on
Commit
63b7482
0 Parent(s):

Duplicate from bartowski/CodeLlama-7B-KStack-GGUF

Browse files
.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ CodeLlama-7B-KStack-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ CodeLlama-7B-KStack-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ CodeLlama-7B-KStack-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ CodeLlama-7B-KStack-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ CodeLlama-7B-KStack-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ CodeLlama-7B-KStack-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ CodeLlama-7B-KStack-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ CodeLlama-7B-KStack-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ CodeLlama-7B-KStack-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ CodeLlama-7B-KStack-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ CodeLlama-7B-KStack-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ CodeLlama-7B-KStack-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ CodeLlama-7B-KStack-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ CodeLlama-7B-KStack-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ CodeLlama-7B-KStack-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ CodeLlama-7B-KStack-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ CodeLlama-7B-KStack-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ CodeLlama-7B-KStack-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ CodeLlama-7B-KStack-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ CodeLlama-7B-KStack-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ CodeLlama-7B-KStack-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ CodeLlama-7B-KStack-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ CodeLlama-7B-KStack-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ CodeLlama-7B-KStack.imatrix filter=lfs diff=lfs merge=lfs -text
CodeLlama-7B-KStack-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2042c361cd478b52b122533460bdee1f99fe94c952e7384d855797923ff7cf4
3
+ size 1651037952
CodeLlama-7B-KStack-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdd159f142a9c8cb335b994bcbdda1b95d275c7a6ce9ed1a554f94824cfa6328
3
+ size 1528649472
CodeLlama-7B-KStack-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd2d7523138e6e838c98cd1fac048a64a1080bc2c38ce4386e5ea834e2228457
3
+ size 2359824640
CodeLlama-7B-KStack-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f6b591c18d154199a67205f61839e42352b2ce5d219be598fb4c01f179c6d4e
3
+ size 2196640000
CodeLlama-7B-KStack-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83e9d0ad3eff81875156153cfe82dc9a3f2a18bccca41f8af55dce768e940699
3
+ size 2034980608
CodeLlama-7B-KStack-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:792945d8f78e9bc0e7da4db84b825b599b982465545d860703fc55edca147d6d
3
+ size 1855018752
CodeLlama-7B-KStack-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23ec8eb91a64061b2f6fec876f45b3694a1710258e2df0993c67f4dfeda9ce62
3
+ size 3114947328
CodeLlama-7B-KStack-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35f946c12875311e6728cf8b1d851cc5db8d1e79321685310ffa88b0cb008da6
3
+ size 2948387584
CodeLlama-7B-KStack-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1a519e2e574d274542ad32e038e13d1bcb86da7a96664a221d1db23c9083af2
3
+ size 2796606208
CodeLlama-7B-KStack-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17ce08730a4402cae4703d72c228c9b9fbbefc961e9de4b57c44a682c9b465c9
3
+ size 2585465088
CodeLlama-7B-KStack-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be2bbe85739b40fc00736887bc5871d36d995babeac58e15f69b48830795ec21
3
+ size 3825898752
CodeLlama-7B-KStack-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90aa0ee6a09a28fa230c3087040f6919b1f23ef8f402d72c71e263e98675916c
3
+ size 3619425536
CodeLlama-7B-KStack-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2fe75a115e6a0a17aa0642deed9cc4936cc5cb519b1e2e0b1ad879a36856d47
3
+ size 2532940032
CodeLlama-7B-KStack-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7c397e8c4d854ae751b42dfc0f1f469a7acaa01dadc391590df929757e451d1
3
+ size 3597193984
CodeLlama-7B-KStack-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5762aefeff8da1f96af3c458c917840549e195ba5e6ff8fe2140b3c4d14ebda6
3
+ size 3298087680
CodeLlama-7B-KStack-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04cbefbc842112450d3048dc87ff1dece91cbc486d83974487711d59b98489cc
3
+ size 2948387584
CodeLlama-7B-KStack-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3194129898305f0fa2fc24a1db1cf0ec9c4459ce2531a522d204220123816c76
3
+ size 4081095936
CodeLlama-7B-KStack-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff1e0ae1bd965199258a8310a806c2b6d7f0c943bf65274b7980d0ab4ed5b39f
3
+ size 3856831744
CodeLlama-7B-KStack-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d455af5d796f950a92631edd1358d756b19f8ec02c188b610c4bc24ff7390a4
3
+ size 4783256832
CodeLlama-7B-KStack-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75198a3c84c9b2df501928045defcb8154d0b00f52b7cd29a9bc9022eb37e8db
3
+ size 4651791616
CodeLlama-7B-KStack-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e72be6528b06c23af755e71c3f7511d171929b7c182f008ada9253c8bf5eb0dc
3
+ size 5529302784
CodeLlama-7B-KStack-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ea2ad8ffc89f05e4d8d1405b1cca9e07c5ffd16f5f5a280f1363cbfcdcf6f80
3
+ size 7161230080
CodeLlama-7B-KStack-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3de698d6005d5e367e35c9c924b1a6a942999cd23cba9544d284c117dadc7e2
3
+ size 26954928640
CodeLlama-7B-KStack.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b16fa032d96349725b22e3f0b1ee07039f15c1cf5ff2b82ff8e0d568ca2f2be
3
+ size 4562185
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - JetBrains/KStack
5
+ results:
6
+ - task:
7
+ type: text-generation
8
+ dataset:
9
+ name: MultiPL-HumanEval (Kotlin)
10
+ type: openai_humaneval
11
+ metrics:
12
+ - name: pass@1
13
+ type: pass@1
14
+ value: 29.19
15
+ tags:
16
+ - code
17
+ quantized_by: bartowski
18
+ pipeline_tag: text-generation
19
+ ---
20
+
21
+ ## Llamacpp imatrix Quantizations of CodeLlama-7B-KStack
22
+
23
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2965">b2965</a> for quantization.
24
+
25
+ Original model: https://huggingface.co/JetBrains/CodeLlama-7B-KStack
26
+
27
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)
28
+
29
+ ## Prompt format
30
+
31
+ No chat template specified so default is used. This may be incorrect, check original model card for details.
32
+
33
+ ```
34
+ <s> [INST] <<SYS>>
35
+ {system_prompt}
36
+ <</SYS>>
37
+
38
+ {prompt} [/INST] </s>
39
+ ```
40
+
41
+ ## Download a file (not the whole branch) from below:
42
+
43
+ | Filename | Quant type | File Size | Description |
44
+ | -------- | ---------- | --------- | ----------- |
45
+ | [CodeLlama-7B-KStack-Q8_0.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q8_0.gguf) | Q8_0 | 7.16GB | Extremely high quality, generally unneeded but max available quant. |
46
+ | [CodeLlama-7B-KStack-Q6_K.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q6_K.gguf) | Q6_K | 5.52GB | Very high quality, near perfect, *recommended*. |
47
+ | [CodeLlama-7B-KStack-Q5_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q5_K_M.gguf) | Q5_K_M | 4.78GB | High quality, *recommended*. |
48
+ | [CodeLlama-7B-KStack-Q5_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q5_K_S.gguf) | Q5_K_S | 4.65GB | High quality, *recommended*. |
49
+ | [CodeLlama-7B-KStack-Q4_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q4_K_M.gguf) | Q4_K_M | 4.08GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
50
+ | [CodeLlama-7B-KStack-Q4_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q4_K_S.gguf) | Q4_K_S | 3.85GB | Slightly lower quality with more space savings, *recommended*. |
51
+ | [CodeLlama-7B-KStack-IQ4_NL.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ4_NL.gguf) | IQ4_NL | 3.82GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
52
+ | [CodeLlama-7B-KStack-IQ4_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ4_XS.gguf) | IQ4_XS | 3.61GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
53
+ | [CodeLlama-7B-KStack-Q3_K_L.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_L.gguf) | Q3_K_L | 3.59GB | Lower quality but usable, good for low RAM availability. |
54
+ | [CodeLlama-7B-KStack-Q3_K_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_M.gguf) | Q3_K_M | 3.29GB | Even lower quality. |
55
+ | [CodeLlama-7B-KStack-IQ3_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_M.gguf) | IQ3_M | 3.11GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
56
+ | [CodeLlama-7B-KStack-IQ3_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_S.gguf) | IQ3_S | 2.94GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
57
+ | [CodeLlama-7B-KStack-Q3_K_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q3_K_S.gguf) | Q3_K_S | 2.94GB | Low quality, not recommended. |
58
+ | [CodeLlama-7B-KStack-IQ3_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_XS.gguf) | IQ3_XS | 2.79GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
59
+ | [CodeLlama-7B-KStack-IQ3_XXS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ3_XXS.gguf) | IQ3_XXS | 2.58GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
60
+ | [CodeLlama-7B-KStack-Q2_K.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-Q2_K.gguf) | Q2_K | 2.53GB | Very low quality but surprisingly usable. |
61
+ | [CodeLlama-7B-KStack-IQ2_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_M.gguf) | IQ2_M | 2.35GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
62
+ | [CodeLlama-7B-KStack-IQ2_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_S.gguf) | IQ2_S | 2.19GB | Very low quality, uses SOTA techniques to be usable. |
63
+ | [CodeLlama-7B-KStack-IQ2_XS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_XS.gguf) | IQ2_XS | 2.03GB | Very low quality, uses SOTA techniques to be usable. |
64
+ | [CodeLlama-7B-KStack-IQ2_XXS.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ2_XXS.gguf) | IQ2_XXS | 1.85GB | Lower quality, uses SOTA techniques to be usable. |
65
+ | [CodeLlama-7B-KStack-IQ1_M.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ1_M.gguf) | IQ1_M | 1.65GB | Extremely low quality, *not* recommended. |
66
+ | [CodeLlama-7B-KStack-IQ1_S.gguf](https://huggingface.co/bartowski/CodeLlama-7B-KStack-GGUF/blob/main/CodeLlama-7B-KStack-IQ1_S.gguf) | IQ1_S | 1.52GB | Extremely low quality, *not* recommended. |
67
+
68
+ ## Downloading using huggingface-cli
69
+
70
+ First, make sure you have hugginface-cli installed:
71
+
72
+ ```
73
+ pip install -U "huggingface_hub[cli]"
74
+ ```
75
+
76
+ Then, you can target the specific file you want:
77
+
78
+ ```
79
+ huggingface-cli download bartowski/CodeLlama-7B-KStack-GGUF --include "CodeLlama-7B-KStack-Q4_K_M.gguf" --local-dir ./
80
+ ```
81
+
82
+ 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:
83
+
84
+ ```
85
+ huggingface-cli download bartowski/CodeLlama-7B-KStack-GGUF --include "CodeLlama-7B-KStack-Q8_0.gguf/*" --local-dir CodeLlama-7B-KStack-Q8_0
86
+ ```
87
+
88
+ You can either specify a new local-dir (CodeLlama-7B-KStack-Q8_0) or download them all in place (./)
89
+
90
+ ## Which file should I choose?
91
+
92
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
93
+
94
+ 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.
95
+
96
+ 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.
97
+
98
+ 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.
99
+
100
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
101
+
102
+ 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.
103
+
104
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
105
+
106
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
107
+
108
+ 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.
109
+
110
+ 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.
111
+
112
+ 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.
113
+
114
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski