Closed NouamaneTazi closed 4 months ago
That means that not all cuda tools are installed. So we need to install the cuda version compatible with our nvidia-smi
. You can find the command to run here: https://anaconda.org/nvidia/cuda-toolkit
For example for CUDA 12.2:
conda install -y nvidia/label/cuda-12.2.0::cuda-toolkit
Then you can check that cuda tools were correctly installed by running: nvcc -V
If nvcc
is still undefined you should run:
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
export PATH=$PATH:$CUDA_HOME/bin
Then try again nvcc -V
When trying to install flash-attn:
pip install "flash-attn>=2.5.0" --no-build-isolation
I run into the following issue: