Upload 5 files
Browse files- config.json +13 -2
- pytorch_model.bin +2 -2
- special_tokens_map.json +1 -1
- tokenizer_config.json +6 -4
config.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"activation_function": "gelu_new",
|
3 |
"architectures": [
|
4 |
"GPT2LMHeadModel"
|
@@ -7,14 +8,17 @@
|
|
7 |
"bos_token_id": 50256,
|
8 |
"embd_pdrop": 0.1,
|
9 |
"eos_token_id": 50256,
|
|
|
10 |
"initializer_range": 0.02,
|
11 |
"layer_norm_epsilon": 1e-05,
|
12 |
"model_type": "gpt2",
|
|
|
13 |
"n_embd": 768,
|
14 |
"n_head": 12,
|
15 |
"n_inner": null,
|
16 |
-
"n_layer":
|
17 |
"n_positions": 1024,
|
|
|
18 |
"reorder_and_upcast_attn": false,
|
19 |
"resid_pdrop": 0.1,
|
20 |
"scale_attn_by_inverse_layer_idx": false,
|
@@ -24,8 +28,15 @@
|
|
24 |
"summary_proj_to_labels": true,
|
25 |
"summary_type": "cls_index",
|
26 |
"summary_use_proj": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
"torch_dtype": "float32",
|
28 |
"transformers_version": "4.25.1",
|
29 |
"use_cache": true,
|
30 |
-
"vocab_size":
|
31 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "./pretrained/gpt2-chinese-cluecorpussmall",
|
3 |
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
"GPT2LMHeadModel"
|
|
|
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": 1024,
|
16 |
"n_embd": 768,
|
17 |
"n_head": 12,
|
18 |
"n_inner": null,
|
19 |
+
"n_layer": 12,
|
20 |
"n_positions": 1024,
|
21 |
+
"output_past": true,
|
22 |
"reorder_and_upcast_attn": false,
|
23 |
"resid_pdrop": 0.1,
|
24 |
"scale_attn_by_inverse_layer_idx": false,
|
|
|
28 |
"summary_proj_to_labels": true,
|
29 |
"summary_type": "cls_index",
|
30 |
"summary_use_proj": true,
|
31 |
+
"task_specific_params": {
|
32 |
+
"text-generation": {
|
33 |
+
"do_sample": true,
|
34 |
+
"max_length": 320
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"tokenizer_class": "BertTokenizer",
|
38 |
"torch_dtype": "float32",
|
39 |
"transformers_version": "4.25.1",
|
40 |
"use_cache": true,
|
41 |
+
"vocab_size": 21128
|
42 |
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3236ef07d89dbfcb15ca86c3853330e6ed7fbe65e55cbea8c9ac3081680d262
|
3 |
+
size 420912233
|
special_tokens_map.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"cls_token": "[CLS]",
|
3 |
"mask_token": "[MASK]",
|
4 |
-
"pad_token": "
|
5 |
"sep_token": "[SEP]",
|
6 |
"unk_token": "[UNK]"
|
7 |
}
|
|
|
1 |
{
|
2 |
"cls_token": "[CLS]",
|
3 |
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
"sep_token": "[SEP]",
|
6 |
"unk_token": "[UNK]"
|
7 |
}
|
tokenizer_config.json
CHANGED
@@ -1,13 +1,15 @@
|
|
1 |
{
|
2 |
"cls_token": "[CLS]",
|
|
|
3 |
"do_lower_case": false,
|
4 |
"mask_token": "[MASK]",
|
5 |
"max_len": 256,
|
6 |
-
"model_max_length":
|
7 |
-
"name_or_path": "
|
8 |
-
"
|
|
|
9 |
"sep_token": "[SEP]",
|
10 |
-
"special_tokens_map_file":
|
11 |
"strip_accents": null,
|
12 |
"tokenize_chinese_chars": true,
|
13 |
"tokenizer_class": "BertTokenizer",
|
|
|
1 |
{
|
2 |
"cls_token": "[CLS]",
|
3 |
+
"do_basic_tokenize": true,
|
4 |
"do_lower_case": false,
|
5 |
"mask_token": "[MASK]",
|
6 |
"max_len": 256,
|
7 |
+
"model_max_length": 1024,
|
8 |
+
"name_or_path": "./pretrained/gpt2-chinese-cluecorpussmall",
|
9 |
+
"never_split": null,
|
10 |
+
"pad_token": "[PAD]",
|
11 |
"sep_token": "[SEP]",
|
12 |
+
"special_tokens_map_file": "./pretrained/gpt2-chinese-cluecorpussmall/special_tokens_map.json",
|
13 |
"strip_accents": null,
|
14 |
"tokenize_chinese_chars": true,
|
15 |
"tokenizer_class": "BertTokenizer",
|