contemmcm commited on
Commit
f231ad2
·
verified ·
1 Parent(s): 316c7a1

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ entity_vocab.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: studio-ousia/luke-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - rouge
10
+ model-index:
11
+ - name: 0f2142e9bd37e0ab1f2155dead0be1e5
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # 0f2142e9bd37e0ab1f2155dead0be1e5
19
+
20
+ This model is a fine-tuned version of [studio-ousia/luke-base](https://huggingface.co/studio-ousia/luke-base) on the nyu-mll/glue [cola] dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.5325
23
+ - Data Size: 1.0
24
+ - Epoch Runtime: 25.4994
25
+ - Accuracy: 0.8115
26
+ - F1 Macro: 0.7662
27
+ - Rouge1: 0.8115
28
+ - Rouge2: 0.0
29
+ - Rougel: 0.8115
30
+ - Rougelsum: 0.8115
31
+
32
+ ## Model description
33
+
34
+ More information needed
35
+
36
+ ## Intended uses & limitations
37
+
38
+ More information needed
39
+
40
+ ## Training and evaluation data
41
+
42
+ More information needed
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - learning_rate: 5e-05
50
+ - train_batch_size: 8
51
+ - eval_batch_size: 8
52
+ - seed: 42
53
+ - distributed_type: multi-GPU
54
+ - num_devices: 4
55
+ - total_train_batch_size: 32
56
+ - total_eval_batch_size: 32
57
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
58
+ - lr_scheduler_type: constant
59
+ - num_epochs: 50
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Data Size | Epoch Runtime | Accuracy | F1 Macro | Rouge1 | Rouge2 | Rougel | Rougelsum |
64
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:-------------:|:--------:|:--------:|:------:|:------:|:------:|:---------:|
65
+ | No log | 0 | 0 | 0.6979 | 0 | 1.4878 | 0.3125 | 0.2391 | 0.3115 | 0.0 | 0.3115 | 0.3125 |
66
+ | No log | 1 | 267 | 0.6298 | 0.0078 | 2.3376 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
67
+ | No log | 2 | 534 | 0.6256 | 0.0156 | 2.1027 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
68
+ | No log | 3 | 801 | 0.6220 | 0.0312 | 2.7075 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
69
+ | No log | 4 | 1068 | 0.6202 | 0.0625 | 3.5640 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
70
+ | 0.0369 | 5 | 1335 | 0.6259 | 0.125 | 5.1721 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
71
+ | 0.6135 | 6 | 1602 | 0.6199 | 0.25 | 8.1249 | 0.6885 | 0.4078 | 0.6895 | 0.0 | 0.6885 | 0.6885 |
72
+ | 0.5898 | 7 | 1869 | 0.5910 | 0.5 | 14.1801 | 0.7168 | 0.5070 | 0.7178 | 0.0 | 0.7168 | 0.7178 |
73
+ | 0.4506 | 8.0 | 2136 | 0.4844 | 1.0 | 26.1606 | 0.7939 | 0.7166 | 0.7939 | 0.0 | 0.7939 | 0.7944 |
74
+ | 0.3043 | 9.0 | 2403 | 0.5989 | 1.0 | 25.3615 | 0.7852 | 0.6916 | 0.7852 | 0.0 | 0.7861 | 0.7852 |
75
+ | 0.2686 | 10.0 | 2670 | 0.6326 | 1.0 | 25.7104 | 0.8057 | 0.7419 | 0.8057 | 0.0 | 0.8057 | 0.8057 |
76
+ | 0.1852 | 11.0 | 2937 | 0.7550 | 1.0 | 25.6559 | 0.7891 | 0.7035 | 0.7891 | 0.0 | 0.7900 | 0.7891 |
77
+ | 0.2224 | 12.0 | 3204 | 0.5325 | 1.0 | 25.4994 | 0.8115 | 0.7662 | 0.8115 | 0.0 | 0.8115 | 0.8115 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.57.0
83
+ - Pytorch 2.8.0+cu128
84
+ - Datasets 4.3.0
85
+ - Tokenizers 0.22.1
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<ent2>": 50266,
3
+ "<ent>": 50265
4
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LukeForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bert_model_name": "roberta-base",
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "entity_emb_size": 256,
11
+ "entity_vocab_size": 500000,
12
+ "eos_token_id": 2,
13
+ "gradient_checkpointing": false,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.1,
16
+ "hidden_size": 768,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "layer_norm_eps": 1e-05,
20
+ "max_position_embeddings": 514,
21
+ "model_type": "luke",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "output_past": true,
25
+ "pad_token_id": 1,
26
+ "position_embedding_type": "absolute",
27
+ "problem_type": "single_label_classification",
28
+ "transformers_version": "4.57.0",
29
+ "type_vocab_size": 1,
30
+ "use_cache": true,
31
+ "use_entity_aware_attention": true,
32
+ "vocab_size": 50267
33
+ }
entity_vocab.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72f741e7347ec41a9f27909eb042dbe0d830be3f9c8d201d46e790ceafc07e32
3
+ size 16161138
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:475c7b64f3483d733a7b08c2884cb110378496feb7c9acaad15827b5efc72118
3
+ size 1098047840
special_tokens_map.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<ent>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "<ent2>",
12
+ "lstrip": false,
13
+ "normalized": true,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "<ent>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ {
25
+ "content": "<ent2>",
26
+ "lstrip": false,
27
+ "normalized": true,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ ],
32
+ "bos_token": {
33
+ "content": "<s>",
34
+ "lstrip": false,
35
+ "normalized": true,
36
+ "rstrip": false,
37
+ "single_word": false
38
+ },
39
+ "cls_token": {
40
+ "content": "<s>",
41
+ "lstrip": false,
42
+ "normalized": true,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "eos_token": {
47
+ "content": "</s>",
48
+ "lstrip": false,
49
+ "normalized": true,
50
+ "rstrip": false,
51
+ "single_word": false
52
+ },
53
+ "mask_token": {
54
+ "content": "<mask>",
55
+ "lstrip": true,
56
+ "normalized": true,
57
+ "rstrip": false,
58
+ "single_word": false
59
+ },
60
+ "pad_token": {
61
+ "content": "<pad>",
62
+ "lstrip": false,
63
+ "normalized": true,
64
+ "rstrip": false,
65
+ "single_word": false
66
+ },
67
+ "sep_token": {
68
+ "content": "</s>",
69
+ "lstrip": false,
70
+ "normalized": true,
71
+ "rstrip": false,
72
+ "single_word": false
73
+ },
74
+ "unk_token": {
75
+ "content": "<unk>",
76
+ "lstrip": false,
77
+ "normalized": true,
78
+ "rstrip": false,
79
+ "single_word": false
80
+ }
81
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "50265": {
45
+ "content": "<ent>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "50266": {
53
+ "content": "<ent2>",
54
+ "lstrip": false,
55
+ "normalized": true,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ }
60
+ },
61
+ "additional_special_tokens": [
62
+ "<ent>",
63
+ "<ent2>",
64
+ "<ent>",
65
+ "<ent2>"
66
+ ],
67
+ "bos_token": "<s>",
68
+ "clean_up_tokenization_spaces": false,
69
+ "cls_token": "<s>",
70
+ "entity_mask2_token": "[MASK2]",
71
+ "entity_mask_token": "[MASK]",
72
+ "entity_pad_token": "[PAD]",
73
+ "entity_token_1": "<ent>",
74
+ "entity_token_2": "<ent2>",
75
+ "entity_unk_token": "[UNK]",
76
+ "eos_token": "</s>",
77
+ "errors": "replace",
78
+ "extra_special_tokens": {},
79
+ "mask_token": "<mask>",
80
+ "max_entity_length": 32,
81
+ "max_mention_length": 30,
82
+ "model_max_length": 512,
83
+ "pad_token": "<pad>",
84
+ "sep_token": "</s>",
85
+ "task": null,
86
+ "tokenizer_class": "LukeTokenizer",
87
+ "unk_token": "<unk>"
88
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e461532d6171ededd0f0a65a18ecac98ead39b67c499d694fe0ce53c9566e70
3
+ size 5969
vocab.json ADDED
The diff for this file is too large to render. See raw diff