first commit
Browse files- .gitattributes +1 -0
- added_tokens.json +5 -0
- config.yaml +80 -0
- merges.txt +0 -0
- paddle_model.pdparams +3 -0
- special_tokens_map.json +20 -0
- tokenizer_config.json +43 -0
- 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
|
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
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: 1024
|
14 |
+
n_vocab: 151936
|
15 |
+
pos_embed_config: null
|
16 |
+
type_embed_config: null
|
17 |
+
ln_config: null
|
18 |
+
p_drop_embed: 0.0
|
19 |
+
concat_strategy: id_first
|
20 |
+
decoder_config:
|
21 |
+
type: TransformerDecoderBlock
|
22 |
+
args:
|
23 |
+
attn_config:
|
24 |
+
type: LlamaAttention
|
25 |
+
args:
|
26 |
+
n_embed: 1024
|
27 |
+
n_pos: 32768
|
28 |
+
n_head: 16
|
29 |
+
n_key_value_head: 16
|
30 |
+
head_size: 64
|
31 |
+
p_drop_attn: 0.0
|
32 |
+
p_drop_resid: 0.0
|
33 |
+
bias_attn: true
|
34 |
+
bias_proj: false
|
35 |
+
cross_attn: false
|
36 |
+
scale_dot_product: true
|
37 |
+
scale_layer_wise: false
|
38 |
+
layer_idx: null
|
39 |
+
rope_config:
|
40 |
+
type: MistralRotaryEmbedding
|
41 |
+
args:
|
42 |
+
head_size: 64
|
43 |
+
n_pos: 32768
|
44 |
+
base: 1.0e06
|
45 |
+
scaling_type: null
|
46 |
+
scaling_factor: null
|
47 |
+
mlp_config:
|
48 |
+
type: LlamaMLP
|
49 |
+
args:
|
50 |
+
n_embed: 1024
|
51 |
+
n_inner: 2816
|
52 |
+
act_fn_config:
|
53 |
+
type: SiLUActivation
|
54 |
+
args: {}
|
55 |
+
ln_config:
|
56 |
+
type: LlamaRMSNorm
|
57 |
+
args:
|
58 |
+
n_embed: 1024
|
59 |
+
ln_eps: 1.0e-06
|
60 |
+
n_embed: 1024
|
61 |
+
post_norm: false
|
62 |
+
add_cross_attn: false
|
63 |
+
n_embed: 1024
|
64 |
+
n_layer: 24
|
65 |
+
n_head: 16
|
66 |
+
ln_config:
|
67 |
+
type: LlamaRMSNorm
|
68 |
+
args:
|
69 |
+
n_embed: 1024
|
70 |
+
ln_eps: 1.0e-06
|
71 |
+
perform_linear_bias: false
|
72 |
+
attn_window_size_loop_unit: null
|
73 |
+
lm_head_config:
|
74 |
+
type: TransformerLMHead
|
75 |
+
args:
|
76 |
+
n_vocab: 151936
|
77 |
+
n_embed: 1024
|
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
|
|
paddle_model.pdparams
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:501a0fe809672c0404c5753ecc18b5870bf2cfba61ca380c34bb55f59ba65505
|
3 |
+
size 2478313708
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"eos_token": {
|
7 |
+
"content": "<|endoftext|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
}
|
20 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"additional_special_tokens": [
|
30 |
+
"<|im_start|>",
|
31 |
+
"<|im_end|>"
|
32 |
+
],
|
33 |
+
"bos_token": null,
|
34 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|endoftext|>",
|
37 |
+
"errors": "replace",
|
38 |
+
"model_max_length": 32768,
|
39 |
+
"pad_token": "<|endoftext|>",
|
40 |
+
"split_special_tokens": false,
|
41 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
+
"unk_token": null
|
43 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|