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")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("unitary/toxic-bert") model = AutoModelForSequenceClassification.from_pretrained("unitary/toxic-bert") - Inference
- Notebooks
- Google Colab
- Kaggle
Fix: Define missing `input_text` variable to enable result formatting in example code
1
#11 opened 12 months ago
by
anon-repair-bot
Upload tokenizer.json
1
#9 opened about 2 years ago
by
ada-closure
Disclaimer no longer necessary?
#6 opened over 2 years ago
by
umm-maybe
Adding `safetensors` variant of this model
#5 opened almost 3 years ago
by
SFconvertbot
Model license
#4 opened almost 3 years ago
by
masoudhashemi
Training of toxic-bert
1
#3 opened about 3 years ago
by
JOhan1906
Adding `safetensors` variant of this model
#2 opened over 3 years ago
by
SFconvertbot
updated models?
👍 3
#1 opened over 3 years ago
by
clem