Downloads · 30 days
6
2% of all-time downloads
ahmedmajid92/iraqi-guard-model
iraqi-guard-model is a text classification model from ahmedmajid92. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is fine-tuned from NAMAA-Space/Ara-Prompt-GuardV0 to detect prompt injections and jailbreak attempts in Iraqi Arabic dialect.
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
364
Public
Parameters
279M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 99%
From the Hugging Face model README
This model is fine-tuned from NAMAA-Space/Ara-Prompt-Guard_V0 to detect prompt injections and jailbreak attempts in Iraqi Arabic dialect.
BENIGN: Safe, normal promptsINJECTION: Prompt injection attemptsJAILBREAK: Jailbreak attemptsfrom transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("your-username/iraqi-guard-model")
model = AutoModelForSequenceClassification.from_pretrained("your-username/iraqi-guard-model")
text = "شلون استعيد الرقم السري"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
outputs = model(**inputs)
prediction = torch.nn.functional.softmax(outputs.logits, dim=-1)
The model was trained on a custom dataset of Iraqi Arabic prompts with labels for prompt injection and jailbreak detection.
The model includes temperature scaling with T=0.996 for better calibration.