diff --git a/vllm/distributed/device_communicators/pynccl_wrapper.py b/vllm/distributed/device_communicators/pynccl_wrapper.py index 3b11595b4..78b3328f4 100644 --- a/vllm/distributed/device_communicators/pynccl_wrapper.py +++ b/vllm/distributed/device_communicators/pynccl_wrapper.py @@ -93,7 +93,7 @@ class ncclDataTypeEnum: return cls.ncclFloat64 if dtype == torch.bfloat16: return cls.ncclBfloat16 - if dtype == torch.float8_e4m3fn: + if dtype == current_platform.fp8_dtype(): return cls.ncclFloat8e4m3 raise ValueError( f"Unsupported dtype {dtype}: should be one of "