Upload MBartForConditionalGeneration
Browse files- config.json +23 -39
- generation_config.json +2 -3
- model.safetensors +2 -2
config.json
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "facebook/
|
3 |
-
"
|
|
|
4 |
"activation_function": "gelu",
|
5 |
"add_bias_logits": false,
|
6 |
-
"add_final_layer_norm":
|
7 |
"architectures": [
|
8 |
-
"
|
9 |
],
|
10 |
-
"attention_dropout": 0.
|
11 |
"bos_token_id": 0,
|
12 |
-
"classif_dropout": 0.
|
13 |
"classifier_dropout": 0.0,
|
14 |
-
"d_model":
|
15 |
-
"decoder_attention_heads":
|
16 |
-
"decoder_ffn_dim":
|
17 |
"decoder_layerdrop": 0.0,
|
18 |
-
"decoder_layers":
|
19 |
"decoder_start_token_id": 2,
|
20 |
"dropout": 0.1,
|
21 |
"early_stopping": null,
|
22 |
-
"encoder_attention_heads":
|
23 |
-
"encoder_ffn_dim":
|
24 |
"encoder_layerdrop": 0.0,
|
25 |
-
"encoder_layers":
|
26 |
"eos_token_id": 2,
|
27 |
"forced_eos_token_id": 2,
|
28 |
"gradient_checkpointing": false,
|
@@ -38,37 +39,20 @@
|
|
38 |
"LABEL_1": 1,
|
39 |
"LABEL_2": 2
|
40 |
},
|
|
|
41 |
"max_position_embeddings": 1024,
|
42 |
-
"model_type": "
|
43 |
-
"
|
44 |
-
"normalize_before": false,
|
45 |
"normalize_embedding": true,
|
46 |
"num_beams": null,
|
47 |
-
"num_hidden_layers":
|
|
|
48 |
"pad_token_id": 1,
|
49 |
-
"scale_embedding":
|
50 |
-
"
|
51 |
-
|
52 |
-
"length_penalty": 1.0,
|
53 |
-
"max_length": 128,
|
54 |
-
"min_length": 12,
|
55 |
-
"num_beams": 4
|
56 |
-
},
|
57 |
-
"summarization_cnn": {
|
58 |
-
"length_penalty": 2.0,
|
59 |
-
"max_length": 142,
|
60 |
-
"min_length": 56,
|
61 |
-
"num_beams": 4
|
62 |
-
},
|
63 |
-
"summarization_xsum": {
|
64 |
-
"length_penalty": 1.0,
|
65 |
-
"max_length": 62,
|
66 |
-
"min_length": 11,
|
67 |
-
"num_beams": 6
|
68 |
-
}
|
69 |
-
},
|
70 |
"torch_dtype": "float32",
|
71 |
"transformers_version": "4.45.1",
|
72 |
"use_cache": true,
|
73 |
-
"vocab_size":
|
74 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "facebook/mbart-large-50",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
"activation_function": "gelu",
|
6 |
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": true,
|
8 |
"architectures": [
|
9 |
+
"MBartForConditionalGeneration"
|
10 |
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
"bos_token_id": 0,
|
13 |
+
"classif_dropout": 0.0,
|
14 |
"classifier_dropout": 0.0,
|
15 |
+
"d_model": 1024,
|
16 |
+
"decoder_attention_heads": 16,
|
17 |
+
"decoder_ffn_dim": 4096,
|
18 |
"decoder_layerdrop": 0.0,
|
19 |
+
"decoder_layers": 12,
|
20 |
"decoder_start_token_id": 2,
|
21 |
"dropout": 0.1,
|
22 |
"early_stopping": null,
|
23 |
+
"encoder_attention_heads": 16,
|
24 |
+
"encoder_ffn_dim": 4096,
|
25 |
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 12,
|
27 |
"eos_token_id": 2,
|
28 |
"forced_eos_token_id": 2,
|
29 |
"gradient_checkpointing": false,
|
|
|
39 |
"LABEL_1": 1,
|
40 |
"LABEL_2": 2
|
41 |
},
|
42 |
+
"max_length": null,
|
43 |
"max_position_embeddings": 1024,
|
44 |
+
"model_type": "mbart",
|
45 |
+
"normalize_before": true,
|
|
|
46 |
"normalize_embedding": true,
|
47 |
"num_beams": null,
|
48 |
+
"num_hidden_layers": 12,
|
49 |
+
"output_past": true,
|
50 |
"pad_token_id": 1,
|
51 |
+
"scale_embedding": true,
|
52 |
+
"static_position_embeddings": false,
|
53 |
+
"tokenizer_class": "MBart50Tokenizer",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
"torch_dtype": "float32",
|
55 |
"transformers_version": "4.45.1",
|
56 |
"use_cache": true,
|
57 |
+
"vocab_size": 250054
|
58 |
}
|
generation_config.json
CHANGED
@@ -3,11 +3,10 @@
|
|
3 |
"decoder_start_token_id": 2,
|
4 |
"early_stopping": true,
|
5 |
"eos_token_id": 2,
|
6 |
-
"forced_bos_token_id": 0,
|
7 |
"forced_eos_token_id": 2,
|
|
|
8 |
"max_new_tokens": 16,
|
9 |
-
"
|
10 |
-
"num_beams": 4,
|
11 |
"pad_token_id": 1,
|
12 |
"transformers_version": "4.45.1"
|
13 |
}
|
|
|
3 |
"decoder_start_token_id": 2,
|
4 |
"early_stopping": true,
|
5 |
"eos_token_id": 2,
|
|
|
6 |
"forced_eos_token_id": 2,
|
7 |
+
"max_length": 200,
|
8 |
"max_new_tokens": 16,
|
9 |
+
"num_beams": 5,
|
|
|
10 |
"pad_token_id": 1,
|
11 |
"transformers_version": "4.45.1"
|
12 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:268b05f7cf509c0434c1927067ba2881f783308599d80b1f5addcd58cfc4f6af
|
3 |
+
size 2444578688
|