legacy-datasets/banking77
Viewer • Updated • 13.1k • 7.47k • 51
How to use psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification")
model = AutoModelForSequenceClassification.from_pretrained("psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification")
model = AutoModelForSequenceClassification.from_pretrained("psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification", device_map="auto")This model is a fine-tuned version of bert-base-uncased on the banking77 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 |
|---|---|---|---|---|
| 1.1254 | 1.0 | 626 | 0.8005 | 0.8480 |
| 0.3798 | 2.0 | 1252 | 0.3632 | 0.9218 |
| 0.1754 | 3.0 | 1878 | 0.2937 | 0.9327 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="psj0919/bert-base-banking77-pt2_model_BertForSequenceClassification")