Run with Err: ImportError: xxxx/miniconda3/envs/ultrarag/lib/python3.11/site-packages/torch/lib/../../nvidia/cusparse/lib/libcusparse.so.12: undefined symbol: __nvJitLinkComplete_12_4, version libnvJitLink.so.12
Describe the bug
Run streamlit run ultrarag/webui/webui.py --server.fileWatcherType none
To Reproduce Steps to reproduce the behavior: 1 pip install requirement 2 streamlit run
Desktop (please complete the following information):
- OS: ubuntu22.04
- Browser chrome
- Pytroch 2.5.1
Additional context it seems pytorch fix this err in 2.6.0, https://github.com/pytorch/pytorch/issues/140797, but some pip packages in this repo can't compatible with torch 2.6.0
xformers 0.0.28.post3 requires torch==2.5.1, but you have torch 2.6.0 which is incompatible. vllm 0.7.2 requires torch==2.5.1, but you have torch 2.6.0 which is incompatible. torchvision 0.20.1 requires torch==2.5.1, but you have torch 2.6.0 which is incompatible. torchaudio 2.5.1 requires torch==2.5.1, but you have torch 2.6.0 which is incompatible.
when run streamlit: RuntimeError: Failed to import transformers.processing_utils because of the following error (look up to see its traceback): operator torchvision::nms does not exist
Thanks for reporting this issue!
The error is caused by version incompatibility between torch 2.6.0 and dependencies like xformers, vllm, torchvision, and torchaudio, which require torch 2.5.1.
Solution:
- Recommended: Create a new virtual environment and install dependencies using the provided
requirements.txt - Alternative: Downgrade PyTorch to
2.5.1 Let us know if the issue persists!
Thanks for reporting this issue! The error is caused by version incompatibility between
torch 2.6.0and dependencies likexformers,vllm,torchvision, andtorchaudio, which requiretorch 2.5.1. Solution:
- Recommended: Create a new virtual environment and install dependencies using the provided
requirements.txt- Alternative: Downgrade PyTorch to
2.5.1 Let us know if the issue persists!
sry for some information not supply, i running into bug with torch 2.5.1.
as mentioned in github issue https://github.com/pytorch/pytorch/issues/140797, pytorch fix this issue with 2.6.0.
it seems downgrade torch version to 2.4.1 can fix, i will try to downgrade my torch version or upgrade torch and fix package incompatible
it seems pytorch version is incompatible with cuda version.
i fixed with command conda install pytorch pytorch-cuda=12.1 -c pytorch -c nvidia