Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NeuralTrust
/
prompt-guard-oss-small

Text Classification
Transformers
ONNX
Safetensors
modernbert
llm-security
prompt-injection
jailbreak
jailbreak-detection
guardrail
sequence-classification
onnxruntime
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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")
    # pip install -U transformers accelerate
    # 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
prompt-guard-oss-small
1.16 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 14 commits
mjorda98's picture
mjorda98
docs: add EU/EIC funding emblem and disclaimer to model card
d3713ad 20 days ago
  • assets
    docs: add EU/EIC funding emblem and disclaimer to model card 20 days ago
  • .gitattributes
    1.66 kB
    docs: add EU/EIC funding emblem and disclaimer to model card 20 days ago
  • README.md
    10.1 kB
    docs: add EU/EIC funding emblem and disclaimer to model card 20 days ago
  • config.json
    2.08 kB
    feat: improve model for recall 2 months ago
  • model.onnx
    2.3 MB
    xet
    feat: improve model for recall 2 months ago
  • model.onnx.data
    563 MB
    xet
    feat: improve model for recall 2 months ago
  • model.safetensors
    563 MB
    xet
    feat: improve model for recall 2 months ago
  • prompt-guard-config.json
    74 Bytes
    feat: improve model for recall 2 months ago
  • tokenizer.json
    34.4 MB
    xet
    feat: improve model for recall 2 months ago
  • tokenizer_config.json
    680 Bytes
    feat: improve model for recall 2 months ago