morriszms commited on
Commit
16c9d8e
·
verified ·
1 Parent(s): b49da50

Upload folder using huggingface_hub

Browse files
.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
+ granite-guardian-3.0-2b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ granite-guardian-3.0-2b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ granite-guardian-3.0-2b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ granite-guardian-3.0-2b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ granite-guardian-3.0-2b-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
41
+ granite-guardian-3.0-2b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ granite-guardian-3.0-2b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
43
+ granite-guardian-3.0-2b-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
44
+ granite-guardian-3.0-2b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
45
+ granite-guardian-3.0-2b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
46
+ granite-guardian-3.0-2b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
47
+ granite-guardian-3.0-2b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ library_name: transformers
7
+ tags:
8
+ - TensorBlock
9
+ - GGUF
10
+ base_model: ibm-granite/granite-guardian-3.0-2b
11
+ ---
12
+
13
+ <div style="width: auto; margin-left: auto; margin-right: auto">
14
+ <img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
15
+ </div>
16
+ <div style="display: flex; justify-content: space-between; width: 100%;">
17
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
18
+ <p style="margin-top: 0.5em; margin-bottom: 0em;">
19
+ 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>
20
+ </p>
21
+ </div>
22
+ </div>
23
+
24
+ ## ibm-granite/granite-guardian-3.0-2b - GGUF
25
+
26
+ This repo contains GGUF format model files for [ibm-granite/granite-guardian-3.0-2b](https://huggingface.co/ibm-granite/granite-guardian-3.0-2b).
27
+
28
+ 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).
29
+
30
+ <div style="text-align: left; margin: 20px 0;">
31
+ <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;">
32
+ Run them on the TensorBlock client using your local machine ↗
33
+ </a>
34
+ </div>
35
+
36
+ ## Prompt template
37
+
38
+ ```
39
+ <|start_of_role|>user<|end_of_role|>You are a safety agent trying to help determine whether the user message is harmful according to the safety risk definition below.
40
+
41
+ <start_of_turn>
42
+ User Message: {prompt}
43
+ <end_of_turn>
44
+
45
+ Our safety risk definition is defined below:
46
+ <start_of_risk_definition>
47
+ * The 'User' message is harmful by common-sense.
48
+ <end_of_risk_definition>
49
+
50
+ Is the user message harmful based on the risk definition? Your answer must be either 'Yes' or 'No'.<|end_of_text|>
51
+ <|start_of_role|>assistant<|end_of_role|>
52
+ ```
53
+
54
+ ## Model file specification
55
+
56
+ | Filename | Quant type | File Size | Description |
57
+ | -------- | ---------- | --------- | ----------- |
58
+ | [granite-guardian-3.0-2b-Q2_K.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q2_K.gguf) | Q2_K | 0.978 GB | smallest, significant quality loss - not recommended for most purposes |
59
+ | [granite-guardian-3.0-2b-Q3_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q3_K_S.gguf) | Q3_K_S | 1.130 GB | very small, high quality loss |
60
+ | [granite-guardian-3.0-2b-Q3_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q3_K_M.gguf) | Q3_K_M | 1.252 GB | very small, high quality loss |
61
+ | [granite-guardian-3.0-2b-Q3_K_L.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q3_K_L.gguf) | Q3_K_L | 1.357 GB | small, substantial quality loss |
62
+ | [granite-guardian-3.0-2b-Q4_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q4_0.gguf) | Q4_0 | 1.453 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
63
+ | [granite-guardian-3.0-2b-Q4_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q4_K_S.gguf) | Q4_K_S | 1.464 GB | small, greater quality loss |
64
+ | [granite-guardian-3.0-2b-Q4_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q4_K_M.gguf) | Q4_K_M | 1.545 GB | medium, balanced quality - recommended |
65
+ | [granite-guardian-3.0-2b-Q5_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q5_0.gguf) | Q5_0 | 1.757 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
66
+ | [granite-guardian-3.0-2b-Q5_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q5_K_S.gguf) | Q5_K_S | 1.757 GB | large, low quality loss - recommended |
67
+ | [granite-guardian-3.0-2b-Q5_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q5_K_M.gguf) | Q5_K_M | 1.805 GB | large, very low quality loss - recommended |
68
+ | [granite-guardian-3.0-2b-Q6_K.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q6_K.gguf) | Q6_K | 2.081 GB | very large, extremely low quality loss |
69
+ | [granite-guardian-3.0-2b-Q8_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.0-2b-GGUF/blob/main/granite-guardian-3.0-2b-Q8_0.gguf) | Q8_0 | 2.694 GB | very large, extremely low quality loss - not recommended |
70
+
71
+
72
+ ## Downloading instruction
73
+
74
+ ### Command line
75
+
76
+ Firstly, install Huggingface Client
77
+
78
+ ```shell
79
+ pip install -U "huggingface_hub[cli]"
80
+ ```
81
+
82
+ Then, downoad the individual model file the a local directory
83
+
84
+ ```shell
85
+ huggingface-cli download tensorblock/granite-guardian-3.0-2b-GGUF --include "granite-guardian-3.0-2b-Q2_K.gguf" --local-dir MY_LOCAL_DIR
86
+ ```
87
+
88
+ If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
89
+
90
+ ```shell
91
+ huggingface-cli download tensorblock/granite-guardian-3.0-2b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
92
+ ```
granite-guardian-3.0-2b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09f686a69563ba6724061610058215a2d62f6a13c9cbc5ab37f024ff0f2d999b
3
+ size 978251168
granite-guardian-3.0-2b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:503dee870708cd1a708d39bc3c32b0696af7a1efef7154b7910d87d9da5e4c2b
3
+ size 1357376928
granite-guardian-3.0-2b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7576f93c9c8516436f0308544a1ae03ac28759441dd4b3ec1ecb5b5c7e075d2d
3
+ size 1251732896
granite-guardian-3.0-2b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f92622d0e6fe435c680caf1a167377a313dfcdc322bc38b138aa4272a3934f35
3
+ size 1130294688
granite-guardian-3.0-2b-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9782b900e74b075b988c470e3e962de584399d3d92035c0be54cd89f11f581cb
3
+ size 1453387168
granite-guardian-3.0-2b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8e7af4b39226245265d6f5938ded10f97268502239eda325e0619c30f5f4dc8
3
+ size 1545301408
granite-guardian-3.0-2b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea3919c55fc3603d33a567e9e8dc8ad82668c3521d27b0661233ba1f7c71d11
3
+ size 1464397216
granite-guardian-3.0-2b-Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5659ce750a2a45abe52bc68a0ae7b41ec2e826379576403c816e32559dd0a9d8
3
+ size 1757474208
granite-guardian-3.0-2b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:872f16f0ab4b6ee4bf318fe53aab02fa554ab222a13dbf69d9ae4892d5bc9422
3
+ size 1804823968
granite-guardian-3.0-2b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a32cc05ce8d57f919cf79719163716cc6082b41cdb3ffc8a8738bf78a36ff92
3
+ size 1757474208
granite-guardian-3.0-2b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9c28dbd204db734cd2f3fdd8632010170d8f9abd9f8c3e9379d73ffe76653d0
3
+ size 2080566688
granite-guardian-3.0-2b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8cce54432e1534c32badb2bb918f70052e74af05551ff8e6cfc775ccc7a7cc9
3
+ size 2694116192