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
Can it provide an cmake option to disable building of libllama.so? #484
Describe the solution you'd like
Can it provide a cmake option to disable building of libllama.so? I hope use /usr/lib/libllama.so provided by llama.cpp not /usr/lib/python3.11/site-packages/llama_cpp/libllama.so. I am packaging it to linux distribution, if so, user will not need to install 2 libllama.so.
Added in v0.2 was a LLAMA_BUILD cmake flag that can be set to OFF to disable compiling the library, then you can just use the LLAMA_CPP_LIB env variable to point to a pre-built shared library (no guarantee on version compatibility though).
Activity
abetlen commentedon Jul 18, 2023
@Freed-Wu happy to add this, the main issue I see coming up is version mismatch between llama-cpp-python and llama.cpp.
Freed-Wu commentedon Jul 18, 2023
This issue just leave packager solve it. they have duty to keep it match. It is not a default option so no users will meet it.
Freed-Wu commentedon Jul 19, 2023
And if user install the package without building libllama.so, Can this package load it from platformdir's
user_data_dir,site_data_dir?abetlen commentedon Sep 13, 2023
Added in v0.2 was a LLAMA_BUILD cmake flag that can be set to OFF to disable compiling the library, then you can just use the LLAMA_CPP_LIB env variable to point to a pre-built shared library (no guarantee on version compatibility though).