apwic commited on
Commit
3043053
1 Parent(s): 9a64ac2

Model save

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: indolem/indobert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ - f1
11
+ model-index:
12
+ - name: sentiment-lora-r8
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # sentiment-lora-r8
20
+
21
+ This model is a fine-tuned version of [indolem/indobert-base-uncased](https://huggingface.co/indolem/indobert-base-uncased) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.3143
24
+ - Accuracy: 0.8622
25
+ - Precision: 0.8333
26
+ - Recall: 0.8350
27
+ - F1: 0.8341
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 5e-05
47
+ - train_batch_size: 30
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 20.0
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
58
+ | 0.5637 | 1.0 | 122 | 0.5043 | 0.7193 | 0.6506 | 0.6239 | 0.6312 |
59
+ | 0.5058 | 2.0 | 244 | 0.4905 | 0.7343 | 0.6956 | 0.7220 | 0.7022 |
60
+ | 0.4607 | 3.0 | 366 | 0.4207 | 0.7845 | 0.7425 | 0.7600 | 0.7495 |
61
+ | 0.3992 | 4.0 | 488 | 0.3723 | 0.8496 | 0.8221 | 0.8086 | 0.8148 |
62
+ | 0.3565 | 5.0 | 610 | 0.3855 | 0.8145 | 0.7773 | 0.8038 | 0.7872 |
63
+ | 0.332 | 6.0 | 732 | 0.3689 | 0.8271 | 0.7903 | 0.8076 | 0.7977 |
64
+ | 0.3089 | 7.0 | 854 | 0.3519 | 0.8446 | 0.8132 | 0.8101 | 0.8116 |
65
+ | 0.2979 | 8.0 | 976 | 0.3406 | 0.8571 | 0.8289 | 0.8239 | 0.8264 |
66
+ | 0.2887 | 9.0 | 1098 | 0.3582 | 0.8471 | 0.8132 | 0.8293 | 0.8204 |
67
+ | 0.268 | 10.0 | 1220 | 0.3394 | 0.8622 | 0.8361 | 0.8275 | 0.8316 |
68
+ | 0.267 | 11.0 | 1342 | 0.3339 | 0.8571 | 0.8281 | 0.8264 | 0.8272 |
69
+ | 0.2609 | 12.0 | 1464 | 0.3397 | 0.8622 | 0.8314 | 0.8425 | 0.8365 |
70
+ | 0.2564 | 13.0 | 1586 | 0.3227 | 0.8672 | 0.8436 | 0.8310 | 0.8369 |
71
+ | 0.2566 | 14.0 | 1708 | 0.3246 | 0.8672 | 0.8393 | 0.8410 | 0.8402 |
72
+ | 0.2503 | 15.0 | 1830 | 0.3297 | 0.8722 | 0.8431 | 0.8546 | 0.8484 |
73
+ | 0.2539 | 16.0 | 1952 | 0.3228 | 0.8697 | 0.8404 | 0.8503 | 0.8451 |
74
+ | 0.2478 | 17.0 | 2074 | 0.3142 | 0.8571 | 0.8289 | 0.8239 | 0.8264 |
75
+ | 0.2449 | 18.0 | 2196 | 0.3190 | 0.8722 | 0.8437 | 0.8521 | 0.8477 |
76
+ | 0.2401 | 19.0 | 2318 | 0.3139 | 0.8622 | 0.8333 | 0.8350 | 0.8341 |
77
+ | 0.2392 | 20.0 | 2440 | 0.3143 | 0.8622 | 0.8333 | 0.8350 | 0.8341 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.39.3
83
+ - Pytorch 2.3.0+cu121
84
+ - Datasets 2.19.1
85
+ - Tokenizers 0.15.2
default/head_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "activation_function": "gelu",
4
+ "bias": true,
5
+ "embedding_size": 768,
6
+ "head_type": "masked_lm",
7
+ "label2id": null,
8
+ "layer_norm": true,
9
+ "layers": 2,
10
+ "shift_labels": false,
11
+ "vocab_size": 31923
12
+ },
13
+ "hidden_size": 768,
14
+ "model_class": "BertAdapterModel",
15
+ "model_name": "indolem/indobert-base-uncased",
16
+ "model_type": "bert",
17
+ "name": "default",
18
+ "version": "0.2.0"
19
+ }
default/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a181f0177f3154142b57d9cab72a7e6f72dea1fe172d1a480ff543e0c17b0f3f
3
+ size 100566390
runs/May26_19-46-34_indolem-petl-vm/events.out.tfevents.1716752799.indolem-petl-vm.3071365.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33fee4c77a42e3322ce5c406db27f81a54f15b98c7c0fc560e0473f17028651f
3
- size 18315
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4cb2157d6c9067cb142112ed77cf29675e9d4b7e072b9dcbd41f15cc4ca7f81
3
+ size 19352
sentiment-lora/adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "alpha": 8,
4
+ "architecture": "lora",
5
+ "attn_matrices": [
6
+ "q",
7
+ "v"
8
+ ],
9
+ "composition_mode": "add",
10
+ "dropout": 0.0,
11
+ "init_weights": "lora",
12
+ "intermediate_lora": false,
13
+ "leave_out": [],
14
+ "output_lora": false,
15
+ "r": 8,
16
+ "selfattn_lora": true,
17
+ "use_gating": false
18
+ },
19
+ "config_id": "625403edad0bf919",
20
+ "hidden_size": 768,
21
+ "model_class": "BertAdapterModel",
22
+ "model_name": "indolem/indobert-base-uncased",
23
+ "model_type": "bert",
24
+ "name": "sentiment-lora",
25
+ "version": "0.2.0"
26
+ }
sentiment-lora/pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ad5292d7d5bd32df1180bf1b6aa6d6ec5ff9dea9f212a1a49a860df47dbd40d
3
+ size 1197478
sentiment/head_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "activation_function": "tanh",
4
+ "bias": true,
5
+ "dropout_prob": null,
6
+ "head_type": "classification",
7
+ "label2id": {
8
+ "0": 0,
9
+ "1": 1
10
+ },
11
+ "layers": 2,
12
+ "num_labels": 2,
13
+ "use_pooler": false
14
+ },
15
+ "hidden_size": 768,
16
+ "model_class": "BertAdapterModel",
17
+ "model_name": "indolem/indobert-base-uncased",
18
+ "model_type": "bert",
19
+ "name": "sentiment",
20
+ "version": "0.2.0"
21
+ }
sentiment/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fa13c5fa83b7df8c61158dca5f99d91c7e7d74fabac9beac9bf565cd0077563
3
+ size 2370664