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
f01cf52
-
fix wrong activation function for multi-label classification
5cc5343
-
upload flax model
a447313 -
allow flax
15b5762
-
Update README.md
4130588
-
Update config.json
d35f11e -
update tokenizer config
d9e59f9 -
update config
5bc4ffb -
update config & model
ef96a6e -
update tokenizer config
a27d0f9 -
update config
1ffcbb7 -
update readme
e0fd7dc -
initial commit
a982808