runtime error

all last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-ha2mirt9/flash-attn_b6f23a27de9a46fcbd9977275ab87d93/setup.py", line 134, in <module> CUDAExtension( File "/usr/local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1048, in CUDAExtension library_dirs += library_paths(cuda=True) File "/usr/local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths if (not os.path.exists(_join_cuda_home(lib_dir)) and File "/usr/local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2223, in _join_cuda_home raise EnvironmentError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [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. [notice] A new release of pip available: 22.3.1 -> 24.0 [notice] To update, run: pip install --upgrade pip 2024-06-19 19:15:04 | ERROR | stderr | Traceback (most recent call last): 2024-06-19 19:15:04 | ERROR | stderr | File "/home/user/app/app.py", line 10, in <module> 2024-06-19 19:15:04 | ERROR | stderr | subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'flash-attn', '--no-build-isolation', '-U']) 2024-06-19 19:15:04 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call 2024-06-19 19:15:04 | ERROR | stderr | raise CalledProcessError(retcode, cmd) 2024-06-19 19:15:04 | ERROR | stderr | subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', 'install', 'flash-attn', '--no-build-isolation', '-U']' returned non-zero exit status 1.

Container logs:

Fetching error logs...