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
24161c59
Unverified
Commit
24161c59
authored
May 18, 2025
by
Yury Sulsky
Committed by
GitHub
May 18, 2025
Browse files
The Gemma template is missing a newline after the user role. (#6331)
Co-authored-by:
Yury Sulsky
<
ysulsky@tesla.com
>
parent
eabcf82a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/conversation.py
python/sglang/srt/conversation.py
+1
-1
No files found.
python/sglang/srt/conversation.py
View file @
24161c59
...
@@ -781,7 +781,7 @@ register_conv_template(
...
@@ -781,7 +781,7 @@ register_conv_template(
Conversation
(
Conversation
(
name
=
"gemma-it"
,
name
=
"gemma-it"
,
system_message
=
"You are a helpful assistant."
,
system_message
=
"You are a helpful assistant."
,
system_template
=
"<start_of_turn>user{system_message}
\n\n
"
,
system_template
=
"<start_of_turn>user
\n
{system_message}
\n\n
"
,
roles
=
(
"<start_of_turn>user
\n
"
,
"<start_of_turn>model
\n
"
),
roles
=
(
"<start_of_turn>user
\n
"
,
"<start_of_turn>model
\n
"
),
sep
=
"<end_of_turn>
\n
"
,
sep
=
"<end_of_turn>
\n
"
,
sep_style
=
SeparatorStyle
.
GEMMA3
,
sep_style
=
SeparatorStyle
.
GEMMA3
,
...
...
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