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")# 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
- Xet hash:
- 5ba5486fd3b0e8fd1fdbc1f6b863cee34f67bd3556606c6740c5348ab5ac8c03
- Size of remote file:
- 223 MB
- SHA256:
- d9c8d652d6cc8c599dcc7131421fea58bf6af0cf5c6544a3a474bce2f2a1a270
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.