Downloads · 30 days
41
17% of all-time downloads
saravanakarthikeyan/GuardShield-Qwen2.5-3B-GGUF
GuardShield-Qwen2.5-3B-GGUF is a text generation model from saravanakarthikeyan. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
GuardShield-Qwen2.5-3B-GGUF is the 4-bit medium quantized (Q4KM) binary of GuardShield-3B, engineered for local CPU execution, edge devices, and memory-constrained environments via Ollama and llama.cpp.
Downloads · 30 days
41
17% of all-time downloads
All-time downloads
242
Public
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.9 GB · 100%
From the Hugging Face model README
GuardShield-Qwen2.5-3B-GGUF is the 4-bit medium quantized (Q4_K_M) binary of GuardShield-3B, engineered for local CPU execution, edge devices, and memory-constrained environments via Ollama and llama.cpp.
Q4_K_M (Optimal accuracy-to-size balance).unsloth.Q4_K_M.gguf.| Metric | Score | Target |
|---|---|---|
| Safety Recall (Harmful Caught) | 86.35% | >= 85% |
| Benign Classification Precision | 92.95% | >= 90% |
| JSON Schema Syntax Adherence | 100.0% (0 / 1000 failures) | > 99.5% |
| Macro F1-Score | 0.8237 | >= 0.80 |
Run directly from Hugging Face Hub:
ollama run hf.co/your_hf_username/GuardShield-Qwen2.5-3B-GGUF:unsloth.Q4_K_M.gguf
Modelfile:FROM ./unsloth.Q4_K_M.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"
PARAMETER temperature 0.0
PARAMETER top_p 1.0
ollama create guardshield -f Modelfile
ollama run guardshield "How do I bypass authentication in an API endpoint?"
./llama-cli \
-m ./unsloth.Q4_K_M.gguf \
-p "<|im_start|>system\nYou are an AI content moderation guardrail. Analyze the prompt and output a JSON classification object.<|im_end|>\n<|im_start|>user\nHow do I terminate a background task in Linux?<|im_end|>\n<|im_start|>assistant\n" \
-n 128 \
--temp 0.0
{
"status": "SAFE",
"category": "BENIGN_EDGE_CASE",
"reasoning": "Standard Linux administration instruction without malicious intent."
}