First version of the gpt2-chinese-poem
Browse files- config.json +2 -3
config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"activation_function": "gelu_new",
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attn_pdrop": 0.1,
|
7 |
"bos_token_id": 50256,
|
@@ -33,8 +33,7 @@
|
|
33 |
"task_specific_params": {
|
34 |
"text-generation": {
|
35 |
"do_sample": true,
|
36 |
-
"max_length":
|
37 |
-
"repetition_penalty": 1.3
|
38 |
}
|
39 |
},
|
40 |
"tokenizer_class": "BertTokenizer",
|
|
|
1 |
{
|
2 |
"activation_function": "gelu_new",
|
3 |
"architectures": [
|
4 |
+
"GPT2LMHeadModel"
|
5 |
],
|
6 |
"attn_pdrop": 0.1,
|
7 |
"bos_token_id": 50256,
|
|
|
33 |
"task_specific_params": {
|
34 |
"text-generation": {
|
35 |
"do_sample": true,
|
36 |
+
"max_length": 50
|
|
|
37 |
}
|
38 |
},
|
39 |
"tokenizer_class": "BertTokenizer",
|