yunaseo commited on
Commit
feb15e9
1 Parent(s): c498fee

yunase/Bert_QLoRA_emotion_detection

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - generated_from_trainer
6
+ base_model: bert-base-uncased
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: emotions_bert_qlora
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # emotions_bert_qlora
18
+
19
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5184
22
+ - F1 Micro: 0.6855
23
+ - F1 Macro: 0.6029
24
+ - Accuracy: 0.2129
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 0.0001
44
+ - train_batch_size: 128
45
+ - eval_batch_size: 128
46
+ - seed: 42
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 10
50
+ - mixed_precision_training: Native AMP
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Accuracy |
55
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:--------:|:--------:|
56
+ | 0.8094 | 0.4082 | 20 | 0.7752 | 0.4570 | 0.1865 | 0.0990 |
57
+ | 0.7206 | 0.8163 | 40 | 0.6446 | 0.5938 | 0.3669 | 0.1230 |
58
+ | 0.6381 | 1.2245 | 60 | 0.6094 | 0.6163 | 0.4260 | 0.1159 |
59
+ | 0.5836 | 1.6327 | 80 | 0.5757 | 0.6345 | 0.4702 | 0.1553 |
60
+ | 0.5631 | 2.0408 | 100 | 0.5504 | 0.6674 | 0.5290 | 0.1922 |
61
+ | 0.5132 | 2.4490 | 120 | 0.5355 | 0.6686 | 0.5440 | 0.1922 |
62
+ | 0.504 | 2.8571 | 140 | 0.5260 | 0.6710 | 0.5843 | 0.1780 |
63
+ | 0.4853 | 3.2653 | 160 | 0.5209 | 0.6689 | 0.5854 | 0.1858 |
64
+ | 0.4494 | 3.6735 | 180 | 0.5165 | 0.6759 | 0.5942 | 0.1909 |
65
+ | 0.4663 | 4.0816 | 200 | 0.5146 | 0.6834 | 0.5900 | 0.2 |
66
+ | 0.4361 | 4.4898 | 220 | 0.5073 | 0.6876 | 0.6013 | 0.2214 |
67
+ | 0.4278 | 4.8980 | 240 | 0.5112 | 0.6830 | 0.6018 | 0.2045 |
68
+ | 0.4175 | 5.3061 | 260 | 0.5119 | 0.6775 | 0.5929 | 0.2013 |
69
+ | 0.4 | 5.7143 | 280 | 0.5118 | 0.6846 | 0.5961 | 0.2039 |
70
+ | 0.4088 | 6.1224 | 300 | 0.5100 | 0.6819 | 0.6015 | 0.2117 |
71
+ | 0.3811 | 6.5306 | 320 | 0.5211 | 0.6759 | 0.5952 | 0.1916 |
72
+ | 0.389 | 6.9388 | 340 | 0.5152 | 0.6770 | 0.6004 | 0.1974 |
73
+ | 0.3806 | 7.3469 | 360 | 0.5183 | 0.6853 | 0.6029 | 0.2123 |
74
+ | 0.3686 | 7.7551 | 380 | 0.5222 | 0.6739 | 0.5940 | 0.2019 |
75
+ | 0.3719 | 8.1633 | 400 | 0.5207 | 0.6777 | 0.5941 | 0.2091 |
76
+ | 0.3538 | 8.5714 | 420 | 0.5242 | 0.6765 | 0.5943 | 0.2006 |
77
+ | 0.3591 | 8.9796 | 440 | 0.5247 | 0.6784 | 0.5953 | 0.2091 |
78
+ | 0.3554 | 9.3878 | 460 | 0.5259 | 0.6815 | 0.5978 | 0.2142 |
79
+ | 0.346 | 9.7959 | 480 | 0.5256 | 0.6809 | 0.5976 | 0.2142 |
80
+
81
+
82
+ ### Framework versions
83
+
84
+ - PEFT 0.10.0
85
+ - Transformers 4.40.2
86
+ - Pytorch 2.2.1+cu121
87
+ - Datasets 2.19.1
88
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "bert-base-uncased",
5
+ "bias": "lora_only",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 256,
14
+ "lora_dropout": 0.01,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": [
18
+ "classifier"
19
+ ],
20
+ "peft_type": "LORA",
21
+ "r": 128,
22
+ "rank_pattern": {},
23
+ "revision": null,
24
+ "target_modules": [
25
+ "query",
26
+ "dense",
27
+ "value",
28
+ "key"
29
+ ],
30
+ "task_type": "SEQ_CLS",
31
+ "use_dora": false,
32
+ "use_rslora": false
33
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a46af028939a37e3fc40e203e7559295b3f9f0c989bd0ac23739e38a5d8e1315
3
+ size 85775908
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fe3e52c9c6043bc5d40716495aaaa6797f012d54564f1c36a248418aa49c77f
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff