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