textdetox/multilingual_toxicity_dataset
Viewer • Updated • 71.4k • 1.45k • 39
Run tsmaitry/devica-toxicity-xlmr-large on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/tsmaitry/devica-toxicity-xlmr-large. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/tsmaitry/devica-toxicity-xlmr-large on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use tsmaitry/devica-toxicity-xlmr-large with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tsmaitry/devica-toxicity-xlmr-large") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tsmaitry/devica-toxicity-xlmr-large")
model = AutoModelForSequenceClassification.from_pretrained("tsmaitry/devica-toxicity-xlmr-large", device_map="auto")Multilingual toxicity classifier fine-tuned on XLM-RoBERTa-Large (559M params) for Indian language content moderation.
Hindi, English, Bengali, Tamil, Telugu, Marathi, Kannada, Malayalam, Gujarati, Punjabi, Hinglish (code-mixed)
| Metric | Score |
|---|---|
| Accuracy | ~93-95% |
| F1 (weighted) | ~93-95% |
| F1 (toxic) | ~94% |
from transformers import pipeline
classifier = pipeline("text-classification", model="tsmaitry/devica-toxicity-xlmr-large")
classifier("तुम बहुत अच्छे हो") # → non-toxic
classifier("Saala kutta kamina") # → toxic
classifier("நீ முட்டாள்") # → toxic
Base model
FacebookAI/xlm-roberta-large