Skip to content

Commit 3d96053

Browse files
authored
Merge pull request JamePeng#18 from TAO71-AI/main
Fixed a typo in the Qwen3-VL chat template.
2 parents 67baa01 + 04656b1 commit 3d96053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama_cpp/llama_chat_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,8 @@ class Qwen3VLChatHandler(Llava15ChatHandler):
37733773
"{%- endif -%}"
37743774
"{%- elif message.role == 'tool' -%}"
37753775
"{{- '</tool_response>' -}}"
3776-
"{%- elif message.role != 'system' -%}"
3776+
"{%- endif -%}"
3777+
"{%- if message.role != 'system' -%}"
37773778
"{{- '<|im_end|>\n' -}}"
37783779
"{%- endif -%}"
37793780
"{%- endfor -%}"

0 commit comments

Comments
 (0)