Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run Sharpaxis/FIN_BERT_sentiment on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Sharpaxis/FIN_BERT_sentiment. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Sharpaxis/FIN_BERT_sentiment on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Sharpaxis/FIN_BERT_sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sharpaxis/FIN_BERT_sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sharpaxis/FIN_BERT_sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sharpaxis/FIN_BERT_sentiment") model = AutoModelForSequenceClassification.from_pretrained("Sharpaxis/FIN_BERT_sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
DONEE
Browse filesFiles changed (3)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---library_name: transformerslicense: apache-2.0base_model: bert-base-uncasedtags:- generated_from_trainerdatasets:- financial_phrasebankmetrics:- f1model-index:- name: FIN_BERT_sentiment results: - task: name: Text Classification type: text-classification dataset: name: financial_phrasebank type: financial_phrasebank config: sentences_66agree split: train args: sentences_66agree metrics: - name: F1 type: f1 value: 0.8890693407692588---
<!-- 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. -->
# FIN_BERT_sentiment
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the financial_phrasebank dataset.It achieves the following results on the evaluation set:- Loss: 0.4905- F1: 0.8891- Acc: 0.8886
## 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: 16- eval_batch_size: 16- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Acc ||:-------------:|:-----:|:----:|:---------------:|:------:|:------:|| 0.5295 | 1.0 | 211 | 0.3757 | 0.8731 | 0.8720 || 0.2174 | 2.0 | 422 | 0.3117 | 0.8911 | 0.8910 || 0.1129 | 3.0 | 633 | 0.4066 | 0.8886 | 0.8874 || 0.0459 | 4.0 | 844 | 0.4923 | 0.8896 | 0.8886 || 0.0275 | 5.0 | 1055 | 0.4905 | 0.8891 | 0.8886 |
### Framework versions
- Transformers 4.46.2- Pytorch 2.5.1- Datasets 3.1.0- Tokenizers 0.20.3123version https://git-lfs.github.com/spec/v1oid sha256:74111cf6d0c67a4d9dc856f2505a3ca4cbd34a0124a698581c81dae3889458a6size 437961724123version https://git-lfs.github.com/spec/v1oid sha256:c7c8e85130504bc9cea3a833425bf91b6a40fdaea5197376d784eeeef65f11cfsize 437961724
123version https://git-lfs.github.com/spec/v1oid sha256:6fb123208665aab317ae679a196f471f0b41d78520250c5c4f4bf624219c799esize 7506123version https://git-lfs.github.com/spec/v1oid sha256:69b88e3e9b9a8d70b5ee5f479eef4a11098d18c55bd946e6a5ffe1871e19ebecsize 8435
README.mdAdded+81
model.safetensors+1-1
runs/Dec04_22-24-57_Aadityas-MacBook-Pro.local/events.out.tfevents.1733331298.Aadityas-MacBook-Pro.local.59050.0+2-2