Update config.json
Browse files- config.json +14 -5
config.json
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
{
|
2 |
-
"architectures": [
|
3 |
-
"T5ForConditionalGeneration"
|
4 |
-
],
|
5 |
"d_ff": 3072,
|
6 |
"d_kv": 64,
|
7 |
"d_model": 768,
|
@@ -10,7 +8,7 @@
|
|
10 |
"eos_token_id": 1,
|
11 |
"initializer_factor": 1.0,
|
12 |
"is_encoder_decoder": true,
|
13 |
-
"layer_norm_epsilon": 1e-
|
14 |
"model_type": "t5",
|
15 |
"n_positions": 512,
|
16 |
"num_heads": 12,
|
@@ -18,5 +16,16 @@
|
|
18 |
"output_past": true,
|
19 |
"pad_token_id": 0,
|
20 |
"relative_attention_num_buckets": 32,
|
21 |
-
"vocab_size": 32128
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
|
|
1 |
{
|
2 |
+
"architectures": ["T5ForConditionalGeneration"],
|
|
|
|
|
3 |
"d_ff": 3072,
|
4 |
"d_kv": 64,
|
5 |
"d_model": 768,
|
|
|
8 |
"eos_token_id": 1,
|
9 |
"initializer_factor": 1.0,
|
10 |
"is_encoder_decoder": true,
|
11 |
+
"layer_norm_epsilon": 1e-6,
|
12 |
"model_type": "t5",
|
13 |
"n_positions": 512,
|
14 |
"num_heads": 12,
|
|
|
16 |
"output_past": true,
|
17 |
"pad_token_id": 0,
|
18 |
"relative_attention_num_buckets": 32,
|
19 |
+
"vocab_size": 32128,
|
20 |
+
"task_specific_params": {
|
21 |
+
"summarization": {
|
22 |
+
"early_stopping": true,
|
23 |
+
"length_penalty": 2.0,
|
24 |
+
"max_length": 200,
|
25 |
+
"min_length": 30,
|
26 |
+
"no_repeat_ngram_size": 3,
|
27 |
+
"num_beams": 4,
|
28 |
+
"prefix": "summarize: "
|
29 |
+
}
|
30 |
+
}
|
31 |
}
|