From 61261b399679729fcdc66bde0d3f278f22f52d0b Mon Sep 17 00:00:00 2001 From: Chen Shengzhi Date: Tue, 4 Mar 2025 20:05:56 +0800 Subject: [PATCH] [XCCL] Use xccl for xpu backend since xccl is ready in latest PyTorch. (#3954) --- python/sglang/srt/model_executor/model_runner.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/sglang/srt/model_executor/model_runner.py b/python/sglang/srt/model_executor/model_runner.py index 581dcbd88..d380adb41 100644 --- a/python/sglang/srt/model_executor/model_runner.py +++ b/python/sglang/srt/model_executor/model_runner.py @@ -263,9 +263,7 @@ class ModelRunner: if self.device == "cuda": backend = "nccl" elif self.device == "xpu": - # TODO(liangan1): Just use gloo to bypass the initilization fail - # Need to use xccl for xpu backend in the future - backend = "gloo" + backend = "xccl" elif self.device == "hpu": backend = "hccl" elif self.device == "cpu":