Upload model files.
Browse files- README.md +22 -0
- config.json +33 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- zh
|
4 |
+
thumbnail: https://ckip.iis.sinica.edu.tw/files/ckip_logo.png
|
5 |
+
tags:
|
6 |
+
- pytorch
|
7 |
+
- lm-head
|
8 |
+
- gpt2
|
9 |
+
- zh
|
10 |
+
license: gpl-3.0
|
11 |
+
datasets:
|
12 |
+
metrics:
|
13 |
+
---
|
14 |
+
|
15 |
+
# CKIP GPT2 Base Chinese
|
16 |
+
|
17 |
+
## Contributers
|
18 |
+
|
19 |
+
* [Mu Yang](https://muyang.pro) at [CKIP](https://ckip.iis.sinica.edu.tw) (Author & Maintainer)
|
20 |
+
|
21 |
+
## Attention
|
22 |
+
Please Use `BertTokenizer` instead of `AutoTokenizer`!!!
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_function": "gelu_new",
|
3 |
+
"architectures": [
|
4 |
+
"GPT2LMHeadModel"
|
5 |
+
],
|
6 |
+
"attn_pdrop": 0.1,
|
7 |
+
"bos_token_id": 2,
|
8 |
+
"embd_pdrop": 0.1,
|
9 |
+
"eos_token_id": 3,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "gpt2",
|
14 |
+
"n_ctx": 1024,
|
15 |
+
"n_embd": 768,
|
16 |
+
"n_head": 12,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 12,
|
19 |
+
"n_positions": 1024,
|
20 |
+
"resid_pdrop": 0.1,
|
21 |
+
"summary_activation": null,
|
22 |
+
"summary_first_dropout": 0.1,
|
23 |
+
"summary_proj_to_labels": true,
|
24 |
+
"summary_type": "cls_index",
|
25 |
+
"summary_use_proj": true,
|
26 |
+
"task_specific_params": {
|
27 |
+
"text-generation": {
|
28 |
+
"do_sample": true,
|
29 |
+
"max_length": 50
|
30 |
+
}
|
31 |
+
},
|
32 |
+
"vocab_size": 21128
|
33 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e033757d9d19060485deee2541c673cf34a6303fb452500291a7c99adc15597
|
3 |
+
size 420924027
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "model_max_length": 512, "name_or_path": "bert-base-chinese"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|