Update __init__.py
This commit is contained in:
parent
7166dce0ae
commit
47569be1d6
1 changed files with 7 additions and 0 deletions
|
|
@ -52,4 +52,11 @@ if reload_package:
|
|||
importlib.reload(torch)
|
||||
pass
|
||||
|
||||
# Try loading bitsandbytes
|
||||
import bitsandbytes as bnb
|
||||
try:
|
||||
cdequantize_blockwise_fp32 = bnb.functional.lib.cdequantize_blockwise_fp32
|
||||
except:
|
||||
raise ImportError("CUDA is not linked properly. Try running `ldconfig /usr/lib64-nvidia` first.")
|
||||
|
||||
from .models import *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue