注意
雑すぎる自分用のメモです
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が動かせた