-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hi Mamba maintainers, Thanks for sharing this awesome repository 🙏
I'd like to report an incompatibility issue I encountered when installing mamba-ssm==2.2.5.
The same setup works fine with mamba-ssm==2.2.4, so it looks like a regression introduced in 2.2.5.
Environment
Host OS: Ubuntu (see attached screenshots)
GPU + Driver: (see nvidia-smi screenshot)
CUDA Toolkit (Host): 12.6
Docker Base Image: pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
Python: 3.11 (comes with the base image)
Ubuntu :
Output of nvidia-smi :
Cuda Toolkit : 12.6
Steps to reproduce :
Step 1 - Docker File :
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
git build-essential cmake ninja-build pkg-config
RUN apt-get install -y libgl1-mesa-glx libglib2.0-0
RUN python -m pip install --upgrade pip
# RUN apt-get update && apt-get install -y libgl1-mesa-glx libglib2.0-0 qt5-default
# RUN printf "numpy==1.26.4\n" > /etc/pip-constraints.txt
# ENV PIP_CONSTRAINT=/etc/pip-constraints.txt
# ENV PIP_UPGRADE_STRATEGY=only-if-needed
RUN pip install open3d==0.18.0 scipy pyquaternion tqdm opencv-python configobj einops numba plyfile transformers==4.37.2
# # RUN pip install -U setuptools wheel ninja
RUN pip install spconv-cu124
# RUN pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.0+${cu124}.html
# # RUN pip install nuscenes-devkit
# # RUN pip install mamba-ssm
# # RUN pip install git+https://github.com/openai/CLIP.git
# RUN apt-get install -y python3-tk ffmpeg
RUN pip install ftfy regex
RUN pip install git+https://github.com/openai/CLIP.git
RUN pip install --no-cache-dir --no-deps --no-build-isolation --no-binary :all: mamba-ssm==2.2.5
Step 2 : Build + run
docker build -t ilikemamba .
docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix --gpus all ilikemamba /bin/bash
Step 3 : Import Test
export LD_LIBRARY_PATH=/opt/conda/lib/python3.11/site-packages/torch/lib:$LD_LIBRARY_PATH
python -c "import selective_scan_cuda; print('selective_scan_cuda OK')"
Output :
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /opt/conda/lib/python3.11/site-packages/selective_scan_cuda.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c107WarningC1ESt7variantIJNS0_11UserWarningENS0_18DeprecationWarningEEERKNS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
Expected Result :
The import should succeed and print:
selective_scan_cuda OK
This works correctly if I change the Dockerfile version to mamba-ssm==2.2.4:
Thanks again for maintaining this project 🙏
Please let me know if I can provide any additional logs or debugging output to help investigate this issue.
I’m still new to this ecosystem, so if my setup approach is incorrect (or there’s a better way to install/build), I’d really appreciate your guidance! 🙂