Text Classification
Transformers
Safetensors
English
modernbert
security
prompt-injection
jailbreak
llm-security
Eval Results (legacy)
text-embeddings-inference
Instructions to use codeintegrity-ai/promptguard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codeintegrity-ai/promptguard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="codeintegrity-ai/promptguard")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("codeintegrity-ai/promptguard") model = AutoModelForSequenceClassification.from_pretrained("codeintegrity-ai/promptguard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Clarify PromptGuard benchmark context and CodeIntegrity attribution
#3
by jungs1 - opened
- Label the original test-set metrics as self-reported.
- Add the measured September 2026 external-dataset result and limitations.
- Link directly to the already published CodeIntegrity benchmark report.