morriszms commited on
Commit
c9b93cf
·
verified ·
1 Parent(s): a7ba32c

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.2-5b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ granite-guardian-3.2-5b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ granite-guardian-3.2-5b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ granite-guardian-3.2-5b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ granite-guardian-3.2-5b-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
41
+ granite-guardian-3.2-5b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ granite-guardian-3.2-5b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
43
+ granite-guardian-3.2-5b-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
44
+ granite-guardian-3.2-5b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
45
+ granite-guardian-3.2-5b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
46
+ granite-guardian-3.2-5b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
47
+ granite-guardian-3.2-5b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: text-generation
4
+ library_name: transformers
5
+ base_model: ibm-granite/granite-guardian-3.2-5b
6
+ tags:
7
+ - TensorBlock
8
+ - GGUF
9
+ ---
10
+
11
+ <div style="width: auto; margin-left: auto; margin-right: auto">
12
+ <img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
13
+ </div>
14
+ <div style="display: flex; justify-content: space-between; width: 100%;">
15
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
16
+ <p style="margin-top: 0.5em; margin-bottom: 0em;">
17
+ 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>
18
+ </p>
19
+ </div>
20
+ </div>
21
+
22
+ ## ibm-granite/granite-guardian-3.2-5b - GGUF
23
+
24
+ This repo contains GGUF format model files for [ibm-granite/granite-guardian-3.2-5b](https://huggingface.co/ibm-granite/granite-guardian-3.2-5b).
25
+
26
+ The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4882](https://github.com/ggml-org/llama.cpp/commit/be7c3034108473beda214fd1d7c98fd6a7a3bdf5).
27
+
28
+ <div style="text-align: left; margin: 20px 0;">
29
+ <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;">
30
+ Run them on the TensorBlock client using your local machine ↗
31
+ </a>
32
+ </div>
33
+
34
+ ## Prompt template
35
+
36
+ ```
37
+ <|start_of_role|>user<|end_of_role|>You are a safety agent trying to help determine whether the last user message in the conversation is harmful according to the safety risk definition below.
38
+
39
+ <start_of_conversation>
40
+ User Message: {prompt}
41
+ <end_of_conversation>
42
+
43
+ Our safety risk definition is defined below:
44
+ <start_of_risk_definition>
45
+ - The last 'User' message is considered universally harmful.
46
+ <end_of_risk_definition>
47
+
48
+ Is the last user message harmful based on the risk definition? Your answer must be either 'Yes' or 'No'.<|end_of_text|>
49
+ <|start_of_role|>assistant<|end_of_role|>
50
+ ```
51
+
52
+ ## Model file specification
53
+
54
+ | Filename | Quant type | File Size | Description |
55
+ | -------- | ---------- | --------- | ----------- |
56
+ | [granite-guardian-3.2-5b-Q2_K.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q2_K.gguf) | Q2_K | 2.223 GB | smallest, significant quality loss - not recommended for most purposes |
57
+ | [granite-guardian-3.2-5b-Q3_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q3_K_S.gguf) | Q3_K_S | 2.565 GB | very small, high quality loss |
58
+ | [granite-guardian-3.2-5b-Q3_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q3_K_M.gguf) | Q3_K_M | 2.845 GB | very small, high quality loss |
59
+ | [granite-guardian-3.2-5b-Q3_K_L.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q3_K_L.gguf) | Q3_K_L | 3.095 GB | small, substantial quality loss |
60
+ | [granite-guardian-3.2-5b-Q4_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q4_0.gguf) | Q4_0 | 3.306 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
61
+ | [granite-guardian-3.2-5b-Q4_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q4_K_S.gguf) | Q4_K_S | 3.327 GB | small, greater quality loss |
62
+ | [granite-guardian-3.2-5b-Q4_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q4_K_M.gguf) | Q4_K_M | 3.510 GB | medium, balanced quality - recommended |
63
+ | [granite-guardian-3.2-5b-Q5_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q5_0.gguf) | Q5_0 | 4.003 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
64
+ | [granite-guardian-3.2-5b-Q5_K_S.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q5_K_S.gguf) | Q5_K_S | 4.003 GB | large, low quality loss - recommended |
65
+ | [granite-guardian-3.2-5b-Q5_K_M.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q5_K_M.gguf) | Q5_K_M | 4.108 GB | large, very low quality loss - recommended |
66
+ | [granite-guardian-3.2-5b-Q6_K.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q6_K.gguf) | Q6_K | 4.744 GB | very large, extremely low quality loss |
67
+ | [granite-guardian-3.2-5b-Q8_0.gguf](https://huggingface.co/tensorblock/granite-guardian-3.2-5b-GGUF/blob/main/granite-guardian-3.2-5b-Q8_0.gguf) | Q8_0 | 6.144 GB | very large, extremely low quality loss - not recommended |
68
+
69
+
70
+ ## Downloading instruction
71
+
72
+ ### Command line
73
+
74
+ Firstly, install Huggingface Client
75
+
76
+ ```shell
77
+ pip install -U "huggingface_hub[cli]"
78
+ ```
79
+
80
+ Then, downoad the individual model file the a local directory
81
+
82
+ ```shell
83
+ huggingface-cli download tensorblock/granite-guardian-3.2-5b-GGUF --include "granite-guardian-3.2-5b-Q2_K.gguf" --local-dir MY_LOCAL_DIR
84
+ ```
85
+
86
+ If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
87
+
88
+ ```shell
89
+ huggingface-cli download tensorblock/granite-guardian-3.2-5b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
90
+ ```
granite-guardian-3.2-5b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76300730b816f3ef1fcecb85db97f0c2b1c29b4963ca35242fe4feb4b81e91aa
3
+ size 2222592224
granite-guardian-3.2-5b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a69ae4797fb3d74f6216a910c7eb827c79b281f72ca578d0ce5ab7b3b580dc9
3
+ size 3094679776
granite-guardian-3.2-5b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec989e872ef0a03eccef135f0f43a4cd7d1bf4afab4a21251b051b1e8ff630e9
3
+ size 2845380832
granite-guardian-3.2-5b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:931d20580284451160b8dc130207499fa8ce21dedbbf3949af7947b181a3bea7
3
+ size 2564821216
granite-guardian-3.2-5b-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64bc163c9e5319b95c3bf5493a941441a519a1dc73486b4f65693e70e3f51f9a
3
+ size 3305705696
granite-guardian-3.2-5b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2bbf4589b57267e431ff527e9c1b0aa71477531991b28a4326c92772cb6d822
3
+ size 3510079712
granite-guardian-3.2-5b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f53768410ead4c0cd2e8649a4b05bf9cc81e7739c73b6af2a19bbcb8403392b
3
+ size 3327463648
granite-guardian-3.2-5b-Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f50722a17fd808841fef802a141e26381e4996f794ef379fabc621b0ff6c28e0
3
+ size 4003008736
granite-guardian-3.2-5b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c0fe3dabd05396cbf79ae4bd52b4706127efca2f0ba5e876a1217ccbfeed016
3
+ size 4108292320
granite-guardian-3.2-5b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af48c84ddb144904aece2ca26867dae0f4e39e6bd33f77d4811e8f3b6ab2a33d
3
+ size 4003008736
granite-guardian-3.2-5b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2078fc44c28122061eee1e5a7873988bedd4b18ca782b58fab52ddef6732f3ad
3
+ size 4743893216
granite-guardian-3.2-5b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8c21998d20f41724d99c96ba94341b73c364925f1fcb8520ee0a0a4957b82a5
3
+ size 6143679616