-
Notifications
You must be signed in to change notification settings - Fork 869
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
[BUG: AssertionError: Mamba is not installed. Please install it using pip install mamba-ssm
.
#192
Comments
Same here. Definitely something with the conda env. Probably need to install some cuda nvidia nvcc lib.
Possible solutions: Okay so it looks like we need torch < 2.3.0 (so 2.2.2) but xformers 0.0.27 needs >=2.3.0 and mistral-inference doesn't work (for me, mamba deps of link above) with 2.3.0 but doesn't work with the xformers binaries <0.0.27. I get other errors ( Now at: |
Hmm not sure what's going on. Here a google colab showing how to install: https://colab.research.google.com/drive/1aHH4PW4eBU_R4R8pQ9BuYeOeMTiA98NF?usp=sharing Does that work for you? |
I got it to work with using conda's cuda 11.8 and python 3.9 Seems like cuda 12.1 has problems with this project |
Hmm it also works for CUDA 12.1 for me. It's most likely linked to the mamba_ssm install - maybe check here: https://github.com/state-spaces/mamba?tab=readme-ov-file#installation |
Working now for me too. Default cuda 12.1. Python 3.10.14 was giving me problems. This works with a fresh conda env:
|
It does not work for me. |
Thank you! This was my issue. There seems to be some problem with Python 3.10.14, or changing the version to 3.10.13 triggered a fix. I'm using WSL Ubuntu 22.04 and installed CUDA with these commands (via this):
If you have an existing cudatoolkit install, you should uninstall it before trying to install this cudatoolkit package. You may have to add nvcc to your path afterwards ( My conda env install commands:
With those commands, I end up with these versions (same as the collab notebook):
and running mamba-chat with:
works for me. I downloaded Codestral Mamba using the Hugging Face snapshot download Python code. |
_import selective_scan_cuda I think it might be a version mismatch issue. I modified it to directly insert the relevant library using mamba:
and it immediately showed the error mentioned above. My environment is torch 2.1 with Python 3.10. |
Python -VV
Pip Freeze
Reproduction Steps
Expected Behavior
working
Additional Context
No response
Suggested Solutions
No response
The text was updated successfully, but these errors were encountered: