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

KIMMISEON
/
distilbert-prompt-guard-4class

Text Classification
Transformers
Safetensors
English
distilbert
prompt-injection-detection
jailbreak-detection
security
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use KIMMISEON/distilbert-prompt-guard-4class with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use KIMMISEON/distilbert-prompt-guard-4class with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="KIMMISEON/distilbert-prompt-guard-4class")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("KIMMISEON/distilbert-prompt-guard-4class")
    model = AutoModelForSequenceClassification.from_pretrained("KIMMISEON/distilbert-prompt-guard-4class")
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-prompt-guard-4class
1.88 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
KIMMISEON's picture
KIMMISEON
Update README.md
906bed1 verified about 1 month ago
  • checkpoint-600
    Upload folder using huggingface_hub about 1 month ago
  • checkpoint-900
    Upload folder using huggingface_hub about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    838 Bytes
    Update README.md about 1 month ago
  • config.json
    893 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • label_mapping.json
    340 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • metrics.json
    1.5 kB
    Upload folder using huggingface_hub about 1 month ago
  • model.safetensors
    268 MB
    xet
    Upload folder using huggingface_hub about 1 month ago
  • tokenizer.json
    711 kB
    Upload folder using huggingface_hub about 1 month ago
  • tokenizer_config.json
    351 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • training_args.bin
    5.27 kB
    xet
    Upload folder using huggingface_hub about 1 month ago