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

codeintegrity-ai
/
promptguard

Text Classification
Transformers
Safetensors
English
modernbert
security
prompt-injection
jailbreak
llm-security
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use codeintegrity-ai/promptguard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use codeintegrity-ai/promptguard with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="codeintegrity-ai/promptguard")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("codeintegrity-ai/promptguard")
    model = AutoModelForSequenceClassification.from_pretrained("codeintegrity-ai/promptguard", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • LICENSE
    10.2 kB
    Initial commit: ModernBERT PromptGuard about 1 year ago
  • README.md
    6.55 kB
    Link to published PromptGuard benchmark report 5 days ago
  • config.json
    1.42 kB
    Upload folder using huggingface_hub 10 months ago
  • model.safetensors
    598 MB
    xet
    Fix: Replace corrupted safetensors file with valid model weights 9 months ago
  • requirements.txt
    126 Bytes
    Initial commit: ModernBERT PromptGuard about 1 year ago
  • special_tokens_map.json
    694 Bytes
    Initial commit: ModernBERT PromptGuard about 1 year ago
  • tokenizer.json
    3.58 MB
    Initial commit: ModernBERT PromptGuard about 1 year ago
  • tokenizer_config.json
    20.8 kB
    Initial commit: ModernBERT PromptGuard about 1 year ago
  • training_args.bin
    5.78 kB
    xet
    Initial commit: ModernBERT PromptGuard about 1 year ago