abetlen / abetlen/llama-cpp-python

[Workaround] Failed to load shared library (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

未关闭
#724 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
10.6k
派生
1.4k
PR 合并指标
PR 指标待抓取

描述

This issue comes up on some Mac M series environments where cmake builds the llama.cpp shared library for the wrong architecture. The solution is to reinstall llama-cpp-python with:

```
CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES=arm64" pip install --upgrade --verbose --force-reinstall --no-cache-dir llama-cpp-python
```

If anyone has a good way to automatically detect this in the CMakeLists.txt please let me know.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。