Text Classification
PEFT
Safetensors
English
multilingual
safety
content-moderation
hazard-classification
mlcommons
lora
mmbert
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
Ctrl+K