Commit
•
c7362f8
1
Parent(s):
901d2d9
Update generation_config.json (#7)
Browse files- Update generation_config.json (54c1c7e94228a64490ccb5d2f4ef26feae700e69)
- Update config.json (3ba643061a185aa53c7406b318a3715279f70bbd)
- Update tokenizer_config.json (979fafd58b04977de417e5e7c2cbd3cbb11ecdf5)
Co-authored-by: Yaowei Zheng <hiyouga@users.noreply.huggingface.co>
- config.json +1 -1
- generation_config.json +1 -1
- tokenizer_config.json +2 -4
config.json
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
"rope_theta": 500000.0,
|
22 |
"tie_word_embeddings": false,
|
23 |
"torch_dtype": "bfloat16",
|
24 |
-
"transformers_version": "4.40.0
|
25 |
"use_cache": true,
|
26 |
"vocab_size": 128256
|
27 |
}
|
|
|
21 |
"rope_theta": 500000.0,
|
22 |
"tie_word_embeddings": false,
|
23 |
"torch_dtype": "bfloat16",
|
24 |
+
"transformers_version": "4.40.0",
|
25 |
"use_cache": true,
|
26 |
"vocab_size": 128256
|
27 |
}
|
generation_config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 128000,
|
4 |
-
"eos_token_id":
|
5 |
"transformers_version": "4.40.0"
|
6 |
}
|
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 128000,
|
4 |
+
"eos_token_id": 128009,
|
5 |
"transformers_version": "4.40.0"
|
6 |
}
|
tokenizer_config.json
CHANGED
@@ -2050,16 +2050,14 @@
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
-
"chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|eot_id|>",
|
|
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
2059 |
],
|
2060 |
"model_max_length": 1000000000000000019884624838656,
|
2061 |
-
"pad_token": "<|eot_id|>",
|
2062 |
-
"padding_side": "right",
|
2063 |
-
"split_special_tokens": false,
|
2064 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2065 |
}
|
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
+
"chat_template": "{{ '<|begin_of_text|>' }}{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% set loop_messages = messages[1:] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|start_header_id|>system<|end_header_id|>\n\n' + system_message | trim + '<|eot_id|>' }}{% endif %}{% for message in loop_messages %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|eot_id|>",
|
2056 |
+
"pad_token": "<|eot_id|>",
|
2057 |
"model_input_names": [
|
2058 |
"input_ids",
|
2059 |
"attention_mask"
|
2060 |
],
|
2061 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
|
|
|
2062 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2063 |
}
|