From 76d5410e01205af50587c67b709048e23ef319cc Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Tue, 24 Feb 2026 22:52:39 -0800 Subject: [PATCH] [Disagg] Fix decode querying unregistered `dp_rank` when prefill `dp_size` is 1 (#19305) Co-authored-by: Yangmin Li --- python/sglang/srt/disaggregation/decode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/disaggregation/decode.py b/python/sglang/srt/disaggregation/decode.py index 148392922..7d8630c5c 100644 --- a/python/sglang/srt/disaggregation/decode.py +++ b/python/sglang/srt/disaggregation/decode.py @@ -374,6 +374,9 @@ class DecodePreallocQueue: if prefill_info is None: return None + if prefill_info.dp_size == 1: + return 0 + if prefill_info.follow_bootstrap_room: return req.bootstrap_room % prefill_info.dp_size