Unverified Commit d04899d7 authored by yizhang2077's avatar yizhang2077 Committed by GitHub
Browse files

stop_str of qwen2-vl template should be a tuple not a str (#1834)


Co-authored-by: default avatarByron Hsu <byronhsu1230@gmail.com>
parent 5010e0d2
......@@ -144,7 +144,7 @@ register_chat_template(
"assistant": ("<|im_start|>assistant\n", "<|im_end|>\n"),
},
style=ChatTemplateStyle.PLAIN,
stop_str=("<|im_end|>"),
stop_str=("<|im_end|>",),
image_token="<|vision_start|><|image_pad|><|vision_end|>",
)
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment