ylwt commited on
Commit
9396dbc
1 Parent(s): 4191524

first commit

Browse files
.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,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ arch:
2
+ type: TransformerLMHeadModel
3
+ args:
4
+ transformer_config:
5
+ type: TransformerDecoderOnlyModel
6
+ args:
7
+ embed_config:
8
+ type: OPTEmbeddingBlock
9
+ args:
10
+ token_embed_config:
11
+ type: TokenEmbedding
12
+ args:
13
+ n_embed: 768
14
+ n_vocab: 50272
15
+ pos_embed_config:
16
+ type: OPTLearnedPositionalEmbedding
17
+ args:
18
+ n_pos: 2048
19
+ n_embed: 768
20
+ offset: 2
21
+ type_embed_config: null
22
+ ln_config: null
23
+ p_drop_embed: 0.1
24
+ concat_strategy: id_first
25
+ decoder_config:
26
+ type: TransformerDecoderBlock
27
+ args:
28
+ attn_config:
29
+ type: MultiHeadKeyValueAttention
30
+ args:
31
+ n_embed: 768
32
+ n_pos: 2048
33
+ n_head: 12
34
+ head_size: 64
35
+ p_drop_attn: 0.1
36
+ p_drop_resid: 0.1
37
+ bias_attn: true
38
+ bias_proj: true
39
+ cross_attn: false
40
+ scale_dot_product: false
41
+ scale_layer_wise: false
42
+ layer_idx: null
43
+ perform_linear_bias: false
44
+ perform_bloom_split_head: false
45
+ perform_query_scaling: true
46
+ attn_window_size: null
47
+ mlp_config:
48
+ type: TransformerMLP
49
+ args:
50
+ n_embed: 768
51
+ n_inner: 3072
52
+ act_fn_config:
53
+ type: ReLU
54
+ args: {}
55
+ p_drop_mlp: 0.1
56
+ ln_config:
57
+ type: LayerNorm
58
+ args:
59
+ n_embed: 768
60
+ ln_eps: 1.0e-05
61
+ n_embed: 768
62
+ post_norm: false
63
+ add_cross_attn: false
64
+ n_embed: 768
65
+ n_layer: 12
66
+ n_head: 12
67
+ ln_config:
68
+ type: LayerNorm
69
+ args:
70
+ n_embed: 768
71
+ ln_eps: 1.0e-05
72
+ perform_linear_bias: false
73
+ attn_window_size_loop_unit: null
74
+ lm_head_config:
75
+ type: TransformerLMHead
76
+ args:
77
+ n_vocab: 50272
78
+ n_embed: 768
79
+ perform_transform: false
80
+ act_fn_config: null
81
+ ln_config: null
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
paddle_model.pdparams ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92e7119e0ae71da0bb6968aa725e842a53d0e1beb0ba6ab97ecc41c9b7ca3b24
3
+ size 500972930
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "</s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "</s>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "1": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "2": {
14
+ "content": "</s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ }
21
+ },
22
+ "bos_token": "</s>",
23
+ "clean_up_tokenization_spaces": true,
24
+ "eos_token": "</s>",
25
+ "errors": "replace",
26
+ "model_max_length": 1000000000000000019884624838656,
27
+ "pad_token": "<pad>",
28
+ "tokenizer_class": "GPT2Tokenizer",
29
+ "unk_token": "</s>"
30
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff