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
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9b49708
-
Upload tokenizer
d8daa9d -
Upload BertForSequenceClassification
8e59716
-
Update README.md
2a778f7
-
Upload tokenizer
8b19eff -
Upload BertForSequenceClassification
00ff15a -
Update README.md
0d7713d -
Update README.md
aa97459
-
Upload tokenizer
5077063 -
Upload BertForSequenceClassification
c1d28ea -
Upload tokenizer
50cf9b8 -
Upload BertForSequenceClassification
85817c7
-
Update README.md
b566123 -
Update README.md
46d6882 -
Create README.md
daaf628 -
Upload tokenizer
1b42b07 -
Upload BertForSequenceClassification
bc5fa64 -
Upload tokenizer
09db3a9 -
Upload BertForSequenceClassification
55dce03 -
Upload config
78c959d -
Upload tokenizer
cb49c8b -
Upload BertForSequenceClassification
c4f5c6c -
Upload tokenizer
f7097a3 -
Upload BertForSequenceClassification
38bbce9 -
Upload BertForSequenceClassification
1b09784 -
Upload BertForSequenceClassification
7dca1fb -
initial commit
8d937ef