Instructions to use textdetox/twitter-xlmr-toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textdetox/twitter-xlmr-toxicity-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textdetox/twitter-xlmr-toxicity-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textdetox/twitter-xlmr-toxicity-classifier") model = AutoModelForSequenceClassification.from_pretrained("textdetox/twitter-xlmr-toxicity-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download scheduler.pt from textdetox/twitter-xlmr-toxicity-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/textdetox/twitter-xlmr-toxicity-classifier/resolve/main/scheduler.pt
- Command line
-
hf download hf://textdetox/twitter-xlmr-toxicity-classifier/scheduler.pt
-
curl -L -o scheduler.pt https://huggingface.co/textdetox/twitter-xlmr-toxicity-classifier/resolve/main/scheduler.pt
1.06 kB
- Xet hash:
- 94c5b202cec0cdcbe3db62401f7c562b7304a2c45ff84fd7cd624021a5dffd3b
- Size of remote file:
- 1.06 kB
- SHA256:
- 73081a1eb5f30e05e6ea4de2b7089d3edeab30f2a47eb0d27f24cd5cf3e733eb
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.