[diffusion] fix: fix using upstream flash_attn on blackwell (#17111)
This commit is contained in:
@@ -115,6 +115,13 @@ class Platform:
|
||||
return False
|
||||
return torch.cuda.get_device_capability()[0] == 10
|
||||
|
||||
@classmethod
|
||||
@lru_cache(maxsize=1)
|
||||
def is_hopper(cls):
|
||||
if not cls.is_cuda_static():
|
||||
return False
|
||||
return torch.cuda.get_device_capability() == (9, 0)
|
||||
|
||||
@classmethod
|
||||
@lru_cache(maxsize=1)
|
||||
def is_sm120(cls):
|
||||
|
||||
Reference in New Issue
Block a user