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

reproduce it under Windows #47

Open
pengjunxing opened this issue Oct 28, 2024 · 2 comments
Open

reproduce it under Windows #47

pengjunxing opened this issue Oct 28, 2024 · 2 comments

Comments

@pengjunxing
Copy link

Can anyone reproduce it under Windows? Can you share the environment configuration and each installation package version?

@siddagra
Copy link

siddagra commented Dec 9, 2024

Yeah I was able to get it to work in windows using wsl2

@siddagra
Copy link

siddagra commented Dec 9, 2024

You have to use WSL2 or Linux!!

First you have to make sure you install torch version that matches your nvcc version:

python3 -c 'import torch; print(torch.version.cuda)'
nvcc --version

You can match the versions by installing an older version of torch which uses a different cuda version:

pip3 install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu<major_version><minor_version>

then clone causal conv 1d and pip install:

git clone https://github.com/Dao-AILab/causal-conv1d.git
cd causal_conv1d
git checkout v1.0.2  # this is the highest compatible version allowed by Mamba
CAUSAL_CONV1D_FORCE_BUILD=TRUE pip3 install .

then clone mamba and pip install:

https://github.com/state-spaces/mamba.git
cd mamba
pip3 install .

then clone mamba vision and remove the causal-conv1d and mamba-ssm requirements from requirements.txt as u already have them installed, otherwise it will try to install them again and fail. then pip install mamba vision:

https://github.com/NVlabs/MambaVision.git
**manually remove the causal-conv1d and mamba-ssm requirements from requirements.txt**
cd MambaVision
pip3 install .

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

2 participants