Skip to content

Commit

Permalink
Fix for non-numerical version number in flash-attn
Browse files Browse the repository at this point in the history
  • Loading branch information
turboderp committed Sep 19, 2023
1 parent b9cbe23 commit ec5164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exllamav2/attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
has_flash_attn = False
try:
import flash_attn
flash_attn_ver = [int(t) for t in flash_attn.__version__.split(".")]
flash_attn_ver = [int(t) for t in flash_attn.__version__.split(".") if t.isdigit()]
if flash_attn_ver >= [2, 2, 1]:
from flash_attn import flash_attn_func
has_flash_attn = True
Expand Down

0 comments on commit ec5164b

Please sign in to comment.