标题: Windows11(非WSL)安装Installing llama-cpp-python with GPU Support [打印本页] 作者: 刘俊凯 时间: 2024-9-1 04:12 标题: Windows11(非WSL)安装Installing llama-cpp-python with GPU Support 直接安装,只支持CPU。想支持GPU,贫苦一些。
1. 安装CUDA Toolkit (NVIDIA CUDA Toolkit (available at https://developer.nvidia.com/cuda-downloads)
2. 安装如下物件:
git
python
cmake
Visual Studio Community (make sure you install this with the following settings)
Desktop development with C++
development
Linux embedded development with C++
3. Clone git repository recursively to get llama.cpp submodule as well
git clone --recursive -j8 https://github.com/abetlen/llama-cpp-python.git
4. Open up a command Prompt and set the following environment variables.