mymusise commited on
Commit
afe8001
1 Parent(s): ca2afd7

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

Files changed (4) hide show
  1. README.md +16 -0
  2. config.json +40 -0
  3. spiece.model +3 -0
  4. tf_model.h5 +3 -0
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 ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/data/novels/finetune/models/",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "TFGPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 512,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 12,
20
+ "n_positions": 512,
21
+ "pad_token_id": 16001,
22
+ "resid_pdrop": 0.1,
23
+ "return_dict": false,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 120,
33
+ "top_k": 0,
34
+ "no_repeat_ngram_size": 0
35
+ }
36
+ },
37
+ "tokenizer_class": "XLNetTokenizer",
38
+ "use_cache": true,
39
+ "vocab_size": 16128
40
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72eacb804175ed49e86700c2f4d61971835b67e9aaf58b7aaaabf9ebf10b0685
3
+ size 491029
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f52bc97ecba7dbb13fdb53beb14b7ebca23c95997b0e91d892b547a96e1e50
3
+ size 391516496