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