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