Update __init__.py

This commit is contained in:
Daniel Han-Chen 2023-11-30 17:27:48 +11:00
parent 663d435f87
commit 38a6b4e84d

View file

@ -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 *