init commit
Browse files- added_tokens.json +7 -0
- config.json +31 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +14 -0
- tokenizer.json +0 -0
- tokenizer_config.json +22 -0
- vocab.txt +0 -0
added_tokens.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 21130,
|
3 |
+
"<mask>": 21132,
|
4 |
+
"<pad>": 21128,
|
5 |
+
"<s>": 21129,
|
6 |
+
"<unk>": 21131
|
7 |
+
}
|
config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"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": 8,
|
17 |
+
"n_positions": 1024,
|
18 |
+
"reorder_and_upcast_attn": false,
|
19 |
+
"resid_pdrop": 0.1,
|
20 |
+
"scale_attn_by_inverse_layer_idx": false,
|
21 |
+
"scale_attn_weights": true,
|
22 |
+
"summary_activation": null,
|
23 |
+
"summary_first_dropout": 0.1,
|
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": 25000
|
31 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42ccd602fc0ab2e08d65be45e657ce478e0a8d0f591c0bb45e930b121beb6823
|
3 |
+
size 315188761
|
special_tokens_map.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s>",
|
4 |
+
"<pad>",
|
5 |
+
"</s>",
|
6 |
+
"<unk>",
|
7 |
+
"<mask>"
|
8 |
+
],
|
9 |
+
"cls_token": "[CLS]",
|
10 |
+
"mask_token": "[MASK]",
|
11 |
+
"pad_token": "<pad>",
|
12 |
+
"sep_token": "[SEP]",
|
13 |
+
"unk_token": "[UNK]"
|
14 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s>",
|
4 |
+
"<pad>",
|
5 |
+
"</s>",
|
6 |
+
"<unk>",
|
7 |
+
"<mask>"
|
8 |
+
],
|
9 |
+
"cls_token": "[CLS]",
|
10 |
+
"do_lower_case": false,
|
11 |
+
"mask_token": "[MASK]",
|
12 |
+
"max_len": 256,
|
13 |
+
"model_max_length": 256,
|
14 |
+
"name_or_path": "./pretrained/bert-base-chinese",
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"sep_token": "[SEP]",
|
17 |
+
"special_tokens_map_file": null,
|
18 |
+
"strip_accents": null,
|
19 |
+
"tokenize_chinese_chars": true,
|
20 |
+
"tokenizer_class": "BertTokenizer",
|
21 |
+
"unk_token": "[UNK]"
|
22 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|