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")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("codeintegrity-ai/promptguard") model = AutoModelForSequenceClassification.from_pretrained("codeintegrity-ai/promptguard") - Notebooks
- Google Colab
- Kaggle
Model is not working
#1
by finiteautomata - opened
Running the example snippet turns out into the following exception:
SafetensorError: Error while deserializing header: header too large
Checking the repository, it seems the .safetensorsfile is corrupted.
Thanks for reporting! This has been fixed - the safetensors file is now correctly uploaded. Please try loading the model again.
jungs1 changed discussion status to closed