Instructions to use minh21/XLNet-Reddit-Toxic-Comment-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minh21/XLNet-Reddit-Toxic-Comment-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minh21/XLNet-Reddit-Toxic-Comment-Classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minh21/XLNet-Reddit-Toxic-Comment-Classification") model = AutoModelForSequenceClassification.from_pretrained("minh21/XLNet-Reddit-Toxic-Comment-Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from minh21/XLNet-Reddit-Toxic-Comment-Classification: direct link, hf CLI and curl.
- Browser
- Download file 2.41 MB
-
https://huggingface.co/minh21/XLNet-Reddit-Toxic-Comment-Classification/resolve/c157f58f833cbeb7d4263becd260aea448f8ee76/tokenizer.json
- Command line
-
hf download hf://minh21/XLNet-Reddit-Toxic-Comment-Classification@c157f58f833cbeb7d4263becd260aea448f8ee76/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/minh21/XLNet-Reddit-Toxic-Comment-Classification/resolve/c157f58f833cbeb7d4263becd260aea448f8ee76/tokenizer.json
2.41 MB
File too large to display, you can check the raw version instead.