Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem of bimamba_type #14

Open
165412152 opened this issue Jan 27, 2024 · 12 comments
Open

The problem of bimamba_type #14

165412152 opened this issue Jan 27, 2024 · 12 comments

Comments

@165412152
Copy link

TypeError: init() got an unexpected keyword argument 'bimamba_type'

@Owen-Liuyuxuan
Copy link

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

@165412152 165412152 reopened this Feb 1, 2024
@MarioPaps
Copy link

I have the same issue. Can someone please provide a fix?

@arielshaulov
Copy link

same problem here

@liyhc
Copy link

liyhc commented Feb 26, 2024

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

###Firstly, install from the .whl file.
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

##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm.
conda env list
cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

@Unrealluver
Copy link
Member

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

Hi everyone,

This is the solution to this issue. Because we have modified the mamba library in this repo, we need to install the mamba of Vim version through the command: pip3 install -e mamba.

@arielshaulov
Copy link

arielshaulov commented Feb 29, 2024

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

Hi everyone,

This is the solution to this issue. Because we have modified the mamba library in this repo, we need to install the mamba of Vim version through the command: pip3 install -e mamba.

The solution for me was installing mamba as mentioned above (check that you are using the exact Python version as they mention in the README and uninstall the previous mamba)

@zhkyaaa
Copy link

zhkyaaa commented Mar 1, 2024

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

i have the same problem
i cant use pip install -e causal_conv1d>=1.1.0 and pip install -e mamba-1p1p1
so i download this two project locally and pip wheel,it worked
but now i meet this problem

@bingo-G
Copy link

bingo-G commented Mar 1, 2024

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

###Firstly, install from the .whl file. 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

##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

I solved the problem in your way

@sahsaeedi
Copy link

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

###Firstly, install from the .whl file. 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

##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

still have a problem.

@Shadow581
Copy link

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:
###Firstly, install from the .whl file. 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
##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

still have a problem.

@sahsaeedi Do you solve the problem? I also use above solution, but it still shows “TypeError: init() got an unexpected keyword argument 'bimamba_type'”

@manuragkhullar
Copy link

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:
###Firstly, install from the .whl file. 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
##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

still have a problem.

@sahsaeedi Do you solve the problem? I also use above solution, but it still shows “TypeError: init() got an unexpected keyword argument 'bimamba_type'”

I still have this problem. Ideal is to install mamba_ssm locally. But I don't understand to pip install -e mamba, where is the 'mamba' file located. I can't find it anywhere on github repo? my realisation is mamba code is defined somewhere within the mamba_ssm and not 'mamba'.

@liyhc
Copy link

liyhc commented Sep 16, 2024

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:
###Firstly, install from the .whl file. 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
##Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

still have a problem.

@sahsaeedi Do you solve the problem? I also use above solution, but it still shows “TypeError: init() got an unexpected keyword argument 'bimamba_type'”

I still have this problem. Ideal is to install mamba_ssm locally. But I don't understand to pip install -e mamba, where is the 'mamba' file located. I can't find it anywhere on github repo? my realisation is mamba code is defined somewhere within the mamba_ssm and not 'mamba'.

Vim has modified mamba_ssm and introduced an additional parameter “bimamba_type”:

you can try the following command:
pip install -e /absolute/path/to/Vim-main/mamba-1p1p1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests