Run this model with HF Jobs
Run textdetox/xlmr-large-toxicity-classifier 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/textdetox/xlmr-large-toxicity-classifier. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/textdetox/xlmr-large-toxicity-classifier 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.
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")# pip install -U transformers accelerate # 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
Download tokenizer.json from textdetox/xlmr-large-toxicity-classifier: direct link, hf CLI and curl.
- Browser
- Download file 17.1 MB
-
https://huggingface.co/textdetox/xlmr-large-toxicity-classifier/resolve/main/tokenizer.json
- Command line
-
hf download hf://textdetox/xlmr-large-toxicity-classifier/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/textdetox/xlmr-large-toxicity-classifier/resolve/main/tokenizer.json
17.1 MB
- 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.