Skip to content

Commit 175ebb2

Browse files
authored
Fix typo in fa_version_unsupported_reason (#48)
* Fix typo in `fa_version_unsupported_reason` Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> * Fix error message Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --------- Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
1 parent 95898ba commit 175ebb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm_flash_attn/flash_attn_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _is_fa2_supported(device = None) -> Tuple[bool, Optional[str]]:
3434
return False, f"FA2 is unavaible due to: {FA2_UNAVAILABLE_REASON}"
3535
if torch.cuda.get_device_capability(device)[0] < 8:
3636
return False, \
37-
"FA2 is only supported on devices with compute capability < 8"
37+
"FA2 is only supported on devices with compute capability >= 8"
3838
return True, None
3939

4040
def _is_fa3_supported(device = None) -> Tuple[bool, Optional[str]]:
@@ -59,7 +59,7 @@ def fa_version_unsupported_reason(fa_version: int, device = None) \
5959
-> Optional[str]:
6060
assert fa_version in [2, 3], f"Unsupported FA version: {fa_version}"
6161
if fa_version == 2:
62-
return _is_fa3_supported(device)[1]
62+
return _is_fa2_supported(device)[1]
6363
elif fa_version == 3:
6464
return _is_fa3_supported(device)[1]
6565

0 commit comments

Comments
 (0)