From a1d5bc4cce7d613feb5f87e5740faefa1ddc352b Mon Sep 17 00:00:00 2001 From: Elfie Guo <164945471+elfiegg@users.noreply.github.com> Date: Sun, 26 Oct 2025 12:31:14 -0700 Subject: [PATCH] Avoid using flashinfer_allreduce_fusion when dp attention is enabled. (#11632) --- python/sglang/srt/layers/communicator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sglang/srt/layers/communicator.py b/python/sglang/srt/layers/communicator.py index c386d6111..4e377d47a 100644 --- a/python/sglang/srt/layers/communicator.py +++ b/python/sglang/srt/layers/communicator.py @@ -337,6 +337,7 @@ class LayerCommunicator: static_conditions_met = ( (not self.is_last_layer) and (self._context.tp_size > 1) + and not is_dp_attention_enabled() and get_global_server_args().enable_flashinfer_allreduce_fusion and _is_flashinfer_available )