ylwt commited on
Commit
7ca6b59
1 Parent(s): d8ea5a4

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,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2048
20
+ type_embed_config: null
21
+ ln_config: null
22
+ p_drop_embed: 0.0
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.0
35
+ p_drop_resid: 0.0
36
+ bias_attn: false
37
+ bias_proj: true
38
+ cross_attn: false
39
+ scale_dot_product: false
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.0
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:
73
+ - -1
74
+ - 256
75
+ lm_head_config:
76
+ type: TransformerLMHead
77
+ args:
78
+ n_vocab: 50257
79
+ n_embed: 768
80
+ perform_transform: false
81
+ act_fn_config: null
82
+ 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:78fff2b1cd32fb82775be1df73b95e2122dffc71b5cc896ba75f52c937b567aa
3
+ size 500808816
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": 2048,
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