-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Building wheel for mamba-ssm (pyproject.toml) did not run successfully. #731
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
Comments
I was able to fix this issue by downloading Mamba git repo, merging PR #729 into my local repo, and downloading from source. Commands are:
I tried this using CUDA 12.8 and PyTorch 2.7.0 which did not work. Switched to CUDA 12.4 and PyTorch 2.4.1 and it worked.
Referenced these two threads to solve: |
i have tried it but i get error when trying to import Mamba from mamba_ssm
/kaggle/working/mamba/mamba_ssm/init.py in /kaggle/working/mamba/mamba_ssm/ops/selective_scan_interface.py in ImportError: /usr/local/lib/python3.11/dist-packages/selective_scan_cuda.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c107WarningC1ESt7variantIJNS0_11UserWarningENS0_18DeprecationWarningEEERKNS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb |
hey @tridao, any chance you could build the Thanks! |
I am getting this error:
`error: subprocess-exited-with-error
× Building wheel for mamba-ssm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for mamba-ssm (pyproject.toml) ... error
ERROR: Failed building wheel for mamba-ssm
Successfully built causal-conv1d
Failed to build mamba-ssm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mamba-ssm)`
I have tried to manually download the wheel from releases but then i get
`ImportError Traceback (most recent call last)
/tmp/ipykernel_35/3881790.py in <cell line: 0>()
3 import torch.nn as nn
4 import torch.nn.functional as F
----> 5 from mamba_ssm.modules.mamba_simple import Mamba
6 from torch.optim import Adam
7 import torch.optim as optim
/usr/local/lib/python3.11/dist-packages/mamba_ssm/init.py in
1 version = "2.2.4"
2
----> 3 from mamba_ssm.ops.selective_scan_interface import selective_scan_fn, mamba_inner_fn
4 from mamba_ssm.modules.mamba_simple import Mamba
5 from mamba_ssm.modules.mamba2 import Mamba2
/usr/local/lib/python3.11/dist-packages/mamba_ssm/ops/selective_scan_interface.py in
16 from mamba_ssm.ops.triton.layer_norm import _layer_norm_fwd
17
---> 18 import selective_scan_cuda
19
20
ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory
`
I am using kaggle. I get same error on Colab. How to fix it?
The text was updated successfully, but these errors were encountered: