lore-seri97 commited on
Commit
98c5095
·
verified ·
1 Parent(s): b26bceb

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - automated-planning
5
+ - masked-language-modeling
6
+ - bert
7
+ ---
8
+
9
+ # BERT for Automated Planning (Depots)
10
+
11
+ This is a BERT model pretrained on Masked Language Modelling (MLM), specifically developed to tackle tasks related to Automated Planning within the Depots domain.
12
+
13
+ You can find its full description, methodology, and experimental results in our paper: **[A Preliminary Study on BERT applied to Automated Planning](https://ceur-ws.org/Vol-3345/paper7_3460.pdf)**.
14
+
15
+ ## Usage
16
+
17
+ You can easily load the model and the tokenizer using the Hugging Face `transformers` library:
18
+
19
+ ```python
20
+ from transformers import BertForMaskedLM, PreTrainedTokenizerFast
21
+
22
+ tokenizer = PreTrainedTokenizerFast.from_pretrained("lore-seri97/bert-depots")
23
+ model = BertForMaskedLM.from_pretrained("lore-seri97/bert-depots")
24
+
25
+ ```
26
+
27
+ ## Citation
28
+
29
+ If you use this model in your research, please cite our work using the following BibTeX entry:
30
+
31
+ ```bibtex
32
+ @inproceedings{DBLP:conf/aiia/SerinaCGPS22,
33
+ author = {Lorenzo Serina and
34
+ Mattia Chiari and
35
+ Alfonso Emilio Gerevini and
36
+ Luca Putelli and
37
+ Ivan Serina},
38
+ editor = {Riccardo De Benedictis and
39
+ Nicola Gatti and
40
+ Marco Maratea and
41
+ Andrea Micheli and
42
+ Aniello Murano and
43
+ Enrico Scala and
44
+ Luciano Serafini and
45
+ Ivan Serina and
46
+ Alessandro Umbrico and
47
+ Mauro Vallati},
48
+ title = {A Preliminary Study on {BERT} applied to Automated Planning},
49
+ booktitle = {Proceedings of the 10th Italian workshop on Planning and Scheduling
50
+ {(IPS} 2022), {RCRA} Incontri {E} Confronti (RiCeRcA 2022), and the
51
+ workshop on Strategies, Prediction, Interaction, and Reasoning in
52
+ Italy {(SPIRIT} 2022) co-located with 21st International Conference
53
+ of the Italian Association for Artificial Intelligence (AIxIA 2022),
54
+ November 28 - December 2, 2022, University of Udine, Udine, Italy},
55
+ series = {{CEUR} Workshop Proceedings},
56
+ volume = {3345},
57
+ publisher = {CEUR-WS.org},
58
+ year = {2022},
59
+ url = {[https://ceur-ws.org/Vol-3345/paper7](https://ceur-ws.org/Vol-3345/paper7)\_3460.pdf},
60
+ timestamp = {Fri, 10 Mar 2023 16:23:01 +0100},
61
+ biburl = {[https://dblp.org/rec/conf/aiia/SerinaCGPS22.bib](https://dblp.org/rec/conf/aiia/SerinaCGPS22.bib)},
62
+ bibsource = {dblp computer science bibliography, [https://dblp.org](https://dblp.org)}
63
+ }
64
+
65
+ ```
66
+
67
  ---
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 2048,
12
+ "layer_norm_eps": 1e-12,
13
+ "max_position_embeddings": 512,
14
+ "model_type": "bert",
15
+ "num_attention_heads": 8,
16
+ "num_hidden_layers": 8,
17
+ "pad_token_id": 3,
18
+ "position_embedding_type": "absolute",
19
+ "torch_dtype": "float32",
20
+ "transformers_version": "4.30.0.dev0",
21
+ "type_vocab_size": 2,
22
+ "use_cache": true,
23
+ "vocab_size": 51
24
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 3,
4
+ "transformers_version": "4.30.0.dev0"
5
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ff6b12c6efd9cde0ff9d74abd323dc97d6705e999f0db18b585e32b8203dab
3
+ size 180609465
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
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "[UNK]",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "[CLS]",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "[SEP]",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "[PAD]",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 4,
44
+ "content": "[MASK]",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 5,
53
+ "content": "[A]",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ },
60
+ {
61
+ "id": 6,
62
+ "content": "[SI]",
63
+ "single_word": false,
64
+ "lstrip": false,
65
+ "rstrip": false,
66
+ "normalized": false,
67
+ "special": true
68
+ },
69
+ {
70
+ "id": 7,
71
+ "content": "[SG]",
72
+ "single_word": false,
73
+ "lstrip": false,
74
+ "rstrip": false,
75
+ "normalized": false,
76
+ "special": true
77
+ }
78
+ ],
79
+ "normalizer": {
80
+ "type": "Lowercase"
81
+ },
82
+ "pre_tokenizer": {
83
+ "type": "WhitespaceSplit"
84
+ },
85
+ "post_processor": {
86
+ "type": "TemplateProcessing",
87
+ "single": [
88
+ {
89
+ "SpecialToken": {
90
+ "id": "[CLS]",
91
+ "type_id": 0
92
+ }
93
+ },
94
+ {
95
+ "Sequence": {
96
+ "id": "A",
97
+ "type_id": 0
98
+ }
99
+ },
100
+ {
101
+ "SpecialToken": {
102
+ "id": "[SEP]",
103
+ "type_id": 0
104
+ }
105
+ }
106
+ ],
107
+ "pair": [
108
+ {
109
+ "SpecialToken": {
110
+ "id": "[CLS]",
111
+ "type_id": 0
112
+ }
113
+ },
114
+ {
115
+ "Sequence": {
116
+ "id": "A",
117
+ "type_id": 0
118
+ }
119
+ },
120
+ {
121
+ "SpecialToken": {
122
+ "id": "[SEP]",
123
+ "type_id": 0
124
+ }
125
+ },
126
+ {
127
+ "Sequence": {
128
+ "id": "B",
129
+ "type_id": 1
130
+ }
131
+ },
132
+ {
133
+ "SpecialToken": {
134
+ "id": "[SEP]",
135
+ "type_id": 1
136
+ }
137
+ }
138
+ ],
139
+ "special_tokens": {
140
+ "[CLS]": {
141
+ "id": "[CLS]",
142
+ "ids": [
143
+ 1
144
+ ],
145
+ "tokens": [
146
+ "[CLS]"
147
+ ]
148
+ },
149
+ "[SEP]": {
150
+ "id": "[SEP]",
151
+ "ids": [
152
+ 2
153
+ ],
154
+ "tokens": [
155
+ "[SEP]"
156
+ ]
157
+ }
158
+ }
159
+ },
160
+ "decoder": null,
161
+ "model": {
162
+ "type": "WordLevel",
163
+ "vocab": {
164
+ "[UNK]": 0,
165
+ "[CLS]": 1,
166
+ "[SEP]": 2,
167
+ "[PAD]": 3,
168
+ "[MASK]": 4,
169
+ "[A]": 5,
170
+ "[SI]": 6,
171
+ "[SG]": 7,
172
+ "on": 8,
173
+ "at": 9,
174
+ "lift": 10,
175
+ "distributor2": 11,
176
+ "distributor1": 12,
177
+ "distributor0": 13,
178
+ "drop": 14,
179
+ "depot1": 15,
180
+ "depot2": 16,
181
+ "depot0": 17,
182
+ "crate9": 18,
183
+ "crate2": 19,
184
+ "crate1": 20,
185
+ "crate0": 21,
186
+ "crate6": 22,
187
+ "crate8": 23,
188
+ "crate4": 24,
189
+ "crate5": 25,
190
+ "load": 26,
191
+ "crate3": 27,
192
+ "crate7": 28,
193
+ "truck1": 29,
194
+ "truck2": 30,
195
+ "truck0": 31,
196
+ "unload": 32,
197
+ "hoist1": 33,
198
+ "hoist2": 34,
199
+ "hoist5": 35,
200
+ "hoist3": 36,
201
+ "hoist0": 37,
202
+ "hoist4": 38,
203
+ "drive": 39,
204
+ "clear": 40,
205
+ "available": 41,
206
+ "pallet5": 42,
207
+ "pallet2": 43,
208
+ "pallet3": 44,
209
+ "pallet1": 45,
210
+ "pallet4": 46,
211
+ "pallet0": 47,
212
+ "[a]": 48,
213
+ "[sg]": 49,
214
+ "[si]": 50
215
+ },
216
+ "unk_token": "[UNK]"
217
+ }
218
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "action_token": "[A]",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "goal_token": "[SG]",
6
+ "init_token": "[SI]",
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "padding": "max_length",
11
+ "sep_token": "[SEP]",
12
+ "tokenizer_class": "PreTrainedTokenizerFast",
13
+ "truncation": true,
14
+ "unk_token": "[UNK]"
15
+ }