-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Here is the issue, seems like GPU can't find. How can I solve this issue?
I read the historical issues for mac, but don't get anything helpful.
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/1y/s1tgwg0d4rqc_nrfwm2f_r140000gp/T/pip-install-u3qof7be/flash-attn_7f22639ed7b743ae9d3555e587d38c77/setup.py", line 83, in
_, bare_metal_major, bare_metal_minor = get_cuda_bare_metal_version(CUDA_HOME)
File "/private/var/folders/1y/s1tgwg0d4rqc_nrfwm2f_r140000gp/T/pip-install-u3qof7be/flash-attn_7f22639ed7b743ae9d3555e587d38c77/setup.py", line 23, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Warning: Torch did not find available GPUs on this system.
If your intention is to cross-compile, this is not an error.
By default, We cross-compile for Volta (compute capability 7.0), Turing (compute capability 7.5),
and, if the CUDA version is >= 11.0, Ampere (compute capability 8.0).
If you wish to cross-compile for a single specific architecture,
export TORCH_CUDA_ARCH_LIST="compute capability" before running setup.py.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed