Skip to content

Commit 8c84aef

Browse files
author
ochafik
committed
Update --chat-template-file w/ recent change to --chat-template
1 parent c9e8fdd commit 8c84aef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

common/arg.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,10 +1966,12 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
19661966
).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_CHAT_TEMPLATE"));
19671967
add_opt(common_arg(
19681968
{"--chat-template-file"}, "JINJA_TEMPLATE_FILE",
1969-
"set custom jinja chat template file (default: template taken from model's metadata)\n"
1970-
"if suffix/prefix are specified, template will be disabled\n"
1971-
"only commonly used templates are accepted (unless --jinja is set before this flag):\n"
1972-
"https://github.com/ggerganov/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template",
1969+
string_format(
1970+
"set custom jinja chat template file (default: template taken from model's metadata)\n"
1971+
"if suffix/prefix are specified, template will be disabled\n"
1972+
"only commonly used templates are accepted (unless --jinja is set before this flag):\n"
1973+
"list of built-in templates:\n%s", list_builtin_chat_templates().c_str()
1974+
),
19731975
[](common_params & params, const std::string & value) {
19741976
std::ifstream file(value);
19751977
if (!file) {

0 commit comments

Comments
 (0)