-
Notifications
You must be signed in to change notification settings - Fork 923
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
Mamba Installation Failed; PyTorch+ROCm version 6.0 & 6.1 not working #412
Comments
I just tried to install directly on the host, but no luck, same errors:
|
Same problem . on docker host with rocm 6.0 with your patch or 6.1 pip install mamba-ssm: error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-y3jhawqw/mamba-ssm_1617e4dcea5044fabfc486e5325fed98/setup.py", line 239, in <module>
CUDAExtension(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/cpp_extension.py", line 1098, in CUDAExtension
hipify_result = hipify_python.hipify(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/hipify/hipify_python.py", line 1150, in hipify
preprocess_file_and_save_result(output_directory, filepath, all_files, header_include_dirs,
File "/usr/local/lib/python3.10/dist-packages/torch/utils/hipify/hipify_python.py", line 206, in preprocess_file_and_save_result
result = preprocessor(output_directory, filepath, all_files, header_include_dirs, stats,
File "/usr/local/lib/python3.10/dist-packages/torch/utils/hipify/hipify_python.py", line 826, in preprocessor
with open(fin_path, encoding='utf-8') as fin:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-y3jhawqw/mamba-ssm_1617e4dcea5044fabfc486e5325fed98/csrc/selective_scan/selective_scan.cpp'
torch.__version__ = 2.5.0.dev20240620+rocm6.1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed With a compilation i've error |
We don't have support for direct pip installation yet. Can you try building from source: |
Instead of checking out, you can also run: To check out, build, and install in one step |
Tried, but unsuccessful, errors:
|
I ran this successfully on the rocm/pytorch:latest docker image. Can you try? |
@eliranwong |
@eliranwong |
Your work and updates are much appreciated. Thanks a lot. |
Mamba Installation Failed; PyTorch+ROCm version 6.0 & 6.1 not working
I tried to install mamba with two containers on Ubuntu 22.04 LTS, one with ROCm 6.0.2 & PyTorch+rocm6.0 installed, another with ROCm 6.1.2 & PyTorch+rocm6.1 installed.
Notes on my ROCm 6.1.2 setup: https://github.com/eliranwong/incus_container_gui_setup/blob/main/ubuntu_22.04_LTS_latest_rocm_tested.md
Notes on my ROCM 6.0.2 setup: https://github.com/eliranwong/incus_container_gui_setup/blob/main/ubuntu_22.04_LTS_tested.md
I already applied the path https://github.com/state-spaces/mamba/blob/main/rocm_patch/rocm6_0.patch in container running 6.0.2.
When I run
pip install mamba-ssm
, I encountered errors:With PyTorch + rocm 6.0
With PyTorch + rocm 6.1
The text was updated successfully, but these errors were encountered: