dair-ai/emotion
Viewer • Updated • 437k • 20.6k • 452
How to use leonvanbokhorst/emotion-gpt2-lora with PEFT:
from peft import PeftModel
from transformers import AutoModelForSequenceClassification
base_model = AutoModelForSequenceClassification.from_pretrained("openai-community/gpt2")
model = PeftModel.from_pretrained(base_model, "leonvanbokhorst/emotion-gpt2-lora")This model is a fine-tuned version of openai-community/gpt2 on the emotion 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 | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 250 | 0.3191 | 0.8895 | 0.8902 | 0.8933 | 0.8895 |
| 0.6939 | 2.0 | 500 | 0.1939 | 0.935 | 0.9349 | 0.9352 | 0.935 |
| 0.6939 | 3.0 | 750 | 0.1689 | 0.931 | 0.9315 | 0.9329 | 0.931 |
| 0.1897 | 4.0 | 1000 | 0.1521 | 0.933 | 0.9334 | 0.9347 | 0.933 |
Base model
openai-community/gpt2