takala/financial_phrasebank
Updated • 8.7k • 257
How to use zbigi/gpt2-sentiment_analysis with PEFT:
from peft import PeftModel
from transformers import AutoModelForSequenceClassification
base_model = AutoModelForSequenceClassification.from_pretrained("openai-community/gpt2")
model = PeftModel.from_pretrained(base_model, "zbigi/gpt2-sentiment_analysis")This model is a fine-tuned version of openai-community/gpt2 on the financial_phrasebank 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 |
|---|---|---|---|---|
| No log | 0.9981 | 257 | 0.4654 | {'accuracy': 0.8239339752407153} |
| 0.6288 | 2.0 | 515 | 0.4266 | {'accuracy': 0.8266850068775791} |
| 0.6288 | 2.9981 | 772 | 0.4558 | {'accuracy': 0.8225584594222833} |
| 0.3201 | 4.0 | 1030 | 0.4550 | {'accuracy': 0.811554332874828} |
| 0.3201 | 4.9981 | 1287 | 0.4223 | {'accuracy': 0.8294360385144429} |
| 0.2464 | 6.0 | 1545 | 0.4637 | {'accuracy': 0.8335625859697386} |
| 0.2464 | 6.9981 | 1802 | 0.5243 | {'accuracy': 0.8184319119669876} |
| 0.1859 | 8.0 | 2060 | 0.5482 | {'accuracy': 0.8335625859697386} |
| 0.1859 | 8.9981 | 2317 | 0.6443 | {'accuracy': 0.8335625859697386} |
| 0.1381 | 9.9806 | 2570 | 0.6571 | {'accuracy': 0.8239339752407153} |
Base model
openai-community/gpt2