Skip to content

Commit f1d79c9

Browse files
Fix in ext.py (index error on system without GPU) (#594)
* Update README.md * Fix in ext.py (index error on system without GPU) --------- Co-authored-by: turboderp <[email protected]>
1 parent e705319 commit f1d79c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exllamav2/ext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def maybe_set_arch_list_env():
3939
arch = f'{capability[0]}.{capability[1]}'
4040
if arch not in arch_list:
4141
arch_list.append(arch)
42+
if not arch_list:
43+
return
4244
arch_list = sorted(arch_list)
4345
arch_list[-1] += '+PTX'
4446

0 commit comments

Comments
 (0)