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
fb71725c
Unverified
Commit
fb71725c
authored
May 13, 2025
by
Ying Sheng
Committed by
GitHub
May 13, 2025
Browse files
Fix a bug in schedule_policy (#6276)
parent
912788c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/srt/managers/schedule_policy.py
python/sglang/srt/managers/schedule_policy.py
+3
-0
No files found.
python/sglang/srt/managers/schedule_policy.py
View file @
fb71725c
...
@@ -468,6 +468,9 @@ class PrefillAdder:
...
@@ -468,6 +468,9 @@ class PrefillAdder:
return
AddReqResult
.
OTHER
return
AddReqResult
.
OTHER
with
self
.
_lock_node
(
req
.
last_node
):
with
self
.
_lock_node
(
req
.
last_node
):
if
total_tokens
>
self
.
rem_total_tokens
:
return
AddReqResult
.
NO_TOKEN
if
(
if
(
enable_hierarchical_cache
enable_hierarchical_cache
and
req
.
last_node_global
is
not
None
and
req
.
last_node_global
is
not
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