Fix trailing whitespace, reverted enable_chat_template in arg

* `enable_chat_template` is no used by `server`
This commit is contained in:
MaggotHATE 2024-11-20 15:40:59 +05:00
parent 53e0215053
commit 9b58edf2d8
2 changed files with 3 additions and 3 deletions

View file

@ -850,7 +850,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
"string to prefix user inputs with (default: empty)",
[](common_params & params, const std::string & value) {
params.input_prefix = value;
// params.enable_chat_template = false;
params.enable_chat_template = false;
}
).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_INFILL}));
add_opt(common_arg(
@ -858,7 +858,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
"string to suffix after user inputs with (default: empty)",
[](common_params & params, const std::string & value) {
params.input_suffix = value;
// params.enable_chat_template = false;
params.enable_chat_template = false;
}
).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_INFILL}));
add_opt(common_arg(

View file

@ -3228,7 +3228,7 @@ int main(int argc, char ** argv) {
params.chat_template = "chatml";
}
} else if (!params.input_prefix.empty() || !params.input_suffix.empty()) {
LOG_WRN("%s: Prefix and suffix are not used because a chat template is defined.\n", __func__);
LOG_WRN("%s: Prefix and suffix are not used because a chat template is defined.\n", __func__);
}
// print sample chat example to make it clear which template is used