Instructions to use unitary/toxic-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unitary/toxic-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="unitary/toxic-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("unitary/toxic-bert") model = AutoModelForSequenceClassification.from_pretrained("unitary/toxic-bert", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#8)
Verified signature- Adding `safetensors` variant of this model (2b3516c161676f99ad536f47c421f22a1a415154) Co-authored-by: Can Koecher <ckoecher@users.noreply.huggingface.co>4d6c22e
-
allow flax
15b5762
-
initial commit
a982808