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

Guide to Install on Windows #644

Open
siddagra opened this issue Dec 9, 2024 · 1 comment
Open

Guide to Install on Windows #644

siddagra opened this issue Dec 9, 2024 · 1 comment

Comments

@siddagra
Copy link

siddagra commented Dec 9, 2024

You have to use WSL2!!

In WSL2:

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 .

Please react with a thumbs-up/heart/rocket if it works so other people know this approach works as well.

@siddagra siddagra changed the title Guide to install on Windows Guide to Install on Windows Dec 9, 2024
@siddagra siddagra closed this as completed Dec 9, 2024
@siddagra
Copy link
Author

siddagra commented Dec 9, 2024

May be nice to add to README

@siddagra siddagra reopened this Dec 9, 2024
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

1 participant