First version of the gpt2-chinese-couplet.
Browse files- README.md +6 -0
- config.json +41 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tf_model.h5 +3 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: zh
|
3 |
+
widget:
|
4 |
+
- text: "[CLS]国 色 天 香 , 姹 紫 嫣 红 , 碧 水 青 云 欣 共 赏 -"
|
5 |
+
|
6 |
+
---
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_function": "gelu_new",
|
3 |
+
"architectures": [
|
4 |
+
"GPT2LMHeadModel"
|
5 |
+
],
|
6 |
+
"attn_pdrop": 0.1,
|
7 |
+
"bos_token_id": 50256,
|
8 |
+
"embd_pdrop": 0.1,
|
9 |
+
"eos_token_id": 50256,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0"
|
13 |
+
},
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"label2id": {
|
16 |
+
"LABEL_0": 0
|
17 |
+
},
|
18 |
+
"layer_norm_epsilon": 1e-05,
|
19 |
+
"model_type": "gpt2",
|
20 |
+
"n_ctx": 1024,
|
21 |
+
"n_embd": 768,
|
22 |
+
"n_head": 12,
|
23 |
+
"n_inner": null,
|
24 |
+
"n_layer": 12,
|
25 |
+
"n_positions": 1024,
|
26 |
+
"output_past": true,
|
27 |
+
"resid_pdrop": 0.1,
|
28 |
+
"summary_activation": null,
|
29 |
+
"summary_first_dropout": 0.1,
|
30 |
+
"summary_proj_to_labels": true,
|
31 |
+
"summary_type": "cls_index",
|
32 |
+
"summary_use_proj": true,
|
33 |
+
"task_specific_params": {
|
34 |
+
"text-generation": {
|
35 |
+
"do_sample": true,
|
36 |
+
"max_length": 37
|
37 |
+
}
|
38 |
+
},
|
39 |
+
"tokenizer_class": "BertTokenizer",
|
40 |
+
"vocab_size": 21128
|
41 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5dbb3d26c8e59b9944c27ded3b97218ef17424c37f76969c10dc35dc5557b98
|
3 |
+
size 420921295
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5e51cc7003741faf4b156f1550274da055064789d6507cd413524de1ec65cf1
|
3 |
+
size 408449360
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": "chinese_roberta_L-2_H-128\\special_tokens_map.json", "tokenizer_file": null, "name_or_path": "chinese_roberta_L-2_H-128"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|