Instructions to use Kanit/bert-hateXplain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kanit/bert-hateXplain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Kanit/bert-hateXplain")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Kanit/bert-hateXplain") model = AutoModelForSequenceClassification.from_pretrained("Kanit/bert-hateXplain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BertForSequenceClassification
Browse files123version https://git-lfs.github.com/spec/v1oid sha256:f9cf8304a96ad6048837b8ae3bba34e0ac331e4379b9d6b91c6a81067e2fcfe4size 44708748123version https://git-lfs.github.com/spec/v1oid sha256:d0e7a84733de8d716c906443103d2eebe6fdcfa99549930d68229417d2d0ef6dsize 44708748
pytorch_model.bin+1-1