Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ license: mit
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
datasets:
|
| 6 |
-
- clawdia-chan/prompt-guard-
|
| 7 |
---
|
| 8 |
|
| 9 |
# Balanced DeBERTa Prompt Guard
|
|
@@ -13,9 +13,24 @@ Fine-tuned DeBERTa-v3-base for prompt injection and jailbreak detection.
|
|
| 13 |
## Model Details
|
| 14 |
|
| 15 |
- **Base Model:** microsoft/deberta-v3-base
|
| 16 |
-
- **Training Data:**
|
|
|
|
|
|
|
| 17 |
- **Task:** Binary classification (malicious vs benign prompts)
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
## Supported Threats
|
| 20 |
|
| 21 |
| Threat Type | Status |
|
|
@@ -26,11 +41,8 @@ Fine-tuned DeBERTa-v3-base for prompt injection and jailbreak detection.
|
|
| 26 |
| Jailbreak (DAN) | ✅ |
|
| 27 |
| Encoding Attacks | ✅ |
|
| 28 |
| Role Override | ✅ |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
- Training accuracy: ~100% (small test set)
|
| 33 |
-
- Validation: Manual testing on real attack patterns
|
| 34 |
|
| 35 |
## Usage
|
| 36 |
|
|
@@ -44,9 +56,8 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
| 44 |
|
| 45 |
## Limitations
|
| 46 |
|
| 47 |
-
- Small training dataset (
|
| 48 |
-
-
|
| 49 |
-
- Requires more diverse test data
|
| 50 |
|
| 51 |
## Citation
|
| 52 |
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
datasets:
|
| 6 |
+
- clawdia-chan/prompt-guard-v2
|
| 7 |
---
|
| 8 |
|
| 9 |
# Balanced DeBERTa Prompt Guard
|
|
|
|
| 13 |
## Model Details
|
| 14 |
|
| 15 |
- **Base Model:** microsoft/deberta-v3-base
|
| 16 |
+
- **Training Data:** 50 balanced samples (prompt-guard-v2 dataset)
|
| 17 |
+
- 20 malicious samples (label=1)
|
| 18 |
+
- 30 benign samples (label=0)
|
| 19 |
- **Task:** Binary classification (malicious vs benign prompts)
|
| 20 |
|
| 21 |
+
## Dataset Categories
|
| 22 |
+
|
| 23 |
+
| Category | Count |
|
| 24 |
+
|----------|-------|
|
| 25 |
+
| prompt_injection | 8 |
|
| 26 |
+
| jailbreak | 6 |
|
| 27 |
+
| flip_attack | 1 |
|
| 28 |
+
| indirect_injection | 2 |
|
| 29 |
+
| encoding_attack | 1 |
|
| 30 |
+
| role_override | 2 |
|
| 31 |
+
| safety_override | 1 |
|
| 32 |
+
| benign | 30 |
|
| 33 |
+
|
| 34 |
## Supported Threats
|
| 35 |
|
| 36 |
| Threat Type | Status |
|
|
|
|
| 41 |
| Jailbreak (DAN) | ✅ |
|
| 42 |
| Encoding Attacks | ✅ |
|
| 43 |
| Role Override | ✅ |
|
| 44 |
+
| Authority Impersonation | ✅ |
|
| 45 |
+
| Code Execution | ✅ |
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Usage
|
| 48 |
|
|
|
|
| 56 |
|
| 57 |
## Limitations
|
| 58 |
|
| 59 |
+
- Small training dataset (50 samples)
|
| 60 |
+
- More diverse test data needed
|
|
|
|
| 61 |
|
| 62 |
## Citation
|
| 63 |
|