Instructions to use alenatz/bert-biocause-trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alenatz/bert-biocause-trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="alenatz/bert-biocause-trainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("alenatz/bert-biocause-trainer") model = AutoModelForSequenceClassification.from_pretrained("alenatz/bert-biocause-trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bert-biocause-trainer
This model is a fine-tuned version of bert-base-cased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1191
- Accuracy: 0.9642
- F1: 0.9310
- Recall: 0.9464
- Precision: 0.9160
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: 4e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- 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 | F1 | Recall | Precision |
|---|---|---|---|---|---|---|---|
| 0.5765 | 0.32 | 50 | 0.4344 | 0.8394 | 0.6952 | 0.7177 | 0.6741 |
| 0.4696 | 0.64 | 100 | 0.2863 | 0.8973 | 0.8124 | 0.8707 | 0.7614 |
| 0.3866 | 0.96 | 150 | 0.2583 | 0.8692 | 0.7883 | 0.9543 | 0.6715 |
| 0.2841 | 1.29 | 200 | 0.3154 | 0.8454 | 0.7638 | 0.9795 | 0.6260 |
| 0.2437 | 1.61 | 250 | 0.1692 | 0.9287 | 0.8749 | 0.9763 | 0.7926 |
| 0.2116 | 1.93 | 300 | 0.1239 | 0.9654 | 0.9327 | 0.9401 | 0.9255 |
Framework versions
- Transformers 4.37.2
- Pytorch 2.3.1
- Datasets 2.19.1
- Tokenizers 0.15.1
- Downloads last month
- 4
Model tree for alenatz/bert-biocause-trainer
Base model
google-bert/bert-base-cased