takala/financial_phrasebank
Updated • 8.15k • 269
How to use jessica-ecosia/finetuning-llms-project-2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jessica-ecosia/finetuning-llms-project-2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jessica-ecosia/finetuning-llms-project-2")
model = AutoModelForSequenceClassification.from_pretrained("jessica-ecosia/finetuning-llms-project-2", device_map="auto")This model is a fine-tuned version of bert-base-uncased 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 | F1 | Accuracy |
|---|---|---|---|---|---|
| 0.6137 | 0.94 | 100 | 0.5180 | 0.7614 | 0.8061 |
| 0.297 | 1.89 | 200 | 0.4018 | 0.8201 | 0.8425 |
| 0.1648 | 2.83 | 300 | 0.4641 | 0.8327 | 0.8521 |
| 0.0736 | 3.77 | 400 | 0.5427 | 0.8331 | 0.8494 |
Base model
google-bert/bert-base-uncased