Text Classification
Transformers
Safetensors
modernbert
prompt-injection
indirect-prompt-injection
llm-security
agent-security
guardrail
text-embeddings-inference
Instructions to use drumshadow/modernbert-indirect-injection-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drumshadow/modernbert-indirect-injection-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="drumshadow/modernbert-indirect-injection-detector")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("drumshadow/modernbert-indirect-injection-detector") model = AutoModelForSequenceClassification.from_pretrained("drumshadow/modernbert-indirect-injection-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 60 Bytes
3cf03cd | 1 2 3 4 | {
"t_f1": 0.8023057579994202,
"t_r95": 0.999864935874939
} |