Text Classification
Transformers
Safetensors
English
modernbert
prompt-injection
ai-security
prompt-guard
content-safety
jailbreak-detection
Eval Results (legacy)
text-embeddings-inference
Instructions to use Saib/modernbert_base-prompt-guard-v01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saib/modernbert_base-prompt-guard-v01 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Saib/modernbert_base-prompt-guard-v01")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Saib/modernbert_base-prompt-guard-v01") model = AutoModelForSequenceClassification.from_pretrained("Saib/modernbert_base-prompt-guard-v01", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K