Instructions to use Jiahao123/financial_classifier_peft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Jiahao123/financial_classifier_peft with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-cased") model = PeftModel.from_pretrained(base_model, "Jiahao123/financial_classifier_peft") - Transformers
How to use Jiahao123/financial_classifier_peft with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jiahao123/financial_classifier_peft", dtype="auto") - Notebooks
- Google Colab
- Kaggle
financial_classifier_peft
This model is a fine-tuned version of google-bert/bert-base-cased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.9754
- F1: 0.8546
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: 0.001
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.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: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 0.4008 | 1.0 | 243 | 0.4238 | 0.8391 |
| 0.2741 | 2.0 | 486 | 0.4765 | 0.8573 |
| 0.3355 | 3.0 | 729 | 0.4778 | 0.8194 |
| 0.2526 | 4.0 | 972 | 0.4837 | 0.8338 |
| 0.1425 | 5.0 | 1215 | 0.5793 | 0.8340 |
| 0.0813 | 6.0 | 1458 | 0.6960 | 0.8240 |
| 0.0925 | 7.0 | 1701 | 0.7655 | 0.8529 |
| 0.0537 | 8.0 | 1944 | 0.8926 | 0.8428 |
| 0.0081 | 9.0 | 2187 | 0.9707 | 0.8526 |
| 0.0219 | 10.0 | 2430 | 0.9754 | 0.8546 |
Framework versions
- PEFT 0.16.0
- Transformers 4.57.1
- Pytorch 2.6.0+cu124
- Datasets 4.1.1
- Tokenizers 0.22.1
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for Jiahao123/financial_classifier_peft
Base model
google-bert/bert-base-cased