[Diffusion][CPU] Enable MiniMax-H3 on Xeon CPU (#35147)
This commit is contained in:
@@ -441,7 +441,10 @@ class GroupCoordinator:
|
||||
if current_platform.is_cpu() and is_shm_available(
|
||||
input_.dtype, self.world_size, len(self.ranks)
|
||||
):
|
||||
return torch.ops.sgl_kernel.shm_allgather(input_, dim)
|
||||
output_tensor = torch.ops.sgl_kernel.shm_allgather(input_, dim)
|
||||
if separate_tensors:
|
||||
return list(output_tensor.chunk(world_size, dim=dim))
|
||||
return output_tensor
|
||||
else:
|
||||
all_gather_single(output_tensor, input_, group=self.device_group)
|
||||
|
||||
|
||||
+2
-1
@@ -676,11 +676,12 @@ class MiniMaxH3DenoisingStage(DenoisingStage):
|
||||
|
||||
if not (
|
||||
current_platform.is_cuda()
|
||||
or current_platform.is_cpu()
|
||||
or current_platform.is_mps()
|
||||
or current_platform.is_npu()
|
||||
):
|
||||
raise RuntimeError(
|
||||
"MiniMax H3 full-loop denoise requires CUDA, MPS, or Ascend NPU"
|
||||
"MiniMax H3 full-loop denoise requires CPU, CUDA, MPS, or Ascend NPU"
|
||||
)
|
||||
|
||||
device = current_platform.get_local_torch_device()
|
||||
|
||||
Reference in New Issue
Block a user