Amd test fp8 (#4261)

This commit is contained in:
HandH1998 authored and GitHub committed 2025-03-10 10:12:09 -07:00
1 parent 5a6400eec5
commit 2ac189edc8
6 files changed
+84

No files matched your search

@@ -32,6 +32,10 @@ if _is_cuda:
else:
from sgl_kernel import fp8_scaled_mm
# Input scaling factors are no longer optional in _scaled_mm starting
# from pytorch 2.5. Allocating a dummy tensor to pass as input_scale
TORCH_DEVICE_IDENTITY = torch.ones(1, dtype=torch.float32)
def cutlass_fp8_supported():
if not _is_cuda: