mymusise commited on
Commit
30d1957
1 Parent(s): 49f84b6

update model

Browse files

Signed-off-by: mymusise <mymusise1@gmail.com>

Files changed (3) hide show
  1. README.md +16 -0
  2. config.json +5 -3
  3. tf_model.h5 +1 -1
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: zh
3
+ widget:
4
+ - text: "今天是下雨天"
5
+ - text: "走向森林"
6
+ ---
7
+
8
+ # EasternFantasyNoval
9
+
10
+
11
+ # Overview
12
+
13
+ - **Language model**: GPT2-Medium
14
+ - **Model size**: 1.2GiB
15
+ - **Language**: Chinese
16
+
config.json CHANGED
@@ -1,7 +1,6 @@
1
  {
2
- "_name_or_path": "/data/wiki_zh/models/",
3
  "activation_function": "gelu_new",
4
- "tokenizer_class": "BertTokenizer",
5
  "architectures": [
6
  "TFGPT2LMHeadModel"
7
  ],
@@ -20,6 +19,7 @@
20
  "n_layer": 24,
21
  "n_positions": 1024,
22
  "pad_token_id": 0,
 
23
  "resid_pdrop": 0.1,
24
  "return_dict": true,
25
  "summary_activation": null,
@@ -30,8 +30,10 @@
30
  "task_specific_params": {
31
  "text-generation": {
32
  "do_sample": true,
33
- "max_length": 120
 
34
  }
35
  },
 
36
  "vocab_size": 8021
37
  }
1
  {
2
+ "_name_or_path": "/data/novels/models/",
3
  "activation_function": "gelu_new",
 
4
  "architectures": [
5
  "TFGPT2LMHeadModel"
6
  ],
19
  "n_layer": 24,
20
  "n_positions": 1024,
21
  "pad_token_id": 0,
22
+ "repetition_penalty": 1.3,
23
  "resid_pdrop": 0.1,
24
  "return_dict": true,
25
  "summary_activation": null,
30
  "task_specific_params": {
31
  "text-generation": {
32
  "do_sample": true,
33
+ "max_length": 120,
34
+ "repetition_penalty": 1.3
35
  }
36
  },
37
+ "tokenizer_class": "BertTokenizer",
38
  "vocab_size": 8021
39
  }
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:521cd8f1e4422cc68a53632a676c9f4d3010154f829b486244ad3ba1e01e153c
3
  size 1246629736
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9355c31cceb17574744e5bda760465b6754ff59fbe3e01ac259eaab3eb5c0e18
3
  size 1246629736