first commit
Browse files- .gitattributes +1 -0
- config.yaml +80 -0
- paddle_model.pdparams +3 -0
- special_tokens_map.json +6 -0
- spiece.model +3 -0
- tokenizer_config.json +47 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
paddle_model.pdparams filter=lfs diff=lfs merge=lfs -text
|
config.yaml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
arch:
|
2 |
+
type: TransformerLMHeadModel
|
3 |
+
args:
|
4 |
+
transformer_config:
|
5 |
+
type: TransformerDecoderOnlyModel
|
6 |
+
args:
|
7 |
+
embed_config:
|
8 |
+
type: TransformerEmbeddingBlock
|
9 |
+
args:
|
10 |
+
token_embed_config:
|
11 |
+
type: TokenEmbedding
|
12 |
+
args:
|
13 |
+
n_embed: 768
|
14 |
+
n_vocab: 64000
|
15 |
+
pos_embed_config:
|
16 |
+
type: PositionEmbedding
|
17 |
+
args:
|
18 |
+
n_embed: 768
|
19 |
+
n_pos: 2048
|
20 |
+
type_embed_config: null
|
21 |
+
ln_config: null
|
22 |
+
p_drop_embed: 0.1
|
23 |
+
concat_strategy: id_first
|
24 |
+
decoder_config:
|
25 |
+
type: TransformerDecoderBlock
|
26 |
+
args:
|
27 |
+
attn_config:
|
28 |
+
type: MultiHeadKeyValueAttention
|
29 |
+
args:
|
30 |
+
n_embed: 768
|
31 |
+
n_pos: 2048
|
32 |
+
n_head: 12
|
33 |
+
head_size: 64
|
34 |
+
p_drop_attn: 0.1
|
35 |
+
p_drop_resid: 0.1
|
36 |
+
bias_attn: true
|
37 |
+
bias_proj: true
|
38 |
+
cross_attn: false
|
39 |
+
scale_dot_product: true
|
40 |
+
scale_layer_wise: false
|
41 |
+
layer_idx: null
|
42 |
+
perform_linear_bias: false
|
43 |
+
perform_bloom_split_head: false
|
44 |
+
perform_query_scaling: false
|
45 |
+
attn_window_size: null
|
46 |
+
mlp_config:
|
47 |
+
type: TransformerMLP
|
48 |
+
args:
|
49 |
+
n_embed: 768
|
50 |
+
n_inner: 3072
|
51 |
+
act_fn_config:
|
52 |
+
type: NewGELUActivation
|
53 |
+
args: {}
|
54 |
+
p_drop_mlp: 0.1
|
55 |
+
ln_config:
|
56 |
+
type: LayerNorm
|
57 |
+
args:
|
58 |
+
n_embed: 768
|
59 |
+
ln_eps: 1.0e-05
|
60 |
+
n_embed: 768
|
61 |
+
post_norm: false
|
62 |
+
add_cross_attn: false
|
63 |
+
n_embed: 768
|
64 |
+
n_layer: 12
|
65 |
+
n_head: 12
|
66 |
+
ln_config:
|
67 |
+
type: LayerNorm
|
68 |
+
args:
|
69 |
+
n_embed: 768
|
70 |
+
ln_eps: 1.0e-05
|
71 |
+
perform_linear_bias: false
|
72 |
+
attn_window_size_loop_unit: null
|
73 |
+
lm_head_config:
|
74 |
+
type: TransformerLMHead
|
75 |
+
args:
|
76 |
+
n_vocab: 64000
|
77 |
+
n_embed: 768
|
78 |
+
perform_transform: false
|
79 |
+
act_fn_config: null
|
80 |
+
ln_config: null
|
paddle_model.pdparams
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c707cb5f4488f2efe42b1f9113e1bbb9486ada78d379e9ef1c6fc2aa4ffdb5d8
|
3 |
+
size 543139202
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<pad>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4bda2cd84ff0ac659cda40e746c55f47ee3e57cf18471670ad26998c28be52d
|
3 |
+
size 1071955
|
tokenizer_config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<pad>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<unk>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "<s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "<|endoftext|>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"bos_token": "<s>",
|
37 |
+
"clean_up_tokenization_spaces": true,
|
38 |
+
"do_lower_case": false,
|
39 |
+
"eos_token": "<|endoftext|>",
|
40 |
+
"keep_accents": false,
|
41 |
+
"model_max_length": 1000000000000000019884624838656,
|
42 |
+
"pad_token": "<pad>",
|
43 |
+
"remove_space": false,
|
44 |
+
"sp_model_kwargs": {},
|
45 |
+
"tokenizer_class": "GPTSw3Tokenizer",
|
46 |
+
"unk_token": "<unk>"
|
47 |
+
}
|