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
d622851d
Unverified
Commit
d622851d
authored
Dec 01, 2024
by
Rui Wang
Committed by
GitHub
Nov 30, 2024
Browse files
[Fix] fix assertion error for chunked prefill when disabling cache (#2282)
parent
883c9554
Changes
1
Hide 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 @
d622851d
...
@@ -231,6 +231,9 @@ class PrefillAdder:
...
@@ -231,6 +231,9 @@ class PrefillAdder:
break
break
self
.
req_states
.
insert
(
i
,
(
tokens_left
,
tokens_occupied
))
self
.
req_states
.
insert
(
i
,
(
tokens_left
,
tokens_occupied
))
if
len
(
self
.
can_run_list
)
!=
0
:
return
AddReqResult
.
OTHER
if
self
.
req_states
is
None
:
if
self
.
req_states
is
None
:
self
.
req_states
=
[]
self
.
req_states
=
[]
add_req_state
(
req
)
add_req_state
(
req
)
...
...
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