bartowski commited on
Commit
7445262
1 Parent(s): 8d3c70a

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
+ codegemma-7b-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ codegemma-7b-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ codegemma-7b-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ codegemma-7b-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ codegemma-7b-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ codegemma-7b-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ codegemma-7b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ codegemma-7b-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ codegemma-7b-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ codegemma-7b-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ codegemma-7b-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ codegemma-7b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ codegemma-7b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ codegemma-7b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ codegemma-7b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ codegemma-7b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ codegemma-7b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ codegemma-7b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ codegemma-7b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ codegemma-7b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ codegemma-7b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ codegemma-7b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ codegemma-7b.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ extra_gated_heading: Access Gemma on Hugging Face
4
+ extra_gated_prompt: >-
5
+ To access CodeGemma on Hugging Face, you’re required to review and agree to
6
+ Google’s usage license. To do this, please ensure you’re logged-in to Hugging
7
+ Face and click below. Requests are processed immediately.
8
+ extra_gated_button_content: Acknowledge license
9
+ license: gemma
10
+ license_link: https://ai.google.dev/gemma/terms
11
+ quantized_by: bartowski
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ ## Llamacpp Quantizations of codegemma-7b
16
+
17
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2589">b2589</a> for quantization.
18
+
19
+ Original model: https://huggingface.co/google/codegemma-7b
20
+
21
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
22
+
23
+ ## Prompt format
24
+
25
+ No prompt template for this model.
26
+
27
+ ## Download a file (not the whole branch) from below:
28
+
29
+ | Filename | Quant type | File Size | Description |
30
+ | -------- | ---------- | --------- | ----------- |
31
+ | [codegemma-7b-Q8_0.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q8_0.gguf) | Q8_0 | 9.07GB | Extremely high quality, generally unneeded but max available quant. |
32
+ | [codegemma-7b-Q6_K.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q6_K.gguf) | Q6_K | 7.01GB | Very high quality, near perfect, *recommended*. |
33
+ | [codegemma-7b-Q5_K_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q5_K_M.gguf) | Q5_K_M | 6.14GB | High quality, *recommended*. |
34
+ | [codegemma-7b-Q5_K_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q5_K_S.gguf) | Q5_K_S | 5.98GB | High quality, *recommended*. |
35
+ | [codegemma-7b-Q4_K_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q4_K_M.gguf) | Q4_K_M | 5.32GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
36
+ | [codegemma-7b-Q4_K_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q4_K_S.gguf) | Q4_K_S | 5.04GB | Slightly lower quality with more space savings, *recommended*. |
37
+ | [codegemma-7b-IQ4_NL.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ4_NL.gguf) | IQ4_NL | 5.01GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
38
+ | [codegemma-7b-IQ4_XS.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ4_XS.gguf) | IQ4_XS | 4.76GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
39
+ | [codegemma-7b-Q3_K_L.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q3_K_L.gguf) | Q3_K_L | 4.70GB | Lower quality but usable, good for low RAM availability. |
40
+ | [codegemma-7b-Q3_K_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q3_K_M.gguf) | Q3_K_M | 4.36GB | Even lower quality. |
41
+ | [codegemma-7b-IQ3_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ3_M.gguf) | IQ3_M | 4.10GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
42
+ | [codegemma-7b-IQ3_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ3_S.gguf) | IQ3_S | 3.98GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
43
+ | [codegemma-7b-Q3_K_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q3_K_S.gguf) | Q3_K_S | 3.98GB | Low quality, not recommended. |
44
+ | [codegemma-7b-IQ3_XS.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ3_XS.gguf) | IQ3_XS | 3.80GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
45
+ | [codegemma-7b-IQ3_XXS.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ3_XXS.gguf) | IQ3_XXS | 3.48GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
46
+ | [codegemma-7b-Q2_K.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-Q2_K.gguf) | Q2_K | 3.48GB | Very low quality but surprisingly usable. |
47
+ | [codegemma-7b-IQ2_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ2_M.gguf) | IQ2_M | 3.13GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
48
+ | [codegemma-7b-IQ2_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ2_S.gguf) | IQ2_S | 2.91GB | Very low quality, uses SOTA techniques to be usable. |
49
+ | [codegemma-7b-IQ2_XS.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ2_XS.gguf) | IQ2_XS | 2.81GB | Very low quality, uses SOTA techniques to be usable. |
50
+ | [codegemma-7b-IQ2_XXS.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ2_XXS.gguf) | IQ2_XXS | 2.58GB | Lower quality, uses SOTA techniques to be usable. |
51
+ | [codegemma-7b-IQ1_M.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ1_M.gguf) | IQ1_M | 2.32GB | Extremely low quality, *not* recommended. |
52
+ | [codegemma-7b-IQ1_S.gguf](https://huggingface.co/bartowski/codegemma-7b-GGUF/blob/main/codegemma-7b-IQ1_S.gguf) | IQ1_S | 2.16GB | Extremely low quality, *not* recommended. |
53
+
54
+ ## Which file should I choose?
55
+
56
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
57
+
58
+ 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.
59
+
60
+ 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.
61
+
62
+ 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.
63
+
64
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
65
+
66
+ 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.
67
+
68
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
69
+
70
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
71
+
72
+ 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.
73
+
74
+ 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.
75
+
76
+ 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.
77
+
78
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
codegemma-7b-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f1253a70c277de4ff42276901e5444820c7050d283d08ba0b51bc6dc12e4684
3
+ size 2320034176
codegemma-7b-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:821afa36744cd3dbe83faf46031968f760c8991aa681fc5868d2431ed64da3c6
3
+ size 2160191872
codegemma-7b-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1b05a47d7ca6f663f9c21cda653aeb1e728e9d00d35aaa2c2b61d6d0a1b648f
3
+ size 3132025216
codegemma-7b-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ab501a4c06be7f075cf24cb894608f7ca35c26099d4c2b7ce4215d37cc7901c
3
+ size 2918902144
codegemma-7b-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfa35354ac077bf6ee4bbd8b1b753b42851c1cd7f793082f8056a3092548daaf
3
+ size 2810571136
codegemma-7b-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d67aa4cd582add7ea42858f153889f151768edf3204f2e82264ef202af4d91d
3
+ size 2586438016
codegemma-7b-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b9103810ba04af75604d3e6de88db309d2c9d38badab4fc6e7dedcd550985ff
3
+ size 4106070400
codegemma-7b-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a0832f4246e1ea2d34fb16f33e34f7cfdc4ad40e4ad063973d24c65b75dd7e1
3
+ size 3982403968
codegemma-7b-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39173c6743a54319374d4916184163263ee76e125b5649cba1f01bd3cd9b49eb
3
+ size 3800738176
codegemma-7b-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddab5a0a3a0d5331d656120d4193431bd94e6b7247c0671881ee1248e935fc75
3
+ size 3487099264
codegemma-7b-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9691963a6770aeb340c840c6a5a38d41a3033db465c26c30bc521690f4ad16f1
3
+ size 5011843456
codegemma-7b-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:561ef4e350ee3e914a9575a6886716c2cfd69c5300b5e36cecac63b6c37610e8
3
+ size 4769622400
codegemma-7b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3bbd1b2aa85dcb315c3e18fff0e3a470f22ad33810138ac0001fd750fcd7588
3
+ size 3481446784
codegemma-7b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cde17c92dc971abdf799972807cfc6e7b8b76ae93e9e81081f5e41a67c5021f9
3
+ size 4709067136
codegemma-7b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb65f44dffa132249940e4785aab30f05ac65175b6b65be33b1ac1b49eb60ef6
3
+ size 4369328512
codegemma-7b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39bf126a457bab803624d218847ca638a3b7d2da7d4779d72966f8c3b6a74458
3
+ size 3982403968
codegemma-7b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d36c9391069f7c54339a71a52ed8c0bb36219cba621189fc5427d4cdc6c8e5a
3
+ size 5329758592
codegemma-7b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a3349530811ad53a1d9d0018bce96d363dafcb5b1a77110fd6e03d6845186d5
3
+ size 5046446464
codegemma-7b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb00372705e7d5d30442750e8a7c72919c8e243bee52e1cce97fcfc1008c6143
3
+ size 6144502144
codegemma-7b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0d4a121ea102a795189d5732917329c48469da816dea3babe6835b05e53edbe
3
+ size 5980727680
codegemma-7b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:113f642a52539bba5e6694191e738065bd8357f9378118a654ec80aff6ba3a1f
3
+ size 7010167168
codegemma-7b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5f7f8aec7cd475e86fd203bcf4bdc76c2df3172b3d2567656ae4e5360166a5b
3
+ size 9077844352
codegemma-7b.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd75a53de9c7c6fbb087ade2e5e0081ca2e14ba98757cfcd0815ae8f33a3cbb6
3
+ size 4938042