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
bfb118c0
Unverified
Commit
bfb118c0
authored
Jul 24, 2025
by
Minho Ryu
Committed by
GitHub
Jul 23, 2025
Browse files
fix bug when eos_ids==0 (#8315)
parent
f6e07f27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/configs/model_config.py
python/sglang/srt/configs/model_config.py
+1
-1
No files found.
python/sglang/srt/configs/model_config.py
View file @
bfb118c0
...
...
@@ -475,7 +475,7 @@ class ModelConfig:
def
get_hf_eos_token_id
(
self
)
->
Optional
[
Set
[
int
]]:
eos_ids
=
getattr
(
self
.
hf_config
,
"eos_token_id"
,
None
)
if
eos_ids
:
if
eos_ids
is
not
None
:
# it can be either int or list of int
eos_ids
=
{
eos_ids
}
if
isinstance
(
eos_ids
,
int
)
else
set
(
eos_ids
)
if
eos_ids
is
None
:
...
...
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