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

causal_conv1d_fwd(): incompatible function arguments #41

Open
a912289748 opened this issue Mar 7, 2024 · 15 comments
Open

causal_conv1d_fwd(): incompatible function arguments #41

a912289748 opened this issue Mar 7, 2024 · 15 comments

Comments

@a912289748
Copy link

No description provided.

@FilippoBotti
Copy link

FilippoBotti commented Mar 19, 2024

Same issue, do you find out how to solve it?

TypeError: causal_conv1d_fwd(): incompatible function arguments. The following argument types are supported: 1. (arg0: torch.Tensor, arg1: torch.Tensor, arg2: Optional[torch.Tensor], arg3: Optional[torch.Tensor], arg4: Optional[torch.Tensor], arg5: Optional[torch.Tensor], arg6: bool) -> torch.Tensor

@Dexterp37
Copy link

@FilippoBotti that's likely because it's using the wrong causal-conv1d version. Instead of using the vendored version, pinning it to version 1.1.0 makes it work (I wrote a short tutorial about how to use Vision Mamba for image classification )

@FilippoBotti
Copy link

@FilippoBotti that's likely because it's using the wrong causal-conv1d version. Instead of using the vendored version, pinning it to version 1.1.0 makes it work (I wrote a short tutorial about how to use Vision Mamba for image classification )

It works, thanks!

@Jamesgender
Copy link

It works, thanks!

@bingo-G
Copy link

bingo-G commented Apr 6, 2024

@FilippoBotti that's likely because it's using the wrong causal-conv1d version. Instead of using the vendored version, pinning it to version 1.1.0 makes it work (I wrote a short tutorial about how to use Vision Mamba for image classification )

It works, thanks!

@uxhao-o
Copy link

uxhao-o commented Apr 18, 2024

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
# copy mamba-ssm dir in vim to conda env site-package dir
cp -rf mamba-1p1p1/mamba_ssm /opt/miniconda3/envs/mamba/lib/python3.10/site-packages

@dandeperson
Copy link

我已经成功运行了。环境如下: 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
# copy mamba-ssm dir in vim to conda env site-package dir
cp -rf mamba-1p1p1/mamba_ssm /opt/miniconda3/envs/mamba/lib/python3.10/site-packages

我也是相同的配置,但是我仍然报错TypeError: causal_conv1d_fwd(): incompatible function arguments. The following argument types are supported: 1. (arg0: torch.Tensor, arg1: torch.Tensor, arg2: Optional[torch.Tensor], arg3: Optional[torch.Tensor], arg4: bool) -> torch.Tensor

@ph-marra
Copy link

Hi, I stumbled in the same error today and pinning causal-conv1d to 1.1.0 did not work while trying to run MambaLMHeadModel found in mamba_ssm/models/mixer_seq_simple.py.

I made it work instead by locally installing causal-conv1d in version v1.2.0.post2 :

git clone https://github.com/Dao-AILab/causal-conv1d
cd causal-conv1d
git checkout v1.2.0.post2
pip install .

The problem stems from the addition of two new parameters here.

@mazzzystar
Copy link

same issue here, solved by

pip install -U causal_conv1d

I got version of

Successfully installed causal_conv1d-1.2.0.post2

@LFY2002
Copy link

LFY2002 commented May 31, 2024

same issue here, solved by

pip install -U causal_conv1d

I got version of

Successfully installed causal_conv1d-1.2.0.post2

ubuntu 22.04 有效

@Yiwen233
Copy link

Yiwen233 commented Jun 3, 2024

same issue here, solved by

pip install -U causal_conv1d

I got version of

Successfully installed causal_conv1d-1.2.0.post2

It works for me, thanks a lot

@poult-lab
Copy link

vendored version

it works, thank you

@chenshaobin
Copy link

@FilippoBotti that's likely because it's using the wrong causal-conv1d version. Instead of using the vendored version, pinning it to version 1.1.0 makes it work (I wrote a short tutorial about how to use Vision Mamba for image classification )

It work!!!

@Kimjinjinwoo
Copy link

@FilippoBotti that's likely because it's using the wrong causal-conv1d version. Instead of using the vendored version, pinning it to version 1.1.0 makes it work (I wrote a short tutorial about how to use Vision Mamba for image classification )

It works to me, thank you !!!

@Joeland4
Copy link

Joeland4 commented Aug 5, 2024

Hi, I stumbled in the same error today and pinning causal-conv1d to 1.1.0 did not work while trying to run MambaLMHeadModel found in mamba_ssm/models/mixer_seq_simple.py.

I made it work instead by locally installing causal-conv1d in version v1.2.0.post2 :

git clone https://github.com/Dao-AILab/causal-conv1d
cd causal-conv1d
git checkout v1.2.0.post2
pip install .

The problem stems from the addition of two new parameters here.

nice, it works

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