Replies: 2 comments 2 replies
-
Hi, thanks for sharing this but it doesn't work for me :( The installation ends with a multiple syntax errors and macro expansion issues Python: 3.11.4 This is the complete command output:
Any help really appreciated, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is there a reason you aren't using Powershell per the README? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've seen a lot of people having issues with installing with the cuBLAS flags active via CMD on windows machines.
You have to set them all via the same line while linking them with &&
For example
SET LLAMA_CLBLAST=1 && SET CMAKE_ARGS="-DLLAMA_CLBLAST=on" && SET FORCE_CMAKE=1 && python -m pip install llama-cpp-python
or to reinstall
SET LLAMA_CLBLAST=1 && SET FORCE_CMAKE=1 && SET CMAKE_ARGS=-DLLAMA_CUBLAS=on && python -m pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir
This will get cuBLAS working if you're doing it via CMD.
For what ever reason, setting the flags one at a time won't work. There are a few fixes I've seen using a .bat file which pretty much does the same way but it's a lot easier just to set the flags via CMD and install it via PIP in the usual way.
Also, the -m flag isn't necessary when using python pip but is best practice in my opinion which is why I've added it in the examples :-)
Maybe this should be added to the main page instructions for windows machines?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions