tapt_helpfulness_unipelt_pretraining_model
Browse files- README.md +103 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- runs/Apr16_20-02-09_4d4f64e167bc/events.out.tfevents.1713297751.4d4f64e167bc.3991.0 +2 -2
- tapt_unipelt/adapter_config.json +76 -0
- tapt_unipelt/head_config.json +19 -0
- tapt_unipelt/pytorch_adapter.bin +3 -0
- tapt_unipelt/pytorch_model_head.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: roberta-base
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: tapt_helpfulness_unipelt_pretraining_model
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
# tapt_helpfulness_unipelt_pretraining_model
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 1.5289
|
| 19 |
+
|
| 20 |
+
## Model description
|
| 21 |
+
|
| 22 |
+
More information needed
|
| 23 |
+
|
| 24 |
+
## Intended uses & limitations
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Training and evaluation data
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training procedure
|
| 33 |
+
|
| 34 |
+
### Training hyperparameters
|
| 35 |
+
|
| 36 |
+
The following hyperparameters were used during training:
|
| 37 |
+
- learning_rate: 0.0001
|
| 38 |
+
- train_batch_size: 21
|
| 39 |
+
- eval_batch_size: 21
|
| 40 |
+
- seed: 42
|
| 41 |
+
- gradient_accumulation_steps: 2
|
| 42 |
+
- total_train_batch_size: 42
|
| 43 |
+
- optimizer: Adam with betas=(0.9,0.98) and epsilon=1e-06
|
| 44 |
+
- lr_scheduler_type: linear
|
| 45 |
+
- num_epochs: 100
|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+
|
| 49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
| 51 |
+
| 4.9049 | 1.0 | 232 | 2.5347 |
|
| 52 |
+
| 2.4175 | 2.0 | 465 | 2.1097 |
|
| 53 |
+
| 2.1517 | 3.0 | 697 | 1.9547 |
|
| 54 |
+
| 2.03 | 4.0 | 930 | 1.8601 |
|
| 55 |
+
| 1.9577 | 5.0 | 1162 | 1.8151 |
|
| 56 |
+
| 1.8962 | 6.0 | 1395 | 1.7581 |
|
| 57 |
+
| 1.8651 | 7.0 | 1627 | 1.7348 |
|
| 58 |
+
| 1.8269 | 8.0 | 1860 | 1.7102 |
|
| 59 |
+
| 1.8062 | 9.0 | 2092 | 1.6833 |
|
| 60 |
+
| 1.7794 | 10.0 | 2325 | 1.6744 |
|
| 61 |
+
| 1.7685 | 11.0 | 2557 | 1.6544 |
|
| 62 |
+
| 1.7498 | 12.0 | 2790 | 1.6456 |
|
| 63 |
+
| 1.7364 | 13.0 | 3022 | 1.6298 |
|
| 64 |
+
| 1.7226 | 14.0 | 3255 | 1.6205 |
|
| 65 |
+
| 1.7154 | 15.0 | 3487 | 1.6238 |
|
| 66 |
+
| 1.6913 | 16.0 | 3720 | 1.6027 |
|
| 67 |
+
| 1.6994 | 17.0 | 3952 | 1.5928 |
|
| 68 |
+
| 1.6795 | 18.0 | 4185 | 1.5829 |
|
| 69 |
+
| 1.6809 | 19.0 | 4417 | 1.6010 |
|
| 70 |
+
| 1.6669 | 20.0 | 4650 | 1.5794 |
|
| 71 |
+
| 1.6678 | 21.0 | 4882 | 1.5784 |
|
| 72 |
+
| 1.6533 | 22.0 | 5115 | 1.5644 |
|
| 73 |
+
| 1.6547 | 23.0 | 5347 | 1.5838 |
|
| 74 |
+
| 1.6509 | 24.0 | 5580 | 1.5650 |
|
| 75 |
+
| 1.6479 | 25.0 | 5812 | 1.5533 |
|
| 76 |
+
| 1.6309 | 26.0 | 6045 | 1.5508 |
|
| 77 |
+
| 1.6382 | 27.0 | 6277 | 1.5530 |
|
| 78 |
+
| 1.6218 | 28.0 | 6510 | 1.5632 |
|
| 79 |
+
| 1.6242 | 29.0 | 6742 | 1.5617 |
|
| 80 |
+
| 1.6273 | 30.0 | 6975 | 1.5395 |
|
| 81 |
+
| 1.6205 | 31.0 | 7207 | 1.5427 |
|
| 82 |
+
| 1.612 | 32.0 | 7440 | 1.5402 |
|
| 83 |
+
| 1.6151 | 33.0 | 7672 | 1.5307 |
|
| 84 |
+
| 1.6088 | 34.0 | 7905 | 1.5265 |
|
| 85 |
+
| 1.6099 | 35.0 | 8137 | 1.5353 |
|
| 86 |
+
| 1.6006 | 36.0 | 8370 | 1.5202 |
|
| 87 |
+
| 1.6062 | 37.0 | 8602 | 1.5279 |
|
| 88 |
+
| 1.5947 | 38.0 | 8835 | 1.5318 |
|
| 89 |
+
| 1.6033 | 39.0 | 9067 | 1.5291 |
|
| 90 |
+
| 1.5891 | 40.0 | 9300 | 1.5197 |
|
| 91 |
+
| 1.5944 | 41.0 | 9532 | 1.5337 |
|
| 92 |
+
| 1.5841 | 42.0 | 9765 | 1.5208 |
|
| 93 |
+
| 1.592 | 43.0 | 9997 | 1.5223 |
|
| 94 |
+
| 1.5862 | 44.0 | 10230 | 1.5343 |
|
| 95 |
+
| 1.5895 | 45.0 | 10462 | 1.5289 |
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
### Framework versions
|
| 99 |
+
|
| 100 |
+
- Transformers 4.36.2
|
| 101 |
+
- Pytorch 2.2.1+cu121
|
| 102 |
+
- Datasets 2.18.0
|
| 103 |
+
- 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": 50265
|
| 12 |
+
},
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"model_class": "RobertaAdapterModel",
|
| 15 |
+
"model_name": "roberta-base",
|
| 16 |
+
"model_type": "roberta",
|
| 17 |
+
"name": "default",
|
| 18 |
+
"version": "0.1.2"
|
| 19 |
+
}
|
default/pytorch_model_head.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdff7928366b173ef2d74fcdf04581a7c98c13c3bd11623203f922ffcc7248c5
|
| 3 |
+
size 156986358
|
runs/Apr16_20-02-09_4d4f64e167bc/events.out.tfevents.1713297751.4d4f64e167bc.3991.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:d4354cbe0810179e77d85b180406f33f9955b664973cd8f20268f2e9b2ddd942
|
| 3 |
+
size 24677
|
tapt_unipelt/adapter_config.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"config": {
|
| 3 |
+
"architecture": "union",
|
| 4 |
+
"configs": [
|
| 5 |
+
{
|
| 6 |
+
"architecture": "prefix_tuning",
|
| 7 |
+
"bottleneck_size": 512,
|
| 8 |
+
"cross_prefix": true,
|
| 9 |
+
"dropout": 0.0,
|
| 10 |
+
"encoder_prefix": true,
|
| 11 |
+
"flat": false,
|
| 12 |
+
"leave_out": [],
|
| 13 |
+
"non_linearity": "tanh",
|
| 14 |
+
"prefix_length": 10,
|
| 15 |
+
"shared_gating": true,
|
| 16 |
+
"use_gating": true
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"adapter_residual_before_ln": false,
|
| 20 |
+
"cross_adapter": false,
|
| 21 |
+
"factorized_phm_W": true,
|
| 22 |
+
"factorized_phm_rule": false,
|
| 23 |
+
"hypercomplex_nonlinearity": "glorot-uniform",
|
| 24 |
+
"init_weights": "bert",
|
| 25 |
+
"inv_adapter": null,
|
| 26 |
+
"inv_adapter_reduction_factor": null,
|
| 27 |
+
"is_parallel": false,
|
| 28 |
+
"learn_phm": true,
|
| 29 |
+
"leave_out": [],
|
| 30 |
+
"ln_after": false,
|
| 31 |
+
"ln_before": false,
|
| 32 |
+
"mh_adapter": false,
|
| 33 |
+
"non_linearity": "relu",
|
| 34 |
+
"original_ln_after": true,
|
| 35 |
+
"original_ln_before": true,
|
| 36 |
+
"output_adapter": true,
|
| 37 |
+
"phm_bias": true,
|
| 38 |
+
"phm_c_init": "normal",
|
| 39 |
+
"phm_dim": 4,
|
| 40 |
+
"phm_init_range": 0.0001,
|
| 41 |
+
"phm_layer": false,
|
| 42 |
+
"phm_rank": 1,
|
| 43 |
+
"reduction_factor": 16,
|
| 44 |
+
"residual_before_ln": true,
|
| 45 |
+
"scaling": 1.0,
|
| 46 |
+
"shared_W_phm": false,
|
| 47 |
+
"shared_phm_rule": true,
|
| 48 |
+
"use_gating": true
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"alpha": 8,
|
| 52 |
+
"architecture": "lora",
|
| 53 |
+
"attn_matrices": [
|
| 54 |
+
"q",
|
| 55 |
+
"v"
|
| 56 |
+
],
|
| 57 |
+
"composition_mode": "add",
|
| 58 |
+
"dropout": 0.0,
|
| 59 |
+
"init_weights": "lora",
|
| 60 |
+
"intermediate_lora": false,
|
| 61 |
+
"leave_out": [],
|
| 62 |
+
"output_lora": false,
|
| 63 |
+
"r": 8,
|
| 64 |
+
"selfattn_lora": true,
|
| 65 |
+
"use_gating": true
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
+
},
|
| 69 |
+
"config_id": "7ee253f8cb7be91f",
|
| 70 |
+
"hidden_size": 768,
|
| 71 |
+
"model_class": "RobertaAdapterModel",
|
| 72 |
+
"model_name": "roberta-base",
|
| 73 |
+
"model_type": "roberta",
|
| 74 |
+
"name": "tapt_unipelt",
|
| 75 |
+
"version": "0.1.2"
|
| 76 |
+
}
|
tapt_unipelt/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": 50265
|
| 12 |
+
},
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"model_class": "RobertaAdapterModel",
|
| 15 |
+
"model_name": "roberta-base",
|
| 16 |
+
"model_type": "roberta",
|
| 17 |
+
"name": "tapt_unipelt",
|
| 18 |
+
"version": "0.1.2"
|
| 19 |
+
}
|
tapt_unipelt/pytorch_adapter.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:476db16df6032275944dd8fa0ea4f902a161d05420c1ea2147d0221f98dee599
|
| 3 |
+
size 44418864
|
tapt_unipelt/pytorch_model_head.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74f145696a67ce7ad871ded48701e331a45f2d75a59c3323a5f538db03b0e496
|
| 3 |
+
size 156986358
|