Model save
Browse files- README.md +85 -0
- adapter-sentiment/adapter_config.json +42 -0
- adapter-sentiment/pytorch_adapter.bin +3 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- runs/Jun09_12-24-02_a358b85c7679/events.out.tfevents.1717935848.a358b85c7679.10542.0 +2 -2
- 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-seq_bn-1
|
| 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-seq_bn-1
|
| 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.3078
|
| 24 |
+
- Accuracy: 0.8797
|
| 25 |
+
- Precision: 0.8572
|
| 26 |
+
- Recall: 0.8499
|
| 27 |
+
- F1: 0.8534
|
| 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.5593 | 1.0 | 122 | 0.5129 | 0.7318 | 0.6697 | 0.6453 | 0.6532 |
|
| 59 |
+
| 0.481 | 2.0 | 244 | 0.4831 | 0.7343 | 0.6993 | 0.7295 | 0.7054 |
|
| 60 |
+
| 0.4234 | 3.0 | 366 | 0.3974 | 0.8221 | 0.7926 | 0.7616 | 0.7740 |
|
| 61 |
+
| 0.3701 | 4.0 | 488 | 0.3780 | 0.8396 | 0.8128 | 0.7890 | 0.7992 |
|
| 62 |
+
| 0.3499 | 5.0 | 610 | 0.3612 | 0.8471 | 0.8135 | 0.8268 | 0.8195 |
|
| 63 |
+
| 0.3165 | 6.0 | 732 | 0.3760 | 0.8271 | 0.7953 | 0.8377 | 0.8072 |
|
| 64 |
+
| 0.2968 | 7.0 | 854 | 0.3342 | 0.8697 | 0.8438 | 0.8403 | 0.8420 |
|
| 65 |
+
| 0.2812 | 8.0 | 976 | 0.3311 | 0.8672 | 0.8463 | 0.8260 | 0.8351 |
|
| 66 |
+
| 0.2682 | 9.0 | 1098 | 0.3269 | 0.8722 | 0.8463 | 0.8446 | 0.8454 |
|
| 67 |
+
| 0.2596 | 10.0 | 1220 | 0.3145 | 0.8797 | 0.8560 | 0.8524 | 0.8541 |
|
| 68 |
+
| 0.2464 | 11.0 | 1342 | 0.3138 | 0.8697 | 0.8503 | 0.8278 | 0.8377 |
|
| 69 |
+
| 0.2415 | 12.0 | 1464 | 0.3126 | 0.8847 | 0.8697 | 0.8459 | 0.8565 |
|
| 70 |
+
| 0.2354 | 13.0 | 1586 | 0.3136 | 0.8822 | 0.8694 | 0.8392 | 0.8521 |
|
| 71 |
+
| 0.2303 | 14.0 | 1708 | 0.3172 | 0.8747 | 0.8463 | 0.8563 | 0.8510 |
|
| 72 |
+
| 0.2172 | 15.0 | 1830 | 0.3120 | 0.8822 | 0.8656 | 0.8442 | 0.8537 |
|
| 73 |
+
| 0.2159 | 16.0 | 1952 | 0.3116 | 0.8622 | 0.8319 | 0.8400 | 0.8357 |
|
| 74 |
+
| 0.2192 | 17.0 | 2074 | 0.3123 | 0.8847 | 0.8717 | 0.8434 | 0.8557 |
|
| 75 |
+
| 0.2124 | 18.0 | 2196 | 0.3150 | 0.8647 | 0.8340 | 0.8467 | 0.8399 |
|
| 76 |
+
| 0.2077 | 19.0 | 2318 | 0.3084 | 0.8797 | 0.8585 | 0.8474 | 0.8526 |
|
| 77 |
+
| 0.205 | 20.0 | 2440 | 0.3078 | 0.8797 | 0.8572 | 0.8499 | 0.8534 |
|
| 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
|
adapter-sentiment/adapter_config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"config": {
|
| 3 |
+
"adapter_residual_before_ln": false,
|
| 4 |
+
"cross_adapter": false,
|
| 5 |
+
"dropout": 0.0,
|
| 6 |
+
"factorized_phm_W": true,
|
| 7 |
+
"factorized_phm_rule": false,
|
| 8 |
+
"hypercomplex_nonlinearity": "glorot-uniform",
|
| 9 |
+
"init_weights": "bert",
|
| 10 |
+
"inv_adapter": null,
|
| 11 |
+
"inv_adapter_reduction_factor": null,
|
| 12 |
+
"is_parallel": false,
|
| 13 |
+
"learn_phm": true,
|
| 14 |
+
"leave_out": [],
|
| 15 |
+
"ln_after": false,
|
| 16 |
+
"ln_before": false,
|
| 17 |
+
"mh_adapter": false,
|
| 18 |
+
"non_linearity": "relu",
|
| 19 |
+
"original_ln_after": true,
|
| 20 |
+
"original_ln_before": true,
|
| 21 |
+
"output_adapter": true,
|
| 22 |
+
"phm_bias": true,
|
| 23 |
+
"phm_c_init": "normal",
|
| 24 |
+
"phm_dim": 4,
|
| 25 |
+
"phm_init_range": 0.0001,
|
| 26 |
+
"phm_layer": false,
|
| 27 |
+
"phm_rank": 1,
|
| 28 |
+
"reduction_factor": 16,
|
| 29 |
+
"residual_before_ln": true,
|
| 30 |
+
"scaling": 1.0,
|
| 31 |
+
"shared_W_phm": false,
|
| 32 |
+
"shared_phm_rule": true,
|
| 33 |
+
"use_gating": false
|
| 34 |
+
},
|
| 35 |
+
"config_id": "9076f36a74755ac4",
|
| 36 |
+
"hidden_size": 768,
|
| 37 |
+
"model_class": "BertAdapterModel",
|
| 38 |
+
"model_name": "indolem/indobert-base-uncased",
|
| 39 |
+
"model_type": "bert",
|
| 40 |
+
"name": "adapter-sentiment",
|
| 41 |
+
"version": "0.2.0"
|
| 42 |
+
}
|
adapter-sentiment/pytorch_adapter.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7680ddf0d6c272124c8fdc99b92512f1603c50f18c671c08c5be19d5f662ce8f
|
| 3 |
+
size 3596006
|
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/Jun09_12-24-02_a358b85c7679/events.out.tfevents.1717935848.a358b85c7679.10542.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:e7182fb344178073b8624734b3779896e2d0db68268cb060cac71e41fbb6548f
|
| 3 |
+
size 19303
|
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:3019f54693f1b5a89e8ee308765bff14664f923f3dd56a130bb85caa89bb2bad
|
| 3 |
+
size 2370664
|