clawdia-chan commited on
Commit
64c6511
·
verified ·
1 Parent(s): 31c82b2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ datasets:
6
+ - clawdia-chan/prompt-guard-v1
7
+ ---
8
+
9
+ # Balanced DeBERTa Prompt Guard
10
+
11
+ Fine-tuned DeBERTa-v3-base for prompt injection and jailbreak detection.
12
+
13
+ ## Model Details
14
+
15
+ - **Base Model:** microsoft/deberta-v3-base
16
+ - **Training Data:** 500+ balanced samples (prompt-guard-v1 dataset)
17
+ - **Task:** Binary classification (malicious vs benign prompts)
18
+
19
+ ## Supported Threats
20
+
21
+ | Threat Type | Status |
22
+ |-------------|--------|
23
+ | Direct Prompt Injection | ✅ |
24
+ | Indirect Injection | ✅ |
25
+ | FlipAttack | ✅ |
26
+ | Jailbreak (DAN) | ✅ |
27
+ | Encoding Attacks | ✅ |
28
+ | Role Override | ✅ |
29
+
30
+ ## Performance
31
+
32
+ - Training accuracy: ~100% (small test set)
33
+ - Validation: Manual testing on real attack patterns
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
39
+
40
+ model_name = "clawdia-chan/balanced-deberta"
41
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
42
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
43
+ ```
44
+
45
+ ## Limitations
46
+
47
+ - Small training dataset (500+ samples)
48
+ - No formal evaluation metrics published
49
+ - Requires more diverse test data
50
+
51
+ ## Citation
52
+
53
+ ```
54
+ @model{phantomshield,
55
+ title={Balanced DeBERTa Prompt Guard},
56
+ author={Clawdia},
57
+ year={2026}
58
+ }
59
+ ```