-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"Installation error: 'bare_metal_version' not defined in mamba_ssm setup.py" #602
Comments
Mamba requires CUDA (see Installation requirements) or its equivalent, ROCm, on AMD cards (see this). Technically, you could download the mamba source from here and separately run the PyTorch reference code for selective scan (without installing - just use imports), defined as
Sidenote: Perhaps Lines 113 to 122 in bc84fb1
|
I was running into the same issue.
tl;dr: I was trying to install mamba_ssm 1.0.1. Since I have torch and cuda in my venv, I'm puzzled why I'm getting this error:
This part made me check whether I have the
... and I hadn't. PyTorch CUDA does not include cuda-tools like nvcc. I installed it with |
I encountered an error while trying to install the mamba_ssm package (version 2.2.2) using pip. The installation fails with a NameError, indicating that the variable bare_metal_version is not defined in the setup.py script.
Here are the details of my environment:
Operating System: [Specify your operating system and version]
Python Version: [Specify your Python version]
PyTorch Version: 1.13.1+cu117
Steps to reproduce the error:
Create a new virtual environment (optional but recommended).
Activate the virtual environment.
Run the following command to install mamba_ssm:
pip install mamba_ssm==2.2.2
The installation process fails with the following error:
`/tmp/pip-install-ogtmafks/mamba-ssm_fa1e7fb3478e4f2c98a605ddfb1e5d62/setup.py:119: UserWarning: mamba_ssm was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
warnings.warn(
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-ogtmafks/mamba-ssm_fa1e7fb3478e4f2c98a605ddfb1e5d62/setup.py", line 189, in
if bare_metal_version >= Version("11.8"):
NameError: name 'bare_metal_version' is not defined
Title:
"NameError: 'bare_metal_version' is not defined during mamba_ssm installation"
Description:
I encountered an error while trying to install the mamba_ssm package (version 2.2.2) using pip. The installation fails with a NameError, indicating that the variable
bare_metal_version
is not defined in thesetup.py
script.Here are the details of my environment:
Steps to reproduce the error:
The installation process fails with the following error:
this is error line:
if bare_metal_version >= Version("11.8"):
It appears that the
setup.py
script is trying to access a variable namedbare_metal_version
, but this variable is not defined, resulting in the NameError.I also noticed a warning message indicating that nvcc (NVIDIA CUDA Compiler) was not found. However, I don't have CUDA installed and I don't require CUDA support for my use case.
Thank you for your attention to this matter.
Best regards,
Marco Durán, Anachroni
The text was updated successfully, but these errors were encountered: