bartowski commited on
Commit
ff12ab4
0 Parent(s):

Duplicate from bartowski/gemma-2-2b-it-GGUF

Browse files
.gitattributes ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ gemma-2-2b-it-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
37
+ gemma-2-2b-it-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ gemma-2-2b-it-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
39
+ gemma-2-2b-it-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ gemma-2-2b-it-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
41
+ gemma-2-2b-it-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ gemma-2-2b-it-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
43
+ gemma-2-2b-it-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
44
+ gemma-2-2b-it-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ gemma-2-2b-it-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ gemma-2-2b-it-f32.gguf filter=lfs diff=lfs merge=lfs -text
47
+ gemma-2-2b-it.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-2-2b-it
3
+ library_name: transformers
4
+ license: gemma
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - conversational
8
+ quantized_by: bartowski
9
+ extra_gated_heading: Access Gemma on Hugging Face
10
+ extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
11
+ agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
12
+ Face and click below. Requests are processed immediately.
13
+ extra_gated_button_content: Acknowledge license
14
+ ---
15
+
16
+ ## Llamacpp imatrix Quantizations of gemma-2-2b-it
17
+
18
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3496">b3496</a> for quantization.
19
+
20
+ Original model: https://huggingface.co/google/gemma-2-2b-it
21
+
22
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
23
+
24
+ Run them in [LM Studio](https://lmstudio.ai/)
25
+
26
+ ## Prompt format
27
+
28
+ ```
29
+ <bos><start_of_turn>user
30
+ {prompt}<end_of_turn>
31
+ <start_of_turn>model
32
+ <end_of_turn>
33
+ <start_of_turn>model
34
+
35
+ ```
36
+
37
+ Note that this model does not support a System prompt.
38
+
39
+ ## Download a file (not the whole branch) from below:
40
+
41
+ | Filename | Quant type | File Size | Split | Description |
42
+ | -------- | ---------- | --------- | ----- | ----------- |
43
+ ## Download a file (not the whole branch) from below:
44
+
45
+ | Filename | Quant type | File Size | Split | Description |
46
+ | -------- | ---------- | --------- | ----- | ----------- |
47
+ | [gemma-2-2b-it-f32.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-f32.gguf) | f32 | 10.46GB | false | Full F32 weights. |
48
+ | [gemma-2-2b-it-Q8_0.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q8_0.gguf) | Q8_0 | 2.78GB | false | Extremely high quality, generally unneeded but max available quant. |
49
+ | [gemma-2-2b-it-Q6_K_L.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q6_K_L.gguf) | Q6_K_L | 2.29GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
50
+ | [gemma-2-2b-it-Q6_K.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q6_K.gguf) | Q6_K | 2.15GB | false | Very high quality, near perfect, *recommended*. |
51
+ | [gemma-2-2b-it-Q5_K_M.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q5_K_M.gguf) | Q5_K_M | 1.92GB | false | High quality, *recommended*. |
52
+ | [gemma-2-2b-it-Q5_K_S.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q5_K_S.gguf) | Q5_K_S | 1.88GB | false | High quality, *recommended*. |
53
+ | [gemma-2-2b-it-Q4_K_M.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q4_K_M.gguf) | Q4_K_M | 1.71GB | false | Good quality, default size for must use cases, *recommended*. |
54
+ | [gemma-2-2b-it-Q4_K_S.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q4_K_S.gguf) | Q4_K_S | 1.64GB | false | Slightly lower quality with more space savings, *recommended*. |
55
+ | [gemma-2-2b-it-IQ4_XS.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-IQ4_XS.gguf) | IQ4_XS | 1.57GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
56
+ | [gemma-2-2b-it-Q3_K_L.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-Q3_K_L.gguf) | Q3_K_L | 1.55GB | false | Lower quality but usable, good for low RAM availability. |
57
+ | [gemma-2-2b-it-IQ3_M.gguf](https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/blob/main/gemma-2-2b-it-IQ3_M.gguf) | IQ3_M | 1.39GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
58
+
59
+ ## Embed/output weights
60
+
61
+ Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
62
+
63
+ Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
64
+
65
+ Thanks!
66
+
67
+ ## Credits
68
+
69
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
70
+
71
+ Thank you ZeroWw for the inspiration to experiment with embed/output
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/gemma-2-2b-it-GGUF --include "gemma-2-2b-it-Q4_K_M.gguf" --local-dir ./
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/gemma-2-2b-it-GGUF --include "gemma-2-2b-it-Q8_0/*" --local-dir ./
91
+ ```
92
+
93
+ You can either specify a new local-dir (gemma-2-2b-it-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
120
+
gemma-2-2b-it-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cf261fa4069526530535a8d20ea4cf4c3d532b6b2047508d7349bb0cda14b2a
3
+ size 1393561440
gemma-2-2b-it-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdbe7160ce8caadcbe8cc060c0d54bae94529cb99bb5f7b1f0745dc86d80ef25
3
+ size 1566250848
gemma-2-2b-it-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d14b920ed8025a03e0764bdaeca6fe553dfb559569c79b5b83bb5b28fc364984
3
+ size 1550436192
gemma-2-2b-it-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0aee85060f168f0f2d8473d7ea41ce2f3230c1bc1374847505ea599288a7787
3
+ size 1708582752
gemma-2-2b-it-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f99ab5cc78d32eb71e3bcc0312ad6cb3fad49654df1c567ff495929b35aa8be
3
+ size 1638651744
gemma-2-2b-it-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be65d5966f7efd40d9d8c9d5f6667582d861de52df20133991e2e9cb491150da
3
+ size 1923278688
gemma-2-2b-it-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c05660834e4fd765ff2ae905926ec1c9e15deacc2d48c5df683582ba00978ce2
3
+ size 1882543968
gemma-2-2b-it-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f82c5c2230a8b452221706461eb93203443373625d96a05912d4f96c845c2775
3
+ size 2151393120
gemma-2-2b-it-Q6_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2ef9f67b38c6e246e593cdb9739e34043d84549755a1057d402563a78ff2254
3
+ size 2294241120
gemma-2-2b-it-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d448a9aab894b8e8e18168cf3f490cb9f65632222f29f93514ac9ecc754debe
3
+ size 2784495456
gemma-2-2b-it-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45f59c2f70ecdc2a7d2d39bc6f966e0ce0c3bac486ec6506b6064646e5c6192e
3
+ size 10463413856
gemma-2-2b-it.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dc778c40c3f537bdecce29bc864c45589ace7fada7bf7cae9d80b1da28ee1c2
3
+ size 2375572