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
Download model.safetensors from protectai/deberta-v3-base-prompt-injection-v2: direct link, hf CLI and curl.
- Browser
- Download file 738 MB
-
https://huggingface.co/protectai/deberta-v3-base-prompt-injection-v2/resolve/main/model.safetensors
- Command line
-
hf download hf://protectai/deberta-v3-base-prompt-injection-v2/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/protectai/deberta-v3-base-prompt-injection-v2/resolve/main/model.safetensors
738 MB
- Xet hash:
- c994a8c591ea5b9021ff72484991f7dfd707cd16aa4b1435d722f99c954fbb9e
- Size of remote file:
- 738 MB
- SHA256:
- 6521cb8d0ac08148c81464899c424e6148fcc62befa371089fa4061d8b6e0424
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.