Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
d04899d7
Unverified
Commit
d04899d7
authored
Oct 30, 2024
by
yizhang2077
Committed by
GitHub
Oct 29, 2024
Browse files
stop_str of qwen2-vl template should be a tuple not a str (#1834)
Co-authored-by:
Byron Hsu
<
byronhsu1230@gmail.com
>
parent
5010e0d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/lang/chat_template.py
python/sglang/lang/chat_template.py
+1
-1
No files found.
python/sglang/lang/chat_template.py
View file @
d04899d7
...
@@ -144,7 +144,7 @@ register_chat_template(
...
@@ -144,7 +144,7 @@ register_chat_template(
"assistant"
:
(
"<|im_start|>assistant
\n
"
,
"<|im_end|>
\n
"
),
"assistant"
:
(
"<|im_start|>assistant
\n
"
,
"<|im_end|>
\n
"
),
},
},
style
=
ChatTemplateStyle
.
PLAIN
,
style
=
ChatTemplateStyle
.
PLAIN
,
stop_str
=
(
"<|im_end|>"
),
stop_str
=
(
"<|im_end|>"
,
),
image_token
=
"<|vision_start|><|image_pad|><|vision_end|>"
,
image_token
=
"<|vision_start|><|image_pad|><|vision_end|>"
,
)
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment