Only stream output on tp rank 0 (#2124)
This commit is contained in:
@@ -179,7 +179,7 @@ class ModelRunner:
|
||||
if self.device == "cuda":
|
||||
torch.cuda.set_device(self.gpu_id)
|
||||
backend = "nccl"
|
||||
# ToDO(liangan1):Just use gloo to bypass the initilization fail
|
||||
# TODO(liangan1): Just use gloo to bypass the initilization fail
|
||||
# Need to use xccl for xpu backend in the future
|
||||
elif self.device == "xpu":
|
||||
torch.xpu.set_device(self.gpu_id)
|
||||
|
||||
Reference in New Issue
Block a user