mirror of
https://github.com/unslothai/unsloth.git
synced 2026-07-09 15:58:41 +00:00
Update __init__.py
This commit is contained in:
parent
663d435f87
commit
38a6b4e84d
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