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
{{ message }}
Repository navigation
cannot open shared object file: No such file or directory #1656
Traceback (most recent call last):
File "/ceph/home/tong01/wyf/COT-Coder-master/unsloth_grpo.py", line 25, in
model, tokenizer = FastLanguageModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/loader.py", line 292, in from_pretrained
model, tokenizer = dispatch_model.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/qwen2.py", line 87, in from_pretrained
return FastLlamaModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/llama.py", line 1798, in from_pretrained
llm = load_vllm(**load_vllm_kwargs)
File "/ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/unsloth_zoo/vllm_utils.py", line 1003, in load_vllm
raise RuntimeError(error)
RuntimeError: /ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/torchvision.libs/libcudart.7ec1eba6.so.12 (deleted): cannot open shared object file: No such file or directory
Besides, when I removed the torchvision using pip uninstall torchvision, and rerun the code, I got the following errors:
Traceback (most recent call last):
File "/ceph/home/tong01/wyf/COT-Coder-master/unsloth_grpo.py", line 25, in
model, tokenizer = FastLanguageModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/loader.py", line 292, in from_pretrained
model, tokenizer = dispatch_model.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/qwen2.py", line 87, in from_pretrained
return FastLlamaModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/llama.py", line 1798, in from_pretrained
llm = load_vllm(**load_vllm_kwargs)
File "/ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/unsloth_zoo/vllm_utils.py", line 1003, in load_vllm
raise RuntimeError(error)
RuntimeError: /ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/nvidia/cuda_runtime/lib/libcudart.so.12 (deleted): cannot open shared object file: No such file or directory
The root cause here was deleted CUDA runtime libraries in that conda environment rather than Unsloth, but you shouldn't have to guess at it any more: importing unsloth now probes torchvision's compiled operators and raises a named error with the reinstall command, instead of surfacing later as something confusing from the vLLM loader. Reinstall torchvision and the nvidia cuda runtime wheels in that environment and please reopen if it persists!
Please update Unsloth: uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir (if it's not in the current release yet it'll be in the next one). Reopen if it still happens!
Activity
danielhanchen commentedon Feb 10, 2025
That most likely means your computer doesn't have CUDA - try installing cudatoolkit
wuyifan18 commentedon Feb 10, 2025
@danielhanchen I have CUDA
nvcc --version:Besides, when I removed the torchvision using
pip uninstall torchvision, and rerun the code, I got the following errors:Traceback (most recent call last):
File "/ceph/home/tong01/wyf/COT-Coder-master/unsloth_grpo.py", line 25, in
model, tokenizer = FastLanguageModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/loader.py", line 292, in from_pretrained
model, tokenizer = dispatch_model.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/qwen2.py", line 87, in from_pretrained
return FastLlamaModel.from_pretrained(
File "/ceph/home/tong01/wyf/unsloth/unsloth/models/llama.py", line 1798, in from_pretrained
llm = load_vllm(**load_vllm_kwargs)
File "/ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/unsloth_zoo/vllm_utils.py", line 1003, in load_vllm
raise RuntimeError(error)
RuntimeError: /ceph/home/tong01/miniconda3/envs/unsloth/lib/python3.11/site-packages/nvidia/cuda_runtime/lib/libcudart.so.12 (deleted): cannot open shared object file: No such file or directory
danielhanchen commentedon Feb 10, 2025
Oh my it seems like maybe all of torch might be broken :(
danielhanchen commentedon Feb 10, 2025
Ie Conda is not recognising the correct CUDA path
danielhanchen commentedon Sep 15, 2026
The root cause here was deleted CUDA runtime libraries in that conda environment rather than Unsloth, but you shouldn't have to guess at it any more: importing unsloth now probes torchvision's compiled operators and raises a named error with the reinstall command, instead of surfacing later as something confusing from the vLLM loader. Reinstall torchvision and the nvidia cuda runtime wheels in that environment and please reopen if it persists!
Please update Unsloth:
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir(if it's not in the current release yet it'll be in the next one). Reopen if it still happens!