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

muse-models
/
Muse-Prompt-Shield-1-100M

Text Classification
Transformers
Safetensors
bert
prompt-injection
jailbreak
safety
guardrail
multilingual
distillation
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use muse-models/Muse-Prompt-Shield-1-100M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use muse-models/Muse-Prompt-Shield-1-100M with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="muse-models/Muse-Prompt-Shield-1-100M")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("muse-models/Muse-Prompt-Shield-1-100M")
    model = AutoModelForSequenceClassification.from_pretrained("muse-models/Muse-Prompt-Shield-1-100M", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
Muse-Prompt-Shield-1-100M
401 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
Ill-Ness's picture
Ill-Ness
Update README.md
bea89e7 verified 2 days ago
  • .gitattributes
    355 Bytes
    initial commit 2 days ago
  • README.md
    14 kB
    Update README.md 2 days ago
  • config.json
    845 Bytes
    initial commit 2 days ago
  • model.safetensors
    398 MB
    xet
    initial commit 2 days ago
  • special_tokens_map.json
    121 Bytes
    initial commit 2 days ago
  • tokenizer.json
    2.42 MB
    xet
    initial commit 2 days ago
  • tokenizer_config.json
    196 Bytes
    initial commit 2 days ago