llama-cpp-python CUDA 安装指南本指南帮助您为 ComfyUI 的 Windows 便携版安装支持 GPU (CUDA) 的 llama-cpp-python。
C:\ComfyUI_windows_portable\python_embededcmd 并按回车键。确保安装脚本保存在这里:
.\ComfyUI\custom_nodes\ComfyUI-JoyCaption\llama_cpp_install\llama_cpp_install.py
在命令提示符中(在步骤 1 中打开的),运行脚本:
.\python_embeded\python.exe llama_cpp_install.py
脚本将执行以下操作:
🕒 此过程可能需要 5-20+ 分钟,具体取决于您的系统。
.\python.exe -m pip install --upgrade pip
.\python.exe -m pip cache purge
.\python.exe -m pip install scikit-build-core cmake
llama-cpp-python set CMAKE_ARGS="-DGGML_CUDA=on" && .\python.exe -m pip install llama-cpp-python --no-cache-dir && set CMAKE_ARGS=
Ctrl+F5 或 Cmd+Shift+R)。