Instructions to use strectelite/MyBERT_LORA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use strectelite/MyBERT_LORA with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased") model = PeftModel.from_pretrained(base_model, "strectelite/MyBERT_LORA") - Transformers
How to use strectelite/MyBERT_LORA with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("strectelite/MyBERT_LORA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from strectelite/MyBERT_LORA: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/strectelite/MyBERT_LORA/resolve/main/README.md
- Command line
-
hf download hf://strectelite/MyBERT_LORA/README.md
-
curl -L -o README.md https://huggingface.co/strectelite/MyBERT_LORA/resolve/main/README.md
1.88 kB
metadata
library_name: peft
license: apache-2.0
base_model: bert-base-uncased
tags:
- base_model:adapter:bert-base-uncased
- lora
- transformers
metrics:
- accuracy
- f1
- precision
- recall
model-index:
- name: MyBERT_LORA
results: []
MyBERT_LORA
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.1442
- Accuracy: 0.5224
- F1: 0.5195
- Precision: 0.5240
- Recall: 0.5224
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 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: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 1.386 | 1.0 | 2573 | 1.3495 | 0.4107 | 0.3759 | 0.3531 | 0.4107 |
| 1.1539 | 2.0 | 5146 | 1.1813 | 0.5042 | 0.5021 | 0.5112 | 0.5042 |
| 1.1036 | 3.0 | 7719 | 1.1442 | 0.5224 | 0.5195 | 0.5240 | 0.5224 |
Framework versions
- PEFT 0.16.0
- Transformers 4.54.1
- Pytorch 2.6.0+cu124
- Datasets 4.0.0
- Tokenizers 0.21.4