ArneBinder commited on
Commit
0445c69
·
verified ·
1 Parent(s): 6130527

Upload 3 files

Browse files

based on best model from https://github.com/ArneBinder/pie-document-level/issues/334#issuecomment-2613232344

Files changed (3) hide show
  1. config.json +137 -0
  2. pytorch_model.bin +3 -0
  3. taskmodule_config.json +42 -0
config.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SimpleGenerativeModel",
3
+ "base_model_type": "pie_modules.models.base_models.BartAsPointerNetwork",
4
+ "base_model_config": {
5
+ "pretrained_model_name_or_path": "facebook/bart-base",
6
+ "use_encoder_mlp": true,
7
+ "use_constraints_encoder_mlp": true,
8
+ "decoder_position_id_mode": "pattern",
9
+ "decoder_position_id_pattern": [
10
+ 0,
11
+ 0,
12
+ 1,
13
+ 0,
14
+ 0,
15
+ 1,
16
+ 1
17
+ ],
18
+ "decoder_position_id_mapping": {
19
+ "default": 2,
20
+ "vocab": 3,
21
+ "bos": 0,
22
+ "eos": 1,
23
+ "pad": 1
24
+ },
25
+ "encoder_layer_norm_decay": 0.005,
26
+ "lr": 6e-05,
27
+ "num_beams": 4,
28
+ "max_length": 768,
29
+ "decoder_layer_norm_decay": 0.05,
30
+ "bos_token_id": 0,
31
+ "eos_token_id": 1,
32
+ "pad_token_id": 1,
33
+ "target_token_ids": [
34
+ 0,
35
+ 2,
36
+ 50267,
37
+ 50265,
38
+ 50268,
39
+ 50270,
40
+ 50271,
41
+ 50269,
42
+ 50272,
43
+ 50266
44
+ ],
45
+ "embedding_weight_mapping": {
46
+ "50267": [
47
+ 4146
48
+ ],
49
+ "50265": [
50
+ 3618,
51
+ 1215,
52
+ 31628
53
+ ],
54
+ "50268": [
55
+ 414
56
+ ],
57
+ "50270": [
58
+ 308,
59
+ 1215,
60
+ 31628
61
+ ],
62
+ "50271": [
63
+ 37820
64
+ ],
65
+ "50269": [
66
+ 1667,
67
+ 1215,
68
+ 1116,
69
+ 1215,
70
+ 41690
71
+ ],
72
+ "50272": [
73
+ 9031,
74
+ 38600,
75
+ 1215,
76
+ 41690
77
+ ],
78
+ "50266": [
79
+ 4548
80
+ ]
81
+ }
82
+ },
83
+ "override_generation_kwargs": null,
84
+ "warmup_proportion": 0.01,
85
+ "learning_rate": null,
86
+ "optimizer_type": null,
87
+ "metric_stages": [
88
+ "val",
89
+ "test",
90
+ "train"
91
+ ],
92
+ "metric_call_predict": [
93
+ "val",
94
+ "test"
95
+ ],
96
+ "taskmodule_config": {
97
+ "taskmodule_type": "PointerNetworkTaskModuleForEnd2EndRE",
98
+ "tokenizer_name_or_path": "facebook/bart-base",
99
+ "document_type": "pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
100
+ "tokenized_document_type": "pie_modules.documents.TokenDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
101
+ "relation_layer_name": "binary_relations",
102
+ "add_reversed_relations": false,
103
+ "symmetric_relations": null,
104
+ "none_label": "none",
105
+ "loop_dummy_relation_name": "loop",
106
+ "constrained_generation": true,
107
+ "label_tokens": null,
108
+ "label_representations": null,
109
+ "labels_per_layer": {
110
+ "labeled_spans": [
111
+ "background_claim",
112
+ "data",
113
+ "own_claim"
114
+ ],
115
+ "binary_relations": [
116
+ "contradicts",
117
+ "parts_of_same",
118
+ "semantically_same",
119
+ "supports"
120
+ ]
121
+ },
122
+ "exclude_labels_per_layer": null,
123
+ "create_constraints": true,
124
+ "tokenizer_init_kwargs": {
125
+ "add_prefix_space": true
126
+ },
127
+ "tokenizer_kwargs": {
128
+ "truncation": true,
129
+ "return_overflowing_tokens": true,
130
+ "stride": 128,
131
+ "strict_span_conversion": false
132
+ },
133
+ "partition_layer_name": "labeled_partitions",
134
+ "annotation_field_mapping": null,
135
+ "log_first_n_examples": null
136
+ }
137
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b554e608cf11c3579e1ba2a1b68c2f9cacaa0da9e22bc5562292f016042acff3
3
+ size 567258878
taskmodule_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskmodule_type": "PointerNetworkTaskModuleForEnd2EndRE",
3
+ "tokenizer_name_or_path": "facebook/bart-base",
4
+ "document_type": "pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
5
+ "tokenized_document_type": "pie_modules.documents.TokenDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions",
6
+ "relation_layer_name": "binary_relations",
7
+ "add_reversed_relations": false,
8
+ "symmetric_relations": null,
9
+ "none_label": "none",
10
+ "loop_dummy_relation_name": "loop",
11
+ "constrained_generation": true,
12
+ "label_tokens": null,
13
+ "label_representations": null,
14
+ "labels_per_layer": {
15
+ "labeled_spans": [
16
+ "background_claim",
17
+ "data",
18
+ "own_claim"
19
+ ],
20
+ "binary_relations": [
21
+ "contradicts",
22
+ "parts_of_same",
23
+ "semantically_same",
24
+ "supports"
25
+ ]
26
+ },
27
+ "exclude_labels_per_layer": null,
28
+ "create_constraints": true,
29
+ "tokenizer_init_kwargs": {
30
+ "add_prefix_space": true
31
+ },
32
+ "tokenizer_kwargs": {
33
+ "truncation": true,
34
+ "return_overflowing_tokens": true,
35
+ "stride": 128,
36
+ "strict_span_conversion": false
37
+ },
38
+ "partition_layer_name": "labeled_partitions",
39
+ "annotation_field_mapping": null,
40
+ "log_first_n_examples": null,
41
+ "is_from_pretrained": true
42
+ }