AriyanH22 commited on
Commit
c80636b
·
verified ·
1 Parent(s): a185c54

End of training

Browse files
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: allenai/longformer-base-4096
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: framing_classification_longformer_50
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
+ # framing_classification_longformer_50
20
+
21
+ This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.3739
24
+ - Accuracy: 0.9332
25
+ - F1: 0.9608
26
+ - Precision: 0.9394
27
+ - Recall: 0.9832
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: 2e-05
47
+ - train_batch_size: 1
48
+ - eval_batch_size: 1
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 50
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
57
+ |:-------------:|:-----:|:------:|:---------------:|:--------:|:------:|:---------:|:------:|
58
+ | 0.8078 | 1.0 | 5152 | 0.8413 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
59
+ | 0.7998 | 2.0 | 10304 | 0.8279 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
60
+ | 0.9031 | 3.0 | 15456 | 0.9204 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
61
+ | 0.7805 | 4.0 | 20608 | 0.8259 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
62
+ | 0.8775 | 5.0 | 25760 | 0.8078 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
63
+ | 0.7248 | 6.0 | 30912 | 0.7587 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
64
+ | 0.8282 | 7.0 | 36064 | 0.7737 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
65
+ | 0.774 | 8.0 | 41216 | 0.8283 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
66
+ | 0.802 | 9.0 | 46368 | 0.7968 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
67
+ | 0.8458 | 10.0 | 51520 | 0.8591 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
68
+ | 0.7923 | 11.0 | 56672 | 0.8526 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
69
+ | 0.8435 | 12.0 | 61824 | 0.8076 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
70
+ | 0.8239 | 13.0 | 66976 | 0.8152 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
71
+ | 0.7751 | 14.0 | 72128 | 0.8280 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
72
+ | 0.7984 | 15.0 | 77280 | 0.8358 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
73
+ | 0.8359 | 16.0 | 82432 | 0.8471 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
74
+ | 0.9831 | 17.0 | 87584 | 0.8089 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
75
+ | 0.9051 | 18.0 | 92736 | 0.8094 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
76
+ | 0.9337 | 19.0 | 97888 | 0.8296 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
77
+ | 0.9565 | 20.0 | 103040 | 0.8021 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
78
+ | 0.8494 | 21.0 | 108192 | 0.8405 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
79
+ | 0.822 | 22.0 | 113344 | 0.8481 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
80
+ | 0.856 | 23.0 | 118496 | 0.8194 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
81
+ | 0.8892 | 24.0 | 123648 | 0.8394 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
82
+ | 0.7816 | 25.0 | 128800 | 0.7035 | 0.8649 | 0.9245 | 0.8639 | 0.9944 |
83
+ | 0.6349 | 26.0 | 133952 | 0.6452 | 0.8773 | 0.9309 | 0.8764 | 0.9925 |
84
+ | 0.6872 | 27.0 | 139104 | 0.6440 | 0.8820 | 0.9331 | 0.8833 | 0.9888 |
85
+ | 0.7452 | 28.0 | 144256 | 0.5578 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
86
+ | 0.6425 | 29.0 | 149408 | 0.4712 | 0.8323 | 0.9085 | 0.8323 | 1.0 |
87
+ | 0.6705 | 30.0 | 154560 | 0.6447 | 0.8866 | 0.9357 | 0.8865 | 0.9907 |
88
+ | 0.5748 | 31.0 | 159712 | 0.4063 | 0.9239 | 0.9553 | 0.9340 | 0.9776 |
89
+ | 0.6543 | 32.0 | 164864 | 0.4753 | 0.9099 | 0.9482 | 0.9092 | 0.9907 |
90
+ | 0.5376 | 33.0 | 170016 | 0.4782 | 0.9099 | 0.9482 | 0.9092 | 0.9907 |
91
+ | 0.6895 | 34.0 | 175168 | 0.4383 | 0.9177 | 0.9524 | 0.9185 | 0.9888 |
92
+ | 0.5867 | 35.0 | 180320 | 0.4970 | 0.9130 | 0.9497 | 0.9152 | 0.9869 |
93
+ | 0.7092 | 36.0 | 185472 | 0.4719 | 0.9177 | 0.9521 | 0.9229 | 0.9832 |
94
+ | 0.6561 | 37.0 | 190624 | 0.4763 | 0.9146 | 0.9508 | 0.9139 | 0.9907 |
95
+ | 0.5693 | 38.0 | 195776 | 0.3947 | 0.9301 | 0.9591 | 0.9345 | 0.9851 |
96
+ | 0.4321 | 39.0 | 200928 | 0.4632 | 0.9161 | 0.9503 | 0.9382 | 0.9627 |
97
+ | 0.5156 | 40.0 | 206080 | 0.4012 | 0.9301 | 0.9593 | 0.9299 | 0.9907 |
98
+ | 0.5279 | 41.0 | 211232 | 0.4558 | 0.9224 | 0.9550 | 0.9219 | 0.9907 |
99
+ | 0.5489 | 42.0 | 216384 | 0.4438 | 0.9193 | 0.9532 | 0.9201 | 0.9888 |
100
+ | 0.5586 | 43.0 | 221536 | 0.4469 | 0.9177 | 0.9526 | 0.9157 | 0.9925 |
101
+ | 0.575 | 44.0 | 226688 | 0.4310 | 0.9270 | 0.9569 | 0.9405 | 0.9739 |
102
+ | 0.4589 | 45.0 | 231840 | 0.4117 | 0.9301 | 0.9591 | 0.9345 | 0.9851 |
103
+ | 0.4012 | 46.0 | 236992 | 0.4501 | 0.9239 | 0.9553 | 0.9356 | 0.9757 |
104
+ | 0.5395 | 47.0 | 242144 | 0.3989 | 0.9317 | 0.96 | 0.9362 | 0.9851 |
105
+ | 0.5009 | 48.0 | 247296 | 0.3739 | 0.9332 | 0.9608 | 0.9394 | 0.9832 |
106
+ | 0.5356 | 49.0 | 252448 | 0.3805 | 0.9348 | 0.9617 | 0.9395 | 0.9851 |
107
+ | 0.5729 | 50.0 | 257600 | 0.3833 | 0.9348 | 0.9617 | 0.9395 | 0.9851 |
108
+
109
+
110
+ ### Framework versions
111
+
112
+ - Transformers 4.32.0.dev0
113
+ - Pytorch 2.0.1
114
+ - Datasets 2.14.4
115
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allenai/longformer-base-4096",
3
+ "architectures": [
4
+ "LongformerForSequenceClassification"
5
+ ],
6
+ "attention_mode": "longformer",
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attention_window": [
9
+ 512,
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512
21
+ ],
22
+ "bos_token_id": 0,
23
+ "eos_token_id": 2,
24
+ "gradient_checkpointing": false,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 768,
28
+ "id2label": {
29
+ "0": "non-effects",
30
+ "1": "effects"
31
+ },
32
+ "ignore_attention_mask": false,
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 3072,
35
+ "label2id": {
36
+ "effects": 1,
37
+ "non-effects": 0
38
+ },
39
+ "layer_norm_eps": 1e-05,
40
+ "max_position_embeddings": 4098,
41
+ "model_type": "longformer",
42
+ "num_attention_heads": 12,
43
+ "num_hidden_layers": 12,
44
+ "onnx_export": false,
45
+ "pad_token_id": 1,
46
+ "problem_type": "single_label_classification",
47
+ "sep_token_id": 2,
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.32.0.dev0",
50
+ "type_vocab_size": 1,
51
+ "vocab_size": 50265
52
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:834f726af1c609a8103070c559a9d81530df1a94a48c34b20318e7252265457a
3
+ size 594739281
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "max_length": 4096,
10
+ "model_max_length": 4096,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "tokenizer_class": "LongformerTokenizer",
14
+ "trim_offsets": true,
15
+ "unk_token": "<unk>"
16
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83c7f0a656d4c245ec357414e03b03047bac1ea370ba89faeaac108a108ac157
3
+ size 4091
vocab.json ADDED
The diff for this file is too large to render. See raw diff