Upload XLMProphetNetForConditionalGeneration
Browse files- config.json +59 -0
- generation_config.json +8 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/xprophetnet-large-wiki100-cased",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"add_cross_attention": true,
|
6 |
+
"architectures": [
|
7 |
+
"XLMProphetNetForConditionalGeneration"
|
8 |
+
],
|
9 |
+
"attention_dropout": 0.1,
|
10 |
+
"bos_token_id": 2,
|
11 |
+
"decoder_ffn_dim": 4096,
|
12 |
+
"decoder_layerdrop": 0.0,
|
13 |
+
"decoder_max_position_embeddings": 514,
|
14 |
+
"decoder_start_token_id": 2,
|
15 |
+
"disable_ngram_loss": false,
|
16 |
+
"dropout": 0.1,
|
17 |
+
"encoder_ffn_dim": 4096,
|
18 |
+
"encoder_layerdrop": 0.0,
|
19 |
+
"encoder_max_position_embeddings": 513,
|
20 |
+
"eos_token_id": 2,
|
21 |
+
"eps": 0.0,
|
22 |
+
"hidden_size": 1024,
|
23 |
+
"id2label": {
|
24 |
+
"0": "LABEL_0",
|
25 |
+
"1": "LABEL_1",
|
26 |
+
"2": "LABEL_2"
|
27 |
+
},
|
28 |
+
"init_std": 0.02,
|
29 |
+
"is_encoder_decoder": true,
|
30 |
+
"label2id": {
|
31 |
+
"LABEL_0": 0,
|
32 |
+
"LABEL_1": 1,
|
33 |
+
"LABEL_2": 2
|
34 |
+
},
|
35 |
+
"max_position_embeddings": 512,
|
36 |
+
"model_type": "xlm-prophetnet",
|
37 |
+
"ngram": 2,
|
38 |
+
"num_buckets": 32,
|
39 |
+
"num_decoder_attention_heads": 16,
|
40 |
+
"num_decoder_layers": 3,
|
41 |
+
"num_encoder_attention_heads": 16,
|
42 |
+
"num_encoder_layers": 6,
|
43 |
+
"output_past": false,
|
44 |
+
"pad_token_id": 0,
|
45 |
+
"prefix": " ",
|
46 |
+
"relative_max_distance": 128,
|
47 |
+
"task_specific_params": {
|
48 |
+
"summarization": {
|
49 |
+
"early_stopping": true,
|
50 |
+
"length_penalty": 2.0,
|
51 |
+
"no_repeat_ngram_size": 3,
|
52 |
+
"num_beams": 4
|
53 |
+
}
|
54 |
+
},
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.30.0",
|
57 |
+
"use_cache": true,
|
58 |
+
"vocab_size": 250012
|
59 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 2,
|
4 |
+
"decoder_start_token_id": 2,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"transformers_version": "4.30.0"
|
8 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bed0ce39b13d65daf0f1a764e3d7af96b5af2067b3ec3b042dc388151e2c621
|
3 |
+
size 1538496649
|