hf_chat_template = getattr(global_args, 'hf_chat_template', []) or []
hf_chat_template = getattr(global_args, 'hf_chat_template', []) or []
...
@@ -5468,7 +5464,7 @@ def parse_args():
...
@@ -5468,7 +5464,7 @@ def parse_args():
"--hf-chat-template",
"--hf-chat-template",
action="append",
action="append",
default=[],
default=[],
help="Use HuggingFace transformers apply_chat_template. Use without value for auto-detect, or specify model: --hf-chat-template text:model_name. Use --hf-chat-template auto for global auto-detect.",
help="Use HuggingFace apply_chat_template. Examples: --hf-chat-template auto (all models), --hf-chat-template text (all text), --hf-chat-template mymodel:llama3 (specific model with template). Can be repeated.",