Run this model with HF Jobs
Run Kanit/bert-hateXplain on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Kanit/bert-hateXplain. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Kanit/bert-hateXplain on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 filesFiles changed (2)
- config.json+1-7
- pytorch_model.bin+2-2
123456789101121 unmodified lines33343536373839{"_name_or_path": "google/bert_uncased_L-2_H-128_A-2","adapters": {"adapters": {},"config_map": {},"fusion_config_map": {},"fusions": {}},"architectures": ["BertForSequenceClassification"],21 unmodified lines"position_embedding_type": "absolute","problem_type": "single_label_classification","torch_dtype": "float32","transformers_version": "4.26.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 305221234521 unmodified lines27282930313233{"_name_or_path": "google/bert_uncased_L-2_H-128_A-2","architectures": ["BertForSequenceClassification"],21 unmodified lines"position_embedding_type": "absolute","problem_type": "single_label_classification","torch_dtype": "float32","transformers_version": "4.30.2","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522
123version https://git-lfs.github.com/spec/v1oid sha256:9cf6b6bbbf7ffb32c2725f6e71e419f2964b7ef3bf23c6a7d47b801557505f02size 17562031123version https://git-lfs.github.com/spec/v1oid sha256:0356d3abaeb6720378200bc070330ddda818605fc1f75870ed1ed74a3508edfcsize 17562607
config.json+1-7
pytorch_model.bin+2-2