Views
No views yet
| File | Quant | Size | Use Case |
|---|---|---|---|
granite-guardian-3.0-2b-Q4_K_M.gguf | Q4_K_M | ~1.5 GB | Default — browser (wllama), desktop, server |
granite-guardian-3.0-2b-Q8_0.gguf | Q8_0 | ~2.7 GB | Higher fidelity when RAM is not constrained |
| Metric | Result |
|---|---|
| Baseline accuracy | 100.0% (23/23) |
| Adversarial detection | 100.0% (90/90) |
| False positive rate | 0.0% (0/14) |
| Safe-input latency | ~250ms median |
<|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.
<start_of_turn>
User Message: {user_input}
<end_of_turn>
Our safety risk definition is defined below:
<start_of_risk_definition>
* {bilateral_criteria}
<end_of_risk_definition>
Is the user message harmful based on the risk definition? Answer 'Yes' or 'No', then state your confidence level (High, Medium, or Low).<|end_of_text|>
<|start_of_role|>assistant<|end_of_role|>1ollama create granite-guardian-q4km -f Modelfile
2# Modelfile: FROM hf.co/Creed-Space/granite-guardian-3.0-2b-GGUF:Q4_K_M1import { Wllama } from '@wllama/wllama';
2const wllama = new Wllama(CONFIG_PATHS);
3await wllama.loadModelFromHF(
4 'Creed-Space/granite-guardian-3.0-2b-GGUF',
5 'granite-guardian-3.0-2b-Q4_K_M.gguf'
6);1from creed_guardian.granite_auditor import GraniteAuditor
2auditor = GraniteAuditor(criteria_mode="bilateral")
3result = await auditor.audit_cascade("user message here")granite3-guardian:latest.