From 5067da3eb68a2f724e299400db1018cfddc25712 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Tue, 19 May 2026 09:22:51 +0800 Subject: [PATCH] Confine req-pool-idx assignment to the pool allocator (#25726) --- python/sglang/srt/managers/schedule_batch.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/sglang/srt/managers/schedule_batch.py b/python/sglang/srt/managers/schedule_batch.py index 0aa49afb9..1830c90c9 100755 --- a/python/sglang/srt/managers/schedule_batch.py +++ b/python/sglang/srt/managers/schedule_batch.py @@ -1774,9 +1774,7 @@ class ScheduleBatch(ScheduleBatchDisaggregationDecodeMixin): self.extend_num_tokens = extend_num_tokens # Allocate memory - out_cache_loc, req_pool_indices_tensor, req_pool_indices = alloc_for_extend( - self - ) + out_cache_loc, req_pool_indices_tensor, _ = alloc_for_extend(self) # Set fields input_embeds = [] @@ -1792,7 +1790,6 @@ class ScheduleBatch(ScheduleBatchDisaggregationDecodeMixin): mamba_track_seqlens_cpu = [] for i, (req, seq_len, pre_len) in enumerate(zip(reqs, seq_lens, prefix_lens)): - req.req_pool_idx = req_pool_indices[i] assert seq_len - pre_len == req.extend_input_len req.extend_batch_idx += 1