Model save
Browse files- README.md +85 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- runs/Jun03_12-27-02_a358b85c7679/events.out.tfevents.1717417632.a358b85c7679.75916.0 +2 -2
- sentiment-lora/adapter_config.json +26 -0
- sentiment-lora/pytorch_adapter.bin +3 -0
- sentiment/head_config.json +21 -0
- sentiment/pytorch_model_head.bin +3 -0
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-4
|
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-4
|
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.2847
|
24 |
+
- Accuracy: 0.8672
|
25 |
+
- Precision: 0.8423
|
26 |
+
- Recall: 0.8335
|
27 |
+
- F1: 0.8377
|
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.5577 | 1.0 | 122 | 0.5372 | 0.7193 | 0.6692 | 0.6814 | 0.6738 |
|
59 |
+
| 0.5012 | 2.0 | 244 | 0.4771 | 0.7669 | 0.7370 | 0.6501 | 0.6651 |
|
60 |
+
| 0.4626 | 3.0 | 366 | 0.4250 | 0.8070 | 0.7756 | 0.7360 | 0.7504 |
|
61 |
+
| 0.4055 | 4.0 | 488 | 0.3896 | 0.8346 | 0.7996 | 0.8055 | 0.8024 |
|
62 |
+
| 0.3709 | 5.0 | 610 | 0.3578 | 0.8296 | 0.7961 | 0.7869 | 0.7912 |
|
63 |
+
| 0.3385 | 6.0 | 732 | 0.3523 | 0.8371 | 0.8017 | 0.8172 | 0.8086 |
|
64 |
+
| 0.3276 | 7.0 | 854 | 0.3307 | 0.8521 | 0.8271 | 0.8079 | 0.8164 |
|
65 |
+
| 0.3133 | 8.0 | 976 | 0.3256 | 0.8571 | 0.8381 | 0.8064 | 0.8196 |
|
66 |
+
| 0.3039 | 9.0 | 1098 | 0.3282 | 0.8647 | 0.8491 | 0.8142 | 0.8286 |
|
67 |
+
| 0.2831 | 10.0 | 1220 | 0.3142 | 0.8596 | 0.8316 | 0.8282 | 0.8298 |
|
68 |
+
| 0.2798 | 11.0 | 1342 | 0.3034 | 0.8747 | 0.8523 | 0.8413 | 0.8465 |
|
69 |
+
| 0.269 | 12.0 | 1464 | 0.3002 | 0.8672 | 0.8479 | 0.8235 | 0.8342 |
|
70 |
+
| 0.2699 | 13.0 | 1586 | 0.2973 | 0.8697 | 0.8428 | 0.8428 | 0.8428 |
|
71 |
+
| 0.2657 | 14.0 | 1708 | 0.2985 | 0.8722 | 0.8445 | 0.8496 | 0.8470 |
|
72 |
+
| 0.2537 | 15.0 | 1830 | 0.2886 | 0.8672 | 0.8423 | 0.8335 | 0.8377 |
|
73 |
+
| 0.2529 | 16.0 | 1952 | 0.2878 | 0.8647 | 0.8387 | 0.8317 | 0.8351 |
|
74 |
+
| 0.2565 | 17.0 | 2074 | 0.2877 | 0.8722 | 0.8463 | 0.8446 | 0.8454 |
|
75 |
+
| 0.2514 | 18.0 | 2196 | 0.2857 | 0.8672 | 0.8412 | 0.8360 | 0.8385 |
|
76 |
+
| 0.2517 | 19.0 | 2318 | 0.2844 | 0.8697 | 0.8438 | 0.8403 | 0.8420 |
|
77 |
+
| 0.2512 | 20.0 | 2440 | 0.2847 | 0.8672 | 0.8423 | 0.8335 | 0.8377 |
|
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/Jun03_12-27-02_a358b85c7679/events.out.tfevents.1717417632.a358b85c7679.75916.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:632e6451e2bba061bdf8471452400f40b3165d5f3e4e5ba88293046b47edb5c4
|
3 |
+
size 19401
|
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:775cd5ee210ef70d642245ec187231b16c1a51c715c10479d51d74726a6c4ad1
|
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:ae25f4a6d0a3d677b82e7a00df397281ed886ee2343c44df2f99096ec3acaa18
|
3 |
+
size 2370664
|