From 7ca4cbfcef80e8d1e076877d6b2f0510bc30b143 Mon Sep 17 00:00:00 2001 From: William Arnold <7565007+Aphoh@users.noreply.github.com> Date: Wed, 14 Oct 2026 14:13:44 +0800 Subject: [PATCH] [Disagg] Return prompt routed experts from the PD prefill server (#44002) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: ishandhanani <82981111+ishandhanani@users.noreply.github.com> --- python/sglang/srt/disaggregation/prefill.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/sglang/srt/disaggregation/prefill.py b/python/sglang/srt/disaggregation/prefill.py index 4a551d37da..27414f266c 100644 --- a/python/sglang/srt/disaggregation/prefill.py +++ b/python/sglang/srt/disaggregation/prefill.py @@ -1177,6 +1177,8 @@ class SchedulerDisaggregationPrefillMixin: # todo: set Transferring correctly in backend undone_reqs.append(req) elif poll == KVPoll.Success: # transfer done + if req.return_routed_experts: + self.batch_result_processor._maybe_collect_routed_experts(req) if not isinstance(req.finished_reason, FINISH_ABORT): req.finished_reason = FINISH_LENGTH(length=0) # unlock the tree