redotvideo / mamba-chat

Mamba-Chat: A chat LLM based on the state-space model architecture 🐍
Apache License 2.0
878 stars 68 forks source link

Issue while installing requirements.txt #3

Open wereretot opened 7 months ago

wereretot commented 7 months ago

Requirement already satisfied: packaging in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (21.3) Collecting torch==2.1.0 (from -r requirements.txt (line 2)) Using cached torch-2.1.0-cp311-cp311-manylinux1_x86_64.whl.metadata (25 kB) Collecting transformers==4.35.0 (from -r requirements.txt (line 3)) Using cached transformers-4.35.0-py3-none-any.whl.metadata (123 kB) Collecting causal-conv1d==1.0.0 (from -r requirements.txt (line 4)) Using cached causal_conv1d-1.0.0.tar.gz (6.4 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "/home/rexommendation/Programs/mamba-chat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/rexommendation/Programs/mamba-chat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rexommendation/Programs/mamba-chat/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-wiab8kl5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-wiab8kl5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-wiab8kl5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/tmp/pip-build-env-wiab8kl5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 8, in ModuleNotFoundError: No module named 'packaging' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

justusmattern27 commented 7 months ago

Hey, sorry for the late response - packaging should be inside requirements.txt, but for some reason, it seems to be missing here. You could try pip install packaging and then rerun pip install -r requirements.txt

SzaremehrjardiMT commented 7 months ago

I encountered the same issue, and installing Packaging did not resolve it. I believe the problem is related to the versions of Cuda and Torch, as well as the availability of a GPU.

ncoder commented 5 months ago

I got the same failure. Python 3.11.7 on a mac. Sounds like it's not a supported configuration.

bartanderson commented 3 months ago

Same with 3.10 on linux I had to download mamba. I used one environment for mamba-chat and simply dc'd to mamba. in mamba I ran python setup.py build pip install mamba_ssm I think there was another module I had to install, probably several more if you haven't ran all of the things I did, here is my pip freeze, note your environment will likely be different for you. Just sharing my success. aiofiles==23.2.1 altair==5.2.0 annotated-types==0.6.0 anyio==4.3.0 attrs==23.2.0 certifi==2024.2.2 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 contourpy==1.2.0 cycler==0.12.1 einops==0.7.0 exceptiongroup==1.2.0 fastapi==0.110.0 ffmpy==0.3.2 filelock==3.13.3 fonttools==4.50.0 fsspec==2024.3.1 gradio==4.23.0 gradio_client==0.14.0 h11==0.14.0 httpcore==1.0.4 httpx==0.27.0 huggingface-hub==0.22.1 idna==3.6 importlib_resources==6.4.0 Jinja2==3.1.3 jsonschema==4.21.1 jsonschema-specifications==2023.12.1 kiwisolver==1.4.5 mamba-ssm==1.2.0.post1 markdown-it-py==3.0.0 MarkupSafe==2.1.5 matplotlib==3.8.3 mdurl==0.1.2 mpmath==1.3.0 networkx==3.2.1 ninja==1.11.1.1 numpy==1.26.4 nvidia-cublas-cu12==12.1.3.1 nvidia-cuda-cupti-cu12==12.1.105 nvidia-cuda-nvrtc-cu12==12.1.105 nvidia-cuda-runtime-cu12==12.1.105 nvidia-cudnn-cu12==8.9.2.26 nvidia-cufft-cu12==11.0.2.54 nvidia-curand-cu12==10.3.2.106 nvidia-cusolver-cu12==11.4.5.107 nvidia-cusparse-cu12==12.1.0.106 nvidia-nccl-cu12==2.19.3 nvidia-nvjitlink-cu12==12.4.99 nvidia-nvtx-cu12==12.1.105 orjson==3.9.15 packaging==24.0 pandas==2.2.1 pillow==10.2.0 pydantic==2.6.4 pydantic_core==2.16.3 pydub==0.25.1 Pygments==2.17.2 pyparsing==3.1.2 python-dateutil==2.9.0.post0 python-multipart==0.0.9 pytz==2024.1 PyYAML==6.0.1 referencing==0.34.0 regex==2023.12.25 requests==2.31.0 rich==13.7.1 rpds-py==0.18.0 ruff==0.3.4 safetensors==0.4.2 semantic-version==2.10.0 shellingham==1.5.4 six==1.16.0 sniffio==1.3.1 starlette==0.36.3 sympy==1.12 tokenizers==0.15.2 tomlkit==0.12.0 toolz==0.12.1 torch==2.2.1 torchaudio==2.2.1 torchvision==0.17.1 tqdm==4.66.2 transformers==4.39.1 triton==2.2.0 typer==0.10.0 typing_extensions==4.10.0 tzdata==2024.1 urllib3==2.2.1 uvicorn==0.29.0 websockets==11.0.3