diff --git a/vllm/distributed/device_communicators/xpu_communicator.py b/vllm/distributed/device_communicators/xpu_communicator.py index 29c731fbc6..209005c5b1 100644 --- a/vllm/distributed/device_communicators/xpu_communicator.py +++ b/vllm/distributed/device_communicators/xpu_communicator.py @@ -42,7 +42,7 @@ class XpuCommunicator(DeviceCommunicatorBase): logger.info("Using AgRs manager on XPU device.") def all_reduce(self, input_: torch.Tensor) -> torch.Tensor: - output = input_.clone() if torch.compiler.is_compiling() else input_ + output = input_.clone() dist.all_reduce(output, group=self.device_group) return output