AriyanH22 commited on
Commit
a3632f4
·
verified ·
1 Parent(s): 8a5e434

End of training

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_30_augmented
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_30_augmented
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.6496
24
+ - Accuracy: 0.8751
25
+ - F1: 0.9011
26
+ - Precision: 0.8225
27
+ - Recall: 0.9963
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: 30
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
57
+ |:-------------:|:-----:|:------:|:---------------:|:--------:|:------:|:---------:|:------:|
58
+ | 0.8842 | 1.0 | 7499 | 0.6496 | 0.8751 | 0.9011 | 0.8225 | 0.9963 |
59
+ | 0.8986 | 2.0 | 14998 | 1.3833 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
60
+ | 1.4876 | 3.0 | 22497 | 1.5014 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
61
+ | 1.4259 | 4.0 | 29996 | 1.4886 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
62
+ | 1.5043 | 5.0 | 37495 | 1.6020 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
63
+ | 1.5677 | 6.0 | 44994 | 1.5306 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
64
+ | 1.4929 | 7.0 | 52493 | 1.4485 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
65
+ | 1.5105 | 8.0 | 59992 | 1.5439 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
66
+ | 1.3803 | 9.0 | 67491 | 1.4443 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
67
+ | 1.4626 | 10.0 | 74990 | 1.5080 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
68
+ | 1.4786 | 11.0 | 82489 | 1.5953 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
69
+ | 1.5471 | 12.0 | 89988 | 1.4525 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
70
+ | 1.5419 | 13.0 | 97487 | 1.5372 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
71
+ | 1.3997 | 14.0 | 104986 | 1.3026 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
72
+ | 1.4623 | 15.0 | 112485 | 1.4700 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
73
+ | 1.4559 | 16.0 | 119984 | 1.5842 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
74
+ | 1.462 | 17.0 | 127483 | 1.3627 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
75
+ | 1.4793 | 18.0 | 134982 | 1.4688 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
76
+ | 1.5473 | 19.0 | 142481 | 1.5292 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
77
+ | 1.4102 | 20.0 | 149980 | 1.4355 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
78
+ | 1.399 | 21.0 | 157479 | 1.4642 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
79
+ | 1.4259 | 22.0 | 164978 | 1.3940 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
80
+ | 1.4668 | 23.0 | 172477 | 1.4560 | 0.5710 | 0.7269 | 0.5710 | 1.0 |
81
+ | 1.2382 | 24.0 | 179976 | 1.2598 | 0.6094 | 0.6599 | 0.6562 | 0.6636 |
82
+ | 1.3404 | 25.0 | 187475 | 1.4411 | 0.5656 | 0.4919 | 0.7406 | 0.3682 |
83
+ | 1.4606 | 26.0 | 194974 | 1.2831 | 0.6009 | 0.5844 | 0.7205 | 0.4916 |
84
+ | 0.6338 | 27.0 | 202473 | 1.8519 | 0.5774 | 0.7258 | 0.5765 | 0.9794 |
85
+ | 1.4405 | 28.0 | 209972 | 1.5227 | 0.5816 | 0.7308 | 0.5776 | 0.9944 |
86
+ | 0.6593 | 29.0 | 217471 | 1.6163 | 0.5507 | 0.7087 | 0.5626 | 0.9570 |
87
+ | 0.6664 | 30.0 | 224970 | 1.7090 | 0.5699 | 0.7249 | 0.5710 | 0.9925 |
88
+
89
+
90
+ ### Framework versions
91
+
92
+ - Transformers 4.32.0.dev0
93
+ - Pytorch 2.0.1
94
+ - Datasets 2.14.4
95
+ - 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:982af2e4877c5fcc8f605d1f553b70a1ba08056e86b7e4989ad6e0546097bcc3
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:e856c7290e90f273490a6f90b136863915208df4f1552bb8b75d50d93c035690
3
+ size 4155
vocab.json ADDED
The diff for this file is too large to render. See raw diff