Run this model with HF Jobs
Run tum-nlp/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/tum-nlp/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/tum-nlp/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 tum-nlp/bert-hateXplain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tum-nlp/bert-hateXplain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tum-nlp/bert-hateXplain")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tum-nlp/bert-hateXplain") model = AutoModelForSequenceClassification.from_pretrained("tum-nlp/bert-hateXplain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BertForSequenceClassification
Browse filesFiles changed (2)
- config.json+1-1
- pytorch_model.bin+2-2
26 unmodified lines2728293031323326 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": 3052226 unmodified lines2728293031323326 unmodified lines"position_embedding_type": "absolute","problem_type": "single_label_classification","torch_dtype": "float32","transformers_version": "4.34.0","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522
123version https://git-lfs.github.com/spec/v1oid sha256:5047867a4eaa62886e1e5f680291482c313b63b9211c2f19513c77a542d85614size 44713231123version https://git-lfs.github.com/spec/v1oid sha256:fe9456bfebda3b6f515ad93fda77e16c574097d6acdd4daad1ef0367b4ff3c1dsize 44708748
config.json+1-1
pytorch_model.bin+2-2