Comments (27)
ImportError: /home/yida/miniconda3/envs/mambair/lib/python3.9/site-packages/selective_scan_cuda.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
from mamba.
Hi,
I figured out the problem with import mamba_ssm
prompting import error:
I found out that it was the problem with using the newest torch.__version__=2.3
.
I tested with cuda versions 12.2, 11.8; python 3.9, 3.10; torch 2.1, 2.2, 2.3. Only torch 2.3 is not able to import mamba_ssm
. torch 2.1 and 2.2 worked well.
Pictures are shown below.
Hope you can find this useful! :)
from mamba.
I have fixed the environment again, now it's okay. You can take a look at the following article. I'm using vision mamba. You can try installing it using a whl file, maybe you don't need to reinstall the environment. Pay attention to matching the versions of PyTorch and Python, etc.
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
from mamba.
Did you follow the installation instruction in the README?
It's here and should be installed if you do pip install mamba-ssm
: https://github.com/state-spaces/mamba/tree/main/csrc/selective_scan
from mamba.
I have done pip install mamba-ssm successfully, but selective_scan download is not successful
from mamba.
I have fixed the environment again, now it's okay. You can take a look at the following article. I'm using vision mamba. You can try installing it using a whl file, maybe you don't need to reinstall the environment. Pay attention to matching the versions of PyTorch and Python, etc.
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
Thanks very much, I have down this question by your answer. Can success follow this link. The key is 'cp -rf mamba-1p1p1/mamba_ssm /home/yida/miniconda3/envs/mamba/lib/python3.10/site-packages'.
from mamba.
v1.2.1 now includes wheels for pytorch 2.3 so it should hopefully fix this issue
from mamba.
Sorry,
but when i followed the installation, i failed to successfully install mamba-ssm, i met the following issue:
I tried both pip install and conda install, and i also tried to pip install . from this repository, all of them couldn't work.
from mamba.
Can you try downloading that wheel URL manually to check if the networking works?
from mamba.
I run into the same problem,
from mamba.
抱歉,但是当我进行安装时,我无法成功安装mamba-ssm,我遇到了以下问题:
我尝试了pip install和conda install,并且还尝试了pip install。从这个存储库中,所有这些都无法工作。
This is because the cuda version is too low and requires cuda 11.6 and above.
from mamba.
抱歉,但是当我进行安装时,我无法成功安装mamba-ssm,我遇到了以下问题:
我尝试了pip install和conda install,并且还尝试了pip install。从这个存储库中,所有这些都无法工作。
This is because the cuda version is too low and requires cuda 11.6 and above.
I solved the issue by following operations:
- I downloaded the mamba_ssm.whl file from https://github.com/state-spaces/mamba/releases, then i pip install the whl file in my working environment.
- I updated my torch version to 2.0.0, and my torchaudio version to 2.0.1, and i used the cudatooklit11.8.
from mamba.
Did you follow the installation instruction in the README? It's here and should be installed if you do
pip install mamba-ssm
: https://github.com/state-spaces/mamba/tree/main/csrc/selective_scan
I have done pip install mamba-ssm
successfully , but I still have this problem.
from mamba.
![9e1c58029079cb3f70d8fb7be63ed91](https://private-user-images.githubusercontent.com/111499955/308826595-b558ceaa-b9b5-48d9-87e4-6caa4696953e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODc5OTksIm5iZiI6MTcyMzg4NzY5OSwicGF0aCI6Ii8xMTE0OTk5NTUvMzA4ODI2NTk1LWI1NThjZWFhLWI5YjUtNDhkOS04N2U0LTZjYWE0Njk2OTUzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxN1QwOTQxMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOTdiNTAwZjY3YzhkMjE0ZTI4MjZiYTBlZTBjYzcxM2QwYzE0YjAwMjUyMTMwZWRhMDc4YzFiN2M2NjYxODdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mDT47prx01MCXpKWKNwPxfOeXQTvTfiAtinFkV1Zaw8)
from mamba.
Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.
I have the same problem. Is there any solution
from mamba.
Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.
I fixed the problem, you can't download the latest whl file, you can just recompile it with the previous whl file, Such as mamba_ssm - 1.1.3. Post1 + cu118torch2. 1 cxx11abifalse - cp310 - cp310 - linux_x86_64. WHL
from mamba.
FWIW, i also had the same problem and was able to solve it by pip install mamba-ssm
. Earlier, I tried with pip install .
from mamba.
Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.
hi, I met the same issue. Have you solved yet?
from mamba.
from mamba.
Did you follow the installation instruction in the README? It's here and should be installed if you do
pip install mamba-ssm
: https://github.com/state-spaces/mamba/tree/main/csrc/selective_scanI have done
pip install mamba-ssm
successfully , but I still have this problem.![]()
Have you solved this problem?I meet the same question,can you tell me how to solve it please
from mamba.
Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.
I have the same question, have you be done this.
from mamba.
Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.
I fixed the problem, you can't download the latest whl file, you can just recompile it with the previous whl file, Such as mamba_ssm - 1.1.3. Post1 + cu118torch2. 1 cxx11abifalse - cp310 - cp310 - linux_x86_64. WHL
I have the same question, i have pip install mamba_ssm but also meet this.
from mamba.
I have the same question,have you finish this problem?
from mamba.
v1.2.1 now includes wheels for pytorch 2.3 so it should hopefully fix this issue
Thank you.
from mamba.
@tridao the problem exist for v2.0.3 for pytorch 2.3
from mamba.
我重新修复了一下环境,现在没问题了。你可以看看下面的文章。我用的是 Vision Mamba。你可以尝试使用 whl 文件安装,也许不需要重新安装环境。注意匹配 PyTorch 和 Python 的版本等。
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
非常感谢,我通过你的回答解决了这个问题。可以成功点击此链接。密钥是“cp -rf mamba-1p1p1/mamba_ssm /home/yida/miniconda3/envs/mamba/lib/python3.10/site-packages”。
我重新修复了环境,现在没问题了。你可以看看下面的文章。我用的是 Vision Mamba。你可以尝试使用 whl 文件安装,也许不需要重新安装环境。注意匹配 PyTorch 和 Python 的版本等。
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
非常感谢,我通过你的回答解决了这个问题。可以成功点击此链接。密钥是“cp -rf mamba-1p1p1/mamba_ssm /home/yida/miniconda3/envs/mamba/lib/python3.10/site-packages”。
您好,我已经成功安装以上版本的causal-conv1d和mamba-ssm,但是依旧报错ImportError xxxx causal_conv1d_cuda.cpython-xxx-linux-gnu.so undefined symbol的错误,我将对应版本的源码已替换到site-packages后,依旧报同样的错误,不知道是不是我的操作有问题,如:我下载源码mamba-1.1.1,做cp -rf mamba-1.1.1/mamba_ssm ./***/site-packages .还请您抽空解惑下,非常感谢
from mamba.
我重新修复了环境,现在没问题了。你可以看看下面的文章。我用的是 Vision Mamba。你可以尝试使用 whl 文件安装,也许不需要重新安装环境。注意匹配 PyTorch 和 Python 的版本等。
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
非常感谢,我通过你的回答解决了这个问题。可以成功点击此链接。密钥是“cp -rf mamba-1p1p1/mamba_ssm /home/yida/miniconda3/envs/mamba/lib/python3.10/site-packages”。
我重新修复了环境,现在没问题了。你可以看看下面的文章。我正在使用的是 Vision Mamba。你可以尝试使用 whl 文件安装,也许不需要重新安装环境。注意匹配 PyTorch 和 Python 的版本等。
wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
https://blog.csdn.net/weixin_45667052/article/details/136311600
非常感谢,我通过你的回答解决了这个问题。可以成功点击此链接。密钥是“cp -rf mamba-1p1p1/mamba_ssm /home/yida/miniconda3/envs/mamba/lib/python3.10/site-packages”。
您好,我已经成功安装了以上版本causal-conv1d和mamba-ssm,但是依旧报错ImportError xxxx causal_conv1d_cuda.cpython-xxx-linux-gnu.so undefined symbol错误,我将对应版本的源码已替换到site-packages后,依旧报同样的错误,不知道是不是我的操作有问题,如:我下载源码mamba-1.1.1,做cp -rf mamba-1.1.1/mamba_ssm ./***/site-packages 。还请您抽空解惑下,非常感谢
causal-conv1d和mamba-ssm,我做了同样的操作
from mamba.
Related Issues (20)
- RuntimeError: CUDA error: unknown error
- How to calculate Flops for mamba_chunk_scan_combined and mamba_split_conv1d_scan_combined function HOT 1
- Replace mamba1 with mamba2 and training becomes very slow! HOT 2
- Implement a "crossmamba" block for different length sequences HOT 3
- How to use sequence parallelism in Mamba2?
- Changing expansion_factor resulted in 'c10::DistBackendError HOT 1
- Mamba for encoder-decoder HOT 2
- mamba_split_conv1d_scan_combined error HOT 1
- torch.cuda.amp.custom_fwd(args...) Deprecated
- Is it possible to get ssm_states at specific seq len instead of just the last state? HOT 1
- How to modify mambaV2 to set causal=False? HOT 3
- Reducing _chunk_scan_bwd_kernel computation HOT 4
- Exploding gradients if ngroups is higher than 1. HOT 3
- clarification on how to interpret kernel size for conv1d HOT 1
- Some questions about the shape of A,B,C,D HOT 5
- How can I avoid using causal-conv1d? HOT 11
- Is it okay to put S6(MAMBA) and gated MLP blocks like a transformer? (Also please open the discussion tab)
- Vanishing gradient problem with more layer HOT 1
- Results vary greatly across experiments
- Gradient explosion in Mamba2 training, norm and loss divergence HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mamba.