You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows / Pycharm] llama_cpp_python installs and runs successfully without BLAS backend, but does not work with cuBLAS flags #228
I reviewed the Discussions, and have a new bug or useful enhancement to share.
Expected Behavior
I was able to run pip install llama-cpp-python successfully in PyCharm Terminal and use it in my Python code, so when I saw that additional flags needed to be set for cuBLAS, I expected the following code to run successfully:
I'm running PyCharm 2022.2 with Python 3.9, and I have llama-cpp-python 0.1.50 installed. I have an NVIDIA GeForce RTX 3070 and have been able to get cuBLAS up and running with the regular llama.cpp.
changed the title [-][Windows / Pycharm] llama_cpp_python installs and runs successfully, but does not work with cuBLAS flags[/-][+][Windows / Pycharm] llama_cpp_python installs and runs successfully without BLAS backend, but does not work with cuBLAS flags[/+]on May 17, 2023
Which is weird since I could navigate to the referenced and see the .dll file there. I tried adding an os.add_dll_directory to specifically include the path but the error still remains.
Activity
[-][Windows / Pycharm] llama_cpp_python installs and runs successfully, but does not work with cuBLAS flags[/-][+][Windows / Pycharm] llama_cpp_python installs and runs successfully without BLAS backend, but does not work with cuBLAS flags[/+]gjmulder commentedon May 18, 2023
Can we see the output of your package build with the
--verboseflag added?technicolor-twelve commentedon May 18, 2023
@gjmulder This is the output when I run
pip install llama-cpp-pythonwith the previous flags enabled. Is this what you're looking for?llama-cpp-python pip install output.txt
abetlen commentedon May 18, 2023
@technicolor-twelve try
pip install llama-cpp-python --force-reinstall --upgrade --no-cache-diras it's using a cached version of the package.technicolor-twelve commentedon May 18, 2023
That forced a new install, though now when I run
from llama_cpp import LlamaI get the following runtime error:llama runtime error.txt
Which is weird since I could navigate to the referenced and see the .dll file there. I tried adding an
os.add_dll_directoryto specifically include the path but the error still remains.gjmulder commentedon May 23, 2023
That looks like a path issue. Can you review #225, please?
technicolor-twelve commentedon May 24, 2023