× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-e17h729i/flash-attn_04e1e09780f64807ac90bf9b6ff6b492/setup.py", line 21, in
import torch
File "/home/me/enter/envs/llava/lib/python3.10/site-packages/torch/init.py", line 235, in
from torch._C import * # noqa: F403
ImportError: /home/me/enter/envs/llava/lib/python3.10/site-packages/torch/lib/../../nvidia/cusparse/lib/libcusparse.so.12: undefined symbol: __nvJitLinkAddData_12_1, version libnvJitLink.so.12
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
”
Command:
PASTE THE COMMANDS HERE.
Log:
PASTE THE LOGS HERE.
Screenshots:
You may attach screenshots if it better explains the issue.
Describe the issue
Issue:“pip install flash-attn --no-build-isolation” “Collecting flash-attn Using cached flash_attn-2.6.3.tar.gz (2.6 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Traceback (most recent call last): File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-e17h729i/flash-attn_04e1e09780f64807ac90bf9b6ff6b492/setup.py", line 21, in
import torch
File "/home/me/enter/envs/llava/lib/python3.10/site-packages/torch/init.py", line 235, in
from torch._C import * # noqa: F403
ImportError: /home/me/enter/envs/llava/lib/python3.10/site-packages/torch/lib/../../nvidia/cusparse/lib/libcusparse.so.12: undefined symbol: __nvJitLinkAddData_12_1, version libnvJitLink.so.12
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details. ” Command:
Log:
Screenshots: You may attach screenshots if it better explains the issue.