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 (3)
15 unmodified lines1617181920192021222318 unmodified lines4243444545464748495051525152535455565715 unmodified lines
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- Loss: 0.3267- Accuracy: 0.8072
## Model description
18 unmodified lines- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 2- num_epochs: 4
### 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 || 0.4356 | 1.0 | 818 | 0.3310 | 0.7732 || 0.3005 | 2.0 | 1636 | 0.3200 | 0.7772 || 0.2621 | 3.0 | 2454 | 0.3125 | 0.8002 || 0.2015 | 4.0 | 3272 | 0.3267 | 0.8072 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:ea466ca2cac2052367b5534a8b9004e7d6893f3ce5ad313ef24229ac2846c732oid sha256:75d5cc2f9b9ebd1d858fe74e566f707c394d88b982fc00b607b933e7fa5650d5size 43796172412323version https://git-lfs.github.com/spec/v1oid sha256:d39f16f7836a6210bcb3b708e97987f22a99babebaae2b006ffb328c453576b9size 7604oid sha256:8522c3ef86e82c344bc5407a07898ccbb781ee32aac734f67c939bd48863b901size 7958README.md+7-5
model.safetensors+1-1
runs/Jul31_15-10-44_afcf07f55fff/events.out.tfevents.1722438645.afcf07f55fff.1163.0+2-2