GithubHelp home page GithubHelp logo

selective_scan_cuda about mamba HOT 27 OPEN

gnorZgnoD avatar gnorZgnoD commented on August 28, 2024
selective_scan_cuda

from mamba.

Comments (27)

yidamyth avatar yidamyth commented on August 28, 2024 3

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

image

from mamba.

zixianwang2022 avatar zixianwang2022 commented on August 28, 2024 3

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! :)

Screenshot 2024-05-22 at 14 54 50
Screenshot 2024-05-22 at 14 55 04

from mamba.

WHX0259 avatar WHX0259 commented on August 28, 2024 2

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.

tridao avatar tridao commented on August 28, 2024 1

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.

WHX0259 avatar WHX0259 commented on August 28, 2024 1

image
I have done pip install mamba-ssm successfully, but selective_scan download is not successful

from mamba.

yidamyth avatar yidamyth commented on August 28, 2024 1

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.

tridao avatar tridao commented on August 28, 2024 1

v1.2.1 now includes wheels for pytorch 2.3 so it should hopefully fix this issue

from mamba.

gnorZgnoD avatar gnorZgnoD commented on August 28, 2024

Sorry,
but when i followed the installation, i failed to successfully install mamba-ssm, i met the following issue:
3ffc6c27f9559f1f8751ea5b31a92f9
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.

tridao avatar tridao commented on August 28, 2024

Can you try downloading that wheel URL manually to check if the networking works?

from mamba.

Kingxudong avatar Kingxudong commented on August 28, 2024

I run into the same problem,

from mamba.

Kingxudong avatar Kingxudong commented on August 28, 2024

抱歉,但是当我进行安装时,我无法成功安装mamba-ssm,我遇到了以下问题:3ffc6c27f9559f1f8751ea5b31a92f9我尝试了pip install和conda install,并且还尝试了pip install。从这个存储库中,所有这些都无法工作。
This is because the cuda version is too low and requires cuda 11.6 and above.

from mamba.

gnorZgnoD avatar gnorZgnoD commented on August 28, 2024

抱歉,但是当我进行安装时,我无法成功安装mamba-ssm,我遇到了以下问题:3ffc6c27f9559f1f8751ea5b31a92f9我尝试了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:

  1. 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.
  2. I updated my torch version to 2.0.0, and my torchaudio version to 2.0.1, and i used the cudatooklit11.8.
    image

from mamba.

2tianyao1 avatar 2tianyao1 commented on August 28, 2024

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.
image
image

from mamba.

LanXingXuan avatar LanXingXuan commented on August 28, 2024
9e1c58029079cb3f70d8fb7be63ed91 Hello author, how should I solve this error? I downloaded the 1.1.4 version of the whl package and installed it.

from mamba.

bingo-G avatar bingo-G commented on August 28, 2024

9e1c58029079cb3f70d8fb7be63ed91 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.

bingo-G avatar bingo-G commented on August 28, 2024

9e1c58029079cb3f70d8fb7be63ed91 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.

hsm207 avatar hsm207 commented on August 28, 2024

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.

JefferyChen453 avatar JefferyChen453 commented on August 28, 2024

9e1c58029079cb3f70d8fb7be63ed91 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.

junmeng6025 avatar junmeng6025 commented on August 28, 2024

and mine here is:
image

from mamba.

Weishangbin avatar Weishangbin commented on August 28, 2024

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. image image

Have you solved this problem?I meet the same question,can you tell me how to solve it please

from mamba.

yidamyth avatar yidamyth commented on August 28, 2024

9e1c58029079cb3f70d8fb7be63ed91 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.

yidamyth avatar yidamyth commented on August 28, 2024

9e1c58029079cb3f70d8fb7be63ed91 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.

ncp-nice avatar ncp-nice commented on August 28, 2024

image
I have the same question,have you finish this problem?

from mamba.

yidamyth avatar yidamyth commented on August 28, 2024

v1.2.1 now includes wheels for pytorch 2.3 so it should hopefully fix this issue

Thank you.

from mamba.

ghaddarAbs avatar ghaddarAbs commented on August 28, 2024

@tridao the problem exist for v2.0.3 for pytorch 2.3

from mamba.

SEMLLYCAT avatar SEMLLYCAT commented on August 28, 2024

我重新修复了一下环境,现在没问题了。你可以看看下面的文章。我用的是 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.

SEMLLYCAT avatar SEMLLYCAT commented on August 28, 2024

我重新修复了环境,现在没问题了。你可以看看下面的文章。我用的是 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.