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
Commit History
-
Adding ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [geeek](https://huggingface.co/geeek), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!8ef1c76
-
Add onnx files for quantized and regular versions (#6)
Verified signature- Add onnx files for quantized and regular versions (cdc46ef1e4247410f05b08e1ab9f37e62d430948) Co-authored-by: Aryan Agal <aryanagal@users.noreply.huggingface.co>f3015b1
-
Update README.md
Verified signature9c944b5
-
update link to dataset
430b7ae
-
Update README.md
c1fc045 -
Update README.md
53c0e05
-
Update README.md
6d101ff -
Update README.md
783ffdf -
Commit From AutoTrain
f016188 -
initial commit
d95ea85