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

selective_scan module ModuleNotFoundError in Python #10

Open
XB-WANG opened this issue Apr 8, 2024 · 3 comments
Open

selective_scan module ModuleNotFoundError in Python #10

XB-WANG opened this issue Apr 8, 2024 · 3 comments

Comments

@XB-WANG
Copy link

XB-WANG commented Apr 8, 2024

Python interpreter cannot find the module named selective_scan. The code attempts to import selective_scan_fn as selective_scan_fn_v1z and selective_scan_ref as selective_scan_ref_v1 from the selective_scan module, but since the module cannot be found, Python raises a ModuleNotFoundError.

@hafsa390
Copy link

Hi @XB-WANG how did u solve the issue. I am facing similar error.

@ziyangwang007
Copy link
Owner

ziyangwang007 commented May 22, 2024

hi, it works on my machine.

Happy to discuss with you further. BTW, have you tried 'pip install mamba-ssm' directly?

if still doesn't work, I recommend you to try to find a solution on this page:

https://github.com/state-spaces/mamba

also ensure that PyTorch 1.12+ CUDA 11.6+

@ziyangwang007
Copy link
Owner

ziyangwang007 commented May 29, 2024

Hi, I once faced this issue last night.

Please try Pytorch 2.1.0 (not 2.3.0),

and then

pip install mamba-ssm

pip install causal-conv1d==1.2.2.post1

that should be fine

@XB-WANG @hafsa390

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

3 participants