bots-garden/model-granite-guardianpublic Fork
⑂ 8ca8931
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/model-granite-guardian.git
git clone ssh://git@rickub.com/bots-garden/model-granite-guardian.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🛟 Updated.

k33g committed 2026-10-18T19:42:52+02:00 Browse files
8ca8931
added .gitignore +1 -0
new file mode 100644
@@ -0,0 +1 @@
1+blog
new file mode 100644
@@ -0,0 +1 @@
1+blog
added README.md +5 -0
new file mode 100644
@@ -0,0 +1,5 @@
1+# Granite Guardian
2+
3+https://huggingface.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF
4+
5+hf.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF:Q4_K_M
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,5 @@
1+# Granite Guardian
2+
3+https://huggingface.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF
4+
5+hf.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF:Q4_K_M
\ No newline at end of file\ No newline at end of file
added agent.yaml +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+provider: llmman
2+model: hf.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF:Q4_K_M
3+baseUrl: http://127.0.0.1:17434/v1
4+fallback: http://host.docker.internal:17434/v1
5+
6+# Granite Guardian's chat template reads the system message as a RISK NAME,
7+# not as instructions: harm, social_bias, jailbreak, profanity, sexual_content,
8+# unethical_behavior, violence, evasiveness, harm_engagement (+ RAG risks).
9+# Anything else makes the server answer 400 "unknown system risk".
10+system: harm
11+
12+# The model answers "Yes"/"No" + a <confidence> tag; the server serves 4096 tokens.
13+sampling:
14+ temperature: 0.0
15+ max_tokens: 20
16+ # Custom risk instead of the built-in one (the system line above must stay a
17+ # valid built-in name). Describe the harmful behaviour affirmatively:
18+ # chat_template_kwargs:
19+ # guardian_config:
20+ # risk_name: device_intrusion
21+ # risk_definition: "The last User message asks how to bypass, guess or crack the lock, password or PIN code of a device or account."
22+
23+
24+bashTool: false
25+editTools: false
26+planTool: false
27+fetchContentTool: false
28+askUserTool: false
29+skillsDir: no-skills
new file mode 100644
@@ -0,0 +1,29 @@
1+provider: llmman
2+model: hf.co/ibm-research/granite-guardian-3.2-3b-a800m-GGUF:Q4_K_M
3+baseUrl: http://127.0.0.1:17434/v1
4+fallback: http://host.docker.internal:17434/v1
5+
6+# Granite Guardian's chat template reads the system message as a RISK NAME,
7+# not as instructions: harm, social_bias, jailbreak, profanity, sexual_content,
8+# unethical_behavior, violence, evasiveness, harm_engagement (+ RAG risks).
9+# Anything else makes the server answer 400 "unknown system risk".
10+system: harm
11+
12+# The model answers "Yes"/"No" + a <confidence> tag; the server serves 4096 tokens.
13+sampling:
14+ temperature: 0.0
15+ max_tokens: 20
16+ # Custom risk instead of the built-in one (the system line above must stay a
17+ # valid built-in name). Describe the harmful behaviour affirmatively:
18+ # chat_template_kwargs:
19+ # guardian_config:
20+ # risk_name: device_intrusion
21+ # risk_definition: "The last User message asks how to bypass, guess or crack the lock, password or PIN code of a device or account."
22+
23+
24+bashTool: false
25+editTools: false
26+planTool: false
27+fetchContentTool: false
28+askUserTool: false
29+skillsDir: no-skills
added git.sh +136 -0
new file mode 100755
@@ -0,0 +1,136 @@
1+#!/bin/bash
2+message=""
3+case $1 in
4+
5+ # 🎨: art
6+ art)
7+ message="Improve structure / format of the code"
8+ emoji="🎨"
9+ ;;
10+
11+ # 🐛: bug
12+ bug|fix)
13+ message="Fix a bug"
14+ emoji="🐛"
15+ ;;
16+
17+ # 🤓: geek
18+ human|human-fixed)
19+ message="Human Fixed"
20+ emoji="🤓"
21+ ;;
22+
23+ # 🤖: robot
24+ ai|ai-generated)
25+ message="AI generated"
26+ emoji="🤖"
27+ ;;
28+
29+ # ✨: sparkles
30+ sparkles|feature)
31+ message="Introduce new feature(s)"
32+ emoji="✨"
33+ ;;
34+
35+ # 🧩: jigsaw
36+ jigsaw|example|examples|demo|demos)
37+ message="Introduce new example(s)"
38+ emoji="🧩"
39+ ;;
40+
41+
42+ # 📝: memo
43+ memo|doc|documentation)
44+ message="Add or update documentation"
45+ emoji="📝"
46+ ;;
47+
48+ # 🌸: cherry_blossom
49+ gardening|garden|clean|cleaning)
50+ message="Gardening"
51+ emoji="🌸"
52+ ;;
53+
54+ # 🚀: rocket
55+ rocket|deploy)
56+ message="Deploy stuff"
57+ emoji="🚀"
58+ ;;
59+
60+ # 🎉: tada
61+ tada|first)
62+ message="Begin a project"
63+ emoji="🎉"
64+ ;;
65+
66+ # 🚧: construction
67+ construction|wip)
68+ message="Work in progress"
69+ emoji="🚧"
70+ ;;
71+
72+ # 📦️: package
73+ package|build)
74+ message="Add or update compiled files or packages"
75+ emoji="📦️"
76+ ;;
77+
78+ # 📦️: package
79+ release)
80+ message="Create a release"
81+ emoji="📦️"
82+ ;;
83+
84+ # 👽️: alien
85+ alien|api)
86+ message="Update code due to external API changes"
87+ emoji="👽️"
88+ ;;
89+
90+ # 🐳: whale
91+ docker|container)
92+ message="Docker"
93+ emoji="🐳"
94+ ;;
95+
96+ # 🍊: tangerine
97+ gitpod|gitpodify)
98+ message="Gitpodify"
99+ emoji="🍊"
100+ ;;
101+
102+ # 🧪: test tube
103+ alembic|experiments|experiment|xp)
104+ message="Perform experiments"
105+ emoji="🧪"
106+ ;;
107+
108+ # ✅: check mark
109+ test|tests|testing)
110+ message="Add or update tests"
111+ emoji="✅"
112+ ;;
113+
114+ # 💾: floppy-disk
115+ save)
116+ message="Saved"
117+ emoji="💾"
118+ ;;
119+
120+ *)
121+ message="Updated"
122+ emoji="🛟"
123+ ;;
124+
125+esac
126+
127+find . -name '.DS_Store' -type f -delete
128+
129+if [ -z "$2" ]
130+then
131+ # empty
132+ git add .; git commit -m "$emoji $message."; git push
133+else
134+ # not empty
135+ git add .; git commit -m "$emoji $message: $2"; git push
136+fi
new file mode 100755
@@ -0,0 +1,136 @@
1+#!/bin/bash
2+message=""
3+case $1 in
4+
5+ # 🎨: art
6+ art)
7+ message="Improve structure / format of the code"
8+ emoji="🎨"
9+ ;;
10+
11+ # 🐛: bug
12+ bug|fix)
13+ message="Fix a bug"
14+ emoji="🐛"
15+ ;;
16+
17+ # 🤓: geek
18+ human|human-fixed)
19+ message="Human Fixed"
20+ emoji="🤓"
21+ ;;
22+
23+ # 🤖: robot
24+ ai|ai-generated)
25+ message="AI generated"
26+ emoji="🤖"
27+ ;;
28+
29+ # ✨: sparkles
30+ sparkles|feature)
31+ message="Introduce new feature(s)"
32+ emoji="✨"
33+ ;;
34+
35+ # 🧩: jigsaw
36+ jigsaw|example|examples|demo|demos)
37+ message="Introduce new example(s)"
38+ emoji="🧩"
39+ ;;
40+
41+
42+ # 📝: memo
43+ memo|doc|documentation)
44+ message="Add or update documentation"
45+ emoji="📝"
46+ ;;
47+
48+ # 🌸: cherry_blossom
49+ gardening|garden|clean|cleaning)
50+ message="Gardening"
51+ emoji="🌸"
52+ ;;
53+
54+ # 🚀: rocket
55+ rocket|deploy)
56+ message="Deploy stuff"
57+ emoji="🚀"
58+ ;;
59+
60+ # 🎉: tada
61+ tada|first)
62+ message="Begin a project"
63+ emoji="🎉"
64+ ;;
65+
66+ # 🚧: construction
67+ construction|wip)
68+ message="Work in progress"
69+ emoji="🚧"
70+ ;;
71+
72+ # 📦️: package
73+ package|build)
74+ message="Add or update compiled files or packages"
75+ emoji="📦️"
76+ ;;
77+
78+ # 📦️: package
79+ release)
80+ message="Create a release"
81+ emoji="📦️"
82+ ;;
83+
84+ # 👽️: alien
85+ alien|api)
86+ message="Update code due to external API changes"
87+ emoji="👽️"
88+ ;;
89+
90+ # 🐳: whale
91+ docker|container)
92+ message="Docker"
93+ emoji="🐳"
94+ ;;
95+
96+ # 🍊: tangerine
97+ gitpod|gitpodify)
98+ message="Gitpodify"
99+ emoji="🍊"
100+ ;;
101+
102+ # 🧪: test tube
103+ alembic|experiments|experiment|xp)
104+ message="Perform experiments"
105+ emoji="🧪"
106+ ;;
107+
108+ # ✅: check mark
109+ test|tests|testing)
110+ message="Add or update tests"
111+ emoji="✅"
112+ ;;
113+
114+ # 💾: floppy-disk
115+ save)
116+ message="Saved"
117+ emoji="💾"
118+ ;;
119+
120+ *)
121+ message="Updated"
122+ emoji="🛟"
123+ ;;
124+
125+esac
126+
127+find . -name '.DS_Store' -type f -delete
128+
129+if [ -z "$2" ]
130+then
131+ # empty
132+ git add .; git commit -m "$emoji $message."; git push
133+else
134+ # not empty
135+ git add .; git commit -m "$emoji $message: $2"; git push
136+fi