Open FloMru opened 11 months ago
Any suggestions on this till now?
Hi @FloMru,
Would this issue help you?
From what I understand, it's required that both torch and causal_conv1d use the same version of CUDA.
I had the same issue, recompiled both causal-conv1d and mamba from source, then cp -r build/lib.linux-x86_64-cpython-310/* ../venv/lib/python3.10/site-packages/ for both packages. Mind the ../venv - replace with the path to your venv.
Any solution on this now?
any update?
I think the issue has to do with cuda. Generally, Pytorch and causal_conv1d need to be compiled with the same version of cuda.
Something that worked for me on a Linux cluster is Pytorch 2.0.0 with cuda 11.8 (later versions should also work), causal conv1d 1.1.0 (not earlier versions) and mamba ssm 1.1.0.
If you check out the pip pages for the packages, make sure whatever verrsion you select for causalconv1d works for mamba-ssm
Hi, this seems very related to this issue: https://github.com/state-spaces/mamba/issues/169
Maybe also here, try to pip uninstall mamba-ssm and/or causal-conv1d and pip install them again making sure to prevent using the pip cache by adding the
--no-cache-dir
argument.
Hi, this seems very related to this issue: #169
Maybe also here, try to pip uninstall mamba-ssm and/or causal-conv1d and pip install them again making sure to prevent using the pip cache by adding the
--no-cache-dir
argument.
Hi, I was having same problem with another repo, and followed what you said. Now it is working, thanks :)
Any solution on this now?
I find torch 2.2 will have this problem, after switch it to torch 2.1, I solve it
I have been successfully run. Environment follows: cuda 11.8 python 3.10.13 pytorch 2.1.1 causal_conv1d 1.1.1 mamba-ssm 1.2.0.post1
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118
pip install causal_conv1d==1.1.1
pip install mamba-ssm==1.2.0.post1
Any solution on this now?
I find torch 2.2 will have this problem, after switch it to torch 2.1, I solve it
I was using the PyTorch 2.3 and it was not working. On the contrary, I downgrade to PyTorch 2.2. it is working currently. and below are the configurations of 'causal-conv1d' and 'mamba-ssm ' causal-conv1d 1.1.3.post1 pypi_0 pypi mamba-ssm 1.2.0.post1 pypi_0 pypi
Well, all you need to do is download the corresponding .whl from https://github.com/Dao-AILab/causal-conv1d/releases/tag/v1.0.0 and https://github.com/state-spaces/mamba/releases/tag/v1.0.1 based on your cuda, python as well as torch version and pip install the two .whl file.
Any solution on this now?
I find torch 2.2 will have this problem, after switch it to torch 2.1, I solve it
I was using the PyTorch 2.3 and it was not working. On the contrary, I downgrade to PyTorch 2.2. it is working currently. and below are the configurations of 'causal-conv1d' and 'mamba-ssm ' causal-conv1d 1.1.3.post1 pypi_0 pypi mamba-ssm 1.2.0.post1 pypi_0 pypi
confirmed worked for me as well thank you!
pip install causal-conv1d==1.1.*
pip install mamba-ssm==1.2.*
git+https://github.com/huggingface/transformers.git
I am encountering a strange error, while using Mamba with torch 2.1.1+cu118 on Linux. In another environment with torch 1.13.1+cu116 the same code works fine.
ImportError: /home/user1/.conda/envs/2prod/lib/python3.10/site-packages/causal_conv1d_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda20CUDACachingAllocator12recordStreamERKNS_7DataPtrENS0_10CUDAStreamE
I tried setting up the environment several times, and it would be great if I could use torch > 2.0.
Thanks for having a look!