legacy-datasets/banking77
Viewer • Updated • 13.1k • 10.7k • 51
How to use CXBVSWEDRF/banking77-electra-small-smoke with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="CXBVSWEDRF/banking77-electra-small-smoke") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("CXBVSWEDRF/banking77-electra-small-smoke")
model = AutoModelForSequenceClassification.from_pretrained("CXBVSWEDRF/banking77-electra-small-smoke")This model is a fine-tuned version of google/electra-small-discriminator on the legacy-datasets/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 | Accuracy | Macro F1 | Micro F1 |
|---|---|---|---|---|---|---|
| 34.7398 | 1.0 | 24 | 34.4717 | 0.0621 | 0.0337 | 0.0621 |
| 34.7398 | 2.0 | 48 | 34.0773 | 0.1641 | 0.1237 | 0.1641 |
| 34.5159 | 3.0 | 72 | 33.6744 | 0.2447 | 0.1963 | 0.2447 |
| 34.5159 | 4.0 | 96 | 33.3887 | 0.2775 | 0.2182 | 0.2775 |
| 33.8528 | 5.0 | 120 | 33.2788 | 0.2910 | 0.2275 | 0.2910 |
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = 'CXBVSWEDRF/banking77-electra-small-smoke'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.
Base model
google/electra-small-discriminator