Instructions to use ryanyip7777/toxic_bert_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryanyip7777/toxic_bert_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ryanyip7777/toxic_bert_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ryanyip7777/toxic_bert_classifier") model = AutoModelForSequenceClassification.from_pretrained("ryanyip7777/toxic_bert_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
f2fa818 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:781342ee2b8d910595f1cf3dda3c26ba2336aa04896b1a3dc17d5260b99f74e5
size 433315437
|