Skip to content

Commit ade9fc8

Browse files
committed
Fixed a typo in the Qwen3-VL chat template.
1 parent 17ba24f commit ade9fc8

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)