Turn on shm_allreduce and shm_allgather for fp16 (#10725)
This commit is contained in:
@@ -2921,7 +2921,7 @@ def get_cpu_ids_by_node():
|
||||
def is_shm_available(dtype, world_size, local_size):
|
||||
return (
|
||||
cpu_has_amx_support()
|
||||
and dtype in [torch.bfloat16, torch.float]
|
||||
and dtype in [torch.bfloat16, torch.float16, torch.float]
|
||||
and world_size >= 1
|
||||
and world_size == local_size
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user