Token Config Fixes
Browse files- config.json +1 -0
- generation_config.json +2 -2
- tokenizer_config.json +1 -1
config.json
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
|
|
7 |
"eos_token_id": 151645,
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 8192,
|
|
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151644,
|
8 |
"eos_token_id": 151645,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 8192,
|
generation_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
-
"bos_token_id":
|
3 |
"do_sample": true,
|
4 |
-
"eos_token_id":
|
5 |
"max_new_tokens": 2048,
|
6 |
"transformers_version": "4.40.2"
|
7 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token_id": 151644,
|
3 |
"do_sample": true,
|
4 |
+
"eos_token_id": 151645,
|
5 |
"max_new_tokens": 2048,
|
6 |
"transformers_version": "4.40.2"
|
7 |
}
|
tokenizer_config.json
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
"<|im_start|>",
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
-
"bos_token":
|
34 |
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% 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": "<|im_end|>",
|
|
|
30 |
"<|im_start|>",
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
+
"bos_token": "<|im_start|>",
|
34 |
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% 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": "<|im_end|>",
|