Downloads · 30 days
10
16% of all-time downloads
jainsatyam26/xlmr-shield
xlmr-shield is a text classification model from jainsatyam26. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
XLM-RoBERTa-base dual-head classifier for content moderation and prompt injection detection. Fine-tuned with 40:60 resampling + per-class cap (30K) + WeightedRandomSampler.
Downloads · 30 days
10
16% of all-time downloads
All-time downloads
61
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
XLM-RoBERTa-base dual-head classifier for content moderation and prompt injection detection. Fine-tuned with 40:60 resampling + per-class cap (30K) + WeightedRandomSampler.
| Metric | Score |
|---|---|
| Safety Accuracy | 0.8561 |
| Safety F1 | 0.5321 |
| Category Macro F1 | 0.6116 |
| Category Micro F1 | 0.6502 |
| Category | F1 |
|---|---|
| benign | 0.5339 |
| child_sexual_exploitation | 0.4491 |
| hate_and_harassment | 0.6302 |
| indiscriminate_weapons | 0.5208 |
| misinformation_and_specialized_advice | 0.4748 |
| non_violent_crimes | 0.7812 |
| pi_and_jailbreak | 0.6587 |
| privacy | 0.6972 |
| sexual_content | 0.6889 |
| suicide_and_self_harm | 0.5734 |
| violent_crimes | 0.7195 |