Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- README.md +95 -0
- shieldgemma-2b-Q2_K.gguf +3 -0
- shieldgemma-2b-Q3_K_L.gguf +3 -0
- shieldgemma-2b-Q3_K_M.gguf +3 -0
- shieldgemma-2b-Q3_K_S.gguf +3 -0
- shieldgemma-2b-Q4_0.gguf +3 -0
- shieldgemma-2b-Q4_K_M.gguf +3 -0
- shieldgemma-2b-Q4_K_S.gguf +3 -0
- shieldgemma-2b-Q5_0.gguf +3 -0
- shieldgemma-2b-Q5_K_M.gguf +3 -0
- shieldgemma-2b-Q5_K_S.gguf +3 -0
- shieldgemma-2b-Q6_K.gguf +3 -0
- shieldgemma-2b-Q8_0.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,15 @@ 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 |
+
shieldgemma-2b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
shieldgemma-2b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
shieldgemma-2b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
shieldgemma-2b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
shieldgemma-2b-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
shieldgemma-2b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
shieldgemma-2b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
shieldgemma-2b-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
shieldgemma-2b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
shieldgemma-2b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
shieldgemma-2b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
shieldgemma-2b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
library_name: transformers
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
extra_gated_heading: Access Gemma on Hugging Face
|
6 |
+
extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
|
7 |
+
agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
|
8 |
+
Face and click below. Requests are processed immediately.
|
9 |
+
extra_gated_button_content: Acknowledge license
|
10 |
+
base_model: google/shieldgemma-2b
|
11 |
+
tags:
|
12 |
+
- TensorBlock
|
13 |
+
- GGUF
|
14 |
+
---
|
15 |
+
|
16 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
17 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
18 |
+
</div>
|
19 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
20 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
21 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
22 |
+
Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a>
|
23 |
+
</p>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
|
27 |
+
## google/shieldgemma-2b - GGUF
|
28 |
+
|
29 |
+
This repo contains GGUF format model files for [google/shieldgemma-2b](https://huggingface.co/google/shieldgemma-2b).
|
30 |
+
|
31 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
32 |
+
|
33 |
+
<div style="text-align: left; margin: 20px 0;">
|
34 |
+
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
35 |
+
Run them on the TensorBlock client using your local machine ↗
|
36 |
+
</a>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
## Prompt template
|
40 |
+
|
41 |
+
```
|
42 |
+
<bos>You are a policy expert trying to help determine whether a user prompt is in violation of the defined safety policies.
|
43 |
+
|
44 |
+
<start_of_turn>
|
45 |
+
Human Question: {prompt}
|
46 |
+
<end_of_turn>
|
47 |
+
|
48 |
+
Our safety principle is defined in the below:
|
49 |
+
|
50 |
+
* {system_prompt}
|
51 |
+
|
52 |
+
===
|
53 |
+
|
54 |
+
Does the human question violate the above principle? Your answer must start with 'Yes' or 'No'. And then walk through step by step to be sure we answer correctly.
|
55 |
+
```
|
56 |
+
|
57 |
+
## Model file specification
|
58 |
+
|
59 |
+
| Filename | Quant type | File Size | Description |
|
60 |
+
| -------- | ---------- | --------- | ----------- |
|
61 |
+
| [shieldgemma-2b-Q2_K.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q2_K.gguf) | Q2_K | 1.230 GB | smallest, significant quality loss - not recommended for most purposes |
|
62 |
+
| [shieldgemma-2b-Q3_K_S.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q3_K_S.gguf) | Q3_K_S | 1.361 GB | very small, high quality loss |
|
63 |
+
| [shieldgemma-2b-Q3_K_M.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q3_K_M.gguf) | Q3_K_M | 1.462 GB | very small, high quality loss |
|
64 |
+
| [shieldgemma-2b-Q3_K_L.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q3_K_L.gguf) | Q3_K_L | 1.550 GB | small, substantial quality loss |
|
65 |
+
| [shieldgemma-2b-Q4_0.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q4_0.gguf) | Q4_0 | 1.630 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
66 |
+
| [shieldgemma-2b-Q4_K_S.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q4_K_S.gguf) | Q4_K_S | 1.639 GB | small, greater quality loss |
|
67 |
+
| [shieldgemma-2b-Q4_K_M.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q4_K_M.gguf) | Q4_K_M | 1.709 GB | medium, balanced quality - recommended |
|
68 |
+
| [shieldgemma-2b-Q5_0.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q5_0.gguf) | Q5_0 | 1.883 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
69 |
+
| [shieldgemma-2b-Q5_K_S.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q5_K_S.gguf) | Q5_K_S | 1.883 GB | large, low quality loss - recommended |
|
70 |
+
| [shieldgemma-2b-Q5_K_M.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q5_K_M.gguf) | Q5_K_M | 1.923 GB | large, very low quality loss - recommended |
|
71 |
+
| [shieldgemma-2b-Q6_K.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q6_K.gguf) | Q6_K | 2.151 GB | very large, extremely low quality loss |
|
72 |
+
| [shieldgemma-2b-Q8_0.gguf](https://huggingface.co/tensorblock/shieldgemma-2b-GGUF/blob/main/shieldgemma-2b-Q8_0.gguf) | Q8_0 | 2.784 GB | very large, extremely low quality loss - not recommended |
|
73 |
+
|
74 |
+
|
75 |
+
## Downloading instruction
|
76 |
+
|
77 |
+
### Command line
|
78 |
+
|
79 |
+
Firstly, install Huggingface Client
|
80 |
+
|
81 |
+
```shell
|
82 |
+
pip install -U "huggingface_hub[cli]"
|
83 |
+
```
|
84 |
+
|
85 |
+
Then, downoad the individual model file the a local directory
|
86 |
+
|
87 |
+
```shell
|
88 |
+
huggingface-cli download tensorblock/shieldgemma-2b-GGUF --include "shieldgemma-2b-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
89 |
+
```
|
90 |
+
|
91 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
92 |
+
|
93 |
+
```shell
|
94 |
+
huggingface-cli download tensorblock/shieldgemma-2b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
95 |
+
```
|
shieldgemma-2b-Q2_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d1bbf0494e6f02c30e1f69575890325dacdf126033a376c924487f8db9a2ee09
|
3 |
+
size 1229830560
|
shieldgemma-2b-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5d7817cdaa0ab769868d3f70592ffc310708f3a57ebb80db357e7d202fb851c2
|
3 |
+
size 1550436768
|
shieldgemma-2b-Q3_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be1981db8e1b225428445cad7b0879d4a5cd03ebe37c5997707e07af5283ec4a
|
3 |
+
size 1461668256
|
shieldgemma-2b-Q3_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b124dbaa022867f56424ae7e4b0fb350aef3cc4b6421a12171c552a4c1e7409
|
3 |
+
size 1360660896
|
shieldgemma-2b-Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50d6cf0e7e339ddef918c9fdaa5107b94c6f03cdb74277d52668410c81c0742b
|
3 |
+
size 1629510048
|
shieldgemma-2b-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:027d327018808ef93d4689869e81e5787aa755ab1b1515688c7c2e8115c16608
|
3 |
+
size 1708583328
|
shieldgemma-2b-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:900ffd27117519c07be42ec510582f7c31f6e2d4ad946d9e8c79dc32c59c9ac4
|
3 |
+
size 1638652320
|
shieldgemma-2b-Q5_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5d567b0c0a38df46598740177b819ee11c5b517111e792bd60d78786b65ccaf9
|
3 |
+
size 1882544544
|
shieldgemma-2b-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9812eb01a0e8d4d0a45a7304c889cc159822fc5e936359117d85c069253e285
|
3 |
+
size 1923279264
|
shieldgemma-2b-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfa59a102ac2d7d8a0c0be41b77bf75af73b2d91af8c862aaadc737140572a8d
|
3 |
+
size 1882544544
|
shieldgemma-2b-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aea43b4646bb7cc52546d7b02ad4295a0f6b3f861d7e26e2c541f78624e6209f
|
3 |
+
size 2151393696
|
shieldgemma-2b-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ed73f98e11dabd6794f3a20bbb6e790575537e00aaf6ae4c4b935df866acd150
|
3 |
+
size 2784496032
|