Jahanzeb1/BERT-TextClassification-LoRA
Browse files
README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
base_model: bert-base-cased
|
| 9 |
+
model-index:
|
| 10 |
+
- name: BERT-TextClassification
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# BERT-TextClassification
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.3769
|
| 22 |
+
- Accuracy: 0.841
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 5e-05
|
| 42 |
+
- train_batch_size: 8
|
| 43 |
+
- eval_batch_size: 8
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 25
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 53 |
+
| No log | 1.0 | 125 | 0.6928 | 0.518 |
|
| 54 |
+
| No log | 2.0 | 250 | 0.6834 | 0.573 |
|
| 55 |
+
| No log | 3.0 | 375 | 0.6808 | 0.534 |
|
| 56 |
+
| 0.6958 | 4.0 | 500 | 0.6763 | 0.533 |
|
| 57 |
+
| 0.6958 | 5.0 | 625 | 0.6564 | 0.639 |
|
| 58 |
+
| 0.6958 | 6.0 | 750 | 0.6368 | 0.672 |
|
| 59 |
+
| 0.6958 | 7.0 | 875 | 0.6091 | 0.699 |
|
| 60 |
+
| 0.6446 | 8.0 | 1000 | 0.5769 | 0.713 |
|
| 61 |
+
| 0.6446 | 9.0 | 1125 | 0.5434 | 0.73 |
|
| 62 |
+
| 0.6446 | 10.0 | 1250 | 0.5142 | 0.748 |
|
| 63 |
+
| 0.6446 | 11.0 | 1375 | 0.4820 | 0.757 |
|
| 64 |
+
| 0.5224 | 12.0 | 1500 | 0.4638 | 0.785 |
|
| 65 |
+
| 0.5224 | 13.0 | 1625 | 0.4383 | 0.792 |
|
| 66 |
+
| 0.5224 | 14.0 | 1750 | 0.4222 | 0.804 |
|
| 67 |
+
| 0.5224 | 15.0 | 1875 | 0.4121 | 0.816 |
|
| 68 |
+
| 0.4233 | 16.0 | 2000 | 0.3995 | 0.826 |
|
| 69 |
+
| 0.4233 | 17.0 | 2125 | 0.3958 | 0.822 |
|
| 70 |
+
| 0.4233 | 18.0 | 2250 | 0.3886 | 0.833 |
|
| 71 |
+
| 0.4233 | 19.0 | 2375 | 0.3843 | 0.832 |
|
| 72 |
+
| 0.3784 | 20.0 | 2500 | 0.3820 | 0.835 |
|
| 73 |
+
| 0.3784 | 21.0 | 2625 | 0.3804 | 0.834 |
|
| 74 |
+
| 0.3784 | 22.0 | 2750 | 0.3784 | 0.836 |
|
| 75 |
+
| 0.3784 | 23.0 | 2875 | 0.3773 | 0.84 |
|
| 76 |
+
| 0.3621 | 24.0 | 3000 | 0.3771 | 0.841 |
|
| 77 |
+
| 0.3621 | 25.0 | 3125 | 0.3769 | 0.841 |
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
### Framework versions
|
| 81 |
+
|
| 82 |
+
- PEFT 0.10.0
|
| 83 |
+
- Transformers 4.38.2
|
| 84 |
+
- Pytorch 2.2.1+cu121
|
| 85 |
+
- Datasets 2.18.0
|
| 86 |
+
- Tokenizers 0.15.2
|
adapter_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "bert-base-cased",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"fan_in_fan_out": false,
|
| 7 |
+
"inference_mode": true,
|
| 8 |
+
"init_lora_weights": true,
|
| 9 |
+
"layer_replication": null,
|
| 10 |
+
"layers_pattern": null,
|
| 11 |
+
"layers_to_transform": null,
|
| 12 |
+
"loftq_config": {},
|
| 13 |
+
"lora_alpha": 1,
|
| 14 |
+
"lora_dropout": 0.1,
|
| 15 |
+
"megatron_config": null,
|
| 16 |
+
"megatron_core": "megatron.core",
|
| 17 |
+
"modules_to_save": null,
|
| 18 |
+
"peft_type": "LORA",
|
| 19 |
+
"r": 1,
|
| 20 |
+
"rank_pattern": {},
|
| 21 |
+
"revision": null,
|
| 22 |
+
"target_modules": [
|
| 23 |
+
"query",
|
| 24 |
+
"value"
|
| 25 |
+
],
|
| 26 |
+
"task_type": "SEQ_CLS",
|
| 27 |
+
"use_dora": false,
|
| 28 |
+
"use_rslora": false
|
| 29 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b6ee312853484b9b36094ab6f684a94b320127e771c3196d54c9ec6711eae26
|
| 3 |
+
size 160400
|
runs/Apr14_07-57-39_8a3fdd41c5b7/events.out.tfevents.1713081476.8a3fdd41c5b7.884.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:050641096b2ef1d6c080afb2abb8c3958b1cb1a10526aa8b8b57ce5dcced58b2
|
| 3 |
+
size 14262
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebbdd88431f5292952fdecc7426b3554f15896c5629357da48c4685ff8c966a0
|
| 3 |
+
size 4920
|