apwic commited on
Commit
1b87f8a
1 Parent(s): 8255277

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-r2a2d0.1-0
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-r2a2d0.1-0
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.3608
24
+ - Accuracy: 0.8471
25
+ - Precision: 0.8138
26
+ - Recall: 0.8243
27
+ - F1: 0.8187
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.5634 | 1.0 | 122 | 0.5108 | 0.7193 | 0.6572 | 0.6489 | 0.6524 |
59
+ | 0.5081 | 2.0 | 244 | 0.5049 | 0.7218 | 0.6829 | 0.7082 | 0.6888 |
60
+ | 0.4924 | 3.0 | 366 | 0.4667 | 0.7494 | 0.6977 | 0.6977 | 0.6977 |
61
+ | 0.4698 | 4.0 | 488 | 0.4392 | 0.7794 | 0.7349 | 0.7114 | 0.7207 |
62
+ | 0.4519 | 5.0 | 610 | 0.4548 | 0.7469 | 0.7169 | 0.7534 | 0.7226 |
63
+ | 0.4356 | 6.0 | 732 | 0.4111 | 0.8145 | 0.7770 | 0.7713 | 0.7740 |
64
+ | 0.421 | 7.0 | 854 | 0.4101 | 0.7945 | 0.7538 | 0.7721 | 0.7612 |
65
+ | 0.4039 | 8.0 | 976 | 0.3829 | 0.8296 | 0.7949 | 0.7919 | 0.7934 |
66
+ | 0.3887 | 9.0 | 1098 | 0.3800 | 0.8321 | 0.7972 | 0.7987 | 0.7979 |
67
+ | 0.3797 | 10.0 | 1220 | 0.3768 | 0.8371 | 0.8044 | 0.7997 | 0.8020 |
68
+ | 0.368 | 11.0 | 1342 | 0.3842 | 0.8221 | 0.7846 | 0.8016 | 0.7918 |
69
+ | 0.3598 | 12.0 | 1464 | 0.3778 | 0.8271 | 0.7902 | 0.8051 | 0.7968 |
70
+ | 0.3548 | 13.0 | 1586 | 0.3624 | 0.8471 | 0.8167 | 0.8118 | 0.8142 |
71
+ | 0.3469 | 14.0 | 1708 | 0.3637 | 0.8446 | 0.8120 | 0.8151 | 0.8135 |
72
+ | 0.3431 | 15.0 | 1830 | 0.3685 | 0.8396 | 0.8049 | 0.8165 | 0.8102 |
73
+ | 0.3275 | 16.0 | 1952 | 0.3664 | 0.8371 | 0.8017 | 0.8172 | 0.8086 |
74
+ | 0.3288 | 17.0 | 2074 | 0.3590 | 0.8396 | 0.8055 | 0.8115 | 0.8084 |
75
+ | 0.3335 | 18.0 | 2196 | 0.3607 | 0.8471 | 0.8138 | 0.8243 | 0.8187 |
76
+ | 0.3239 | 19.0 | 2318 | 0.3613 | 0.8446 | 0.8107 | 0.8226 | 0.8161 |
77
+ | 0.327 | 20.0 | 2440 | 0.3608 | 0.8471 | 0.8138 | 0.8243 | 0.8187 |
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/May17_16-29-34_indolem-petl-vm/events.out.tfevents.1715963378.indolem-petl-vm.1341668.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:449a86b0d32a940fc0a07eb2bf2eefd0b1e2778f701d28d865d2fa7ce4ab67a3
3
- size 18290
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:821806571da40802a7bfa0121da7b7dc23bb77cf85da7a21e9e3e53eba236858
3
+ size 19327
sentiment-lora/adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "alpha": 2,
4
+ "architecture": "lora",
5
+ "attn_matrices": [
6
+ "q",
7
+ "v"
8
+ ],
9
+ "composition_mode": "add",
10
+ "dropout": 0.1,
11
+ "init_weights": "lora",
12
+ "intermediate_lora": false,
13
+ "leave_out": [],
14
+ "output_lora": false,
15
+ "r": 2,
16
+ "selfattn_lora": true,
17
+ "use_gating": false
18
+ },
19
+ "config_id": "d5b5be297ec0a7b2",
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:dd9da5de9f0e12b5fe3cde828bf3bcfb125862d7c9cb3d4aa9dd5a524cb27c56
3
+ size 312742
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:12f2b352554423c230785c00a7435ad1f6c4d653a0f5972f337af8cf12bddc86
3
+ size 2370664