Model save
Browse files- README.md +85 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- runs/May19_03-46-18_indolem-petl-vm/events.out.tfevents.1716090382.indolem-petl-vm.2093084.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-r4a2d0.15-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-lora-r4a2d0.15-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.3312
|
| 24 |
+
- Accuracy: 0.8622
|
| 25 |
+
- Precision: 0.8414
|
| 26 |
+
- Recall: 0.8175
|
| 27 |
+
- F1: 0.8279
|
| 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.566 | 1.0 | 122 | 0.5206 | 0.7143 | 0.6484 | 0.6353 | 0.6403 |
|
| 59 |
+
| 0.5117 | 2.0 | 244 | 0.5062 | 0.7343 | 0.6880 | 0.7045 | 0.6939 |
|
| 60 |
+
| 0.4804 | 3.0 | 366 | 0.4667 | 0.7669 | 0.7182 | 0.7126 | 0.7152 |
|
| 61 |
+
| 0.4345 | 4.0 | 488 | 0.4350 | 0.7920 | 0.7494 | 0.7403 | 0.7445 |
|
| 62 |
+
| 0.4081 | 5.0 | 610 | 0.4337 | 0.7945 | 0.7565 | 0.7846 | 0.7661 |
|
| 63 |
+
| 0.3793 | 6.0 | 732 | 0.3923 | 0.8195 | 0.7857 | 0.7673 | 0.7753 |
|
| 64 |
+
| 0.3665 | 7.0 | 854 | 0.3765 | 0.8296 | 0.7949 | 0.7919 | 0.7934 |
|
| 65 |
+
| 0.3471 | 8.0 | 976 | 0.3681 | 0.8371 | 0.8089 | 0.7872 | 0.7966 |
|
| 66 |
+
| 0.3498 | 9.0 | 1098 | 0.3677 | 0.8321 | 0.8024 | 0.7812 | 0.7904 |
|
| 67 |
+
| 0.3282 | 10.0 | 1220 | 0.3634 | 0.8346 | 0.8074 | 0.7805 | 0.7917 |
|
| 68 |
+
| 0.3149 | 11.0 | 1342 | 0.3537 | 0.8446 | 0.8180 | 0.7976 | 0.8065 |
|
| 69 |
+
| 0.3092 | 12.0 | 1464 | 0.3529 | 0.8496 | 0.8202 | 0.8136 | 0.8167 |
|
| 70 |
+
| 0.3135 | 13.0 | 1586 | 0.3471 | 0.8521 | 0.8332 | 0.7979 | 0.8122 |
|
| 71 |
+
| 0.3103 | 14.0 | 1708 | 0.3427 | 0.8622 | 0.8430 | 0.8150 | 0.8269 |
|
| 72 |
+
| 0.2974 | 15.0 | 1830 | 0.3372 | 0.8622 | 0.8385 | 0.8225 | 0.8298 |
|
| 73 |
+
| 0.2905 | 16.0 | 1952 | 0.3345 | 0.8697 | 0.8488 | 0.8303 | 0.8386 |
|
| 74 |
+
| 0.2895 | 17.0 | 2074 | 0.3339 | 0.8622 | 0.8430 | 0.8150 | 0.8269 |
|
| 75 |
+
| 0.2922 | 18.0 | 2196 | 0.3319 | 0.8697 | 0.8488 | 0.8303 | 0.8386 |
|
| 76 |
+
| 0.2843 | 19.0 | 2318 | 0.3319 | 0.8622 | 0.8430 | 0.8150 | 0.8269 |
|
| 77 |
+
| 0.287 | 20.0 | 2440 | 0.3312 | 0.8622 | 0.8414 | 0.8175 | 0.8279 |
|
| 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/May19_03-46-18_indolem-petl-vm/events.out.tfevents.1716090382.indolem-petl-vm.2093084.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:2f9423bea945ff1d9f6cb74e4b89320cb2060e264c4cc5372dd4ba6f968d3e2f
|
| 3 |
+
size 19330
|
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.15,
|
| 11 |
+
"init_weights": "lora",
|
| 12 |
+
"intermediate_lora": false,
|
| 13 |
+
"leave_out": [],
|
| 14 |
+
"output_lora": false,
|
| 15 |
+
"r": 4,
|
| 16 |
+
"selfattn_lora": true,
|
| 17 |
+
"use_gating": false
|
| 18 |
+
},
|
| 19 |
+
"config_id": "d658784d9d7679ac",
|
| 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:7a8b48255b044d188b9f8294b869dfa2bd25d7af4e07449b2ea271f67c95ebc7
|
| 3 |
+
size 607654
|
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:6a0781d9790058b6e4e86a865799697dff4e545158402a3a13219a5b6393956a
|
| 3 |
+
size 2370664
|