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
14e8bd88
Unverified
Commit
14e8bd88
authored
Apr 14, 2025
by
Yongtong Wu
Committed by
GitHub
Apr 14, 2025
Browse files
Free metadata_buffer_index after transfer finished (#5364)
parent
adca585b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/sglang/srt/disaggregation/prefill.py
python/sglang/srt/disaggregation/prefill.py
+5
-0
No files found.
python/sglang/srt/disaggregation/prefill.py
View file @
14e8bd88
...
@@ -226,6 +226,11 @@ class SchedulerDisaggregationPrefillMixin:
...
@@ -226,6 +226,11 @@ class SchedulerDisaggregationPrefillMixin:
elif
poll
==
KVPoll
.
Failed
:
elif
poll
==
KVPoll
.
Failed
:
raise
Exception
(
"Transferring failed"
)
raise
Exception
(
"Transferring failed"
)
for
req
in
done_reqs
:
self
.
disagg_prefill_pending_queue
.
req_to_metadata_buffer_idx_allocator
.
free
(
req
.
metadata_buffer_index
)
# Stream requests which have finished transfer
# Stream requests which have finished transfer
self
.
stream_output
(
done_reqs
,
False
,
None
)
self
.
stream_output
(
done_reqs
,
False
,
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