bartowski commited on
Commit
57201bd
1 Parent(s): 71d140d

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,27 @@ 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-sqlcoder-8b-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ llama-3-sqlcoder-8b-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ llama-3-sqlcoder-8b-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ llama-3-sqlcoder-8b-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ llama-3-sqlcoder-8b-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ llama-3-sqlcoder-8b-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ llama-3-sqlcoder-8b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ llama-3-sqlcoder-8b-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ llama-3-sqlcoder-8b-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ llama-3-sqlcoder-8b-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ llama-3-sqlcoder-8b-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ llama-3-sqlcoder-8b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ llama-3-sqlcoder-8b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ llama-3-sqlcoder-8b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ llama-3-sqlcoder-8b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ llama-3-sqlcoder-8b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ llama-3-sqlcoder-8b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ llama-3-sqlcoder-8b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ llama-3-sqlcoder-8b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ llama-3-sqlcoder-8b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ llama-3-sqlcoder-8b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ llama-3-sqlcoder-8b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ llama-3-sqlcoder-8b-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ llama-3-sqlcoder-8b.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ metrics:
4
+ - accuracy
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - code
8
+ quantized_by: bartowski
9
+ ---
10
+
11
+ ## Llamacpp imatrix Quantizations of llama-3-sqlcoder-8b
12
+
13
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2940">b2940</a> for quantization.
14
+
15
+ Original model: https://huggingface.co/defog/llama-3-sqlcoder-8b
16
+
17
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)
18
+
19
+ ## Prompt format
20
+
21
+ ```
22
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
23
+
24
+ {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
25
+
26
+ {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
27
+
28
+
29
+ ```
30
+
31
+ ## Download a file (not the whole branch) from below:
32
+
33
+ | Filename | Quant type | File Size | Description |
34
+ | -------- | ---------- | --------- | ----------- |
35
+ | [llama-3-sqlcoder-8b-Q8_0.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q8_0.gguf) | Q8_0 | 8.54GB | Extremely high quality, generally unneeded but max available quant. |
36
+ | [llama-3-sqlcoder-8b-Q6_K.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q6_K.gguf) | Q6_K | 6.59GB | Very high quality, near perfect, *recommended*. |
37
+ | [llama-3-sqlcoder-8b-Q5_K_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q5_K_M.gguf) | Q5_K_M | 5.73GB | High quality, *recommended*. |
38
+ | [llama-3-sqlcoder-8b-Q5_K_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q5_K_S.gguf) | Q5_K_S | 5.59GB | High quality, *recommended*. |
39
+ | [llama-3-sqlcoder-8b-Q4_K_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q4_K_M.gguf) | Q4_K_M | 4.92GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
40
+ | [llama-3-sqlcoder-8b-Q4_K_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q4_K_S.gguf) | Q4_K_S | 4.69GB | Slightly lower quality with more space savings, *recommended*. |
41
+ | [llama-3-sqlcoder-8b-IQ4_NL.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ4_NL.gguf) | IQ4_NL | 4.67GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
42
+ | [llama-3-sqlcoder-8b-IQ4_XS.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ4_XS.gguf) | IQ4_XS | 4.44GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
43
+ | [llama-3-sqlcoder-8b-Q3_K_L.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q3_K_L.gguf) | Q3_K_L | 4.32GB | Lower quality but usable, good for low RAM availability. |
44
+ | [llama-3-sqlcoder-8b-Q3_K_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q3_K_M.gguf) | Q3_K_M | 4.01GB | Even lower quality. |
45
+ | [llama-3-sqlcoder-8b-IQ3_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ3_M.gguf) | IQ3_M | 3.78GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
46
+ | [llama-3-sqlcoder-8b-IQ3_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-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. |
47
+ | [llama-3-sqlcoder-8b-Q3_K_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q3_K_S.gguf) | Q3_K_S | 3.66GB | Low quality, not recommended. |
48
+ | [llama-3-sqlcoder-8b-IQ3_XS.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ3_XS.gguf) | IQ3_XS | 3.51GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
49
+ | [llama-3-sqlcoder-8b-IQ3_XXS.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ3_XXS.gguf) | IQ3_XXS | 3.27GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
50
+ | [llama-3-sqlcoder-8b-Q2_K.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-Q2_K.gguf) | Q2_K | 3.17GB | Very low quality but surprisingly usable. |
51
+ | [llama-3-sqlcoder-8b-IQ2_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ2_M.gguf) | IQ2_M | 2.94GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
52
+ | [llama-3-sqlcoder-8b-IQ2_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ2_S.gguf) | IQ2_S | 2.75GB | Very low quality, uses SOTA techniques to be usable. |
53
+ | [llama-3-sqlcoder-8b-IQ2_XS.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ2_XS.gguf) | IQ2_XS | 2.60GB | Very low quality, uses SOTA techniques to be usable. |
54
+ | [llama-3-sqlcoder-8b-IQ2_XXS.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ2_XXS.gguf) | IQ2_XXS | 2.39GB | Lower quality, uses SOTA techniques to be usable. |
55
+ | [llama-3-sqlcoder-8b-IQ1_M.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ1_M.gguf) | IQ1_M | 2.16GB | Extremely low quality, *not* recommended. |
56
+ | [llama-3-sqlcoder-8b-IQ1_S.gguf](https://huggingface.co/bartowski/llama-3-sqlcoder-8b-GGUF/blob/main/llama-3-sqlcoder-8b-IQ1_S.gguf) | IQ1_S | 2.01GB | Extremely low quality, *not* recommended. |
57
+
58
+ ## Downloading using huggingface-cli
59
+
60
+ First, make sure you have hugginface-cli installed:
61
+
62
+ ```
63
+ pip install -U "huggingface_hub[cli]"
64
+ ```
65
+
66
+ Then, you can target the specific file you want:
67
+
68
+ ```
69
+ huggingface-cli download bartowski/llama-3-sqlcoder-8b-GGUF --include "llama-3-sqlcoder-8b-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
70
+ ```
71
+
72
+ 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:
73
+
74
+ ```
75
+ huggingface-cli download bartowski/llama-3-sqlcoder-8b-GGUF --include "llama-3-sqlcoder-8b-Q8_0.gguf/*" --local-dir llama-3-sqlcoder-8b-Q8_0 --local-dir-use-symlinks False
76
+ ```
77
+
78
+ You can either specify a new local-dir (llama-3-sqlcoder-8b-Q8_0) or download them all in place (./)
79
+
80
+ ## Which file should I choose?
81
+
82
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
83
+
84
+ 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.
85
+
86
+ 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.
87
+
88
+ 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.
89
+
90
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
91
+
92
+ 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.
93
+
94
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
95
+
96
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
97
+
98
+ 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.
99
+
100
+ 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.
101
+
102
+ 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.
103
+
104
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
llama-3-sqlcoder-8b-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6ade89b7771bd627c1a2ca7b560e904e59eba1e7d65b401ede18851286562b1
3
+ size 2161971744
llama-3-sqlcoder-8b-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5e37098668c5d0a400ece7f6ebc49b78ed159c440304a95443d8aa038790e0b
3
+ size 2019627552
llama-3-sqlcoder-8b-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:749af5c6ebcabb7753cd20034ceb0d46c510a26e659e42a1ce9ffca087667fed
3
+ size 2948280864
llama-3-sqlcoder-8b-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ed5014ff28c994a30e504c37a85c8be617fb51a939d7e14a244fd7f38ffa7b6
3
+ size 2758488608
llama-3-sqlcoder-8b-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25aa5d38ad0b486c02c8f6fbe8e7d50c9babf507bb55694f9bd1b23dd2bf4c56
3
+ size 2605781536
llama-3-sqlcoder-8b-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ada7985bd5e818030a50d4627b1fdbccff328e2b3ec5507093d770c1aeac2c62
3
+ size 2399212064
llama-3-sqlcoder-8b-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:166af3e065b0f2477fbb7f2966c09a0b9ffb1120b696d670449586e38641a41b
3
+ size 3784823328
llama-3-sqlcoder-8b-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c49835dc99d765a66f0993dac6c541d91ae030920bcfbf559957ecf8f01b8605
3
+ size 3682325024
llama-3-sqlcoder-8b-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baf8ada3caa1dcbd03a3e4e2cf95460ee60d2db2fe2624d1ebe26e5db6b9b712
3
+ size 3518747168
llama-3-sqlcoder-8b-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6a54cc54e0f432685bbee3ef8bd85765ab1791d76983c221e6da7da6b621417
3
+ size 3274912288
llama-3-sqlcoder-8b-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4005cb8e104e5aaee21a1be0ccd32c2a4a293c7f60eb4934f3edf04c1651bb78
3
+ size 4677988896
llama-3-sqlcoder-8b-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a909d6091c20f4a93c9881f05ae48a673825a26fe2c98dde4f34972c089733f7
3
+ size 4447662624
llama-3-sqlcoder-8b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6e4817c05a1f0aa0fb3c52935a9c223a21c5bd1cb54d149cf3210fe07149585
3
+ size 3179131424
llama-3-sqlcoder-8b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ee59dbb292846e2f24c51f6f95c9d62fd33419a9f6b69ae7dfd137d89d59228
3
+ size 4321956384
llama-3-sqlcoder-8b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e8e19898948b5ec4dc4b3c052de0da6e2c356e267eeca6e35dfd3a1881a43ea
3
+ size 4018917920
llama-3-sqlcoder-8b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb61508cf61c4fe0a4c64005ccfa48678470fea834ff98f1ab9fc11aff6ce039
3
+ size 3664499232
llama-3-sqlcoder-8b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cadc00d5e1e8aa11b5650ba9faad9eb976d864f40fbfb071a6b6a8b2d90060a4
3
+ size 4920734240
llama-3-sqlcoder-8b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e85dd8186e814813992a297417ec7408ee1c49f144a8abb607b3fbc80472d13
3
+ size 4692668960
llama-3-sqlcoder-8b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7048f6e9beb008478e537c21eb9086ca4242ecfd9140ca82e18e620cc12c56ff
3
+ size 5732987424
llama-3-sqlcoder-8b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e41732095a9b5dd7e7873d96acb36a9a699c759043061e8c663dedaf6206fbb0
3
+ size 5599293984
llama-3-sqlcoder-8b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65c66c5f8a61937dc3a774385353f9e3ffc9a425c1cf53258c35d44761e95e06
3
+ size 6596006432
llama-3-sqlcoder-8b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7af371f02eb1582b827f5bba411c35e5c99eda14f4892051b5e5a4a93c8cb25
3
+ size 8540770848
llama-3-sqlcoder-8b-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:372fd916d42f03b8b544ca3a78a80fc7ce897e8da4395b47a76047323132838b
3
+ size 32128880928
llama-3-sqlcoder-8b.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39515571920ded763918144ad423aabb6777f96e534f3b8ee854bb80c3ad6695
3
+ size 4988169