Model save
Browse files- README.md +85 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- runs/May25_21-23-23_indolem-petl-vm/events.out.tfevents.1716672209.indolem-petl-vm.2464294.0 +2 -2
- sentiment-pt/adapter_config.json +22 -0
- sentiment-pt/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-pt-pl10-3
|
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-pt-pl10-3
|
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.2824
|
24 |
+
- Accuracy: 0.8897
|
25 |
+
- Precision: 0.8710
|
26 |
+
- Recall: 0.8595
|
27 |
+
- F1: 0.8649
|
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.5526 | 1.0 | 122 | 0.5089 | 0.7143 | 0.6432 | 0.6178 | 0.6246 |
|
59 |
+
| 0.4578 | 2.0 | 244 | 0.4194 | 0.7995 | 0.7620 | 0.7906 | 0.7718 |
|
60 |
+
| 0.3632 | 3.0 | 366 | 0.3468 | 0.8371 | 0.8222 | 0.7672 | 0.7867 |
|
61 |
+
| 0.3063 | 4.0 | 488 | 0.2975 | 0.8822 | 0.8564 | 0.8617 | 0.8590 |
|
62 |
+
| 0.2771 | 5.0 | 610 | 0.3195 | 0.8722 | 0.8409 | 0.8696 | 0.8524 |
|
63 |
+
| 0.2463 | 6.0 | 732 | 0.2897 | 0.8772 | 0.8496 | 0.8581 | 0.8537 |
|
64 |
+
| 0.2317 | 7.0 | 854 | 0.2718 | 0.8847 | 0.8609 | 0.8609 | 0.8609 |
|
65 |
+
| 0.2182 | 8.0 | 976 | 0.2683 | 0.8847 | 0.8556 | 0.8784 | 0.8654 |
|
66 |
+
| 0.2065 | 9.0 | 1098 | 0.2773 | 0.8697 | 0.8411 | 0.8478 | 0.8443 |
|
67 |
+
| 0.2012 | 10.0 | 1220 | 0.2841 | 0.8822 | 0.8674 | 0.8417 | 0.8529 |
|
68 |
+
| 0.1944 | 11.0 | 1342 | 0.2733 | 0.8847 | 0.8599 | 0.8634 | 0.8616 |
|
69 |
+
| 0.176 | 12.0 | 1464 | 0.2709 | 0.8972 | 0.8849 | 0.8623 | 0.8724 |
|
70 |
+
| 0.168 | 13.0 | 1586 | 0.2651 | 0.8947 | 0.8718 | 0.8755 | 0.8737 |
|
71 |
+
| 0.1644 | 14.0 | 1708 | 0.2711 | 0.8922 | 0.8657 | 0.8813 | 0.8728 |
|
72 |
+
| 0.1541 | 15.0 | 1830 | 0.2790 | 0.8922 | 0.8734 | 0.8637 | 0.8683 |
|
73 |
+
| 0.1574 | 16.0 | 1952 | 0.2767 | 0.8897 | 0.8695 | 0.8620 | 0.8656 |
|
74 |
+
| 0.1508 | 17.0 | 2074 | 0.2826 | 0.8897 | 0.8659 | 0.8695 | 0.8676 |
|
75 |
+
| 0.1463 | 18.0 | 2196 | 0.2824 | 0.8872 | 0.8687 | 0.8552 | 0.8615 |
|
76 |
+
| 0.1467 | 19.0 | 2318 | 0.2876 | 0.8847 | 0.8679 | 0.8484 | 0.8573 |
|
77 |
+
| 0.1399 | 20.0 | 2440 | 0.2824 | 0.8897 | 0.8710 | 0.8595 | 0.8649 |
|
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/May25_21-23-23_indolem-petl-vm/events.out.tfevents.1716672209.indolem-petl-vm.2464294.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:ea534ed5e7a56f9baaf3a7d3e0dfd472dc179293da68b54243a41e0f85c2a0ce
|
3 |
+
size 19358
|
sentiment-pt/adapter_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"architecture": "prefix_tuning",
|
4 |
+
"bottleneck_size": 512,
|
5 |
+
"cross_prefix": true,
|
6 |
+
"dropout": 0.0,
|
7 |
+
"encoder_prefix": true,
|
8 |
+
"flat": false,
|
9 |
+
"leave_out": [],
|
10 |
+
"non_linearity": "tanh",
|
11 |
+
"prefix_length": 10,
|
12 |
+
"shared_gating": true,
|
13 |
+
"use_gating": false
|
14 |
+
},
|
15 |
+
"config_id": "e21f5a7ac06e3fee",
|
16 |
+
"hidden_size": 768,
|
17 |
+
"model_class": "BertAdapterModel",
|
18 |
+
"model_name": "indolem/indobert-base-uncased",
|
19 |
+
"model_type": "bert",
|
20 |
+
"name": "sentiment-pt",
|
21 |
+
"version": "0.2.0"
|
22 |
+
}
|
sentiment-pt/pytorch_adapter.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fdd377840b7e199ec897216361d971d9dca2492d23dcdec323998da8767f577
|
3 |
+
size 39442516
|
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:01b2910fc06ce976f7c5f7e11a34d3682ea11c965f95e7db041b8630320da56c
|
3 |
+
size 2370664
|