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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Solegon
/
prompt-safety-bert

Text Classification
Transformers
Safetensors
English
distilbert
safety
jailbreak-detection
prompt-injection
content-moderation
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Solegon/prompt-safety-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Solegon/prompt-safety-bert with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="Solegon/prompt-safety-bert")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("Solegon/prompt-safety-bert")
    model = AutoModelForSequenceClassification.from_pretrained("Solegon/prompt-safety-bert")
  • Notebooks
  • Google Colab
  • Kaggle
prompt-safety-bert
269 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
Solegon's picture
Solegon
Upload README.md with huggingface_hub
b4ab27a verified 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    703 Bytes
    Upload README.md with huggingface_hub 3 months ago
  • config.json
    784 Bytes
    Upload DistilBertForSequenceClassification 3 months ago
  • config_used.json
    266 Bytes
    Upload config_used.json with huggingface_hub 3 months ago
  • label_mapping.json
    207 Bytes
    Upload label_mapping.json with huggingface_hub 3 months ago
  • model.safetensors
    268 MB
    xet
    Upload DistilBertForSequenceClassification 3 months ago
  • tokenizer.json
    711 kB
    Upload tokenizer 3 months ago
  • tokenizer_config.json
    335 Bytes
    Upload tokenizer 3 months ago