mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-17 05:55:01 +08:00
[Bugfix] Fix broken CPU compressed-tensors test (#11338)
Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
parent
cdf22afdda
commit
276738ce0f
@ -11,8 +11,7 @@ TORCH_DEVICE_IDENTITY = torch.ones(1, dtype=torch.float32)
|
|||||||
|
|
||||||
|
|
||||||
def sparse_cutlass_supported() -> bool:
|
def sparse_cutlass_supported() -> bool:
|
||||||
# sparse cutlass is not supported on Rocm
|
if not current_platform.is_cuda():
|
||||||
if current_platform.is_rocm():
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
capability_tuple = current_platform.get_device_capability()
|
capability_tuple = current_platform.get_device_capability()
|
||||||
@ -22,8 +21,7 @@ def sparse_cutlass_supported() -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def cutlass_fp8_supported() -> bool:
|
def cutlass_fp8_supported() -> bool:
|
||||||
# cutlass is not supported on Rocm
|
if not current_platform.is_cuda():
|
||||||
if current_platform.is_rocm():
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
capability_tuple = current_platform.get_device_capability()
|
capability_tuple = current_platform.get_device_capability()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user