bartowski commited on
Commit
5ae95cc
1 Parent(s): d3ea4ac

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
+ Code-Llama-3-8B-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Code-Llama-3-8B-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Code-Llama-3-8B-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Code-Llama-3-8B-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Code-Llama-3-8B-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Code-Llama-3-8B-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Code-Llama-3-8B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Code-Llama-3-8B-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Code-Llama-3-8B-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Code-Llama-3-8B-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Code-Llama-3-8B-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Code-Llama-3-8B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Code-Llama-3-8B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Code-Llama-3-8B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Code-Llama-3-8B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Code-Llama-3-8B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Code-Llama-3-8B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Code-Llama-3-8B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Code-Llama-3-8B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Code-Llama-3-8B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Code-Llama-3-8B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Code-Llama-3-8B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Code-Llama-3-8B.imatrix filter=lfs diff=lfs merge=lfs -text
Code-Llama-3-8B-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:809ac68c6b89ed8be441e16203d6b8fcab380774fd0ec5a97414aec0ae8070a2
3
+ size 2161971680
Code-Llama-3-8B-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc7ce61ad82c5a38f1cd5c9cd6aca2b7eb408dad91dad89baa5b54dc50099141
3
+ size 2019627488
Code-Llama-3-8B-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0657b859db69fe5f5a8dfec8797b1b05a9368ed7ed7ecde75f9dab5e63b7647
3
+ size 2948280800
Code-Llama-3-8B-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61e24481818b0cf8910032f5edc367f271f789412b9d599408269737e5f711c8
3
+ size 2758488544
Code-Llama-3-8B-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5417e13e8e8740035923a672a2d0b84769faf652aba3f7edcc9bdd536d3c8f0f
3
+ size 2605781472
Code-Llama-3-8B-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d226b39715099787394eae28be47215d356a8a35014455ba501cced783ad1cc
3
+ size 2399212000
Code-Llama-3-8B-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d27e012594cd35b4479c908986f6d38b31d5e21e4526853bc9543ac212ef1ab
3
+ size 3784823264
Code-Llama-3-8B-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:994e6620037f60b59a9686961e0525fa514ea078b49f25943f701418f49ec80b
3
+ size 3682324960
Code-Llama-3-8B-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e320220e52ea22bb09738fcc73901719f87a7c8282bed42e4610a6c7c147139d
3
+ size 3518747104
Code-Llama-3-8B-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d656f3415fea7fd0935f328b1a5db1759c80097fb59b8372bc6ad43cd015e5b2
3
+ size 3274912224
Code-Llama-3-8B-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8096f49df0f0f911534dab48e5b8395fbc55235e76690b3daa30e6d308eb2803
3
+ size 4677988832
Code-Llama-3-8B-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbd7a67842915e00568ca55484d11446a397a4fcf74b1937b166afaa72cea63d
3
+ size 4447662560
Code-Llama-3-8B-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c87496a1c4dc79631835812b6f40bce5a397409fb4fbe7e598b7817d40bebd66
3
+ size 3179131360
Code-Llama-3-8B-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06d24ba1e7087000cc7f243635a1aca227a06c1ce4869fbdea29bc40b6f02396
3
+ size 4321956320
Code-Llama-3-8B-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7145e3b5c3b6ceb1d3711eb3ec941435936bed32c8d65b60e4d5fb82e9db5ffb
3
+ size 4018917856
Code-Llama-3-8B-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62cbc1515c2da96d5d827bbacb47e095ad13c40d952bc48af5f190637e568a8b
3
+ size 3664499168
Code-Llama-3-8B-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c699778f0144c191d1c7508aec5705b147e34799f4858a1a763920f234bb855
3
+ size 4920734176
Code-Llama-3-8B-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44d674b07fa7ab908d37f24f88f67a89333f744e9d50b9a12caf34a715724170
3
+ size 4692668896
Code-Llama-3-8B-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd95e88e348b7e3c0515fe83626decc66b767943dd178911e09f791cc9db6a66
3
+ size 5732987360
Code-Llama-3-8B-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea1e0603eb9fe9c136104e22fca3f3b45c8aedde060e4ac9f82080cf0856a37b
3
+ size 5599293920
Code-Llama-3-8B-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc4024e832813f30a2f500e6380b0b7eb7aa68e9ce8dac1efc5f8f3f286a90c2
3
+ size 6596006368
Code-Llama-3-8B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f61cbff0cfbc2cc76875b463020047f9bf6ec317a1dfde511884b2e45de39936
3
+ size 8540770784
Code-Llama-3-8B.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9555c9bd801a3f6b477d0d2896c21e69248bd16e76997a383c8da333d2f9c11
3
+ size 4988166
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ datasets:
4
+ - ajibawa-2023/Code-290k-ShareGPT
5
+ - m-a-p/CodeFeedback-Filtered-Instruction
6
+ - m-a-p/Code-Feedback
7
+ - microsoft/orca-math-word-problems-200k
8
+ language:
9
+ - en
10
+ tags:
11
+ - code
12
+ - Python
13
+ - Cpp
14
+ - PHP
15
+ - JS
16
+ - Java
17
+ - Rust
18
+ - Ruby
19
+ - SQL
20
+ - MySql
21
+ - R
22
+ - Julia
23
+ quantized_by: bartowski
24
+ pipeline_tag: text-generation
25
+ ---
26
+
27
+ ## Llamacpp imatrix Quantizations of Code-Llama-3-8B
28
+
29
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2794">b2794</a> for quantization.
30
+
31
+ Original model: https://huggingface.co/ajibawa-2023/Code-Llama-3-8B
32
+
33
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
34
+
35
+ ## Prompt format
36
+
37
+ ```
38
+ <|im_start|>system
39
+ {system_prompt}<|im_end|>
40
+ <|im_start|>user
41
+ {prompt}<|im_end|>
42
+ <|im_start|>assistant
43
+
44
+ ```
45
+
46
+ ## Download a file (not the whole branch) from below:
47
+
48
+ | Filename | Quant type | File Size | Description |
49
+ | -------- | ---------- | --------- | ----------- |
50
+ | [Code-Llama-3-8B-Q8_0.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q8_0.gguf) | Q8_0 | 8.54GB | Extremely high quality, generally unneeded but max available quant. |
51
+ | [Code-Llama-3-8B-Q6_K.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q6_K.gguf) | Q6_K | 6.59GB | Very high quality, near perfect, *recommended*. |
52
+ | [Code-Llama-3-8B-Q5_K_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q5_K_M.gguf) | Q5_K_M | 5.73GB | High quality, *recommended*. |
53
+ | [Code-Llama-3-8B-Q5_K_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q5_K_S.gguf) | Q5_K_S | 5.59GB | High quality, *recommended*. |
54
+ | [Code-Llama-3-8B-Q4_K_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q4_K_M.gguf) | Q4_K_M | 4.92GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
55
+ | [Code-Llama-3-8B-Q4_K_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q4_K_S.gguf) | Q4_K_S | 4.69GB | Slightly lower quality with more space savings, *recommended*. |
56
+ | [Code-Llama-3-8B-IQ4_NL.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ4_NL.gguf) | IQ4_NL | 4.67GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
57
+ | [Code-Llama-3-8B-IQ4_XS.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ4_XS.gguf) | IQ4_XS | 4.44GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
58
+ | [Code-Llama-3-8B-Q3_K_L.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q3_K_L.gguf) | Q3_K_L | 4.32GB | Lower quality but usable, good for low RAM availability. |
59
+ | [Code-Llama-3-8B-Q3_K_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q3_K_M.gguf) | Q3_K_M | 4.01GB | Even lower quality. |
60
+ | [Code-Llama-3-8B-IQ3_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ3_M.gguf) | IQ3_M | 3.78GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
61
+ | [Code-Llama-3-8B-IQ3_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-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. |
62
+ | [Code-Llama-3-8B-Q3_K_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q3_K_S.gguf) | Q3_K_S | 3.66GB | Low quality, not recommended. |
63
+ | [Code-Llama-3-8B-IQ3_XS.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ3_XS.gguf) | IQ3_XS | 3.51GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
64
+ | [Code-Llama-3-8B-IQ3_XXS.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ3_XXS.gguf) | IQ3_XXS | 3.27GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
65
+ | [Code-Llama-3-8B-Q2_K.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-Q2_K.gguf) | Q2_K | 3.17GB | Very low quality but surprisingly usable. |
66
+ | [Code-Llama-3-8B-IQ2_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ2_M.gguf) | IQ2_M | 2.94GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
67
+ | [Code-Llama-3-8B-IQ2_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ2_S.gguf) | IQ2_S | 2.75GB | Very low quality, uses SOTA techniques to be usable. |
68
+ | [Code-Llama-3-8B-IQ2_XS.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ2_XS.gguf) | IQ2_XS | 2.60GB | Very low quality, uses SOTA techniques to be usable. |
69
+ | [Code-Llama-3-8B-IQ2_XXS.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ2_XXS.gguf) | IQ2_XXS | 2.39GB | Lower quality, uses SOTA techniques to be usable. |
70
+ | [Code-Llama-3-8B-IQ1_M.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ1_M.gguf) | IQ1_M | 2.16GB | Extremely low quality, *not* recommended. |
71
+ | [Code-Llama-3-8B-IQ1_S.gguf](https://huggingface.co/bartowski/Code-Llama-3-8B-GGUF/blob/main/Code-Llama-3-8B-IQ1_S.gguf) | IQ1_S | 2.01GB | Extremely low quality, *not* recommended. |
72
+
73
+ ## Downloading using huggingface-cli
74
+
75
+ First, make sure you have hugginface-cli installed:
76
+
77
+ ```
78
+ pip install -U "huggingface_hub[cli]"
79
+ ```
80
+
81
+ Then, you can target the specific file you want:
82
+
83
+ ```
84
+ huggingface-cli download bartowski/Code-Llama-3-8B-GGUF --include "Code-Llama-3-8B-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
85
+ ```
86
+
87
+ 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:
88
+
89
+ ```
90
+ huggingface-cli download bartowski/Code-Llama-3-8B-GGUF --include "Code-Llama-3-8B-Q8_0.gguf/*" --local-dir Code-Llama-3-8B-Q8_0 --local-dir-use-symlinks False
91
+ ```
92
+
93
+ You can either specify a new local-dir (Code-Llama-3-8B-Q8_0) or download them all in place (./)
94
+
95
+ ## Which file should I choose?
96
+
97
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
98
+
99
+ 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.
100
+
101
+ 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.
102
+
103
+ 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.
104
+
105
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
106
+
107
+ 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.
108
+
109
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
110
+
111
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
112
+
113
+ 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.
114
+
115
+ 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.
116
+
117
+ 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.
118
+
119
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski