private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Installing LLAMA CUDA libraries and Python bindings ERROR

Open kaisadhar opened this issue 1 year ago • 2 comments

While executing the command CMAKE_ARGS='-DLLAMA_CUBLAS=on' poetry run pip install --force-reinstall --no-cache-dir llama-cpp-python, I always get this error. Haven't found a solution for this problem. image image Ps: I am running this on WSL 2

kaisadhar avatar Apr 30 '24 19:04 kaisadhar

Maybe this will help https://github.com/zylon-ai/private-gpt/issues/1584

AlexPerkin avatar May 10 '24 10:05 AlexPerkin

@kaisadhar Recent versions of llama.cpp uses this flag -DLLAMA_CUDA=on instead of -DLLAMA_CUBLAS=on. So try to pass that to your poetry install... command.

Also, it requires package python3-dev. So with WSL, I guess you can do this:

wsl
sudo apt-get install -y python3-dev

neofob avatar May 26 '24 20:05 neofob