MaggieZhang
commited on
MaggieZhang/lora_bert_classification
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: test_trainer
|
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 |
+
# test_trainer
|
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.3803
|
22 |
+
- Accuracy: 0.842
|
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.6786 | 0.608 |
|
54 |
+
| No log | 2.0 | 250 | 0.6718 | 0.598 |
|
55 |
+
| No log | 3.0 | 375 | 0.6695 | 0.574 |
|
56 |
+
| 0.6888 | 4.0 | 500 | 0.6583 | 0.599 |
|
57 |
+
| 0.6888 | 5.0 | 625 | 0.6262 | 0.684 |
|
58 |
+
| 0.6888 | 6.0 | 750 | 0.5936 | 0.697 |
|
59 |
+
| 0.6888 | 7.0 | 875 | 0.5520 | 0.721 |
|
60 |
+
| 0.6057 | 8.0 | 1000 | 0.5149 | 0.746 |
|
61 |
+
| 0.6057 | 9.0 | 1125 | 0.4848 | 0.762 |
|
62 |
+
| 0.6057 | 10.0 | 1250 | 0.4558 | 0.779 |
|
63 |
+
| 0.6057 | 11.0 | 1375 | 0.4346 | 0.793 |
|
64 |
+
| 0.4583 | 12.0 | 1500 | 0.4215 | 0.801 |
|
65 |
+
| 0.4583 | 13.0 | 1625 | 0.4094 | 0.815 |
|
66 |
+
| 0.4583 | 14.0 | 1750 | 0.4027 | 0.816 |
|
67 |
+
| 0.4583 | 15.0 | 1875 | 0.3962 | 0.82 |
|
68 |
+
| 0.3847 | 16.0 | 2000 | 0.3926 | 0.823 |
|
69 |
+
| 0.3847 | 17.0 | 2125 | 0.3873 | 0.835 |
|
70 |
+
| 0.3847 | 18.0 | 2250 | 0.3857 | 0.833 |
|
71 |
+
| 0.3847 | 19.0 | 2375 | 0.3823 | 0.836 |
|
72 |
+
| 0.3565 | 20.0 | 2500 | 0.3819 | 0.837 |
|
73 |
+
| 0.3565 | 21.0 | 2625 | 0.3850 | 0.837 |
|
74 |
+
| 0.3565 | 22.0 | 2750 | 0.3806 | 0.839 |
|
75 |
+
| 0.3565 | 23.0 | 2875 | 0.3801 | 0.84 |
|
76 |
+
| 0.3348 | 24.0 | 3000 | 0.3808 | 0.842 |
|
77 |
+
| 0.3348 | 25.0 | 3125 | 0.3803 | 0.842 |
|
78 |
+
|
79 |
+
|
80 |
+
### Framework versions
|
81 |
+
|
82 |
+
- PEFT 0.8.2
|
83 |
+
- Transformers 4.38.0.dev0
|
84 |
+
- Pytorch 2.1.0+cu121
|
85 |
+
- Datasets 2.17.0
|
86 |
+
- Tokenizers 0.15.1
|
adapter_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 1,
|
13 |
+
"lora_dropout": 0.1,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 1,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"query",
|
23 |
+
"value"
|
24 |
+
],
|
25 |
+
"task_type": "SEQ_CLS",
|
26 |
+
"use_rslora": false
|
27 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:345c42785838412266fd6d961456be16e99d64ad0de49c03ebd703e8f330a8fa
|
3 |
+
size 160400
|
runs/Feb14_18-02-03_d721046cec7e/events.out.tfevents.1707933725.d721046cec7e.718.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c32824728771079beefb97f46444ead932cb4bf3a5ee0c2504b898e75637b1c
|
3 |
+
size 13884
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb3c1430ea3c91d1593caf7cfd943a913713ecb4d8a0555785ab121e51e6f916
|
3 |
+
size 4856
|