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

llm-semantic-router
/
mmbert-safety-classifier-level2

Text Classification
PEFT
Safetensors
English
multilingual
safety
content-moderation
hazard-classification
mlcommons
lora
mmbert
Model card Files Files and versions
xet
Community

Instructions to use llm-semantic-router/mmbert-safety-classifier-level2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use llm-semantic-router/mmbert-safety-classifier-level2 with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("jhu-clsp/mmBERT-base")
    model = PeftModel.from_pretrained(base_model, "llm-semantic-router/mmbert-safety-classifier-level2")
  • Notebooks
  • Google Colab
  • Kaggle
mmbert-safety-classifier-level2
61.5 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
HuaminChen's picture
HuaminChen
Upload folder using huggingface_hub
34282f5 verified 4 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 4 months ago
  • README.md
    5.22 kB
    Upload folder using huggingface_hub 4 months ago
  • adapter_config.json
    933 Bytes
    Upload folder using huggingface_hub 4 months ago
  • adapter_model.safetensors
    27.1 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • label_mapping.json
    1.38 kB
    Upload folder using huggingface_hub 4 months ago
  • special_tokens_map.json
    1.05 kB
    Upload folder using huggingface_hub 4 months ago
  • tokenizer.json
    34.4 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • tokenizer_config.json
    46.5 kB
    Upload folder using huggingface_hub 4 months ago