Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
text-embeddings-inference
Instructions to use leandroaraujodev/finbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leandroaraujodev/finbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="leandroaraujodev/finbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("leandroaraujodev/finbert") model = AutoModelForSequenceClassification.from_pretrained("leandroaraujodev/finbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960---base_model: ProsusAI/finberttags:- generated_from_trainermetrics:- accuracymodel-index:- name: finbert results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# finbert
This model is a fine-tuned version of [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.3181- Accuracy: 0.7891
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 32- eval_batch_size: 32- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.4355 | 1.0 | 818 | 0.3364 | 0.7677 || 0.3034 | 2.0 | 1636 | 0.3181 | 0.7891 |
### Framework versions
- Transformers 4.42.4- Pytorch 2.3.1+cu121- Datasets 2.20.0- Tokenizers 0.19.1123version https://git-lfs.github.com/spec/v1oid sha256:12e0a3ee97a335bf1c150a5d0344d3c739cee228ff15a6fb8d4e9c2a40b198b4size 6002123version https://git-lfs.github.com/spec/v1oid sha256:edfd0fd9977e604b23e133c9a9814e732af340c285c7250f0968fdcc9f533e57size 6679
README.mdAdded+60
runs/Jul31_12-34-59_5928b804e537/events.out.tfevents.1722429300.5928b804e537.1660.0+2-2