Mnwa/russian-toxic
Viewer • Updated • 348k • 169 • 1
How to use Mnwa/modernbert-toxic-russian with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Mnwa/modernbert-toxic-russian") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Mnwa/modernbert-toxic-russian")
model = AutoModelForSequenceClassification.from_pretrained("Mnwa/modernbert-toxic-russian")Base model
answerdotai/ModernBERT-base