Skip to content
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

Dependency llama-cpp in PR #77 won't build on M chip Mac #132

Open
xdotli opened this issue May 10, 2024 · 1 comment
Open

Dependency llama-cpp in PR #77 won't build on M chip Mac #132

xdotli opened this issue May 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xdotli
Copy link

xdotli commented May 10, 2024

What is the issue?

Running

make first-run

on mac will trigger the following command:

poetry install --with setup,community --verbose

Then it will produce this error

RuntimeError: Failed to load shared library '/Users/lixiangyi/Library/Caches/pypoetry/virtualenvs/backend-PXYn0t1E-py3.11/lib/python3.11/site-packages/llama_cpp/libllama.dylib': dlopen(/Users/lixiangyi/Library/Caches/pypoetry/virtualenvs/backend-PXYn0t1E-py3.11/lib/python3.11/site-packages/llama_cpp/libllama.dylib, 0x0006): tried: '/Users/lixiangyi/Library/Caches/pypoetry/virtualenvs/backend-PXYn0t1E-py3.11/lib/python3.11/site-packages/llama_cpp/libllama.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/lixiangyi/Library/Caches/pypoetry/virtualenvs/backend-PXYn0t1E-py3.11/lib/python3.11/site-packages/llama_cpp/libllama.dylib' (no such file), '/Users/lixiangyi/Library/Caches/pypoetry/virtualenvs/backend-PXYn0t1E-py3.11/lib/python3.11/site-packages/llama_cpp/libllama.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
make[1]: *** [setup] Error 1
make: *** [first-run] Error 2

The llama-cpp-python library is introduced in PR #77, I have two proposals to help easing the set up:

  1. I have created a devcontainer config for developers to run in GitHub Codespace
  2. Remove the deps on llama-cpp all together.

Additional information

No response

@xdotli xdotli added the bug Something isn't working label May 10, 2024
@tianjing-li
Copy link
Collaborator

@xdotli I have an M1 as well with my setup and I'm able to run the poetry setup, perhaps try deleting the .venv file poetry generates and trying it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants