Text Classification
Transformers
Safetensors
modernbert
moderation
toxicity
jailbreak-detection
multi-label
text-embeddings-inference
Instructions to use opus-research/opus-moderation-4-fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opus-research/opus-moderation-4-fast with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="opus-research/opus-moderation-4-fast")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("opus-research/opus-moderation-4-fast") model = AutoModelForSequenceClassification.from_pretrained("opus-research/opus-moderation-4-fast", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 270 Bytes
11d607c | 1 2 3 4 5 6 7 8 9 10 | {
"toxicity": 0.41999999999999993,
"severe_toxicity": 0.06,
"obscene": 0.4799999999999999,
"threat": 0.5499999999999999,
"insult": 0.41,
"identity_attack": 0.36999999999999994,
"sexual_explicit": 0.43999999999999995,
"jailbreaking": 0.24999999999999994
} |