ylwt commited on
Commit
3e31bc2
1 Parent(s): 5d8d560

first commit

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. config.yaml +80 -0
  3. merges.txt +0 -0
  4. special_tokens_map.json +23 -0
  5. tokenizer_config.json +22 -0
  6. vocab.json +0 -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: 50257
15
+ pos_embed_config:
16
+ type: PositionEmbedding
17
+ args:
18
+ n_embed: 768
19
+ n_pos: 1024
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: 1024
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: 50257
77
+ n_embed: 768
78
+ perform_transform: false
79
+ act_fn_config: null
80
+ ln_config: null
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<|endoftext|>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 1024,
19
+ "pad_token": null,
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff