Instructions to use textdetox/xlmr-large-toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textdetox/xlmr-large-toxicity-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textdetox/xlmr-large-toxicity-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textdetox/xlmr-large-toxicity-classifier") model = AutoModelForSequenceClassification.from_pretrained("textdetox/xlmr-large-toxicity-classifier", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Xet hash:
- f9b4813968d48faa32a02251f368ef957640c0bed80404c10915134e6adf9924
- Size of remote file:
- 17.1 MB
- SHA256:
- d6f76fe13d42f80dcee0cb86a1aeb5f14f8909bb8a8782f7a4a4ad76697ef164
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.