bartowski commited on
Commit
0157932
1 Parent(s): 9cb646e

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
+ Llama-3-8B-Instruct-Coder-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Llama-3-8B-Instruct-Coder-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Llama-3-8B-Instruct-Coder-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Llama-3-8B-Instruct-Coder-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Llama-3-8B-Instruct-Coder-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Llama-3-8B-Instruct-Coder-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Llama-3-8B-Instruct-Coder-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Llama-3-8B-Instruct-Coder-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Llama-3-8B-Instruct-Coder-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Llama-3-8B-Instruct-Coder-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Llama-3-8B-Instruct-Coder-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Llama-3-8B-Instruct-Coder-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Llama-3-8B-Instruct-Coder-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Llama-3-8B-Instruct-Coder-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Llama-3-8B-Instruct-Coder-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Llama-3-8B-Instruct-Coder-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Llama-3-8B-Instruct-Coder-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Llama-3-8B-Instruct-Coder-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Llama-3-8B-Instruct-Coder-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Llama-3-8B-Instruct-Coder-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Llama-3-8B-Instruct-Coder-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Llama-3-8B-Instruct-Coder-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Llama-3-8B-Instruct-Coder.imatrix filter=lfs diff=lfs merge=lfs -text
Llama-3-8B-Instruct-Coder-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1672faed2477c3f5d4682702a8383b7f1550f96c23b82412d1bac5d32937a4ee
3
+ size 2161971840
Llama-3-8B-Instruct-Coder-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7acd521504242b93254633831b03b62ab8441b4b2b9e91ef36681c1626857ee
3
+ size 2019627648
Llama-3-8B-Instruct-Coder-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0afc44a1e5a6e9f46d87c028e3b438b1bec2189e691357ae16aa549ce0aa1ca1
3
+ size 2948280928
Llama-3-8B-Instruct-Coder-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2a898fb0836b09fdaf4531d804e9ed9d82b0e3fbd6654d2a32b9f45241681c5
3
+ size 2758488672
Llama-3-8B-Instruct-Coder-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0080a7a9a5143d65f149609453845e3fc980b08da1ae909d11ebf8f4dd69617
3
+ size 2605781600
Llama-3-8B-Instruct-Coder-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70a7ef8e6305a737eaca47792157e0dbf158003119040b195812d3502bbe1e4c
3
+ size 2399212160
Llama-3-8B-Instruct-Coder-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e14d7492bcdfb352a8375fe4c4b79e833f20aed43c7a19273dd8de70096c1b3
3
+ size 3784823392
Llama-3-8B-Instruct-Coder-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a1c853910d63097e3628d8f5647d9585aefe884d08aa751401d86e2ab4306b4
3
+ size 3682325088
Llama-3-8B-Instruct-Coder-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dde1550fd4da2c5bdfb5a8b4502933bf9ce7433a4106e873c138efc1950d2af4
3
+ size 3518747232
Llama-3-8B-Instruct-Coder-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc8ad3214c82833e8e471c53765464aa57fd3ff4c0ed2b1a9d3bb2fd72a633ba
3
+ size 3274912352
Llama-3-8B-Instruct-Coder-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bc5a546114c249312c2b0ed805ea63770c6b3fadec265094ce158d317a0930b
3
+ size 4677988960
Llama-3-8B-Instruct-Coder-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bccc89f280cbc1011492ac206618a2c5c68f3be8b2b406a08af54c8c4ec66236
3
+ size 4447662688
Llama-3-8B-Instruct-Coder-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30849994058392b90f26a9b36869a9a8f84cb252f5b534bd3e26c1aac3c2a5cb
3
+ size 3179131488
Llama-3-8B-Instruct-Coder-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a56ee702c60fed07a4301b5a766f05241f8a174ff9928f6aac8a8a2df686a235
3
+ size 4321956448
Llama-3-8B-Instruct-Coder-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a42f3e78a34eed205dc3e86840ef0923b60b40e0ecc85ed37bf4b092de16b1f
3
+ size 4018917984
Llama-3-8B-Instruct-Coder-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58b59c864e188458d749435391b7ce8530f7d86809fe54c6f4024a6ee11c1713
3
+ size 3664499296
Llama-3-8B-Instruct-Coder-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:639ab8e3aeb7aa82cff6d8e6ef062d1c3e5a6d13e6d76e956af49f63f0e704f8
3
+ size 4920734304
Llama-3-8B-Instruct-Coder-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33fc5f30da1b1950a75690c02143abf09969919faf53b8b49dbeea814716b395
3
+ size 4692669024
Llama-3-8B-Instruct-Coder-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b94b6e12c00482949cccb2309736988e66a787ca785968862c489a7f385c3d5
3
+ size 5732987488
Llama-3-8B-Instruct-Coder-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db7f93ff3a6545bd13de748f30b4741af418d4964f86410408b4ce3048b007d8
3
+ size 5599294048
Llama-3-8B-Instruct-Coder-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74cfbc10cf1d3bb9066e351837d5c1375cf95f9fb40939c1cb95f19c0fbd7cf6
3
+ size 6596006496
Llama-3-8B-Instruct-Coder-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed4294f58ed03621b31498c63d3750b34e57eaf90d7faf95e91584fa64c737d9
3
+ size 8540770912
Llama-3-8B-Instruct-Coder.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f16311cb78bc44109e9f8560250faf776501539c3acfc36d51a00eedf6bb2ffe
3
+ size 4988166
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - text-generation-inference
7
+ - transformers
8
+ - unsloth
9
+ - llama
10
+ - trl
11
+ - sft
12
+ base_model: unsloth/llama-3-8b-Instruct-bnb-4bit
13
+ quantized_by: bartowski
14
+ pipeline_tag: text-generation
15
+ ---
16
+
17
+ ## Llamacpp imatrix Quantizations of Llama-3-8B-Instruct-Coder
18
+
19
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2777">b2777</a> for quantization.
20
+
21
+ Original model: https://huggingface.co/rombodawg/Llama-3-8B-Instruct-Coder
22
+
23
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
24
+
25
+ ## Prompt format
26
+
27
+ ```
28
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
29
+
30
+ {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
31
+
32
+ {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
33
+
34
+
35
+ ```
36
+
37
+ ## Download a file (not the whole branch) from below:
38
+
39
+ | Filename | Quant type | File Size | Description |
40
+ | -------- | ---------- | --------- | ----------- |
41
+ | [Llama-3-8B-Instruct-Coder-Q8_0.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q8_0.gguf) | Q8_0 | 8.54GB | Extremely high quality, generally unneeded but max available quant. |
42
+ | [Llama-3-8B-Instruct-Coder-Q6_K.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q6_K.gguf) | Q6_K | 6.59GB | Very high quality, near perfect, *recommended*. |
43
+ | [Llama-3-8B-Instruct-Coder-Q5_K_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q5_K_M.gguf) | Q5_K_M | 5.73GB | High quality, *recommended*. |
44
+ | [Llama-3-8B-Instruct-Coder-Q5_K_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q5_K_S.gguf) | Q5_K_S | 5.59GB | High quality, *recommended*. |
45
+ | [Llama-3-8B-Instruct-Coder-Q4_K_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q4_K_M.gguf) | Q4_K_M | 4.92GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
46
+ | [Llama-3-8B-Instruct-Coder-Q4_K_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q4_K_S.gguf) | Q4_K_S | 4.69GB | Slightly lower quality with more space savings, *recommended*. |
47
+ | [Llama-3-8B-Instruct-Coder-IQ4_NL.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ4_NL.gguf) | IQ4_NL | 4.67GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
48
+ | [Llama-3-8B-Instruct-Coder-IQ4_XS.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ4_XS.gguf) | IQ4_XS | 4.44GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
49
+ | [Llama-3-8B-Instruct-Coder-Q3_K_L.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q3_K_L.gguf) | Q3_K_L | 4.32GB | Lower quality but usable, good for low RAM availability. |
50
+ | [Llama-3-8B-Instruct-Coder-Q3_K_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q3_K_M.gguf) | Q3_K_M | 4.01GB | Even lower quality. |
51
+ | [Llama-3-8B-Instruct-Coder-IQ3_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ3_M.gguf) | IQ3_M | 3.78GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
52
+ | [Llama-3-8B-Instruct-Coder-IQ3_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ3_S.gguf) | IQ3_S | 3.68GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
53
+ | [Llama-3-8B-Instruct-Coder-Q3_K_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q3_K_S.gguf) | Q3_K_S | 3.66GB | Low quality, not recommended. |
54
+ | [Llama-3-8B-Instruct-Coder-IQ3_XS.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ3_XS.gguf) | IQ3_XS | 3.51GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
55
+ | [Llama-3-8B-Instruct-Coder-IQ3_XXS.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ3_XXS.gguf) | IQ3_XXS | 3.27GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
56
+ | [Llama-3-8B-Instruct-Coder-Q2_K.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-Q2_K.gguf) | Q2_K | 3.17GB | Very low quality but surprisingly usable. |
57
+ | [Llama-3-8B-Instruct-Coder-IQ2_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ2_M.gguf) | IQ2_M | 2.94GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
58
+ | [Llama-3-8B-Instruct-Coder-IQ2_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ2_S.gguf) | IQ2_S | 2.75GB | Very low quality, uses SOTA techniques to be usable. |
59
+ | [Llama-3-8B-Instruct-Coder-IQ2_XS.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ2_XS.gguf) | IQ2_XS | 2.60GB | Very low quality, uses SOTA techniques to be usable. |
60
+ | [Llama-3-8B-Instruct-Coder-IQ2_XXS.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ2_XXS.gguf) | IQ2_XXS | 2.39GB | Lower quality, uses SOTA techniques to be usable. |
61
+ | [Llama-3-8B-Instruct-Coder-IQ1_M.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ1_M.gguf) | IQ1_M | 2.16GB | Extremely low quality, *not* recommended. |
62
+ | [Llama-3-8B-Instruct-Coder-IQ1_S.gguf](https://huggingface.co/bartowski/Llama-3-8B-Instruct-Coder-GGUF/blob/main/Llama-3-8B-Instruct-Coder-IQ1_S.gguf) | IQ1_S | 2.01GB | Extremely low quality, *not* recommended. |
63
+
64
+ ## Downloading using huggingface-cli
65
+
66
+ First, make sure you have hugginface-cli installed:
67
+
68
+ ```
69
+ pip install -U "huggingface_hub[cli]"
70
+ ```
71
+
72
+ Then, you can target the specific file you want:
73
+
74
+ ```
75
+ huggingface-cli download bartowski/Llama-3-8B-Instruct-Coder-GGUF --include "Llama-3-8B-Instruct-Coder-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
76
+ ```
77
+
78
+ 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:
79
+
80
+ ```
81
+ huggingface-cli download bartowski/Llama-3-8B-Instruct-Coder-GGUF --include "Llama-3-8B-Instruct-Coder-Q8_0.gguf/*" --local-dir Llama-3-8B-Instruct-Coder-Q8_0 --local-dir-use-symlinks False
82
+ ```
83
+
84
+ You can either specify a new local-dir (Llama-3-8B-Instruct-Coder-Q8_0) or download them all in place (./)
85
+
86
+ ## Which file should I choose?
87
+
88
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
89
+
90
+ 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.
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
97
+
98
+ 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.
99
+
100
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
101
+
102
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
103
+
104
+ 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.
105
+
106
+ 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.
107
+
108
+ 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.
109
+
110
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski