Instructions to use asm3515/bert-IMDB-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use asm3515/bert-IMDB-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-uncased") model = PeftModel.from_pretrained(base_model, "asm3515/bert-IMDB-lora") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from asm3515/bert-IMDB-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/asm3515/bert-IMDB-lora/resolve/main/README.md
- Command line
-
hf download hf://asm3515/bert-IMDB-lora/README.md
-
curl -L -o README.md https://huggingface.co/asm3515/bert-IMDB-lora/resolve/main/README.md
1.56 kB
| library_name: peft | |
| license: apache-2.0 | |
| base_model: google-bert/bert-base-uncased | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: results_lora_qkv | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # results_lora_qkv | |
| This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.3225 | |
| ## 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: 64 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 5 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:-----:|:----:|:---------------:| | |
| | 0.4034 | 1.0 | 1563 | 0.3690 | | |
| | 0.3669 | 2.0 | 3126 | 0.3371 | | |
| | 0.3387 | 3.0 | 4689 | 0.3312 | | |
| | 0.3273 | 4.0 | 6252 | 0.3253 | | |
| | 0.3325 | 5.0 | 7815 | 0.3225 | | |
| ### Framework versions | |
| - PEFT 0.13.2 | |
| - Transformers 4.45.2 | |
| - Pytorch 2.5.0+cu124 | |
| - Datasets 3.0.1 | |
| - Tokenizers 0.20.1 |