takala/financial_phrasebank
Updated • 5.77k • 279
How to use chena2339/finbert_fx_sentiment_runs with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="chena2339/finbert_fx_sentiment_runs") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("chena2339/finbert_fx_sentiment_runs")
model = AutoModelForSequenceClassification.from_pretrained("chena2339/finbert_fx_sentiment_runs", device_map="auto")This model is a fine-tuned version of distilbert-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 | Accuracy | F1 Macro |
|---|---|---|---|---|---|
| No log | 1.0 | 99 | 0.2899 | 0.8971 | 0.8501 |
| No log | 2.0 | 198 | 0.1299 | 0.9618 | 0.9427 |
| No log | 3.0 | 297 | 0.1182 | 0.95 | 0.9317 |
Base model
distilbert/distilbert-base-uncased