Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • 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
Safetensors
modernbert
llm-security
prompt-injection
jailbreak
jailbreak-detection
guardrail
multilingual
sequence-classification
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")
    # 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
597 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
mjorda98's picture
mjorda98
Update README.md
bdbe115 verified 5 days ago
  • .gitattributes
    1.57 kB
    Upload tokenizer 6 days ago
  • README.md
    8.37 kB
    Update README.md 5 days ago
  • config.json
    2.21 kB
    Upload ModernBertForSequenceClassification 6 days ago
  • decision-threshold.json
    88 Bytes
    Upload decision-threshold.json 6 days ago
  • model.safetensors
    563 MB
    xet
    Upload ModernBertForSequenceClassification 6 days ago
  • tokenizer.json
    34.4 MB
    xet
    Upload tokenizer 6 days ago
  • tokenizer_config.json
    681 Bytes
    Upload tokenizer 6 days ago