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
20c81199
"tests/test_models/test_detectors/test_mvxnet.py" did not exist on "360c27f95ed3fd185b4e1a14027eb9aa27df61fa"
Unverified
Commit
20c81199
authored
Mar 08, 2025
by
Ke Bao
Committed by
GitHub
Mar 07, 2025
Browse files
Fix eagle hang issue for max_new_tokens=1 (#4185)
parent
70866b6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+4
-0
No files found.
python/sglang/srt/managers/scheduler.py
View file @
20c81199
...
@@ -957,7 +957,11 @@ class Scheduler:
...
@@ -957,7 +957,11 @@ class Scheduler:
self
.
req_to_token_pool
.
free
(
self
.
chunked_req
.
req_pool_idx
)
self
.
req_to_token_pool
.
free
(
self
.
chunked_req
.
req_pool_idx
)
self
.
batch_is_full
=
False
self
.
batch_is_full
=
False
last_bs
=
self
.
last_batch
.
batch_size
()
self
.
last_batch
.
filter_batch
()
self
.
last_batch
.
filter_batch
()
if
self
.
last_batch
.
batch_size
()
<
last_bs
:
self
.
batch_is_full
=
False
if
not
self
.
last_batch
.
is_empty
():
if
not
self
.
last_batch
.
is_empty
():
if
self
.
running_batch
is
None
:
if
self
.
running_batch
is
None
:
self
.
running_batch
=
self
.
last_batch
self
.
running_batch
=
self
.
last_batch
...
...
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