jed351 commited on
Commit
15dc901
1 Parent(s): d47d2f9

Upload with huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "㖭": 21128,
3
+ "㨂": 21129,
4
+ "㩒": 21130,
5
+ "䏙": 21131,
6
+ "䚗": 21132,
7
+ "䟕": 21133,
8
+ "乸": 21134,
9
+ "仼": 21135,
10
+ "冚": 21136,
11
+ "冧": 21137,
12
+ "厠": 21138,
13
+ "厹": 21139,
14
+ "吔": 21140,
15
+ "呔": 21141,
16
+ "咇": 21142,
17
+ "唒": 21143,
18
+ "唓": 21144,
19
+ "唞": 21145,
20
+ "啩": 21146,
21
+ "喼": 21147,
22
+ "嗄": 21148,
23
+ "嗌": 21149,
24
+ "嗮": 21150,
25
+ "嗱": 21151,
26
+ "嘥": 21152,
27
+ "噃": 21153,
28
+ "噉": 21154,
29
+ "噏": 21155,
30
+ "噚": 21156,
31
+ "嚹": 21157,
32
+ "嚿": 21158,
33
+ "囇": 21159,
34
+ "囯": 21160,
35
+ "妺": 21161,
36
+ "嬲": 21162,
37
+ "孭": 21163,
38
+ "屙": 21164,
39
+ "廸": 21165,
40
+ "彊": 21166,
41
+ "戇": 21167,
42
+ "戥": 21168,
43
+ "扚": 21169,
44
+ "扠": 21170,
45
+ "扺": 21171,
46
+ "扻": 21172,
47
+ "抆": 21173,
48
+ "抌": 21174,
49
+ "抺": 21175,
50
+ "捽": 21176,
51
+ "掕": 21177,
52
+ "掟": 21178,
53
+ "掹": 21179,
54
+ "揦": 21180,
55
+ "揼": 21181,
56
+ "揾": 21182,
57
+ "搣": 21183,
58
+ "搥": 21184,
59
+ "搲": 21185,
60
+ "摙": 21186,
61
+ "摷": 21187,
62
+ "撘": 21188,
63
+ "撳": 21189,
64
+ "攋": 21190,
65
+ "攰": 21191,
66
+ "曱": 21192,
67
+ "栢": 21193,
68
+ "梘": 21194,
69
+ "櫈": 21195,
70
+ "欅": 21196,
71
+ "殻": 21197,
72
+ "炆": 21198,
73
+ "烚": 21199,
74
+ "燶": 21200,
75
+ "猁": 21201,
76
+ "猢": 21202,
77
+ "獌": 21203,
78
+ "甴": 21204,
79
+ "痾": 21205,
80
+ "瘜": 21206,
81
+ "癈": 21207,
82
+ "癪": 21208,
83
+ "砵": 21209,
84
+ "祼": 21210,
85
+ "罅": 21211,
86
+ "罉": 21212,
87
+ "脷": 21213,
88
+ "蚑": 21214,
89
+ "蝻": 21215,
90
+ "袓": 21216,
91
+ "裇": 21217,
92
+ "褸": 21218,
93
+ "趷": 21219,
94
+ "跣": 21220,
95
+ "踎": 21221,
96
+ "踭": 21222,
97
+ "踼": 21223,
98
+ "躝": 21224,
99
+ "軚": 21225,
100
+ "鋭": 21226,
101
+ "錡": 21227,
102
+ "鍠": 21228,
103
+ "鎅": 21229,
104
+ "鏝": 21230,
105
+ "閂": 21231,
106
+ "閪": 21232,
107
+ "餸": 21233,
108
+ "騮": 21234,
109
+ "骹": 21235,
110
+ "髀": 21236,
111
+ "鰂": 21237,
112
+ "麖": 21238,
113
+ "黐": 21239,
114
+ "𠝹": 21240,
115
+ "𠵱": 21241,
116
+ "𠹌": 21242,
117
+ "𠺌": 21243,
118
+ "𠺘": 21244,
119
+ "𠻹": 21245,
120
+ "𠿪": 21246,
121
+ "𡃁": 21247,
122
+ "𢃇": 21248,
123
+ "𥄫": 21249,
124
+ "𨋢": 21250,
125
+ "𨳒": 21251,
126
+ "𪘲": 21252
127
+ }
all_results.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"perplexity": 30.936751531249104}
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jed351/gpt2-base-zh-hk",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 101,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 102,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 12,
20
+ "n_positions": 1024,
21
+ "reorder_and_upcast_attn": false,
22
+ "resid_pdrop": 0.1,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
+ "summary_activation": null,
26
+ "summary_first_dropout": 0.1,
27
+ "summary_proj_to_labels": true,
28
+ "summary_type": "cls_index",
29
+ "summary_use_proj": true,
30
+ "task_specific_params": {
31
+ "text-generation": {
32
+ "do_sample": true,
33
+ "max_length": 50
34
+ }
35
+ },
36
+ "tokenizer_class": "BertTokenizerFast",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.27.0.dev0",
39
+ "use_cache": true,
40
+ "vocab_size": 21253
41
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 101,
4
+ "eos_token_id": 102,
5
+ "transformers_version": "4.27.0.dev0"
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cb16cccb3aa578b4ba87b5bdb705d88cc5c7c8e18092447a606a4e1559d386c
3
+ size 421297725
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": false,
4
+ "mask_token": "[MASK]",
5
+ "model_max_length": 512,
6
+ "name_or_path": "jed351/gpt2-base-zh-hk",
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "special_tokens_map_file": null,
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff