Hate-speech-CNERG/hatexplain
Updated โข 2.81k โข 22
Run uboza10300/gpt2-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:
Use HF Jobs to fine-tune https://huggingface.co/uboza10300/gpt2-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.
Use HF Jobs to run batch inference with https://huggingface.co/uboza10300/gpt2-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.
How to use uboza10300/gpt2-hatexplain with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="uboza10300/gpt2-hatexplain") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("uboza10300/gpt2-hatexplain")
model = AutoModelForSequenceClassification.from_pretrained("uboza10300/gpt2-hatexplain", device_map="auto")This model is a fine-tuned version of gpt2 on the hatexplain dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.7396 | 1.0 | 962 | 0.7567 | 0.6790 | 0.6713 | 0.6790 | 0.6641 |
| 0.6697 | 2.0 | 1924 | 0.7486 | 0.6842 | 0.6769 | 0.6842 | 0.6783 |
| 0.7573 | 3.0 | 2886 | 0.7685 | 0.6748 | 0.6658 | 0.6748 | 0.6656 |
Base model
openai-community/gpt2