Text Classification
PEFT
Safetensors
English
multilingual
content-safety
lora
mlcommons
ai-safety
hazard-classification
moderation
Instructions to use llm-semantic-router/mlcommons-safety-classifier-level2-hazard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use llm-semantic-router/mlcommons-safety-classifier-level2-hazard 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/mlcommons-safety-classifier-level2-hazard") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!