You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm encountering a PermissionError during import due to bitsandbytes trying to scan a restricted system path for CUDA libraries:
PermissionError: [Errno 13] Permission denied: '/var/lib/gitea/libcudart.so'
This happens during the execution of:
from unsloth.chat_templates import get_chat_template
import bitsandbytes
Even after setting LD_LIBRARY_PATH and CUDA_HOME, and reinstalling bitsandbytes==0.41.1 from source using --no-binary, the issue persists.
Since the library scans all entries in os.environ, it hits unreadable directories like /var/lib/gitea, which causes the crash.
Expected behavior
This is breaking inference workflows even when bitsandbytes is built locally. Please advise on a proper patch or ignore logic for unreadable system paths.