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+6-6
- pytorch_model.bin+2-2
1223451 unmodified line7891010111213141516161718191 unmodified line21222324252425262728293030313233{ "_name_or_path": "google/bert_uncased_L-2_H-128_A-2", "_name_or_path": "google/bert_uncased_L-4_H-256_A-4", "architectures": [ "BertForSequenceClassification" ],1 unmodified line "classifier_dropout": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 128, "hidden_size": 256, "id2label": { "0": "non-toxic", "1": "toxic" }, "initializer_range": 0.02, "intermediate_size": 512, "intermediate_size": 1024, "label2id": { "non-toxic": 0, "toxic": 11 unmodified line "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 2, "num_hidden_layers": 2, "num_attention_heads": 4, "num_hidden_layers": 4, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.30.2", "transformers_version": "4.34.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 3052212323version https://git-lfs.github.com/spec/v1oid sha256:b8e9de9304e17962d430a28747f0958f6acdb5f86f5c4914408dabf70dd57b7fsize 17562607oid sha256:f9cf8304a96ad6048837b8ae3bba34e0ac331e4379b9d6b91c6a81067e2fcfe4size 44708748config.json+6-6
pytorch_model.bin+2-2