-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinstall for gemma 2 #1559
Comments
Quick-but-not-best solution: To find where it was actually built, you could try something like:
Once you know where the library is, note the path, then set:
Then run your In my case it was hiding at
|
Thank you. That worked well. |
how to run gemma 9b on llama-cpp-python llm = Llama( prompt = "write the python code to create text file" Simple inference exampleoutput = llm( print(output['choices'][0]['text']) |
After the recent llama.cpp refactor I had to also update the cmake build a little bit, as of version 0.2.80 the build should work correctly and Gemma2 is supported |
Can confirm. It works for me. |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Run without issue
Current Behavior
RuntimeError: Failed to load shared library '...........lib/python3.10/site-packages/llama_cpp/libllama.so': libggml.so: cannot open shared object file: No such file or directory
Environment and Context
Ubuntu22
Python 3.10.12
GNU Make 4.3
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Failure Information (for bugs)
Steps to Reproduce
I clone llama-cpp-python:
it installs llama-cpp-python but my script does not work and gives the error above (Failed to load shared library).
does not work.
I tried many different things like manual make in llama.cpp.
There is libggml.so in venv/lib/python3.10/site-packages/lib/libggml.so but not in venv/lib/python3.10/site-packages/llama_cpp/libggml.so and if I copy the file it still doesn't work.
llama-cli -m gemma2......gguf
compiles and works fine.The text was updated successfully, but these errors were encountered: