Text Classification
Transformers
ONNX
Safetensors
English
deberta-v2
prompt-injection
injection
security
llm-security
Generated from Trainer
text-embeddings-inference
Instructions to use protectai/deberta-v3-base-prompt-injection-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use protectai/deberta-v3-base-prompt-injection-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="protectai/deberta-v3-base-prompt-injection-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("protectai/deberta-v3-base-prompt-injection-v2") model = AutoModelForSequenceClassification.from_pretrained("protectai/deberta-v3-base-prompt-injection-v2", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,7 +50,10 @@ This model classifies inputs into benign (`0`) and injection-detected (`1`).
|
|
| 50 |
|
| 51 |
## Limitations
|
| 52 |
|
| 53 |
-
`deberta-v3-base-prompt-injection-v2` is highly accurate in identifying prompt injections in English.
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Model Development
|
| 56 |
|
|
|
|
| 50 |
|
| 51 |
## Limitations
|
| 52 |
|
| 53 |
+
`deberta-v3-base-prompt-injection-v2` is highly accurate in identifying prompt injections in English.
|
| 54 |
+
It does not detect jailbreak attacks or handle non-English prompts, which may limit its applicability in diverse linguistic environments or against advanced adversarial techniques.
|
| 55 |
+
|
| 56 |
+
Additionally, we do not recommend using this scanner for system prompts, as it produces false-positives.
|
| 57 |
|
| 58 |
## Model Development
|
| 59 |
|