readysetgo
commited on
Commit
•
a0942bf
1
Parent(s):
f49867e
Upload 9 files
Browse files- LICENSE +43 -0
- README.md +21 -0
- config.json +46 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- prophetnet.tokenizer +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +19 -0
LICENSE
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) Microsoft Corporation.
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE
|
22 |
+
|
23 |
+
MIT License
|
24 |
+
|
25 |
+
Copyright (c) XIYUE INSTITUTE OF AI ALIGNMENT.
|
26 |
+
|
27 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
28 |
+
of this software and associated documentation files (the "Software"), to deal
|
29 |
+
in the Software without restriction, including without limitation the rights
|
30 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
31 |
+
copies of the Software, and to permit persons to whom the Software is
|
32 |
+
furnished to do so, subject to the following conditions:
|
33 |
+
|
34 |
+
The above copyright notice and this permission notice shall be included in all
|
35 |
+
copies or substantial portions of the Software.
|
36 |
+
|
37 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
38 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
39 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
40 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
41 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
42 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
43 |
+
SOFTWARE
|
README.md
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- summarization
|
4 |
+
- uncased
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
widget:
|
8 |
+
- text: Grapes are a type of fruit that grow in clusters of 15 to 300, and can be
|
9 |
+
crimson, black, dark blue, yellow, green, orange and pink. "White" grapes
|
10 |
+
are actually green in color, and are evolutionarily derived from the
|
11 |
+
purple grape.
|
12 |
+
- text: With an area of 12 million square kilometers (5 million square miles), the
|
13 |
+
Arctic Ocean is the smallest ocean - more than five times smaller than the
|
14 |
+
Indian and Atlantic oceans.
|
15 |
+
datasets:
|
16 |
+
- xiyuez/im-feeling-curious
|
17 |
+
- squad
|
18 |
+
license: mit
|
19 |
+
---
|
20 |
+
|
21 |
+
Our first publicly available model! More info coming soon...
|
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_dropout": 0.1,
|
3 |
+
"activation_function": "gelu",
|
4 |
+
"add_cross_attention": true,
|
5 |
+
"architectures": ["ProphetNetForConditionalGeneration"],
|
6 |
+
"attention_dropout": 0.1,
|
7 |
+
"bos_token_id": 102,
|
8 |
+
"decoder_ffn_dim": 4096,
|
9 |
+
"decoder_layerdrop": 0.0,
|
10 |
+
"decoder_start_token_id": 102,
|
11 |
+
"disable_ngram_loss": false,
|
12 |
+
"dropout": 0.1,
|
13 |
+
"encoder_ffn_dim": 4096,
|
14 |
+
"encoder_layerdrop": 0.0,
|
15 |
+
"eos_token_id": 102,
|
16 |
+
"eps": 0.0,
|
17 |
+
"hidden_size": 1024,
|
18 |
+
"id2label": {
|
19 |
+
"0": "LABEL_0",
|
20 |
+
"1": "LABEL_1",
|
21 |
+
"2": "LABEL_2"
|
22 |
+
},
|
23 |
+
"init_std": 0.02,
|
24 |
+
"is_encoder_decoder": true,
|
25 |
+
"label2id": {
|
26 |
+
"LABEL_0": 0,
|
27 |
+
"LABEL_1": 1,
|
28 |
+
"LABEL_2": 2
|
29 |
+
},
|
30 |
+
"max_position_embeddings": 512,
|
31 |
+
"model_type": "prophetnet",
|
32 |
+
"ngram": 2,
|
33 |
+
"num_buckets": 32,
|
34 |
+
"num_decoder_attention_heads": 16,
|
35 |
+
"num_decoder_layers": 12,
|
36 |
+
"num_encoder_attention_heads": 16,
|
37 |
+
"num_encoder_layers": 12,
|
38 |
+
"output_past": false,
|
39 |
+
"pad_token_id": 0,
|
40 |
+
"prefix": " ",
|
41 |
+
"relative_max_distance": 128,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.29.2",
|
44 |
+
"use_cache": false,
|
45 |
+
"vocab_size": 30522
|
46 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 102,
|
3 |
+
"decoder_start_token_id": 102,
|
4 |
+
"eos_token_id": 102,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.29.2"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d885f7ab4ecad9a04b5c414d987a28593cdbdaf9c9fa9c633596bd000a0bae8b
|
3 |
+
size 1565355112
|
prophetnet.tokenizer
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:6c1c6b7c5b8e060f12e95e879d95f7b88d000121dd30886c7e68883e47cb70d9
|
3 |
+
size 1565474989
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[SEP]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"cls_token": "[SEP]",
|
4 |
+
"do_basic_tokenize": true,
|
5 |
+
"do_lower_case": true,
|
6 |
+
"full_tokenizer_file": null,
|
7 |
+
"mask_token": "[MASK]",
|
8 |
+
"model_max_length": 512,
|
9 |
+
"never_split": null,
|
10 |
+
"pad_token": "[PAD]",
|
11 |
+
"sep_token": "[SEP]",
|
12 |
+
"strip_accents": null,
|
13 |
+
"tokenize_chinese_chars": true,
|
14 |
+
"tokenizer_class": "ProphetNetTokenizer",
|
15 |
+
"tokenizer_file": null,
|
16 |
+
"unk_token": "[UNK]",
|
17 |
+
"x_sep_token": "[X_SEP]",
|
18 |
+
"xprophetnet_tokenizer": false
|
19 |
+
}
|