0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

llama-cpp-pythonはAppleSiliconとx86_64で異なるインストール

0
Posted at

注意

雑すぎる自分用のメモです

Mac

こんなエラーが出る

RuntimeError: Failed to create llama context with model. This may indicate that llama_context_params is out of sync with the bundled llama.cpp version, or that required context parameters were not initialized correctly.

ので、こんな解決策がある

CMAKE_ARGS="-DLLAMA_METAL_EMBED_LIBRARY=ON -DLLAMA_METAL=on" \
  pip install --force-reinstall --no-cache-dir llama-cpp-python

x86_64 Ubuntu

自分はマトモなRTXなりRadeonなりを持ってないのでCPUオンリーしか試してないが

pip install git+https://github.com/JamePeng/llama-cpp-python.git --no-cache-dir

とりあえずこれでQwen3.5が動かせた

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?