Text Classification
Transformers
Safetensors
modernbert
moderation
toxicity
jailbreak-detection
multi-label
text-embeddings-inference
Instructions to use opus-research/opus-moderation-4-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opus-research/opus-moderation-4-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="opus-research/opus-moderation-4-large")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("opus-research/opus-moderation-4-large") model = AutoModelForSequenceClassification.from_pretrained("opus-research/opus-moderation-4-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
f0fc2f0 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:f296b9fc1fd6445e17f6c1966f28cd41fe0cd2c29fcea2980ee6b5f5fb2945bc
size 5265
|