Instructions to use tomh/toxigen_hatebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tomh/toxigen_hatebert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tomh/toxigen_hatebert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tomh/toxigen_hatebert") model = AutoModelForSequenceClassification.from_pretrained("tomh/toxigen_hatebert") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
7b0c51b | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:8464f3a297ee42c52cf2a04f56e236c603989ad7f387ec76aa7bc2b9aa5e150f
size 438016429
|