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: 129 Bytes
f2fa818 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:fec7d82d49b754566299b41a49c31d5fce788d84895912f06781897c0f8e3eb4
size 1135
|