bartowski commited on
Commit
8598d48
1 Parent(s): 22cf195

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-Smaug-8B-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Llama-3-Smaug-8B-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Llama-3-Smaug-8B-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Llama-3-Smaug-8B-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Llama-3-Smaug-8B-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Llama-3-Smaug-8B-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Llama-3-Smaug-8B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Llama-3-Smaug-8B-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Llama-3-Smaug-8B-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Llama-3-Smaug-8B-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Llama-3-Smaug-8B-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Llama-3-Smaug-8B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Llama-3-Smaug-8B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Llama-3-Smaug-8B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Llama-3-Smaug-8B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Llama-3-Smaug-8B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Llama-3-Smaug-8B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Llama-3-Smaug-8B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Llama-3-Smaug-8B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Llama-3-Smaug-8B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Llama-3-Smaug-8B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Llama-3-Smaug-8B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Llama-3-Smaug-8B.imatrix filter=lfs diff=lfs merge=lfs -text
Llama-3-Smaug-8B-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:073eda0de8a3379e3cd9c3165fa0eac64dddd5dd20b73aff85b63af17acdae07
3
+ size 2161971488
Llama-3-Smaug-8B-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b1a684eea21f4a151d4b831384446852d4ef0c2bf3acc4b02e6cd13541b1ba1
3
+ size 2019627296
Llama-3-Smaug-8B-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e884af3b471eb4093e6d85c910581d0206c4e96e0abbf82e9da2a1953632dc
3
+ size 2948280608
Llama-3-Smaug-8B-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:442bc862f4a77db45095e34ba15ff3f878b068def71ca34af0a3ac5c9c52b6eb
3
+ size 2758488352
Llama-3-Smaug-8B-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2853b5eb1f9458c84b56a346e185d53e98a91b93d3e318d637d2bafe5a373c96
3
+ size 2605781280
Llama-3-Smaug-8B-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ebb80c074501d000e942f7beae62550f11c94754d600040b5ffc32958497330
3
+ size 2399211808
Llama-3-Smaug-8B-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14590bf9f1da0e3a4285dad82b35b40d55e3d77d9cf989b8ad9862d2a1c80072
3
+ size 3784823072
Llama-3-Smaug-8B-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf1c6f166580fe80608b69621c32c50b2842b30c6251995dfc4bf34c84670b35
3
+ size 3682324768
Llama-3-Smaug-8B-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c43b84cfd7a729879588f97a87d4374329b40f00e56400e58e195bfb0e24df54
3
+ size 3518746912
Llama-3-Smaug-8B-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffc3c11fa4776bad4c95f08447e18e09c9374dd9730908182d950827e57641ed
3
+ size 3274912032
Llama-3-Smaug-8B-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:399dd61f353bf818574f154d486d970cc17209418591ba74a44608b40aeb5e19
3
+ size 4677988640
Llama-3-Smaug-8B-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9db650b5b790986fc82f66b892552c54a7a42a37ccd6bc48a9108e6574ce5a5a
3
+ size 4447662368
Llama-3-Smaug-8B-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed5bcc18c18b85c2a3ba457ab3a457b3a6765e480a838a0b4ac5e795706fd95c
3
+ size 3179131168
Llama-3-Smaug-8B-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de78cd5469f820cf486a89261e92e915c20169155ee3f74750393fd73096aa6c
3
+ size 4321956128
Llama-3-Smaug-8B-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e775e5d3f2186f89bab63ff0d6b5928d1e73551e6e6be82a9a7896520c084d4
3
+ size 4018917664
Llama-3-Smaug-8B-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:817cbc2a3f4740d3293ef845464e02c1b1062424381df31a6b045087163295e0
3
+ size 3664498976
Llama-3-Smaug-8B-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e80f02f34d8c2b2b3a94666c23af084d236a530876d29b03d62c7776a4ba7057
3
+ size 4920733984
Llama-3-Smaug-8B-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb4244b8cf5e3a7e7c6bd8127cfcba31d01f34f91e4e6082c040fd3700549217
3
+ size 4692668704
Llama-3-Smaug-8B-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d8d288e0ebbfe831b880ec78883622abfd7660bd118519e2ec5c53f924d50a3
3
+ size 5732987168
Llama-3-Smaug-8B-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1388733bb19bdf7b8c6dad9a291fa3a18e0c412b7a631fc99e6b66413cda75eb
3
+ size 5599293728
Llama-3-Smaug-8B-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32f9b0fa1e2b36f955d46a22b5dbb3cbf24a11260ef128cfabe9c8d80209881c
3
+ size 6596006176
Llama-3-Smaug-8B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31aab4e4a0a68ef4b54e37883bec05a59107aa6c0508237ffe1fdb6ab57ac326
3
+ size 8540770592
Llama-3-Smaug-8B.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1e0efda8ece3d51dff93e3fd6a075b663d48043aedac53f8eba91dcdc00f566
3
+ size 4988126
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: llama2
4
+ quantized_by: bartowski
5
+ pipeline_tag: text-generation
6
+ ---
7
+
8
+ ## Llamacpp Quantizations of Llama-3-Smaug-8B
9
+
10
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/experimental">experimental</a> for quantization.
11
+
12
+ Original model: https://huggingface.co/abacusai/Llama-3-Smaug-8B
13
+
14
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
15
+
16
+ ## Prompt format
17
+
18
+ ```
19
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
20
+
21
+ {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
22
+
23
+ {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
24
+
25
+
26
+ ```
27
+
28
+ ## Download a file (not the whole branch) from below:
29
+
30
+ | Filename | Quant type | File Size | Description |
31
+ | -------- | ---------- | --------- | ----------- |
32
+ | [Llama-3-Smaug-8B-Q8_0.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q8_0.gguf) | Q8_0 | 8.54GB | Extremely high quality, generally unneeded but max available quant. |
33
+ | [Llama-3-Smaug-8B-Q6_K.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q6_K.gguf) | Q6_K | 6.59GB | Very high quality, near perfect, *recommended*. |
34
+ | [Llama-3-Smaug-8B-Q5_K_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q5_K_M.gguf) | Q5_K_M | 5.73GB | High quality, *recommended*. |
35
+ | [Llama-3-Smaug-8B-Q5_K_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q5_K_S.gguf) | Q5_K_S | 5.59GB | High quality, *recommended*. |
36
+ | [Llama-3-Smaug-8B-Q4_K_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q4_K_M.gguf) | Q4_K_M | 4.92GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
37
+ | [Llama-3-Smaug-8B-Q4_K_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q4_K_S.gguf) | Q4_K_S | 4.69GB | Slightly lower quality with more space savings, *recommended*. |
38
+ | [Llama-3-Smaug-8B-IQ4_NL.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ4_NL.gguf) | IQ4_NL | 4.67GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
39
+ | [Llama-3-Smaug-8B-IQ4_XS.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ4_XS.gguf) | IQ4_XS | 4.44GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
40
+ | [Llama-3-Smaug-8B-Q3_K_L.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q3_K_L.gguf) | Q3_K_L | 4.32GB | Lower quality but usable, good for low RAM availability. |
41
+ | [Llama-3-Smaug-8B-Q3_K_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q3_K_M.gguf) | Q3_K_M | 4.01GB | Even lower quality. |
42
+ | [Llama-3-Smaug-8B-IQ3_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ3_M.gguf) | IQ3_M | 3.78GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
43
+ | [Llama-3-Smaug-8B-IQ3_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-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. |
44
+ | [Llama-3-Smaug-8B-Q3_K_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q3_K_S.gguf) | Q3_K_S | 3.66GB | Low quality, not recommended. |
45
+ | [Llama-3-Smaug-8B-IQ3_XS.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ3_XS.gguf) | IQ3_XS | 3.51GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
46
+ | [Llama-3-Smaug-8B-IQ3_XXS.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ3_XXS.gguf) | IQ3_XXS | 3.27GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
47
+ | [Llama-3-Smaug-8B-Q2_K.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-Q2_K.gguf) | Q2_K | 3.17GB | Very low quality but surprisingly usable. |
48
+ | [Llama-3-Smaug-8B-IQ2_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ2_M.gguf) | IQ2_M | 2.94GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
49
+ | [Llama-3-Smaug-8B-IQ2_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ2_S.gguf) | IQ2_S | 2.75GB | Very low quality, uses SOTA techniques to be usable. |
50
+ | [Llama-3-Smaug-8B-IQ2_XS.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ2_XS.gguf) | IQ2_XS | 2.60GB | Very low quality, uses SOTA techniques to be usable. |
51
+ | [Llama-3-Smaug-8B-IQ2_XXS.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ2_XXS.gguf) | IQ2_XXS | 2.39GB | Lower quality, uses SOTA techniques to be usable. |
52
+ | [Llama-3-Smaug-8B-IQ1_M.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ1_M.gguf) | IQ1_M | 2.16GB | Extremely low quality, *not* recommended. |
53
+ | [Llama-3-Smaug-8B-IQ1_S.gguf](https://huggingface.co/bartowski/Llama-3-Smaug-8B-GGUF/blob/main/Llama-3-Smaug-8B-IQ1_S.gguf) | IQ1_S | 2.01GB | Extremely low quality, *not* recommended. |
54
+
55
+ ## Which file should I choose?
56
+
57
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
58
+
59
+ 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.
60
+
61
+ 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.
62
+
63
+ 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.
64
+
65
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
66
+
67
+ 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.
68
+
69
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
70
+
71
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
72
+
73
+ 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.
74
+
75
+ 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.
76
+
77
+ 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.
78
+
79
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski